Skip to content
Tutorials Center
My learning

Topics

Lesson 12 of 68 ยท Derivatives

Applications of Derivatives

Use derivatives to find increasing and decreasing intervals, maxima, minima and concavity, sketch curves, solve optimization and related-rates problems.

Knowing how to differentiate is half the job. The other half is knowing what the derivative tells you. Because f'(x) is the slope of the graph, its sign says whether the function climbs or falls, its zeros mark possible peaks and valleys, and the derivative of the derivative says how the graph bends. Engineers use these facts to minimise material, maximise efficiency, find the safest operating point, and predict how one changing quantity drives another.

This lesson turns the derivative into a decision tool: monotonicity, extrema, concavity, curve sketching, optimization word problems and related rates. You should be comfortable with the differentiation rules and the chain rule.

Increasing and decreasing

On an interval where f'(x) > 0, the function is increasing; where f'(x) < 0, it is decreasing. To find such intervals, solve f'(x) = 0 (and note where f' is undefined), then test the sign of f' in each region between those points.

For f(x) = x^3 - 6x^2 + 9x + 2 we get f'(x) = 3x^2 - 12x + 9 = 3(x - 1)(x - 3). The zeros are x = 1 and x = 3. Testing: f'(0) = 9 > 0 (rising), f'(2) = -3 < 0 (falling), f'(4) = 9 > 0 (rising again).

Critical points and extrema

A critical point is an x in the domain where f'(x) = 0 or f'(x) does not exist. Local maxima and minima can only occur at critical points (or at the ends of a closed interval). To classify one:

  • First derivative test: if f' changes from positive to negative at c, it is a local maximum; negative to positive, a local minimum; no sign change, neither.
  • Second derivative test: if f'(c) = 0 and f''(c) < 0, local maximum; f''(c) > 0, local minimum; f''(c) = 0 is inconclusive.

For our cubic, f''(x) = 6x - 12. At x = 1, f'' = -6 < 0 so a local maximum with f(1) = 6; at x = 3, f'' = 6 > 0 so a local minimum with f(3) = 2.

On a closed interval [a, b], the extreme value theorem guarantees a global maximum and minimum for a continuous function. To find them, compare f at the critical points and at the endpoints.

Python Find and classify critical points

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Compare the values at x = 0, 1, 3, 5: they are 2, 6, 2, 22. So on [0, 5] the global maximum is 22 at the endpoint x = 5, even though it is not a critical point, and the global minimum 2 occurs at both x = 0 and x = 3.

Concavity and inflection points

The second derivative measures how the slope itself changes. Where f''(x) > 0 the graph is concave up (shaped like a cup, slope increasing). Where f''(x) < 0 it is concave down (a cap, slope decreasing). A point where concavity changes is an inflection point. For our cubic, f'' = 6x - 12 changes sign at x = 2, so (2, 4) is an inflection point. In motion terms, f'' is acceleration.

Curve sketching recipe

To sketch a function from calculus alone:

  1. Find the domain, intercepts and any symmetry.
  2. Look for asymptotes using limits.
  3. Use f' to find rising/falling intervals and extrema.
  4. Use f'' to find concavity and inflection points.
  5. Plot key points and connect them with the right shape.
flowchart TD
    A["f(x)"] --> B["f'(x) sign"]
    A --> C["f''(x) sign"]
    B --> D["Rising / falling<br/>local extrema"]
    C --> E["Concave up / down<br/>inflection points"]
    D --> F["Sketch of the graph"]
    E --> F

The first derivative sets the direction of the curve; the second sets how it bends.

Python Plot f, f' and f'' together

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Where the dashed f' curve crosses zero, f has a peak or valley. Where the dotted f'' line crosses zero, the bending of f changes.

Optimization problems

Optimization asks for the best value of some quantity under constraints. Method: define the quantity to optimise, use the constraint to write it as a function of one variable, state the allowed domain, find critical points and check endpoints.

Example. You have 40 m of fencing for a rectangular pen against a straight wall (so only three sides need fence). What dimensions give maximum area?

Let the two sides perpendicular to the wall be x and the side parallel be y. Constraint: 2x + y = 40, so y = 40 - 2x. Area: A(x) = x(40 - 2x) = 40x - 2x^2, for 0 < x < 20. Then A'(x) = 40 - 4x = 0 at x = 10, and A'' = -4 < 0 confirms a maximum. So x = 10 m, y = 20 m, area 200 mยฒ.

Python Optimization: the fence problem and a can

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The most economical can has height equal to twice its radius (the ratio printed is 2). The brute-force grid search finds the same radius, a useful sanity check.

In a related rates problem, several quantities change with time and are linked by an equation. Differentiate the equation with respect to t (using the chain rule) and solve for the unknown rate.

Example. A ladder 5 m long leans against a wall. Its foot slides away at 0.5 m/s. How fast is the top sliding down when the foot is 3 m from the wall?

With foot distance x and top height y: x^2 + y^2 = 25. Differentiating in time: 2x x' + 2y y' = 0, so y' = -x x' / y. When x = 3, y = 4, and x' = 0.5: y' = -(3)(0.5)/4 = -0.375 m/s. The negative sign says the top is moving down.

Never plug numbers in before differentiating. The quantities change with time, so substituting a constant too early (such as x = 3) destroys the relationship you need to differentiate.

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. If f'(x) < 0 on an interval, what does that say about f there?

    A negative slope means the graph falls as x increases, so f is decreasing.
  2. 2. At a critical point c where f'(c) = 0 and f''(c) = 4, what is c?

    A positive second derivative means concave up, so a flat point there is a valley, a local minimum.
  3. 3. For the fence problem with 40 m of fencing on three sides, what is the maximum area?

    A(x) = x(40 - 2x) has its maximum at x = 10, giving 10 * 20 = 200 square metres.
  4. 4. Why should you find endpoints as well as critical points on a closed interval?

    The global extremes of a continuous function on [a, b] occur at critical points or at endpoints, so both must be compared.
  5. 5. In a related-rates problem, when should you substitute known numerical values?

    Substitute after differentiating, otherwise you turn varying quantities into constants and lose their rates.

Summary

  • f' > 0 means increasing, f' < 0 decreasing; critical points occur where f' = 0 or is undefined.
  • Classify extrema with the first or second derivative test; on [a, b] compare critical points and endpoints.
  • f'' > 0 is concave up, f'' < 0 concave down; inflection points are where concavity changes.
  • Optimization: reduce to one variable, state the domain, set the derivative to zero, verify.
  • Related rates: differentiate the linking equation in time, then substitute.

Next, use the tangent line as an approximation tool in Linearization and Newton's Method.