Applications of Differentiation
☰ Contents
A derivative is a rate of change, and most questions about a curve are about its rate of change: where it is highest, where it turns, how fast it moves, and where it crosses zero.
How do you find the tangent and normal at a point?
Differentiate to find the gradient m at the point, then put the point and the gradient into . For at x = 2, the point is (2, 4), because 8 − 4 = 4, and gives the gradient 3 × 4 − 2 = 10. The tangent is y − 4 = 10(x − 2), or y = 10x − 16. The normal meets the tangent at right angles, so its gradient is the negative reciprocal, . It works because the tangent is the one line through the point with the curve's own gradient there. A flat tangent changes the normal: with gradient 0 there is no reciprocal, and the normal is the vertical line through the point. Substituting x = 2 into the tangent confirms it: 10 × 2 − 16 = 4, the height of the curve, and the two gradients multiply as .
the normal is perpendicular to the tangent, so its gradient is −1/m: a steeper tangent means a flatter normal, and m × (−1/m) = −1
Drag P to a turning point and watch the normal
Take the negative reciprocal, not just the negative. See Tangents and normals to curves.
Close to the point of contact, a curve and its tangent are nearly the same line, so the tangent at x = a, L(x) = f(a) + f'(a)(x − a), is a good estimate of f near a. See The tangent-line approximation.
Join the ends of a smooth arc with a chord: somewhere strictly between the ends, one tangent is parallel to it, so for at least one c between a and b. That is the mean value theorem. See The mean value theorem.
Now you
A tangent has gradient 4. What is the gradient of the normal?
For at x = 4, the tangent line is
Where is a function increasing or decreasing?
A function is increasing where its derivative is positive and decreasing where it is negative; only the sign matters. To find the intervals, solve f'(x) = 0, mark the solutions on a number line, and test the sign of f' between them. For the derivative is , which is 0 at x = −1 and x = 1. At x = 2 it is 3 × 4 − 3 = 9, positive, and at x = 0 it is −3, so the function rises for x < −1 and x > 1 and falls between. This works because the derivative is the tangent's gradient. A derivative that touches 0 without changing sign leaves the direction alone: is flat at 0 yet increases everywhere. The heights confirm it: the function falls from 2 at x = −1 to −2 at x = 1, since −1 + 3 = 2 and 1 − 3 = −2.
See Increasing and decreasing functions.
How do you find maximum and minimum points?
Set the derivative to zero and solve, since a stationary point is where the tangent is flat; then decide what kind each point is. For the derivative is , which factors as 3(x − 1)(x − 3), so the stationary points are at x = 1 and x = 3. The second derivative, 6x − 12, sorts them: −6 at x = 1, so the curve bends down there and has a maximum, and 6 at x = 3, a minimum. This test works because the gradient passes through 0 from positive to negative at a peak, and the other way at a dip. When the second derivative is also 0 it gives no verdict, so check the sign of f' on either side. The heights agree, 1 − 6 + 9 = 4 at the maximum and 27 − 54 + 27 = 0 at the minimum. See Finding stationary points.
f″ > 0: the curve bends upward and the circle of curvature sits above it — the bowl holds water, so a stationary point here would be a minimum
Drag x₀ to the maximum and read the sign of f″
A critical point is a point where f' is zero or does not exist. A minimum can sit at a cusp or a corner, where solving f' = 0 cannot find it, so the critical points are the candidates. See Critical points and local extrema.
A zero in the second derivative test means the test has failed, not that the point is an inflection. See The second derivative test.
The first derivative test works even then. Check the sign of f' just before and just after the point: positive then negative is a maximum, negative then positive is a minimum, and the same sign on both sides is neither. See The first derivative test.
On a closed interval the largest or smallest value can be at an end, where the tangent is not flat. So find f at every critical point inside and at both ends, then compare. See Absolute extrema on a closed interval.
Now you
At a flat point f'' = −4. Peak or trough?
At a flat point f'' = 6. Peak or trough?
What is a point of inflection?
A point of inflection is where a curve changes the direction in which it bends. Find where the second derivative is 0, then confirm that it changes sign there. For , the second derivative is 6x − 6, which is 0 at x = 1; it is −6 at x = 0 and 6 at x = 2, so the sign changes and (1, −2) is an inflection, since 1 − 3 = −2. Since the second derivative is the rate of change of the gradient, negative means the curve bends down and positive means it bends up. A zero alone is not enough. For the second derivative, , is 0 at x = 0 but positive on both sides, so the origin is a minimum. The tangent at (1, −2) has gradient 3 − 6 = −3, and the curve crosses it there rather than staying on one side.
f″ > 0: the curve lies above its tangent on both sides, concave up
Sweep x₀ to where the curve changes side of its tangent
See Points of inflection.
To sketch a curve, find the intercepts, then the stationary points and their kind, then any inflections and asymptotes, then what happens far to the left and right. See Curve sketching with derivatives.
How do you solve an optimization problem?
Write the quantity to be optimized as a function of one variable, using the constraint to remove the others, then differentiate, set the derivative to 0 and solve. Take an open box with a square base of side x that must hold 32 cubic meters using as little material as possible. The height is , so the surface area is , which is . Its derivative, , is 0 when , so x = 4 and the height is 32 ÷ 16 = 2. The second derivative, , is positive, so this is a minimum: 16 + 32 = 48 square meters. A smooth quantity levels off exactly where it turns, which is why the method works. On a limited interval, compare the ends too. Other bases cost more: x = 2 needs 4 + 64 = 68, and x = 8 needs 64 + 16 = 80.
A = 20x − x² and A′ = 20 − 2x = 12: the area is still 12 m² per meter of extra width away from its peak
Slide x to the width that gives the biggest area
- Name the variables and write down the quantity to be maximized or minimized.
- Use the constraint in the question to eliminate variables until one is left.
- Differentiate, set the derivative to zero, and solve.
- Check the stationary point is the kind asked for, then answer the question that was asked.
A fence of 40 meters encloses a rectangle. The constraint turns two variables into one: a width of x leaves a length of 20 − x, so the area is .
The second derivative is −2, negative, so x = 10 is a maximum. The answer is the largest area, 100 square meters, not x = 10. See Optimization problems.
Now you
A rectangle has perimeter 24. What side length gives the biggest area?
A rectangle has perimeter 16. What side length gives the biggest area?
How do derivatives describe motion?
Differentiate displacement to get velocity, , and differentiate velocity to get acceleration, . A ball thrown up with meters has v = 20 − 10t and a = −10, a constant downward pull. At t = 1 its velocity is 20 − 10 = 10 meters per second, and at t = 2 it is 0, so the ball is at its highest point, 40 − 20 = 20 meters up. Each is the gradient of the graph before it: velocity is how fast position changes, and acceleration is how fast velocity changes. Signs need care, because negative velocity means moving in the negative direction, not slowing down. An object slows when velocity and acceleration have opposite signs, as the ball does before t = 2. At t = 4 the ball is back where it started, since 80 − 80 = 0, and its velocity is −20, the launch speed reversed.
v = 20 − 10t > 0: the ball is rising, and a = −10 is pulling its speed down
Set t to where the velocity crosses zero
See Motion in a straight line.
Two quantities linked by an equation have linked rates. Write the equation, differentiate every term with respect to time using the chain rule, then substitute the known values. A cube of side r has , so . Substitute only after differentiating, or a changing quantity becomes a constant and its rate is lost. See Related rates.
Now you
, so . At r = 5, r grows 3 per second. ?
The balloon link gives while . What is ?
What if the curve is given parametrically?
A parametric curve gives x and y separately in terms of a parameter t, each value of t marking one point. The gradient comes from the chain rule, , with no need to eliminate t. For and , the rates are 2t and , so . At t = 2 the point is (4, 8), because and , and the gradient is 3, giving the tangent y = 3x − 4. A small step in t moves the point dx across and dy up, and the gradient is their ratio. A curve that doubles back may pass one x twice with two gradients, one for each t. Where is 0 and is not, the tangent is vertical. Eliminating t agrees: has gradient , and at x = 4 that is . See Parametric equations.
In Leibniz notation this is . See Parametric differentiation.
How do you evaluate a limit that keeps giving ?
If substituting gives , differentiate the top and the bottom separately and take the limit of the new fraction; this is L'Hôpital's rule. For as x approaches 3, the derivatives are 2x and 1, so the limit is 2 × 3 = 6. Factoring agrees, since is (x − 3)(x + 3) and 3 + 3 = 6. Near the point both functions are almost their tangent lines, so their ratio is almost the ratio of their gradients. Unlike the quotient rule, the two derivatives are taken on their own. The rule needs or /; otherwise substitute. A fraction still at takes another round: at 0 becomes and then , so its limit is . Away from 3 the first fraction equals x + 3, and at x = 4 it is 7 ÷ 1 = 7.
near 0, sin 2x ≈ 2x and x ≈ x: the ratio is 1.682 in this window and is heading for f′(0)/g′(0) = 2
Zoom past ×50 and read the ratio of the two lines
See L'Hôpital's rule.
A Maclaurin series rebuilds a function near zero from its derivatives at zero, and its first terms often settle a limit at once: , so sin x / , which goes to 1 as . See Maclaurin series.
Now you
at 0 goes to
By L'Hôpital's rule, at 0 goes to
How do you solve an equation with no formula?
Newton-Raphson follows the tangent at a guess down to the x-axis, and where it crosses is the next guess: . For , whose positive root is , the derivative is 2x. From , f(2) = 2 and f'(2) = 4, so . The next step is , which is 1.4167 to four places, and further steps give 1.4142 and then 1.414214, which is to six decimal places. Near a root a smooth curve is almost its tangent, so the correct digits roughly double each step. A flat tangent breaks it: where f' = 0 the formula divides by zero, and a nearly flat one throws the guess far away. Squaring gives , and 2 × 144 = 288, so it misses 2 by only . See The Newton-Raphson method.
each step follows the tangent to the axis: xn+1 = xn − f(xn)/f′(xn)
Start at x₀ = 0 and take four steps
Some starting points also cycle between two values forever. See When Newton-Raphson fails.
The mistakes worth naming
- Stopping at f' = 0. That finds a stationary point; the question asks what kind.
- Reading f'' = 0 as an inflection. The test has failed. Check whether f'' changes sign.
- Ignoring the endpoints. On a closed interval the largest value is often at an end, where the derivative is not zero.
The rules used here are in the rules of differentiation, the limits behind them in limits and continuity, and the reverse process in techniques of integration. Related guides: Partial Differentiation.
Your turn
Three to try — tap what you get.
At a local maximum, dy/dx equals
s(t) = t². The velocity at t = 3 is
A negative second derivative means the curve is
Questions and answers
- How do you find the maximum or minimum of a function?
- Differentiate, set the derivative equal to zero and solve — those x values are where the curve has leveled off. Then classify each one, either by checking the sign of the second derivative or by testing the gradient just before and just after. A negative second derivative means a maximum, a positive one means a minimum, and zero means the test has failed and you need the sign check instead.
- What is the difference between the first and second derivative tests?
- The second derivative test substitutes one number and reads off the sign, which is fast but inconclusive when that number is zero. The first derivative test checks the gradient on either side of the point, which takes longer but always works, including on the cases the second derivative test cannot decide. Use the fast test first and fall back on the reliable one when it returns zero.
- What is a point of inflection?
- It is a point where a curve changes the direction it bends, from curving upwards to curving downwards or the other way. The second derivative is zero there, but that alone is not enough — the second derivative must actually change sign across the point. A curve can be momentarily flat in its bending without ever switching direction, and that is not an inflection.
- How do you solve a related rates problem?
- Write an equation connecting the quantities, differentiate every term with respect to time, then substitute the values you know. The order matters: substitute numbers only after differentiating, because a quantity that is changing must stay a variable while the differentiation happens. Fixing it too early turns a varying quantity into a constant and destroys its rate.
- What is L'Hopital's rule?
- When a limit gives the indeterminate form or infinity over infinity, you may differentiate the top and the bottom separately and take the limit again. This is not the quotient rule and does not resemble it — the two derivatives are taken independently. The rule only applies to those indeterminate forms, so check the form first; on anything else it produces the wrong answer.
- How does the Newton-Raphson method work?
- Start with an estimate of a root, follow the tangent line at that point down to the x-axis, and use where it lands as the next estimate. Repeated, this usually converges very quickly, roughly doubling the number of correct digits each step. It can fail: a near-horizontal tangent throws the next estimate a long way off, and some starting points cycle forever without settling.