On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Introduction to Calculus · Grade 9-12

Tangent Line

A tangent line touches a curve at a point and has the same slope as the curve there, making it the curve's best straight-line approximation near that point.

y−f(a)=f′(a)(x−a)

Quick Answer

A tangent line touches a curve at a point and has the same slope as the curve there, making it the curve's best straight-line approximation near that point. Its equation comes from that point and that slope: y=f(a)+f′(a)(x−a). Use it to write the line that just grazes a curve, to show which way a curve is heading at one point, and to estimate values near a known one, such as 4.1≈2.025 from the tangent to x at x=4.

Why This Matters

Near the point of contact a curve and its tangent line are almost indistinguishable, so a hard function can be replaced by an easy line. That is how engineers estimate values like 4.1, why a stone released from a sling sets off along the tangent to its circle, and how Newton's method finds roots. A secant's slope instead gives a line that drifts away from the curve right where you need accuracy.

Intuitive Explanation

Draw y=x2 and pick the point (2,4). Lines through that point can cut steeply across the curve or lean lazily under it, but exactly one leans the same way the curve does at that spot. Its slope is the derivative, f′(2)=4. Point-slope form gives y−4=4(x−2), which is y=4x−4. Zoom in on (2,4) and the parabola and this line become hard to tell apart.

That closeness is what makes the line useful. At x=2.1 the tangent gives 4(2.1)−4=4.4, while the true value is 2.12=4.41, an error of only 0.01. At x=3 the line gives 8 against the true 9, so the approximation is only good near the point of contact. Because x2−(4x−4)=(x−2)2≥0, the parabola stays above this tangent everywhere, so its estimates come out slightly low.

A secant line goes through two points on the curve, and its slope is an average rate. The line through (1,1) and (3,9) on y=x2 also has slope 4, but it is y=4x−3, one unit above the tangent, and it crosses the curve twice. Matching the slope is not enough: a tangent must also pass through the point of contact. Touching only once is not the test either: the tangent to y=x3 at x=1, which is y=3x−2, meets the curve again at x=−2.

Think of it like this. A tangent line is like the beam of a car's headlights on a winding road: at each instant it points exactly the way the car is moving at that spot. Follow the beam a short way and you stay close to the road; follow it far and the road curves away. Further on, the beam may even cross the road again.

Core idea. A tangent line touches a curve at a point with the same value and the same slope, giving the best linear approximation there.


When to Use

Use a tangent line when a problem asks for the line touching a curve at a given point, for the curve's slope written as a line, or for a linear approximation of a value near a point you know, such as 4.1 or (1.02)5. You need two things: the point (a,f(a)) and the slope f′(a). If the line must pass through two given points on the curve, it is a secant line. If it must be perpendicular to the curve, use the normal line, with slope −1f′(a).

Tip. Ask: Do I need the line that matches the curve's value and slope (f′(a)) at a single point of contact?

How to Recognize It

Check how many points of the curve the line is tied to and whether the answer should be an equation, a slope or an estimate.

  1. Are two points of the curve given, such as where x=1 and x=4?

    Yes means a secant line, whose slope is the average rate of change between them. A tangent line needs only one point, (a,f(a)), and the derivative f′(a) there.

  2. Does the answer have to be a full equation, y=…, rather than a single number?

    Yes means you need both the point and the slope, put into point-slope form. If the question wants only how steep the curve is at that point, the derivative f′(a) alone is the answer.

  3. Must the line be perpendicular to the curve rather than run along it?

    Yes means the normal line: the same point, with slope −1f′(a). When f′(a)=0 the tangent is horizontal and the normal is the vertical line x=a.

  4. Are you asked to estimate a value such as 9.2 without a calculator?

    Yes means a linear approximation from the tangent at a nearby easy point: at x=9 the slope is 16, so 9.2≈3+0.26≈3.033. Farther away the estimate drifts; Taylor polynomials do better.

Tangent Line compared with Secant line, Normal line, and Derivative

Each row is built from a point and a slope on a curve. Ask what the answer must be: a line through one point with the curve's slope (tangent), a line through two points (secant), a perpendicular line (normal), or just the number f′(a) (derivative).

Tangent Line

