Skip to content
Glacius
CalculusConcept reference

Tangent lines

A tangent line is the affine function that matches a differentiable curve's value and slope at one chosen input.

On this page 7 sections
  1. Overview
  2. Match a point and a slope
  3. Keep the base point visible
  4. Local agreement
  5. Key takeaway
  6. Sources & further reading
  7. Concept connections
The parabola and its tangent agree in value and slope at the highlighted point. Away from that point, the curve departs from the straight line.The parabola and its tangent agree in value and slope at the highlighted point. Away from that point, the curve departs from the straight line.
Figure 1The parabola and its tangent agree in value and slope at the highlighted point. Away from that point, the curve departs from the straight line.
Link to this figure ↗Download SVGDownload PNG

01Match a point and a slope#

A tangent line is the affine function that matches a differentiable curve's value and slope at one chosen input. It gives a simple local model of the curve near that input.

A line with slope mm through (a,b)(a,b) changes its output by m(x−a)m(x-a) when the input moves from aa to xx. Its equation is y=b+m(x−a)y=b+m(x-a).

For a tangent to ff at aa, use b=f(a)b=f(a) and m=f′(a)m=f'(a):

T(x)=f(a)+f′(a)(x−a)\begin{gathered}T(x)=f(a)\\+f'(a)(x-a)\end{gathered}

02Keep the base point visible#

Take f(x)=x2f(x)=x^2 at a=2a=2. The curve passes through (2,4)(2,4) and has derivative f′(2)=4f'(2)=4. Its tangent is T(x)=4+4(x−2)=4x−4T(x)=4+4(x-2)=4x-4.

Substituting x=2x=2 checks the point: T(2)=4T(2)=4. The line's slope is 44, checking the derivative. A line 4x4x has the right slope but misses the point.

Check your reasoning

A curve has f(3)=7f(3)=7 and f′(3)=2f'(3)=2. Its tangent at 3 is:

  1. A7+2(x−3)7+2(x-3)
  2. B7+2x7+2x
  3. C3+7(x−2)3+7(x-2)
Show answer and explanation
7+2(x−3)7+2(x-3)

Use the known value plus the derivative times displacement from 3.

03Local agreement#

A tangent need not stay on one side of a curve or intersect it only once. For f(x)=x3f(x)=x^3, the tangent at zero is y=0y=0, and the curve crosses that line at zero. Tangency is defined by local value and derivative agreement.

Check your reasoning

Must a tangent meet a curve at exactly one point globally?

  1. AYes; that is its definition
  2. BNo; value and slope agreement are local
  3. CYes, unless the derivative is zero
Show answer and explanation
No; value and slope agreement are local

Global intersection counts do not define tangency.

Constructing the tangent requires a finite derivative at the base point. The line is an exact object; using it to estimate the curve away from that point is a separate approximation step.

Key takeaway

Construct a tangent-line equation from a point and derivative.

  • Construct a tangent-line equation from a point and derivative.

Sources & further reading

  1. [1]

Reference this concept

Link to this page, a section, or an individual figure.

Glacius. “Tangent lines.” Math behind ML. /learn/c-tangent