Chalk−1

Math · Calculus I · Worked example

Sketch a cubic with its derivatives

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

f⁡(x)=x3−3x2−9⁢x+5

Try one — Chalk checks each line

Find the critical points

f′(x) =3x2−6⁢x−9 =3⁢(x−3)⁢(x+1), which is zero at x=−1 and x=3. A polynomial’s derivative exists everywhere, so there are no other critical points.

f′(x)=3x2−6⁢x−9=3⁢(x−3)⁢(x+1)
f′(x)=3x2−6⁢x−9=3⁢(x−3)⁢(x+1)

Make a sign chart for f′

Test one number in each interval. f′(−2)=15>0, f′(0)=−9<0 and f′(4)=15>0.

Sign of f′(x) =3⁢(x−3)⁢(x+1)
IntervalTest xf′(x)f is
x<−1−215increasing
−1 <x <30−9decreasing
x>3415increasing

Classify the critical points

f′ changes from + to − at x=−1, so f⁡(−1)=10 is a local maximum. It changes from − to + at x=3, so f⁡(3)=−22 is a local minimum.

f⁡(−1)=10,f⁡(3)=−22

Find where the concavity changes

f′⁢′(x)=6⁢x−6 is negative for x<1 and positive for x>1, so the graph is concave down and then concave up. The inflection point is (1,f⁡(1))=(1,−6).

f′′(x)=6⁢x−6=0⟹x=1

Check with the second derivative test

f′⁢′(−1)=−12<0 confirms the maximum, and f′⁢′(3)=12>0 confirms the minimum.

Sketch the graph

Plot the maximum (−1,10), the y-intercept (0,5), the inflection point (1,−6) and the minimum (3,−22). The graph rises to the maximum, falls through the inflection point to the minimum, then rises again.

Result

f increases on (−∞,−1) and (3,∞) and decreases on (−1,3). Local maximum f⁡(−1)=10 and local minimum f⁡(3)=−22. Concave down on (−∞,1) and up on (1,∞), with inflection point (1,−6).

Your turn

1. One like the example

Find the local extrema and the inflection point of g⁡(x)=x3−12⁢x.

Show the answer and explanation

Local maximum g⁡(−2)=16, local minimum g⁡(2)=−16, inflection point (0,0).

g′(x) =3x2−12 =3⁢(x−2)⁢(x+2) is zero at ±2, and g′⁢′(x)=6⁢x. Since g′⁢′(−2)=−12<0, g⁡(−2)=16 is a local maximum. Since g′⁢′(2)=12>0, g⁡(2)=−16 is a local minimum. The sign of g′⁢′ changes at 0, so (0,0) is the inflection point.

g⁡(x)=x3−12⁢xg′(x)=3x2−12g′′(x)=6⁢xg⁡(−2)=16g⁡(2)=−16

2. A variation

Find the local extremum and the inflection point of f⁡(x)=xe−x. This time the product rule gives f′.

Show the answer and explanation

Local maximum f⁡(1)=1⁢/⁢e≈0.368, and inflection point (2,2⁢/e2)≈(2,0.271).

By the product rule f′(x) =e−x−xe−x =(1−x)e−x. Since e−x>0, f′ has the sign of 1−x, positive for x<1 and negative after, so f⁡(1)=1⁢/⁢e is a local maximum. Differentiating again gives f′⁢′(x)=(x−2)e−x, which changes sign at x=2, so (2,2⁢/e2) is the inflection point.

f⁡(x)=xe−xf′(x)=(1−x)e−xf′′(x)=(x−2)e−xf⁡(1)=1ef⁡(2)=2e2

3. Somewhere new

A store’s total profit, in thousands of dollars, t months after opening is P⁢(t)=−t3+6t2+15⁢t, for 0≤t≤6. When is profit growing fastest, and when does it stop growing?

Show the answer and explanation

Fastest at t=2 months, at 27 thousand dollars a month. Profit stops growing at t=5, where it peaks at 100 thousand dollars.

The growth rate is P′(t) =−3t2+12⁢t+15 =−3⁢(t−5)⁢(t+1). It is positive for 0≤t<5 and negative after, so P peaks at t=5 with P⁢(5)=100. The rate itself is largest where P′⁢′(t)=−6⁢t+12=0, at t=2, the inflection point, and there P′(2)=27. After t=2 profit still grows, but by less each month.

P⁢(t)=−t3+6t2+15⁢tP′(t)=−3t2+12⁢t+15P′(t)=−3⁢(t−5)⁢(t+1)P′′(t)=−6⁢t+12P′(2)=27P⁢(5)=100

Keep exploring

In Secant → Tangent, with Auto trace on, move P from −1 to 3: the tangent is flat at both ends and steepest at the inflection point, x=1, where the slope is −12. The dots below trace f′, down to −12 and back up to 0.

Return to the concept →
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.