IB Mathematics AA · Topic 5

Differential Calculus for IB Math AA

Find a tangent, work out when a curve turns, or decide the best dimensions for a garden. Start with the skills shared by SL and HL, then practise the HL methods for implicit curves, related rates, and limits.

Scientific calculator beside an open squared-paper notebook for maths study

From average rate to tangent gradient

The change in output divided by the change in input gives an average rate over an interval. On a graph this is the gradient of the secant, the line through two points. Move the second point toward the first. When the secant gradients approach one finite value from both sides, that value is the instantaneous rate at the first point.

Average gradient on an interval

f(b)−f(a)b−a

Use two distinct inputs. Read the units as output units per unit of input.

Instantaneous gradient at a point

m=f′(a)

Evaluate the gradient function at the point. The notation dydx is another way to write the derivative when y=f(x).

Worked example · Approach the tangent from both sides

Keep the point P=(2,4) fixed on f(x)=x2. With Q=(3,9), the average gradient is 9−43−2=5. With Q=(32,94), the average gradient is 72. A value of Q closer to P gives a gradient closer to 4 in this example. Use the control and watch which point moves.

Compare the secants with the tangent

The secant passes through both points, with the second point to the right of the fixed point.

The solid green curve is the parabola. The dashed or dot-dashed line shows the selected gradient.

The green parabola passes through P at (2, 4) and Q at (3, 9). The dashed secant through them has slope 5.
The secant through P=(2,4) and Q=(3,9) has gradient 5.

The derivative gives the tangent gradient m=f′(2)=4. Use the point on the curve, P=(2,4), in point–gradient form. The normal is perpendicular to the tangent.

Tangent at P

y−4=4(x−2)

Normal at P

y−4=−14(x−2)

For a finite nonzero tangent gradient m, use −1m for the normal. A horizontal tangent has a vertical normal, so at x=a the normal is x=a. Give the equation of the requested line as well as its gradient.

Choose the differentiation rule from the expression

Look at the last operation used to build the function. A sum lets you differentiate term by term. A product of two changing factors needs two terms. A function inside another function needs an inner derivative.

Function or ruleDerivativeWhat to check
Constant c0A constant has no rate of change.
Power xnnxn−1The AA syllabus extends from integer powers to rational powers. Check the real domain and where the derivative exists.
Constant multiple cf(x)cf′(x)Keep the factor c.
Sum or difference f(x)±g(x)f′(x)±g′(x)Keep the sign of each term.
Exponential exexA composite needs the inner derivative too.
Natural logarithm lnx1xUse x>0 for the original logarithm.
Sine and cosineddxsinx=cosx
ddxcosx=−sinx
Use radians. The derivative of cosine has a minus sign.

For example, writing x as x12 gives 12x for x>0. The square root is defined at 0, but the derivative there has no finite value. A negative integer power excludes 0 even before you differentiate. On x>0, the rule extends to any real exponent.

Chain rule

(f(g(x)))′=f′(g(x))g′(x)

Differentiate the outside at the inner expression, then multiply by the derivative of the inside.

Product rule

(fg)′=f′g+fg′

Change one factor at a time and add both terms.

Quotient rule

(fg)′=f′g−fg′g2

Denominator times derivative of numerator, minus numerator times derivative of denominator. Use g(x)≠0.

Worked example · Keep the inner derivative

For y=(3x+1)5, the outside is the fifth power and the inside is 3x+1.

dydx=5(3x+1)4·3=15(3x+1)4

Worked example · A quotient with a restricted domain

Let y=x2+1x−1 for x≠1. Differentiate the numerator and denominator separately to build the two terms in the quotient rule.

dydx=2x(x−1)−(x2+1)(x−1)2
dydx=x2−2x−1(x−1)2

The original exclusion x=1 still applies. If a quotient simplifies before differentiation, carry its original domain through to the final answer.

For y=ex(x2+1)3, begin with the product rule and then use the chain rule on the cubic factor. The factored result is y′=ex(x2+1)2(x2+6x+1). Factoring often makes the next step easier if you need to solve y′=0.

Read the shape from the first and second derivatives

The sign of f′ tells you whether the function rises or falls on an interval. The sign of f″ tells you whether the slopes are increasing or decreasing. Find the candidate inputs, split the domain into intervals, and test inside each interval.

