The tangent
The lander from A height and a slope lowers a straight ramp so that it just touches the hillside at x equals 1. The ramp follows the slope of the ground there, without cutting into it. That line is the tangent at x equals 1: the straight line through the point with the same slope as the graph.
What the tangent needs
A straight line is fixed by one point and its slope. For the tangent at x equals a:
- the point is (a, f(a)), on the graph;
- the slope is f′(a), the graph's slope there.
For the hillside at x equals 1, we found f(1) = 2 and f′(1) = −3. So the tangent goes through (1, 2) with slope minus 3.
The formula
A line through the point (a, b) with slope m is y equals m the quantity x minus a, plus b. At x equals a, the bracket is 0 and y is b, so the line goes through the point, and the number in front of x is m. For the tangent, b is f(a) and m is f′(a):
The tangent at x = a is y = f′(a)(x − a) + f(a).
For the ramp:
Multiplying out gives minus 3 x plus 3 plus 2, so the ramp is
A check: at x equals 1, minus 3 plus 5 is 2, the height of the ground. The tangent touches the graph where it should.
Two slips to avoid
- The sign in the bracket: the tangent at x equals 1 has x minus 1, and at x equals minus 2 it has x minus minus 2, which is x plus 2.
- Which number goes where: the slope f′(a) multiplies the bracket, and the height f(a) is added at the end.
Find f(a) and f′(a), put them into y = f′(a)(x − a) + f(a), and multiply out.