Tangent line in 3D

A parabola with an orange tangent line at point P, teal secant lines tilting toward it and a slope triangle.Drag to turn

The tangent line to a curve at a point is the line that touches the curve there with the same slope as the curve. Its slope is the derivative, which gives the instantaneous rate of change of the function at that point.

From secant lines to a tangent line

A secant line passes through two points on a curve. Its slope is the average rate of change, the change in y divided by the change in x. The tangent line at a point is the limit of secant lines as the second point moves toward the first.

The slope of that tangent is the instantaneous rate of change. It is written f'(a) and defined as the limit as h approaches 0 of (f(a+h) - f(a))/h, when the limit exists.

How a limit gives the slope at one instant

An average rate needs two points, but an instant has only one. The limit solves this by shrinking the gap h toward 0 without setting h equal to 0. Once the slope m is known, the tangent line is y - f(a) = m(x - a).

In motion, if s(t) is position, then s'(t) is velocity. The tangent slope on a position graph is the speed and direction at that moment.

Worked example: f(x) = x^2 at x = 3

The secant slope between x = 3 and x = 3 + h is ((3+h)^2 - 9)/h. Expanding gives (9 + 6h + h^2 - 9)/h = 6 + h. For h = 1 the slope is 7, for h = 0.1 it is 6.1, and as h approaches 0 it approaches 6.

So f'(3) = 6, and f(3) = 9. The tangent line is y - 9 = 6(x - 3), which simplifies to y = 6x - 9. If s(t) = t^2 is position in metres after t seconds, the velocity at t = 3 is 6 metres per second.

Misconceptions about tangents and instantaneous rates

A tangent line need not meet the curve at only one point. It can cross the curve elsewhere, and at an inflection point it crosses the curve at the point of tangency. The circle picture of a tangent does not carry over to general curves.

Instantaneous rate is not an average over a zero-length interval, which would give 0/0. It is a limit. Some points have no tangent line, such as the corner of y = |x| at x = 0, and a vertical tangent has no finite slope.

Where tangent slopes are used

Velocity from position, marginal cost in economics and reaction rates in chemistry are all instantaneous rates. Near a point, the tangent line also gives a linear approximation of the function. At a smooth maximum or minimum the tangent is horizontal, which is the starting idea of optimization.

Key terms

Secant line
A line through two points on a curve, whose slope is the average rate of change between them.
Tangent line
The line through a point on a curve whose slope is the limit of the secant slopes at that point.
Instantaneous rate of change
The limit of the average rate of change as the interval shrinks to zero length.
Derivative
The function f' whose value at a is the limit of (f(a+h) - f(a))/h as h approaches 0, when it exists.
Velocity
The derivative of position with respect to time.

Common questions

Why can the instantaneous rate not be found by dividing by zero?

At a single instant both the change in x and the change in y are 0, giving 0/0, which is undefined. The limit instead finds the value the ratio approaches as the interval shrinks.

How is the tangent slope related to velocity?

If s(t) is position, the slope of the tangent to its graph at time t is the velocity at t. A negative slope means motion in the negative direction.

Learn this with a tutor

Sidechair's AI tutor will teach this topic in 3D. Join the waitlist for early access.

We'll only email you about Sidechair. Read our privacy policy.