Meaning
Use this when you need the straight line touching a curve at one point with that point's instantaneous slope.
Key test
Do I need the line that matches the curve's value and slope (f′(a)) at a single point of contact?
Formula
y−f(a)=f′(a)(x−a)
Example
Find the tangent line to f(x)=x2 at x=2.

Secant line

Meaning
Connects two separate points on the curve; its slope is an average rate.
Key test
Use when comparing the curve at two points, not approximating at one.
Formula
m=f(b)−f(a)b−a
Example
Line through (1,f(1)) and (4,f(4))

Normal line

Meaning
The line perpendicular to the tangent at the same contact point.
Key test
Use when you need the perpendicular direction, not the touching line.
Formula
slope =−1f′(a)
Example
The line at right angles to the tangent at x=2

Derivative

Meaning
Supplies the tangent's slope but is a rate, not a line.
Key test
Use 'derivative' for the number f′(a), 'tangent line' for the full equation through the point.
Formula
f′(a)
Example
f′(2)=4 is the slope used in the tangent equation

Formula & Notation

y−f(a)=f′(a)(x−a)
The tangent line to y=f(x) at x=a is L(x)=f(a)+f′(a)(x−a), where f′(a)=lim⁡x→af(x)−f(a)x−a. Equivalently, L is the unique linear function satisfying L(a)=f(a) and L′(a)=f′(a).

How to read it: y=L(x) or y=f(a)+f′(a)(x−a) for the tangent line (linear approximation) at x=a.

Worked Examples

Example 1 — Tangent to a parabola

Easy

Find the tangent line to f(x)=x2 at x=2.
Show the steps and the answer
  1. Find the point of contact: f(2)=22=4, so the point is (2,4).

    The tangent line has to pass through the curve at x=2.

  2. Find the slope: f′(x)=2x, so f′(2)=4.

    The tangent's slope is the curve's instantaneous slope at the contact point.

  3. Use point-slope form: y−4=4(x−2).

    A point and a slope fix a line completely.

  4. Simplify and test: y=4x−4; at x=1.9 it gives 3.6, close to 1.92=3.61.

    Near the contact point the line should nearly match the curve, and it does.

Answer: y=4x−4

Takeaway: The derivative gives the tangent's slope and the contact point anchors it: y=f(a)+f′(a)(x−a).

Example 2 — Secant, not tangent

Standard

Find the line through f(x)=x2 at x=1 and x=3.
Show the steps and the answer
  1. Find both points: f(1)=1 and f(3)=9, so (1,1) and (3,9).

    Two points on the curve define a secant line, not a tangent.

  2. Find the slope: 9−13−1=4.

    This is the average rate of change of x2 over [1,3].

  3. Use point-slope form through (1,1): y−1=4(x−1), so y=4x−3. Check (3,9): 4(3)−3=9.

    The line must contain both chosen points.

  4. Compare with the tangent at x=2, which is y=4x−4.

    Same slope, but the secant sits one unit higher and crosses the curve twice, while the tangent only touches at (2,4).

Answer: y=4x−3

Takeaway: Two points give a secant with an average slope; one contact point with slope f′(a) gives a tangent.

Example 3 — Find the mistake: a line that misses the point

Application

Find the tangent line to f(x)=x3−2x at x=2. Ravi writes: "f′(x)=3x2−2, so f′(2)=10 and the tangent line is y=10x." Find the mistake and correct it.
Show the steps and the answer
  1. Test Ravi's line at the contact point: at x=2, y=10x gives 20, but f(2)=8−4=4.

    A tangent line must pass through (a,f(a)), and his line misses the curve there by 16.

  2. Keep his slope: f′(2)=3(4)−2=10 is right.

    His error is that he never used the point, so his line was forced through the origin.

  3. Use point-slope form with (2,4): y−4=10(x−2), so y=10x−16.

    Both the slope and the point of contact go into the equation.

  4. Check: at x=2, 10(2)−16=4.

    The corrected line meets the curve at (2,4) and has the curve's slope there.

Answer: y=10x−16

Takeaway: A tangent line needs both the slope f′(a) and the point (a,f(a)); check that your line passes through the point.

