Courses / Computer Science I
Calculus

Applications of Derivatives

Computer Science I 315 words Free to read

Finding the Best

One of the most useful things derivatives do is optimisation — finding where a quantity is largest or smallest. Because the tangent is horizontal at a peak or a valley, the derivative is zero at these interior extreme points. This turns "find the maximum" into "solve f(x)=0f'(x) = 0."

The systematic method:

  1. Find the critical points — where f(x)=0f'(x) = 0 (or where the derivative does not exist).
  2. Classify each: a maximum, a minimum, or neither.
  3. On a closed interval, also check the endpoints, since the extreme value can occur there even when the derivative is not zero.

To classify a critical point, use the derivative's sign or the second derivative:

This is the mathematical core of a vast range of computing: training a machine-learning model minimises a loss function, resource allocation maximises utility, and countless engineering designs optimise some objective. Gradient descent (next lessons' multivariable version) is exactly "follow the derivative downhill to a minimum."

Common pitfall: assuming every point with f(x)=0f'(x) = 0 is a maximum or minimum, and forgetting the endpoints. A zero derivative marks a critical point, but it could be an inflection point (like x3x^3 at 0, which is neither a max nor a min) — you must classify it. And on a closed interval the true extreme may sit at an endpoint, where the derivative need not be zero, so checking only f(x)=0f'(x)=0 can miss the actual maximum.

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

11practice questions
2interactive scenes
Start Computer Science I free

Calculus