Courses / Computer Science I
Calculus

Applications of Derivatives

Computer Science I 271 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.

To find these, we locate critical points: values where f′(x)=0f'(x) = 0 or where the derivative does not exist. On a closed interval, you must also check the endpoints, since the extreme value can occur there even when the derivative is not zero.

Test TypeConditionConclusion
First Derivativef′f' changes ++ to −-Local maximum
First Derivativef′f' changes −- to ++Local minimum
Second Derivativef′′>0f'' > 0 (f′′f'' measures concavity)Concave up (minimum)
Second Derivativef′′<0f'' < 0Concave down (maximum)
Two kinds of critical point on one curve: a flat spot, and a corner

Tests & Real-World Use

A zero derivative only marks a critical point, not automatically a peak or valley. For instance, x3x^3 at 00 has f′(x)=0f'(x)=0 but is an inflection point (where f′′f'' changes sign), which is neither a maximum nor a minimum.

Common PitfallThe Reality
Assuming f′=0f'=0 means max/minIt could be an inflection point; you must classify it.
Ignoring endpointsOn closed intervals, extremes often sit at the edges where f′≠0f' \neq 0.

This mathematics drives real-world computing: training a machine-learning model minimises a loss function, and resource allocation maximises utility. Gradient descent follows the derivative downhill to find that minimum.

Practise this lesson

Try the questions below, free, answers included. The full set, with its interactive scenes, is in the Tryals app.

11practice questions
2interactive scenes

Calculus