Where You'll See It

  • The small-angle shortcut for pendulums

    The tangent line to y=sin⁡x at x=0 is y=x, so for small angles in radians sin⁡x≈x. At 10°, which is 0.1745 rad, sin⁡x=0.1736, an error of about 0.5%. That approximation is what turns the pendulum equation into the simple period formula T=2πL/g.

  • Releasing a hammer throw

    While an athlete spins, the hammer moves in a circle. At the instant of release nothing pulls it inward any more, so it leaves along the tangent line to the circle at that point, not outward along the radius. Throwers time the release so that this tangent points down the field.

Common Mistakes

  1. The slip: Using the slope of a secant instead of f′(a)

    Instead: the tangent's slope is the instantaneous derivative at the contact point.

  2. The slip: Forgetting to use the point of tangency (a,f(a)) in the line equation

    Instead: plug in both the slope and the actual point.

  3. The slip: Assuming a tangent touches the curve only once globally

    Instead: it shares slope locally and may cross the curve elsewhere.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find the equation of the tangent line to f(x)=x3 at x=1.

    Hint: You need the point (1,f(1)) and the slope f′(1).

  2. Find the tangent line to f(x)=1x at x=2.

    Hint: Write f(x)=x−1 to get the slope, and do not forget the point (2,12).

  3. Find the tangent line to f(x)=x at x=4, then use it to estimate 4.2.

    Hint: Near x=4 the tangent line stays very close to the curve, so plug 4.2 into the line.

  4. At what point is the tangent line to y=x2−6x+5 horizontal? Write the equation of that tangent line.

    Hint: A horizontal line has slope zero. Solve y′=0.

  5. A problem gives the points (1,f(1)) and (4,f(4)) on a curve and asks for the line through both. Is that a tangent line or a secant line?

    Hint: How many points of the curve does the line use, and where does its slope come from?

  6. For f(x)=x2 at x=3, a student writes the tangent line as y=6x. Find the error.

    Hint: Does y=6x actually pass through the point of tangency (3,9)?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can a curve have a vertical tangent line?

Yes. The graph of y=x3y=\sqrt[3]{x} is unbroken and smooth-looking at the origin, but it climbs straight up there: its slope grows without bound as x→0x\to0, and the tangent is the vertical line x=0x=0. Point-slope form cannot write it, because the slope is not a number, and f′(0)f'(0) does not exist. So a missing derivative can mean a vertical tangent, not only a corner.

Can one line be tangent to a curve at two different points?

Yes. The curve y=x4−2x2y=x^4-2x^2 has two valleys, at x=−1x=-1 and x=1x=1, both at height −1-1. The horizontal line y=−1y=-1 touches the curve at both and matches its slope of 0 at each. Tangency is a property at a point, not a property of the whole line, so one line can be tangent to the same curve in several places.

Why does a tangent-line estimate come out too big for some curves and too small for others?

It depends on which way the curve bends. Where a curve is concave up, like y=x2y=x^2, it bends above its tangent, so the tangent value is too low. Where it is concave down, like y=xy=\sqrt{x}, the tangent lies above the curve and overestimates: the estimate 2.0252.025 for 4.1\sqrt{4.1} is slightly more than the true 2.0248…2.0248\ldots. The sign of the second derivative tells you which case you are in.

How do I find a tangent line when the curve is given by an equation like x2+y2=25?

Use implicit differentiation: differentiate both sides, treating yy as a function of xx, to get 2x+2ydydx=02x+2y\frac{dy}{dx}=0, so dydx=−xy\frac{dy}{dx}=-\frac{x}{y}. At (3,4)(3,4) the slope is −34-\frac{3}{4}, and the tangent is y−4=−34(x−3)y-4=-\frac{3}{4}(x-3). It is perpendicular to the radius from the centre, whose slope is 43\frac{4}{3}, just as circle geometry predicts.

Learning Path

← Before

SlopeDerivative
Tangent Line

You are here

Next →

Nothing after this yet
You need Slope (point-slope form of a line) and the Derivative (the slope of a curve at one point). The tangent line combines them into y=f(a)+f′(a)(x−a). No single concept comes next; the skill leads straight to linear approximation and error estimates, to Newton's method for solving equations numerically, and later to Taylor polynomials, which add curved terms to the tangent line for better accuracy.

See Also