Tangent lines and velocity
Calculus starts with two everyday questions: how steep is a curve at one exact point, and how fast is something moving at one exact instant? Answering either one forces us to invent the limit.
Why calculus needs a new idea
Algebra handles things that change at a steady rate: a car at a constant 60 km/h, a straight ramp, a fixed interest payment. Real life is rarely that tidy. A sprinter speeds up, a hill gets steeper near the top, and a population grows faster as it gets bigger. Calculus is the mathematics of changing rates. Its first big idea, the limit, lets us talk about what happens at a single instant by studying what happens over smaller and smaller intervals around it. In this lesson we meet two problems that both lead to the same limit: the tangent problem in geometry and the velocity problem in physics.
Warm-up: the slope of a line
For a straight line through two points (x1, y1) and (x2, y2), the slope is rise over run. Slope tells you how many units y changes for each one-unit step in x, and it is the same everywhere on the line. A slope of 3 means y climbs 3 for every step right; a slope of -2 means it falls 2. Keep this formula in mind, because everything in this lesson is built from it. The trouble is that a curve does not have one slope: its steepness changes from point to point.
m = \frac{y_2 - y_1}{x_2 - x_1}Secant lines: slope between two points on a curve
Pick a point P = (a, f(a)) on a curve and a second point Q = (a + h, f(a + h)) a horizontal distance h away. The straight line through P and Q is called a secant line, and its slope is a difference quotient: the change in f divided by the change in x. A secant slope measures the average steepness of the curve between P and Q. If the curve bends a lot between the two points, the secant can be a poor description of the steepness right at P.
m_{\text{sec}} = \frac{f(a+h) - f(a)}{h}The tangent problem
Now slide Q toward P by making h smaller and smaller. The secant lines pivot and settle toward one particular line that just touches the curve at P: the tangent line. Its slope is the value the secant slopes approach as h approaches 0. We cannot simply set h = 0, because then the difference quotient becomes 0/0, which has no value. Instead we ask what number the quotient gets close to as h gets close to 0. That 'gets close to' is exactly what a limit means.
m_{\tan} = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}Worked example: the tangent to y = x^2 at x = 1
Take f(x) = x^2 and P = (1, 1). The secant slope is ((1 + h)^2 - 1)/h. Expand the top: 1 + 2h + h^2 - 1 = 2h + h^2. Divide by h (allowed because h is not zero yet) to get 2 + h. Now let h approach 0: 2 + h approaches 2. So the tangent line at (1, 1) has slope 2. Using point-slope form, its equation is y - 1 = 2(x - 1), or y = 2x - 1. Notice the key move: simplify first so the troublesome h in the denominator cancels, then let h shrink.
\lim_{h \to 0} \frac{(1+h)^2 - 1}{h} = \lim_{h \to 0} (2 + h) = 2Seeing it numerically
You can also estimate a tangent slope with a table. For f(x) = x^2 at x = 1: with h = 0.1 the secant slope is 2.1; with h = 0.01 it is 2.01; with h = 0.001 it is 2.001. From the left, h = -0.1 gives 1.9 and h = -0.01 gives 1.99. The values close in on 2 from both sides. Tables are a great way to build intuition, but they are evidence, not proof: a function can behave strangely at scales your table never checks. Algebra, as in the worked example, gives certainty.
Average velocity
Suppose s(t) gives an object's position at time t. Its average velocity over a time interval is displacement divided by elapsed time. Between t = a and t = a + h that is (s(a + h) - s(a))/h. Look closely: this is the same difference quotient as a secant slope, just with time and position in place of x and y. On a graph of position against time, average velocity is literally the slope of a secant line.
v_{\text{avg}} = \frac{s(a+h) - s(a)}{h}Instantaneous velocity
A speedometer shows how fast you are going right now, not over an interval. To capture 'right now', shrink the time interval toward zero and see what the average velocities approach. The result is the instantaneous velocity at time a. Geometrically it is the slope of the tangent line to the position graph. So the velocity problem and the tangent problem are the same mathematical problem in different clothes, and the answer to both is the derivative, which we study in the next unit.
v(a) = \lim_{h \to 0} \frac{s(a+h) - s(a)}{h}Worked example: a falling ball
Let s(t) = 3t^2 give position in metres after t seconds. The average velocity from t = 2 to t = 2 + h is (3(2 + h)^2 - 12)/h. Expand: 3(4 + 4h + h^2) - 12 = 12h + 3h^2. Divide by h to get 12 + 3h. As h shrinks to 0, this approaches 12. So at exactly t = 2 seconds the ball is moving at 12 metres per second. Over the interval from 2 to 3 seconds (h = 1) the average velocity was 15 m/s, larger because the ball keeps speeding up.
v(2) = \lim_{h \to 0} (12 + 3h) = 12 \text{ m/s}Rates of change beyond motion
The same idea measures any rate of change. If C(x) is the cost of producing x items, the limit of (C(x + h) - C(x))/h is the marginal cost, the cost of one more item. If T(t) is temperature, the limit gives how fast temperature is changing at an instant, in degrees per hour. Always check units: the rate has units of 'output units per input unit'. Reading units is one of the fastest ways to make sense of a calculus answer.
Common mistakes
First, plugging in h = 0 too early gives 0/0, which is not an answer; simplify first. Second, forgetting to subtract f(a) in the numerator, for example writing f(a + h)/h. Third, expanding (a + h)^2 as a^2 + h^2; the correct expansion is a^2 + 2ah + h^2. Fourth, confusing the secant slope over an interval with the tangent slope at a point. Finally, remember that a table of values suggests a limit but does not prove it.
Try it yourself
Find the slope of the tangent line to f(x) = x^2 + 3x at x = 2. Set up the difference quotient, expand, cancel h, and let h approach 0. Answer: ((2 + h)^2 + 3(2 + h) - 10)/h = (4h + h^2 + 3h)/h = 7 + h, which approaches 7. So the slope is 7, and the tangent line is y - 10 = 7(x - 2).
Key takeaways
A secant slope is an average rate of change over an interval. A tangent slope is an instantaneous rate at a point. We get from one to the other by letting the interval shrink to zero, which is a limit. The tangent problem and the velocity problem lead to the same limit of a difference quotient. To compute it by hand: write the quotient, simplify until the h in the denominator cancels, then let h approach 0.
Flashcard
Slope of a straight line
Check your understanding
For f(x) = x^2, what is the slope of the tangent line at x = 3?
