Differentiation: rules, tangents and the second derivative

IB Math AA · Calculus

The three rules

$$\text{chain: }\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx},\qquad \text{product: }(uv)'=u'v+uv',\qquad \text{quotient: }\left(\frac{u}{v}\right)'=\frac{u'v-uv'}{v^{2}}$$

The order in the quotient numerator is content, not decoration: reversing it negates the whole answer, and the answer still looks plausible.

Standard derivatives

$$\frac{d}{dx}x^{n}=nx^{n-1},\quad \frac{d}{dx}e^{kx}=ke^{kx},\quad \frac{d}{dx}\ln x=\frac{1}{x},\quad \frac{d}{dx}\sin x=\cos x,\quad \frac{d}{dx}\tan x=\sec^{2}x$$

Tangents, normals and stationary points

The gradient of the tangent at $x=a$ is $f'(a)$; the normal has gradient $-\dfrac{1}{f'(a)}$.

Stationary points solve $f'(x)=0$. Classify with $f''$: positive means minimum, negative means maximum. If $f''=0$ the test is inconclusive — check the sign of $f'$ on either side instead.

Concavity and inflexion

$f''>0$ is concave up, $f''<0$ concave down. A point of inflexion needs $f''=0$ and a change of sign in $f''$ — the second condition is the one candidates omit.

maximum: f′=0, f″<0 point of inflection: f″=0 AND changes sign minimum: f′=0, f″>0 concave down concave up x = 2 y
Three kinds of points, three different conditions — and a point of inflection needs two conditions, not one. At the two red points, the tangent is horizontal so $f'=0$; the sign of $f''$ distinguishes maximum from minimum. At the green point, the tangent is not horizontal — $f'$ there is not $0$ — but $f''$ changes sign from negative to positive, and that is the definition of a point of inflection. Viewed by shape: to the left of $x=2$ the curve is cupped downward like a dome, to the right it opens upward like a bowl; the point of inflection is where it flips. Note that the condition $f''=0$ is not enough on its own: the function $y=x^{4}$ has $f''(0)=0$ but $f''$ does not change sign so $x=0$ is a minimum, not a point of inflection.

Worked example: tangent and normal at a point

Given the curve $y=x^{3}-2x$. Find the equation of the tangent and the normal at the point with x-coordinate $x=2$.

Solution

Step 1 — coordinates of the point. Many answers lose marks at exactly this step because the question gives only the x-coordinate.

$$y(2)=8-4=4\;\Longrightarrow\;\text{point }(2,\,4)$$

Step 2 — gradient of the tangent.

$$\frac{dy}{dx}=3x^{2}-2\;\Longrightarrow\;\left.\frac{dy}{dx}\right|_{x=2}=12-2=10$$

Step 3 — equation of the tangent. Use point–gradient form:

$$y-4=10(x-2)\;\Longrightarrow\;y=10x-16$$

Step 4 — the normal. The normal is perpendicular to the tangent so its gradient is the negative reciprocal:

$$m_{\text{normal}}=-\frac{1}{10}\;\Longrightarrow\;y-4=-\frac{1}{10}(x-2)\;\Longrightarrow\;y=-\frac{x}{10}+\frac{21}{5}$$

Quick check: both lines must pass through $(2,4)$. Substituting into the tangent gives $20-16=4$; substituting into the normal gives $-0.2+4.2=4$. Both match.

The most common error of this type is using the function value as the gradient, i.e. writing $y-4=4(x-2)$. Keep it clear: $f(a)$ gives the height, $f'(a)$ gives the slope.

Worked example: classifying stationary points when the second-derivative test fails

Given $f(x)=x^{4}-4x^{3}$. Find all stationary points and classify them.

Solution

Step 1 — find the stationary points.

$$f'(x)=4x^{3}-12x^{2}=4x^{2}(x-3)=0\;\Longrightarrow\;x=0\ \text{or}\ x=3$$

Step 2 — test with the second derivative.

$$f''(x)=12x^{2}-24x=12x(x-2)$$

At $x=3$: $f''(3)=12(3)(1)=36>0$, so it is a minimum.

At $x=0$: $f''(0)=0$ — the test is inconclusive. This is what the problem is really asking.

Step 3 — turn to the sign of $f'$ on either side of $x=0$. Since $f'(x)=4x^{2}(x-3)$ and $4x^{2}\ge 0$ always, the sign of $f'$ is decided only by $(x-3)$. For all $x$ near $0$, we have $x-3<0$, so $f'<0$ on both sides.

The function decreases before and decreases after, with no change of direction, so $x=0$ is not an extremum — it is a stationary point of inflection (a horizontal stationary point on a monotonic stretch).

The lesson: $f''=0$ says nothing at all. It neither confirms a point of inflection nor rules out an extremum — you must examine the sign of $f'$ to answer.

Common mistake

Concluding "$f''(a)=0$ so $a$ is a point of inflection". The condition $f''=0$ is only a necessary condition; a point of inflection also requires $f''$ to change sign through that point. Two counterexamples worth memorizing, and they sit right next to each other so they are easy to compare: with $y=x^{3}$, $f''=6x$ changes sign at $x=0$ so that really is a point of inflection; with $y=x^{4}$, $f''=12x^{2}$ is always non-negative and does not change sign, so $x=0$ is a minimum, not a point of inflection — even though $f''(0)=0$ in both cases. The reverse direction of the same trap also collapses: seeing $f''(a)=0$ and concluding "not an extremum", while $y=x^{4}$ proves the opposite. Safe rule: whenever $f''$ vanishes at the point under consideration, drop the second-derivative test entirely and make a sign table for $f'$ (if asked about extrema) or a sign table for $f''$ (if asked about points of inflection).

Key takeaway

The first derivative answers the question of going up or going down; the second derivative answers the question of curving up or curving down. Two independent switches, all four combinations can appear in exams — and every question about the shape of a graph reduces to reading those two signs correctly.

← The binomial and normal distributions · All IB Math AA lessons · Practice IB Math AA questions (free, instant scoring) · Integration: antiderivatives, area and volume →