What you checkWhat you can conclude
f′>0 or f′<0 throughout an intervalThe function is increasing or decreasing on that interval, respectively.
f′(a)=0The tangent is horizontal at a stationary point. Find the coordinates (a,f(a)).
f′ changes sign at aPositive to negative gives a local maximum. Negative to positive gives a local minimum.
f′(a)=0 and f″(a)>0 or f″(a)<0For a smooth curve, the second derivative test gives a local minimum or maximum, respectively.
f″>0 or f″<0 throughout an intervalThe graph is concave up or concave down, respectively.
Concavity changes at a point on the graphThis is a point of inflexion. Test the signs of f″ on each side in smooth examples.

Worked example · Classify the stationary points of a cubic

Let f(x)=x3−6x2+9x+1. Differentiate to locate the horizontal tangents.

f′(x)=3x2−12x+9

Factor the derivative as 3(x−1)(x−3). Thus f′(x)=0 at x=1 and x=3. Substitute these inputs into the original function to get f(1)=5 and f(3)=1.

Since f″(x)=6x−12, you get f″(1)=−6 and f″(3)=6. The point (1,5) is a local maximum and (3,1) is a local minimum.

The factor signs give f′>0 on (−∞,1) and (3,∞), and f′<0 on (1,3). The second derivative changes from negative to positive at x=2. This gives a point of inflexion (2,3) with gradient f′(2)=−3.

Aligned plots of the cubic and its derivatives. The cubic has a maximum at (1, 5), an inflexion at (2, 3), and a minimum at (3, 1). The first derivative crosses zero at 1 and 3, and the second derivative crosses at 2.
Follow one vertical guide through all three plots. At x=2, the second derivative changes sign while the first derivative is negative. The original curve is still falling as its concavity changes.

If f″(a)=0, use the first-derivative signs to classify a stationary point and check concavity separately. At the origin, y=x3 has a stationary point of inflexion, while y=x4 has a minimum and stays concave up on both sides. The original cubic above has an inflexion with a nonzero gradient.

Use the feasible domain to find the best value

Draw the geometry or name the variables in context. Write the quantity to maximize or minimize as a function of one variable by using the constraint. Keep the domain alongside the formula so you can compare all eligible candidates, including endpoints.

Worked example · Fence a garden along a wall

A wall forms one side of a rectangular garden. You have 40 metres of fencing for the other three sides. Let x be the width perpendicular to the wall and y be the length parallel to it.

2x+y=40,y=40−2x
A(x)=x(40−2x)=40x−2x2

A nondegenerate garden needs 0<x<20. The endpoint areas on the closed comparison interval [0,20] are both zero. Inside the interval, set the derivative equal to zero.

dAdx=40−4x=0⇒x=10

The second derivative d2Adx2=−4 shows the area is concave down throughout the domain. The single interior candidate has area 200 square metres, greater than either endpoint value. The maximum occurs at width 10 m and length 20 m.

Scale plan of the optimum garden. The 20-metre wall is one side; the opposite fence is 20 metres and the two side fences are 10 metres each.
At the optimum, the side along the wall is 20 m. Only the remaining three sides use the 40 m of fencing.

On a closed interval also check interior points where the derivative does not exist, if the objective is defined there. On an open or unbounded interval, consider what happens near the missing ends. A limiting value is an optimum only if the function attains it somewhere in the feasible domain.

Interpret velocity, speed, and acceleration

Take the positive direction to be the direction of increasing position. Differentiating position gives signed velocity. Differentiating again gives signed acceleration. Speed is the magnitude of velocity.

v(t)=dsdt,a(t)=dvdt

Worked example · A particle changes direction twice

A particle has position s(t)=t3−6t2+9t metres from an origin for 0≤t≤4 seconds.

v(t)=3(t−1)(t−3)
a(t)=6t−12

The velocity changes from positive to negative at t=1, and from negative to positive at t=3, so the particle reverses at both times. It visits positions s(0)=0, s(1)=4, s(3)=0, and s(4)=4.

The displacement over the four seconds is 4−0=4 metres. The total distance travelled is 4+4+4=12 metres. Split the motion where velocity changes sign and add the absolute changes in position.

