Goal
Builds the tangent line at x = a from the function value and derivative.
Worldwide context
Saved once here, used across the site.
Currency changes display only. Country selection guides tax input; no tax rate is guessed.
Builds the tangent line at x = a from the function value and derivative.
y = f(a) + f'(a)(x − a).A clearer path to an answer
This page keeps the calculation transparent: define the goal, enter the matching values, inspect the method, and decide what the result means in your situation.
Builds the tangent line at x = a from the function value and derivative.
f(a) · Derivative f'(a) · Point a
y = f(a) + f'(a)(x − a).
Calculate, review the assumptions below, then compare a related tool when the decision needs more context.
Builds the tangent line at x = a from the function value and derivative.
Open the Tangent Line Equation pageMore math tools
Download PDFDownload Word (.doc)
Enter your values above and choose Calculate to see the result here.
Calculation map
y = f(a) + f'(a)(x − a).
Bounded, transparent calculation
Your recent runs stay in this browser session only.
Formula: y = f(a) + f'(a)(x − a).
Point-slope form through (a, f(a)) with slope f'(a). It is also the first-order Taylor approximation near a.
Worked example: y = 3 + 2(x - 1); slope 2 at (1, 3).
The displayed limits are checked before the handler runs. Model-specific domain checks may also reject impossible or non-finite inputs.
Methodology: This calculator follows the WorldCalculate input, formula, precision, and boundary policy. Read the official methodology.
Calculator usage statistics
This section counts anonymous successful Calculate submissions, not unique visitors. Counts and top tools appear only when trusted aggregate data is available; country analysis is shown only under the same condition and reporting threshold.
Answer-first guide
Builds the tangent line at x = a from the function value and derivative. Start with one clearly defined goal, enter values in the units shown, and keep the result attached to the assumptions below.
This tool is useful when your question includes tangent line, linear approximation, slope. It returns the outputs declared in the calculator contract rather than a live quote, approval, diagnosis, or professional sign-off.
f(a) · Derivative f'(a) · Point a. Keep the same time period, unit system, and currency wherever the form requires comparable values.
Run the worked example first, compare its output with the page's example, then change one input at a time. This makes an unexpected result easier to trace to a unit, boundary, or assumption.
Need a wider view? Browse Math Calculators or compare the related tools below. The WorldCalculate methodology explains how formulas, examples, limits, and revisions are reviewed.
y = f(a) + f'(a)(x − a).
Point-slope form through (a, f(a)) with slope f'(a). It is also the first-order Taylor approximation near a.
y = 3 + 2(x - 1); slope 2 at (1, 3).
Context and background
Math calculators move from named quantities to a relation, then to a result that can be checked with substitution, units, or an alternate form.
Arithmetic, algebra, geometry, trigonometry, and number theory provide reusable structures for classroom work and everyday reasoning. Each page narrows that structure to one declared problem.
Research and review
Researched by Hassan ALRowaie, Founder and editorial researcher at WorldCalculate.
This guide follows the live calculator's declared inputs, formula, worked example, assumptions, validation boundaries, and source-backed methodology. The review date describes editorial review of the calculator explanation; it is not a promise that external facts or rates remain current.
A tangent line is the straight line that captures a function's immediate direction at one chosen input. This calculator builds that line from exactly three numbers: f(a), the function value at the point; f'(a), the derivative there; and a, the input coordinate of the point. The resulting equation is y = f(a) + f'(a)(x - a). It is written in point-slope form so that the line visibly passes through (a, f(a)) and uses the supplied derivative as its slope. Near a, this line is a local first-order approximation to the original function. The word local is important: the line describes what the curve is doing at and close to the chosen point, not everything the curve does over its entire domain. The calculator does not accept a formula for f, calculate the derivative, or choose a test value of x. It trusts the values you provide, formats the slope and equation, and leaves the mathematical and practical interpretation to you. The sections below explain the geometry, input contract, units, signs, examples, approximation error, domain questions, validation habits, and situations in which a tangent line is useful or insufficient.
Imagine a smooth curve and a chosen point on it. A secant line joins two distinct points of the curve, so its slope describes an average change across an interval. A tangent line is obtained by shrinking that interval toward the chosen point while keeping track of the limiting slope. In that limiting sense, the tangent line records the curve's instantaneous direction at the point. The line is not merely a visual decoration. Its slope is the derivative, and its point of contact is the function value at the selected input.
The tangent line and the curve share the point (a, f(a)). If the curve is smooth enough, their directions agree there even though their paths may separate immediately afterward. A tangent line can cross a curve rather than remain on one side of it, so the informal idea that a tangent only touches once is too restrictive. What matters is matching position and first-order direction at the chosen input. The line is a local geometric model, not a replacement for the curve at every input.
The phrase first-order refers to the amount of local information being retained. The value f(a) supplies the zeroth-order location, and f'(a) supplies the first-order change. Information about bending, such as a second derivative, is not included. If the curve has little bending over the region of interest, the line may remain useful for a noticeable interval. If the curve bends sharply, the same line can become inaccurate after a small movement away from a.
A useful mental picture is to zoom in on a differentiable curve. As the view becomes smaller around a, the curve often looks more and more like a straight segment. The tangent line is the ideal straight limit of that zoomed view. The calculator gives the equation of that limiting local line once its point and slope have been supplied. It cannot determine whether the curve actually has the smooth local behavior needed for that picture.
The f(a) field is the function's output at the chosen input a. It is not a nearby value, an average, or the derivative. The Derivative f'(a) field is the slope of the function at that same input. The Point a field identifies the input coordinate where both pieces of information belong. These three values must describe one function and one location. Combining a value from one point with a derivative from another point produces a line, but not the tangent line requested by the formula.
Each field expects a finite number. The catalog permits values from -1,000,000,000,000 through 1,000,000,000,000, inclusive. Those bounds apply independently to f(a), f'(a), and a. They are processing limits for the calculator, not mathematical limits on tangent-line problems. A valid value can be negative, zero, or positive. The input controls do not ask for a formula, a list of samples, a second derivative, or a separate x-coordinate for evaluating the approximation.
The output equation keeps x as a variable. For that reason, x is not another input field. The result describes the predicted y value for any x that you choose later, using the line model. The calculator also returns the supplied slope and the point in a readable form. If you need a numerical estimate at a particular x, substitute that x into the displayed equation yourself and remember that the approximation is most defensible near a.
The input contract also includes a conceptual requirement that a simple numeric validator cannot check: f'(a) must be a derivative at a. A number entered in the derivative field is accepted because the page is designed to build a line from supplied information. Acceptance does not prove that the number came from a differentiable function or that it was calculated with the correct units. Keep the formula, data source, or prior derivative calculation alongside the three entered values when the result needs to be reproducible.
For a line, slope is the ratio of vertical change to horizontal change. For a differentiable function, the derivative f'(a) is the limiting version of that ratio as the horizontal change approaches zero. It tells you the direction and immediate steepness of the graph at a. A positive derivative means the graph rises as x increases locally. A negative derivative means it falls. A zero derivative means that the tangent direction is horizontal, although the function may still curve away from that horizontal direction.
The derivative is a rate, not a function value. If f(a) is 3 and f'(a) is 2, the 3 locates the point vertically while the 2 determines how much the tangent model changes for one input unit. Confusing these roles can lead to a line with the right point but the wrong direction. The formula keeps the roles separate: f(a) is the starting output, and f'(a)(x - a) is the modeled change from that starting output.
A derivative can be interpreted through nearby secant slopes, but a single nearby difference is not automatically the exact derivative. If you obtained f'(a) numerically, the quality of the tangent line depends on the method used to estimate it. A noisy slope, a slope from too wide an interval, or a slope taken at a different point will be carried directly into the displayed equation. The tangent-line calculator does not correct or re-estimate a derivative that you enter.
The derivative's magnitude should be read with its units. A slope of 4 may mean 4 meters per second, 4 dollars per unit, or 4 dimensionless output units per input unit, depending on the function. A larger numerical slope is not automatically more important, and a small slope is not automatically negligible. The context determines what one unit of local change means.
Start with the ordinary line relationship y - y1 = m(x - x1). For the tangent at a, use x1 = a, y1 = f(a), and m = f'(a). Rearranging gives y - f(a) = f'(a)(x - a), and adding f(a) to both sides gives y = f(a) + f'(a)(x - a). This is the exact construction used by the calculator. It is not a second formula competing with the tangent formula; it is the general point-slope rule with the function's point and derivative substituted into it.
Point-slope form is often safer than immediately expanding to y = mx + b. It displays the contact point and the horizontal displacement x - a, which makes the local meaning visible. If you do want slope-intercept form, expand the expression to get y = f'(a)x + [f(a) - f'(a)a]. The bracketed quantity is the y-intercept of the tangent line, not generally the function value at zero. It should not be confused with f(0) unless the tangent happens to match the function there.
The formula passes through the required point automatically. Set x equal to a. Then x - a is zero, so the equation gives y = f(a). This is a basic validation check that works for positive, negative, and zero values. The derivative is also visible if you compare two line inputs: changing x by one unit changes the line's y value by f'(a) units, subject to the unit convention. These checks can catch a misplaced sign or an incorrect point before any graph is drawn.
A negative coordinate does not require a special version of the formula. If a = -2, then x - a is x - (-2), which is x + 2. Keeping the subtraction in the displayed point-slope expression reduces sign mistakes. Likewise, if f(a) is negative, it remains the vertical coordinate of the point. The construction is uniform because the definitions of displacement and slope already handle all signs.
The input coordinate a and the variable x use the same input unit. The value f(a) and the output y use the same output unit. Therefore x - a is measured in input units, and f'(a) has units of output per input. Multiplying f'(a) by x - a produces an output-sized change, which can be added to f(a). This dimensional structure is a quick way to check whether the line has been assembled from compatible quantities.
Suppose x is time in seconds and f(x) is position in meters. Then f'(a) is meters per second. If the time moves by 0.2 seconds, the linearized position change is f'(a) times 0.2 seconds, giving meters. If time is entered in milliseconds instead, the derivative's numerical value changes by a factor of 1,000 unless the position and time conventions are converted consistently. The calculator has no unit selector, so the unit discipline must happen before entry.
The coordinate a can be a physical measurement, a count, a temperature scale value, or an abstract mathematical input. A difference in temperature readings may be meaningful on one scale but not as an absolute physical distance in another context. The equation can still be evaluated algebraically, but the interpretation of its slope depends on the meaning of the coordinate. State the coordinate convention when communicating the line to someone else.
Do not attach units to only one part of the calculation. If f(a) is in kilograms and x is in meters, then the derivative must be kilograms per meter for the product f'(a)(x - a) to be kilograms. If the function is dimensionless and x is in seconds, the derivative is per second. A bare numeric equation is convenient for the calculator, but a useful report includes the units of the point, slope, and output.
Consider f(x) = x^2 at a = 1. The function value is f(1) = 1, and the derivative is f'(x) = 2x, so f'(1) = 2. Enter f(a) = 1, Derivative f'(a) = 2, and Point a = 1. The calculator constructs y = 1 + 2(x - 1). The point is (1, 1), and the tangent rises two output units for each input unit in the local line model.
To see how the expression works, move to x = 1.1. The horizontal change is 0.1, so the predicted change is 2 times 0.1, or 0.2. The tangent line predicts y = 1.2. The original function gives 1.1 squared, which is 1.21. The difference is 0.01, a small curvature effect over this short move. At x = 1.01, the line predicts 1.02 while the original function gives 1.0201, so the separation is much smaller.
The example shows why a positive slope does not mean the function is exactly linear. The parabola continues to bend upward, while the tangent line keeps the same slope of 2 everywhere. At the contact point their values and directions agree. Away from that point, the omitted curvature gradually changes the function's true rate, and the line no longer follows that change.
The same reasoning works for the catalog's default values f(a) = 3, f'(a) = 2, and a = 1. Those inputs produce y = 3 + 2(x - 1), a line through (1, 3) with slope 2. The default line is a valid geometric object even without knowing the original function. What cannot be inferred from the three numbers alone is how close that line is to an unknown curve farther from a.
Take f(x) = 4 - x^2 at a = 1. The function value is f(1) = 3. Differentiating gives f'(x) = -2x, so the derivative at the point is -2. Enter 3 for f(a), -2 for f'(a), and 1 for a. The calculator returns y = 3 + -2(x - 1). The plus sign before the supplied derivative is part of the general template; because the derivative is negative, the expression represents y = 3 - 2(x - 1).
At x = 1.2, the horizontal change is 0.2. The line change is -2 times 0.2, or -0.4, so the tangent predicts y = 2.6. The original function gives 4 - 1.2 squared = 2.56. The line is above the curve at this point because the parabola bends downward in this region. At x = 0.9, the tangent predicts 3.2 while the original function gives 3.19, showing the same local agreement from the other side with a small error.
A negative slope is not a sign that the input or output is invalid. It simply describes local decrease as x increases. If x represents elapsed time and y represents a remaining amount, a negative derivative may be exactly the expected behavior. If x is a distance and y is an elevation, it may describe a downhill segment. The meaning comes from the variables and their units, not from the sign alone.
The example also illustrates why parentheses matter. The displacement is x - 1, and the negative derivative multiplies the entire displacement. Replacing the expression with an incorrectly distributed sign can change the line. Evaluating at x = a is a reliable check: the negative slope term vanishes and the line must still return 3.
If f'(a) = 0, the tangent equation becomes y = f(a) + 0(x - a), which simplifies to y = f(a). The graph of the tangent is horizontal. This often occurs at a local maximum or minimum, but a zero derivative by itself does not classify the point. A flat point can be part of a plateau, a turning point, or a more subtle stationary shape. Additional information about the function is needed to decide which situation applies.
For f(x) = x^2 at a = 0, f(a) = 0 and f'(a) = 0, so the tangent line is y = 0. The curve is above that line on both sides, and the difference grows quadratically as x moves away from zero. The horizontal tangent correctly describes the immediate direction even though the function is not constant. It does not claim that nearby outputs stay equal.
A horizontal tangent can also occur when the curve continues through the point without a local maximum or minimum. For example, a function may flatten briefly and then keep increasing. The first derivative records the slope at one point, not the full pattern of slopes around it. Looking at a graph or checking higher-order information may be necessary if the distinction matters.
The calculator accepts a zero derivative and returns a valid horizontal equation. It does not label the point as a maximum, minimum, inflection point, or stable state. Those labels require information beyond f(a), f'(a), and a. Treat the horizontal output as a statement about direction at the selected point, not as an automatic classification of the surrounding function.
If the original function is linear, the tangent line is not merely an approximation; it is the function itself. For f(x) = 7x - 4, the derivative is 7 at every input. At any chosen a, f(a) = 7a - 4, and the tangent equation becomes 7a - 4 + 7(x - a), which simplifies to 7x - 4. There is no curvature to accumulate error because the slope never changes.
Many functions are not exactly linear but behave nearly linearly over a short interval. A curve with gentle bending may have a tangent line that is accurate enough for a small change in x. The relevant question is not whether the function is globally straight. It is whether the slope changes little over the particular displacement being modeled. A line can be a good local tool for a nonlinear function.
Near-linearity should be evaluated relative to the output tolerance of the task. A difference of 0.01 may be negligible in one setting and unacceptable in another. A graph that looks straight at ordinary scale may still produce a meaningful error when the required precision is high. Conversely, visible curvature may not matter if only a rough estimate is needed. Define the acceptable error before deciding that a tangent is adequate.
If you have access to the original function, compare the tangent with direct evaluations at a few nearby x values. Use distances on both sides of a when the domain allows it. Agreement over the intended range supports the approximation, while rapidly growing discrepancies signal that the line is being used too far from its contact point or that the function has stronger curvature than expected.
The tangent equation is also called a linearization. Write the input movement as delta x = x - a. Then the formula becomes f(x) approximately equal to f(a) + f'(a) delta x. The term f'(a) delta x is an estimated output increment. This form is often more useful than the line equation when the question asks how much a quantity changes after a small input adjustment rather than asking for a plotted line.
For example, let f(x) = square root of x and choose a = 25. The point value is 5 and the derivative is 1 divided by 10, or 0.1. If x increases to 25.4, then delta x = 0.4. The linearized value is 5 + 0.1 times 0.4 = 5.04. The direct square root is about 5.0398, so the local estimate is close. The calculator would build y = 5 + 0.1(x - 25) from the three supplied numbers; the increment interpretation comes from substituting the desired x afterward.
The same method can estimate a change without first forming a complete output. If a rate is 12 units per input unit at a and the input increases by 0.03 units, the predicted output increase is 12 times 0.03 = 0.36 units. If the input decreases, delta x is negative and the estimated output change reverses sign. This signed increment is more informative than using only the magnitude of the derivative.
Linearization is especially useful when direct evaluation is expensive, awkward, or unavailable for a small adjustment. It can approximate a recalibrated measurement, a nearby physical state, or the effect of a small parameter change. The method still needs a meaningful derivative and a small enough movement. If the change is large or the function bends strongly, use the line as a first estimate and compare it with a more complete calculation.
The units make the increment calculation transparent. The derivative converts an input change into an output change, and adding that change to f(a) preserves the output unit. This is also why a derivative from a different unit system cannot be inserted without conversion. A correct linearization is an equation with consistent dimensions, not just a numerically plausible decimal.
The tangent line has constant slope, while a curved function changes slope as x changes. That difference is the main source of approximation error. If the function is twice differentiable near a, the first omitted contribution is commonly associated with one half of f''(a) times (x - a) squared. This explains why the error often shrinks much faster than the input displacement when the displacement is made small. The exact remainder depends on the function and on the interval between a and x.
The square of the displacement means that moving twice as far can produce roughly four times the leading curvature error when the local second derivative is stable. This is a local rule, not a universal promise. Higher derivatives, a changing curvature, a nearby singularity, or a displacement outside the smooth neighborhood can make the simple estimate poor. If the function is only known to be differentiable, the rigorous local statement is weaker: the error is smaller than a constant multiple of the displacement in the limit, but a quadratic error bound is not automatic.
A positive second derivative often makes a tangent underestimate a convex curve on one side and, depending on the geometry, produces a predictable separation pattern. A negative second derivative reverses the local bending. However, the sign of the error should not be guessed from a vague impression of steepness. It comes from how the slope changes, and that may vary across the interval. Direct checks or a known error bound are safer when the sign matters.
A tangent line can be exact at the contact point and still be poor at a nearby point if the function has a sharp bend. Conversely, a line can remain accurate over a useful range even when the function is visibly nonlinear at a larger scale. The relevant curvature is the curvature encountered between the contact point and the proposed evaluation point. The calculator displays no curvature estimate because no second derivative or formula is among its inputs.
If the original function is available, compare the linearized result with the direct value for the largest displacement you intend to use. Record the difference and decide whether it meets the application's tolerance. If only the three calculator inputs are known, you can construct the line but cannot derive a trustworthy error bound from them alone. That limitation is part of the mathematical meaning of a first-order approximation.
On a graph, mark the point (a, f(a)) first. Draw a straight line through it with rise f'(a) for each unit of run. A positive slope tilts upward from left to right, a negative slope tilts downward, and a zero slope is horizontal. This construction is equivalent to the displayed equation and can serve as a visual check. If the line misses the supplied point or tilts in the wrong direction, revisit the inputs and signs.
The horizontal displacement x - a is the distance from the contact coordinate, with its sign. Points to the right of a have positive displacement, and points to the left have negative displacement. The product f'(a)(x - a) therefore predicts the direction of the output change. For a positive slope, moving left lowers the line's predicted output; for a negative slope, moving left raises it. The same equation handles both sides without separate cases.
The line's y-intercept can be read by setting x to zero, giving f(a) - a f'(a). That value is a property of the tangent line, not usually a value of the original function at zero. A tangent at a far from zero may have an intercept that seems unrelated to the curve's actual y-intercept. Keeping the contact-point form visible avoids assigning the line's intercept to the original function without checking.
A graph can show whether the line stays close to the curve, but visual closeness depends on scale. An axis stretched in one direction can make a steep line look gentle, and a compressed vertical scale can hide a meaningful error. Use numerical comparisons at the relevant x values in addition to visual inspection. The equation provides a reproducible description even when a plot is unavailable.
A tangent-line formula assumes that a single derivative exists at a. A function can have a well-defined value f(a) while lacking a unique slope there. The absolute-value function at zero is a standard example: its left-hand slope is -1 and its right-hand slope is 1. There is a corner, not one derivative. A calculator can still build a line if someone enters a derivative number, but the number would be an imposed choice rather than the derivative of the original function at that point.
Corners are not the only issue. A jump, a cusp, a vertical tangent, or an abrupt piecewise transition can prevent an ordinary finite derivative. A vertical tangent may correspond to an unbounded slope, which does not fit the calculator's finite numeric field. At a boundary of the domain, only one-sided behavior may exist. A two-sided tangent interpretation may therefore be inappropriate even if the function is smooth from the side that is available.
The point a must belong to the function's domain, and any proposed x used with the line should be interpreted within the region where the original function is relevant. The tangent equation itself is algebraically defined for every numeric x, but that does not extend the domain of f. For a logarithm, for example, a tangent based at a positive point may be evaluated as a line at negative x, while the original logarithm is not defined there. The line is not permission to ignore the source function's domain.
A discontinuity near a can also make a local line misleading. Even when the derivative exists exactly at a, a nearby jump or narrow feature may limit how far the approximation can be trusted. Check the definition of the function, branch conditions, thresholds, and neighboring domain before applying the line. These are mathematical checks outside the three-number arithmetic performed by the calculator.
If a derivative is one-sided, label the result that way and explain the boundary. If the derivative does not exist, do not present an arbitrary finite slope as a tangent without qualification. The page can represent a line from any accepted finite inputs, but it cannot distinguish a genuine derivative from a guessed or mislabeled number.
The calculator validates that each entered value is a finite number within its configured range. This protects the arithmetic from missing, nonnumeric, infinite, or excessively large values. It does not validate that f(a) was evaluated correctly, that f'(a) belongs to the same point, or that the units match. A field can pass numeric validation while representing a poor mathematical input. Treat validation as a necessary gate, not as a proof of correctness.
Rounding matters most when the derivative has been calculated from other quantities or when the final line will be used for a small change. A rounded f(a) shifts the line vertically, while a rounded derivative changes its direction. If both are rounded, the errors can reinforce each other. Keep guard digits through the source calculation when possible, then round the final reported equation to a precision supported by the inputs and the purpose of the estimate.
The displayed slope is formatted for readability, but additional displayed digits do not create additional information. If the derivative is known only to two decimal places, presenting six decimal places can suggest a certainty that was never measured. A good report can show the calculator's formatted value and separately state the meaningful precision. The same principle applies to the point and function value, especially when their units are measured rather than exact.
Check the line by substituting x = a. The result must be f(a). Check the direction by using a small positive displacement and observing whether the predicted change has the sign of f'(a). Check dimensions by confirming that f'(a)(x - a) has the same unit as f(a). These three tests are simple, independent, and useful even when the inputs came from a complicated prior calculation.
If an input is outside the numeric bounds, rescale the problem only when the rescaling is mathematically justified and documented. Do not replace a rejected value with the nearest endpoint and call it the original problem. If the result will support a high-precision task, compare the line with a direct evaluation or an independent calculation. The calculator's deterministic arithmetic is only as reliable as the values supplied to it.
A tangent line is useful whenever a small input change needs a quick output estimate. In measurement work, a calibration curve can be locally replaced by a line to estimate how a small sensor change affects a reported quantity. In physical modeling, a rate at a known state can estimate a nearby position, temperature, concentration, or energy value. In each case, f(a) gives the current state and f'(a) converts a small input movement into an output movement.
In planning and operations, a local rate can provide a first estimate of the effect of a small adjustment. A cost function's derivative can describe the approximate cost change for one additional unit near a current production level. A response curve's derivative can show sensitivity to a parameter. These interpretations are local and conditional. They do not establish that the same rate continues after the adjustment becomes large or after the underlying system changes regime.
Tangent models are also useful in numerical methods. A difficult equation can sometimes be approached by replacing a nonlinear relation with a local line and then improving the estimate. The line can reveal an initial direction, a sensitivity, or a rough correction. Such methods require additional rules for selecting new points and checking convergence. The three-input calculator supplies the local line only; it does not perform an iterative solve.
In education, the calculator makes the connection between a derivative, a point, and a line explicit. Students can change the slope while keeping the point fixed, or change the point and see how the equation moves. Comparing the tangent with the original curve reinforces the difference between exact point agreement and approximate nearby behavior. The examples are most informative when the original function and a few direct values are retained for comparison.
Practical use should begin with a defined range of acceptable error. If the line is used for a report, state the point, slope, units, and intended displacement. If the result affects a safety margin, a financial commitment, a control action, or another consequential decision, a local tangent should be checked against a fuller model and appropriate domain expertise.
The page does not derive f'(a) from f(a). One function value contains no information about the function's slope by itself. You must obtain the derivative from a symbolic calculation, a justified numerical method, a model, or another source before entering it. The page also does not check that the derivative was evaluated at the same a as the function value. It constructs exactly the line requested by the three numbers.
It does not choose a useful range of x, estimate the error at a particular x, or identify how quickly the approximation degrades. It has no second derivative, curvature measure, uncertainty field, or collection of nearby observations. Because of that, it cannot tell whether the line is sufficiently accurate for a stated tolerance. Accuracy questions require the original function, additional samples, a known bound, or a separate validation method.
It does not convert units, infer missing units, or resolve a mismatch between an input coordinate and an output quantity. It does not draw a graph, classify a stationary point, detect a corner, or confirm that a supplied slope is one-sided or two-sided. It also does not decide whether a derivative is practically significant. Those decisions depend on definitions and context that are not encoded in f(a), f'(a), and a alone.
The output equation should therefore be described honestly. It is a tangent-line equation when the supplied derivative really is the derivative at the supplied point. Otherwise it is simply a line built from a point and a chosen slope. That distinction is not a defect in the arithmetic; it is the boundary between a calculator's input contract and the mathematical work needed to justify the inputs.
When more evidence is available, use it. Compare with direct function values, inspect both sides of a, check the domain, keep the units attached, and document how the derivative was obtained. A short equation can be a powerful summary, but it should not be asked to answer questions that require curvature, global behavior, uncertainty, or subject-matter judgment.
Begin by naming the function, the input variable, the output quantity, and the target point a. Write down the units and confirm that a is in the relevant domain. Obtain f(a) and f'(a) from the same function and the same point. If the derivative is numerical, record the method, nearby spacing, and any uncertainty or rounding used to obtain it. This preparation prevents a well-formed line from being built on mismatched ingredients.
Enter the three values and read the returned slope, point, and equation. Recalculate the structure by hand: use f(a) as the vertical coordinate, f'(a) as the slope, and x - a as the displacement. Substitute x = a to confirm the point. If a proposed evaluation x is available, compute the linearized value and label it as an estimate unless the function is known to be linear or exactness has been established independently.
Test the intended range rather than assuming that closeness at one tiny displacement proves everything. If the original function can be evaluated, compare the line at one or more nearby points on both sides where allowed. Check whether the difference is below the stated tolerance and whether the behavior changes near a. For measured data, consider whether input precision is fine enough to support the derivative and whether a local line is appropriate for the time or distance being used.
Finally, report the result with its conditions: the point (a, f(a)), the derivative and units, the equation, the proposed displacement range, and the method used to justify the derivative. Mention if the line is a first-order approximation and identify any domain or rounding concern. This makes the result reproducible and keeps a concise tangent equation connected to the assumptions that give it meaning.
Builds the tangent line at x = a from the function value and derivative.
y = f(a) + f'(a)(x − a). Point-slope form through (a, f(a)) with slope f'(a). It is also the first-order Taylor approximation near a.
Enter f(a), Derivative f'(a), Point a, then choose Calculate.
f is differentiable at a so a single slope exists. Approximation is local; accuracy fades far from a.
This calculator is part of the WorldCalculate library. Its formula, example, assumptions, input bounds, and output formatting follow the official methodology.
These WorldCalculate collections connect this tool with related questions while keeping each calculation separate and transparent.