Chalk−1

Math · Calculus I · Concept

Curve sketching with derivatives

The first derivative tells you where a function increases or decreases, and its sign changes at critical points locate local maxima and minima. The second derivative tells you where the graph is concave up or down, and its sign changes locate inflection points. Together they give the graph’s shape.

Try one — Chalk checks each line

A concrete case

Three points that hide two turns

Plot f⁡(x)=x3−3⁢x at x=−2, 0 and 2 and the points are (−2,−2), (0,0) and (2,2). All three lie on the line y=x, and a sketch through them would be a straight line.

The curve is not straight. At x=−1 it climbs to 2, and at x=1 it dips to −2. Between the plotted points it turns twice, and a few heights cannot show that.

The slope finds the turns without guessing. The slope of x3−3⁢x is 3x2−3, which is 9 at x=±2, 0 at x=±1 and −3 at x=0. Where the slope is positive the curve rises, where it is negative the curve falls, and it turns where the slope passes through 0.

f′(x)=3x2−3=3⁢(x−1)⁢(x+1)
Heights and slopes of f⁡(x) =x3 −3⁢x
xf⁡(x)Slope 3x2−3The curve
−2−29rising
−120turns
00−3falling
1−20turns
229rising

The rule

Rising, falling and critical points

Where f′(x)>0 on an interval, f increases there, and where f′(x)<0, f decreases. A critical point of f is a number c in its domain where f′(c)=0 or f′(c) does not exist. Between neighboring critical points, and breaks in the domain, f′ keeps one sign, so one test value in each interval gives the sign on all of it.

The first derivative test reads a critical point c from the signs around it. If f′ changes from + to −, f⁡(c) is a local maximum, a height no nearby point beats. If f′ changes from − to +, f⁡(c) is a local minimum. If the sign stays the same, there is no extremum, even when f′(c)=0.

Reading a critical point c
f′ left of cf′ right of cAt c
+−Local maximum
−+Local minimum
++No extremum
−−No extremum

Concavity and the second derivative

The second derivative f′⁢′ is the derivative of f′, the rate at which the slope changes. Where f′⁢′(x)>0 the slopes increase and the graph is concave up, bending like a cup. Where f′⁢′(x)<0 the slopes decrease and the graph is concave down. A point of the graph where the concavity changes is an inflection point.

The second derivative test classifies a critical point with f′(c)=0 by the bend there. If f′⁢′(c)<0, f⁡(c) is a local maximum, and if f′⁢′(c)>0, it is a local minimum. If f′⁢′(c)=0, the test says nothing, and the first derivative test has to decide.

f′(c)=0, f′′(c)>0⟹local minimum
f′(c)=0, f′′(c)>0⟹local minimum

Why it works

Why the signs tell the shape

The Mean Value Theorem ties the sign of f′ to rising and falling. For a<b in an interval where f′>0, some c between them has f⁡(b)−f⁡(a) =f′(c)⁢(b−a). Both factors on the right are positive, so f⁡(b)>f⁡(a), and f increases.

The first derivative test follows at once. If f rises up to c and falls after it, no point near c is higher than f⁡(c).

The second derivative test is the first one in disguise. Suppose f′(c)=0 and f′⁢′(c)>0. Then f′ is increasing at c, so near c it goes from negative through 0 to positive, and by the first test f⁡(c) is a local minimum. In the opening case f′⁢′(x)=6⁢x, which is −6 at x=−1, a maximum, and 6 at x=1, a minimum.

The method

Sketching a graph in seven steps

A full sketch takes seven steps. Write each on its own line. A rational function adds one more, its vertical and horizontal asymptotes, found from limits. The next lesson, Limits at infinity, finds the horizontal ones, and it is linked under Related concepts.

Sketching f⁡(x) =x3 −3⁢x
StepWhat to doFor x3−3⁢x
1Find the domain and the interceptsall real x; f⁡(0)=0, and x3−3⁢x =0 at x=0 and ±3
2Find f′ and the critical pointsf′(x) =3⁢(x−1)⁢(x+1), zero at ±1
3Make a sign chart for f′+ for x<−1, − on (−1,1), + for x>1
4Classify each critical pointlocal maximum f⁡(−1) =2, local minimum f⁡(1) =−2
5Find f′⁢′ and where its sign changesf′⁢′(x) =6⁢x, inflection point (0,0)
6Check the endsf⁡(x) →−∞ as x→−∞ and f⁡(x)→∞ as x→∞
7Plot the key points and join them(−3,0), (−1,2), (0,0), (1,−2), (3,0), rising, falling, rising

Where it breaks

Where it breaks

A zero of f′ is not always a turn. The function x3 has f′(0)=0, yet it rises on both sides, so 0 is no extremum. A zero of f′⁢′ is not always an inflection point. For x4, f′⁢′(0)=0, but f′⁢′(x)=12x2 never goes negative, and (0,0) is a minimum where the bend does not change.