At a time when velocity and acceleration are both nonzero, equal signs mean speeding up and opposite signs mean slowing down. Zero velocity gives an instant at rest. Check the sign on both sides to decide if it is a reversal. See the IB Math AA kinematics notes for motion graphs and distance found by integration.

HL · First principles and additional derivatives

For AHL 5.12, use a polynomial to get the derivative from first principles. Form a secant gradient at an input x and take its limit as the input change h tends to zero.

Worked example · Derive the power rule for a square

With f(x)=x2, expand the numerator before cancelling h. The secant calculation uses h≠0.

f(x+h)−f(x)h=2xh+h2h=2x+h
f′(x)=limh→0(2x+h)=2x

The secant gradient in the explorer is 4+h when the first input is 2. Using h=0 in the original difference quotient would give 00.

A differentiable function is continuous at that point. A continuous graph can have a corner. For y=|x| at zero, the left and right slopes are −1 and 1, so there is no single derivative. For higher derivatives, differentiate the previous derivative. Write the second derivative as f″(x) or d2ydx2, and the nth as f(n)(x) or dnydxn.

FunctionDerivativeWhere the derivative applies
tanxsec2x=1cos2xcosx≠0
secxsecxtanxcosx≠0
cosecx−cosecxcotxsinx≠0
cotx−cosec2xsinx≠0
axaxlnaAll real x for a>0.
logax1xlnax>0, a>0, a≠1
arcsinx11−x2−1<x<1
arccosx−11−x2−1<x<1
arctanx11+x2All real x.

Here cosecx is the reciprocal of sinx. Use radians throughout the trigonometric formulas. For a composite such as y=arctan(2x), the chain rule gives dydx=21+4x2.

HL · Implicit differentiation and related rates

Worked example · Find a tangent to an implicit curve

Find the gradient of x2+y2=25 at (3,4). Treat y as a function of x along the branch near that point. Applying the chain rule to y2 gives a factor dydx.

2x+2ydydx=0
dydx=−xy=−34

The tangent is y−4=−34(x−3). The formula for the gradient applies where y≠0. At (5,0) and (−5,0) the circle has vertical tangents.

Worked example · Track the area of a growing circle

A circular patch expands with radius increasing at 2 centimetres per second. Find the rate at which its area increases when the radius is 3 centimetres. The relation A=πr2 holds while both A and r vary with time.

dAdt=2πrdrdt

Now substitute r=3 and drdt=2. The result is 12π square centimetres per second. If you substitute the instantaneous radius before differentiating, you lose the information about its rate of change.

In a related-rates problem, write an equation linking the changing variables, differentiate with respect to t, substitute the given values and rates, then give the sign and units in context. An equation that specifies an unknown function through its derivatives leads to the separate HL differential equations topic.

HL · Evaluate limits and apply L’Hôpital’s rule

The statement limx→af(x)=L describes the values of f(x) approached as x tends to a. The function can have a different value at a or be undefined there. At SL, focus on what a graph or table suggests. At HL, justify your algebra and check that both sides agree for a two-sided limit.

If the separate limits are L and MCombined limit
Sumlimx→a(f(x)+g(x))=L+M
Productlimx→a(f(x)g(x))=LM
Quotient
M≠0
limx→af(x)g(x)=LM

For example, simplify x2−4x−2 to x+2 for x≠2. The limit as x tends to 2 is 4. Try substitution and look for useful algebra before choosing a more involved method.

L’Hôpital’s rule applies to the quotient forms 00 and ∞∞. In the approach interval away from the limiting point, the numerator and denominator must be differentiable and the denominator derivative must be nonzero. If the derivative quotient has a limit, finite or infinite, the original quotient has that limit under these conditions.

limx→af(x)g(x)=limx→af′(x)g′(x)

Worked example · Recheck the form before applying the rule twice

As x→0, ex−1−xx2 has form 00. Differentiate the numerator and denominator separately.

limx→0ex−1−xx2=limx→0ex−12x

The new ratio still has form 00. Apply the rule again and evaluate.

limx→0ex−12x=limx→0ex2=12

The rule also gives limx→∞lnxx=limx→∞1x=0, after you check the initial form ∞∞.