Critical points include places where f′ does not exist. The function ∣⁢x⁢∣ has its minimum at 0, a corner with no derivative, and a search that only solves f′(x)=0 misses it.

A sign change across a gap in the domain is neither a turn nor an inflection. The graph of x+1⁢/⁢x is concave down left of 0 and concave up right of it, but 0 is not in the domain, so there is no inflection point there.

The two tests read different derivatives. The sign of f′⁢′ says how the graph bends, not whether it rises, and a rising curve can bend either way.

Check your answer

Check your answer

A sketch makes claims about heights, slopes and ends, and each one can be tested.

Compare the heights. A local maximum must beat the points just beside it. For x3−3x2−9⁢x+5, the cubic of the first worked example, f⁡(−1)=10, while f⁡(−1.1)=9.939 and f⁡(−0.9)=9.941.

Match the two charts. Between a maximum and the next minimum the graph falls, and an inflection point sits between them where the fall is steepest. That cubic has f′(x)=3x2−6⁢x−9. The point x=1 lies between −1 and 3, and f′(1)=−12 is the steepest slope on that stretch.

Check the ends. A cubic with a positive leading coefficient falls toward −∞ on the left and rises toward ∞ on the right, so the sketch must too.

To have Chalk check the work, write f⁡(x)=… on the first row of a Math box, then f′(x), its factored form, f′⁢′(x) and the key values on rows below. Each reads ✓ when it is right. A factoring slip such as 3⁢(x+3)⁢(x−1) reads ✗ with “The two sides differ at a point Chalk checked.” Chalk checks the derivatives and the values, not the words local maximum or concave up, so the reasoning from the signs stays yours.

If f′⁢′(x)>0 for every x and f′(1)=0, can f have another critical point?

No. f′⁢′>0 makes f′ increasing, so f′ is negative left of 1, positive right of it, and 0 nowhere else. f falls and then rises, so f⁡(1) is the smallest value on the whole line, not only near 1. (x−1)2 is one example. A graph that bends upward everywhere can turn once at most.

Endpoints, higher derivatives and what comes next

On a closed interval, the highest and lowest values may sit at an endpoint instead of at a critical point. Comparing f at the critical points and at both endpoints finds them, and that comparison is where optimization begins.

When f′⁢′(c)=0 as well, higher derivatives can still decide. Find the first derivative that is not 0 at c. If its order is even, f⁡(c) is an extremum, and if its order is odd, it is not. For x4 at 0 that is the fourth derivative, 24, so 0 is a minimum. For x3 it is the third, 6, so 0 is an inflection point. The pattern comes from Taylor polynomials.

Concavity also connects to linear approximation. A graph that is concave up lies above its tangent lines, so a tangent-line estimate there comes out low.

Common mistakes

  • Calling every point where f′=0 an extremum. The function x4−4x3 has f′(0)=0 but no maximum or minimum at 0, because f′ is negative on both sides.
  • Calling every zero of f′⁢′ an inflection point. The concavity must actually change, and x4 has f′⁢′(0)=0 with no change at 0.
  • Reading rise and fall from f′⁢′. Whether f increases is the job of f′, and the sign of f′⁢′ only says which way the graph bends.
  • Testing only one side of a critical point. A local maximum needs f′ positive just left of c and negative just right of it, so test a value on each side.
  • Missing critical points where f′ does not exist. The minimum of ∣⁢x⁢∣ is at 0, where the derivative fails to exist, so a list from f′(x)=0 alone is incomplete.

Key terms

Critical point
A point in the function’s domain where the derivative is zero or doesn’t exist. Local maxima and minima can happen only at critical points or endpoints, so these are where to look.
First derivative test
A way to classify a critical point c where f is continuous. Look at the sign of f′ on either side: + to − gives a local maximum, − to + gives a local minimum, and no change of sign means no extremum.
Second derivative test
At a critical point c with f′(c)=0, f′⁢′(c)<0 gives a local maximum and f′⁢′(c)>0 a local minimum. If f′⁢′(c)=0 the test gives no answer, and the first derivative test decides.
Concavity
The direction a graph bends. Where f′⁢′>0 the graph is concave up and its slopes increase. Where f′⁢′<0 it is concave down and its slopes decrease.
Inflection point
A point on a continuous graph where the concavity changes. There f′⁢′ is zero or undefined, but a zero of f′⁢′ is not enough on its own: the sign of f′⁢′ must change.
Local maximum
A function value at least as large as all the nearby values. It doesn’t have to be the largest value overall.
Local minimum
A function value at most as large as all the nearby values. At an endpoint, compare only with the values on the side that exists.

Work through an example

Find where f⁡(x)=x3−3x2−9⁢x+5 increases and decreases, its local extrema, its concavity and its inflection point.

Sketch a cubic with its derivatives →

When the second derivative test fails →

Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Trace the derivative in Secant → Tangent Graph f and its key points in Graph Check the derivatives in Math Study the 7 key terms Open worked example on a board Derivative tests in Math Reference

Your existing work stays on this device. Examples open as editable copies.