Maclaurin series offer another way to handle some indeterminate limits. In ex=1+x+x22!+⋯, the first terms cancel after you subtract 1+x. The leading term in the numerator is x22, so division by x2 gives the same limit. For more on the derivative coefficients f(n)(0)n!, use the HL Maclaurin series notes.

What to show on an IB exam

QuestionWorking to show
Find a derivativeChoose the rule from the structure. Include the inner derivative in a composite and both terms in a product or quotient.
Find a tangent or normalSubstitute into f for the point and into f′ for the tangent gradient. Use a point and gradient to form the line.
Classify a pointGive coordinates and justify the type with derivative signs. For inflexion, show a change in concavity.
OptimizeState the objective and domain. Compare feasible candidates and give the answer with units.
Interpret motionUse the sign of velocity for direction and the sign of velocity with acceleration for changes in speed.
Evaluate an HL limitShow the form before using L’Hôpital’s rule. Differentiate the numerator and denominator separately and recheck before repeating.
Find a related rate at HLWrite the equation linking the variables and differentiate with respect to time before substituting the instantaneous measurements.

Practise symbolic working without a calculator for Paper 1. For Paper 2 and HL Paper 3, a graphing calculator can help you locate roots and check an estimate. Give the derivative equation or comparison that supports your answer. Keep intermediate values unrounded and follow the precision the question asks for.

Practice with worked answers

Write your method before opening the answer. Questions 1–8 cover shared SL and HL skills. Questions 9–12 focus on HL methods.

1. For f(x)=x2, find the average gradient from x=1 to x=3 and the instantaneous gradient at x=1.

The average gradient is 9−13−1=4. Since f′(x)=2x, the instantaneous gradient at 1 is 2.

2. Find the tangent and normal to y=x3 at x=1.

The point is (1,1) and the tangent gradient is 3(1)2=3. The equations are y−1=3(x−1) and y−1=−13(x−1).

3. Differentiate y=xsin(2x).

Use the product rule, with the chain rule on sin(2x). The result is y′=sin(2x)+2xcos(2x).

4. Differentiate y=xx2+1.

The numerator of the derivative is (x2+1)−x(2x)=1−x2. The derivative is 1−x2(x2+1)2, defined for all real x.

5. Classify the stationary point of f(x)=x4 at zero.

Here f′(x)=4x3 changes from negative to positive, so (0,0) is a minimum. The second derivative 12x2 stays positive on both sides, so concavity does not change.

6. Find the point of inflexion of f(x)=x3+x and give its gradient.

The second derivative 6x changes sign at zero. The point is (0,0), and f′(0)=1, so the tangent is sloping.

7. Find the largest and smallest values of A(x)=x(12−x) on [1,5].

The derivative 12−2x is positive on the whole interval. Compare A(1)=11 and A(5)=35. The maximum is 35 at x=5 and the minimum is 11 at x=1.

8. A particle has position s(t)=t2−4t+3 metres. Describe its motion at t=1 second.

The velocity 2t−4 is −2 metres per second and the acceleration 2 metres per second squared has the opposite sign. The particle moves in the negative direction and its speed is decreasing.

9. HL · Find the derivative of f(x)=3x2+x from first principles.

For h≠0, expanding and cancelling in f(x+h)−f(x)h gives 6x+3h+1. Taking h→0 gives f′(x)=6x+1.

10. HL · Find the gradient of x2+xy+y2=7 at (1,2).

Differentiate the product xy as y+xy′. The equation becomes 2x+y+(x+2y)y′=0. Substitute the point to get y′=−45.

11. HL · A sphere’s radius decreases at 0.5 centimetres per second. How fast is its volume changing at radius 2 centimetres?

From V=43πr3, obtain dVdt=4πr2drdt. Use drdt=−12 and r=2 to find −8π cubic centimetres per second.

12. HL · Evaluate limx→01−cosxx2.

The initial form is 00. The first derivative quotient sinx2x still has that form. The second is cosx2, which tends to 12.

Official IB questions and further practice

Begin with the SL Paper 1 curve question. Try the Paper 2 motion question with your graphing calculator. At HL, link the chain and product rules to successive derivatives in the Paper 1 series question. The complete specimen booklet includes the markschemes.

Prepared by NUM8ERS. The syllabus references and specimen questions follow the IB Math AA course first assessed in 2021.