Skip to content
Marlbridge

Study Guides

IB DP Mathematics: Applications and Interpretation – Differentiation, integration, optimisation and the trapezoidal rule Study Guide

Study guide to IB DP Maths AI SL calculus: limits, derivatives, tangents, integration, area, optimisation and the trapezoidal rule, with worked examples.

Level
IB
Topic
Differentiation, integration, optimisation and the trapezoidal rule
Updated

Aligned to International Baccalaureate IB Diploma Programme Mathematics: Applications and Interpretation (DP Mathematics: Applications and Interpretation), First assessments for SL and HL—2021. Official subject brief .

Syllabus page (what it covers and how it is assessed): IB Diploma Programme Mathematics: Applications and Interpretation.

Syllabus points this page covers

DP Mathematics: Applications and Interpretation

  • 5.1 Introduction to the concept of a limit; derivative as gradient function and rate of change
  • 5.2 Increasing and decreasing functions; graphical interpretation of f′(x)
  • 5.3 Derivative of f(x) = ax^n and sums of such terms
  • 5.4 Tangents and normals at a given point
  • 5.5 Introduction to integration as anti-differentiation; definite integrals and area using technology
  • 5.6 Values where the gradient is zero; local maximum and minimum points
  • 5.7 Optimisation problems in context
  • 5.8 Approximating areas using the trapezoidal rule

Found an error? Report a correction.

Need help with this topic? Request a free trial class for IB Diploma Programme Mathematics: Applications and Interpretation (DP Mathematics: Applications and Interpretation).

This study guide teaches the core calculus unit of IB Diploma Programme Mathematics: Applications and Interpretation. It is aligned to the IB Mathematics: applications and interpretation guide, first assessment 2021, syllabus sections 5.1–5.8, which are common content for SL and HL. It follows the IB guide for first assessment 2021, which remains the examined syllabus until the new course is first assessed in May 2029, so it applies to the May and November 2026, 2027 and 2028 SL and HL sessions.

When you have worked through it, condense it with the revision notes and test yourself with the practice questions. The IB DP Maths AI course hub and the printable syllabus checklist show where this unit sits in the course.

What this unit covers

Syllabus section What you must be able to do SL/HL
5.1 Estimate a limit from a table or graph; read a derivative as a gradient function and a rate of change SL and HL
5.2 Find where a function is increasing (f′(x) > 0) or decreasing (f′(x) < 0) SL and HL
5.3 Differentiate axⁿ and sums of such terms, where n ∈ ℤ SL and HL
5.4 Find equations of tangents and normals, by hand and with technology SL and HL
5.5 Anti-differentiate axⁿ (n ∈ ℤ, n ≠ −1); use a boundary condition; find definite integrals and areas with technology SL and HL
5.6 Solve f′(x) = 0; find local maximum and minimum points SL and HL
5.7 Solve optimisation problems in context SL and HL
5.8 Estimate an area with the trapezoidal rule, using intervals of equal width SL and HL

Both SL papers are 90 minutes and both require a GDC (“technology required” in the guide). There is no calculator-free paper in this course. Even so, you must be able to differentiate and anti-differentiate these polynomial-type functions by hand, because the working earns method marks.

5.1 Limits and the meaning of the derivative

A limit is the value a function approaches as x gets closer and closer to some number. In this course you only estimate limits from a table or a graph. Formal methods for calculating limits are not required.

The gradient of a curve at a point is the limit of the gradients of chords through that point as the chords get shorter.

Worked example 1

Estimate the gradient of y = x³ at x = 2 by looking at chords from (2, 8) to (2 + h, (2 + h)³).

The chord gradient is ((2 + h)³ − 8)/h. Evaluate it for small h:

h 0.1 0.01 0.001 −0.001 −0.01 −0.1
chord gradient 12.61 12.0601 12.006001 11.994001 11.9401 11.41

From both sides the values approach 12, so the gradient at x = 2 is about 12.

The derivative is the gradient function. It also gives the rate of change of one quantity with respect to another. The guide lists these notations: dy/dx, f′(x), dV/dr and ds/dt. For example, dV/dr is the rate at which a volume V changes as a radius r changes. A derivative has units: if V is in cm³ and r in cm, then dV/dr is in cm³ per cm.

Graph of y = x cubed. Point P is at (2, 8). Three copper chords from P to points a distance h to the right (h = 1, 0.5 and 0.25) get closer to the gold tangent line as h shrinks. The chord gradient is ((2 + h) cubed minus 8) divided by h. A table gives its value for h = 0.1, 0.01, 0.001, minus 0.001, minus 0.01 and minus 0.1 as about 12.61, 12.06, 12.006, 11.994, 11.94 and 11.41. From both sides the values approach 12, the gradient of the curve at x = 2.
Graph of y = x³ with P(2, 8), three chords to points h = 1, 0.5, 0.25 to the right and the gold tangent of gradient 12. A table of chord gradients for h = ±0.1, ±0.01, ±0.001 shows values approaching 12 from both sides.

5.3 Differentiating axⁿ

The rule is:

If f(x) = axⁿ, then f′(x) = anxⁿ⁻¹,   n ∈ ℤ

Differentiate a sum term by term. A constant differentiates to 0. Because n can be any integer, you must first rewrite fractions as negative powers.

Worked example 2

Find f′(x) for f(x) = 2x³ − 5x + 4/x, and find f′(2).

  1. Rewrite: f(x) = 2x³ − 5x + 4x⁻¹.
  2. Differentiate each term: f′(x) = 6x² − 5 − 4x⁻².
  3. Tidy: f′(x) = 6x² − 5 − 4/x².
  4. Substitute: f′(2) = 24 − 5 − 1 = 18.

Your GDC can give a numerical derivative at a point. Use it to check, but write the derivative by hand when the question asks for f′(x).

5.2 Increasing and decreasing functions

  • f′(x) > 0 on an interval: the function is increasing there.
  • f′(x) < 0 on an interval: the function is decreasing there.
  • f′(x) = 0: the tangent is horizontal.

Worked example 3

Find the intervals on which f(x) = x³ − 6x² + 9x + 1 is increasing and decreasing.

  1. f′(x) = 3x² − 12x + 9 = 3(x − 1)(x − 3).
  2. f′(x) = 0 at x = 1 and x = 3.
  3. Test the sign: f′(0) = 9 > 0, f′(2) = −3 < 0, f′(4) = 9 > 0.
  4. So f is increasing for x < 1 and x > 3, and decreasing for 1 < x < 3.
Two graphs aligned on the same x values. Top: the cubic f(x) = x cubed minus 6x squared plus 9x plus 1, rising to a local maximum at (1, 5), falling to a local minimum at (3, 1), then rising again; at the end point x = 5 on the domain 0 to 5 the value is 21, greater than the local maximum. Bottom: the gradient function f dash = 3(x minus 1)(x minus 3), a U-shaped parabola that is positive for x less than 1, negative between 1 and 3 and positive for x greater than 3, crossing zero at x = 1 and x = 3. Where f dash is positive f is rising, where negative f is falling, and f dash is zero at the turning points.
Aligned graphs of f(x) = x³ − 6x² + 9x + 1 and f′(x) = 3(x − 1)(x − 3). f rises where f′ > 0, falls where f′ < 0, with local maximum (1, 5) and minimum (3, 1); on 0 ≤ x ≤ 5 the end point value f(5) = 21 exceeds the local maximum.

5.6 Stationary points: local maximum and minimum

Points where f′(x) = 0 are where the gradient is zero. The guide expects you to be able to use technology to generate f′(x) and solve f′(x) = 0, as well as doing it by hand for simple cases.

To classify a point at SL, look at the sign of f′(x) on each side (or at the graph on your GDC):

  • f′ changes from + to −: local maximum.
  • f′ changes from − to +: local minimum.

The second derivative test is HL only (AHL 5.10), so you do not need it at SL.

In worked example 3, f(1) = 5 and f(3) = 1. So (1, 5) is a local maximum and (3, 1) is a local minimum.

A local maximum is not necessarily the greatest value on a domain. On 0 ≤ x ≤ 5, f(5) = 21, which is greater than the local maximum value 5. Always check the end points of a given domain.

5.4 Tangents and normals

The tangent at x = a touches the curve and has gradient f′(a). The normal is perpendicular to the tangent, so its gradient is −1/f′(a) (if f′(a) ≠ 0). Use y − y₁ = m(x − x₁).

Worked example 4

The curve y = x² − 3x + 2/x. Find the equations of the tangent and the normal at x = 2.

  1. Point: y = 4 − 6 + 1 = −1, so (2, −1).
  2. dy/dx = 2x − 3 − 2x⁻². At x = 2: 4 − 3 − 0.5 = 0.5.
  3. Tangent: y + 1 = 0.5(x − 2), so y = 0.5x − 2.
  4. Normal gradient: −1/0.5 = −2. Normal: y + 1 = −2(x − 2), so y = −2x + 3.

The guide expects both analytic approaches and technology here. Many GDCs draw a tangent and display its equation, which is a useful check.

Equal-scale graph of y = x squared minus 3x plus 2 over x, for x greater than 0. At P (2, minus 1) the gradient is dy/dx = 2x minus 3 minus 2/x squared = 0.5. The gold tangent y = 0.5x minus 2 touches the curve at P. The teal normal is perpendicular to the tangent, with gradient minus 1 divided by 0.5 = minus 2, and equation y = minus 2x plus 3. A small right-angle mark at P shows the two lines are perpendicular.
Equal-scale graph of y = x² − 3x + 2/x with the tangent y = 0.5x − 2 and normal y = −2x + 3 at P(2, −1), with a right-angle mark.

5.5 Integration

Anti-differentiation

Integration reverses differentiation:

∫ axⁿ dx = (a/(n + 1))xⁿ⁺¹ + C,   n ∈ ℤ, n ≠ −1

The constant of integration C is needed because constants vanish when you differentiate. For example, ∫ (3x² + 2x⁻³) dx = x³ − x⁻² + C.

Worked example 5: boundary condition

dy/dx = 6x² − 4x + 3 and y = 5 when x = 1. Find y.

  1. Integrate: y = 2x³ − 2x² + 3x + C.
  2. Substitute x = 1, y = 5: 2 − 2 + 3 + C = 5, so C = 2.
  3. y = 2x³ − 2x² + 3x + 2.

Definite integrals and area

Anti-derivatives, definite integrals and area are linked. When f(x) > 0 between x = a and x = b, the area between the curve and the x-axis is

A = ∫ₐᵇ f(x) dx

The guide says definite integrals are found using technology, and that you must write a correct expression first, then calculate.

Graph of y = minus x squared plus 4x plus 12, an upside-down parabola crossing the x-axis at x = minus 2 and x = 6 with its maximum (2, 16). The region between the curve, the x-axis, the y-axis and the line x = 4 is shaded and lies wholly above the axis. Its area is the definite integral from 0 to 4 of minus x squared plus 4x plus 12, which a GDC gives as 58.7 square units, exactly 176 over 3.
Graph of y = −x² + 4x + 12 with the region between the curve, axes and x = 4 shaded; A = ∫₀⁴ (−x² + 4x + 12) dx = 58.7 (exactly 176/3).

Worked example 6

Find the area enclosed by y = −x² + 4x + 12, the x-axis, the y-axis and the line x = 4.

  1. Check f(x) > 0 on 0 ≤ x ≤ 4: the curve crosses the x-axis only at x = −2 and x = 6, so yes.
  2. Write the expression: A = ∫₀⁴ (−x² + 4x + 12) dx.
  3. GDC: A = 58.666… ≈ 58.7 square units (exactly 176/3).

The SL content only covers regions where f(x) > 0, so the region always lies above the x-axis.

Four curves y = 2x cubed minus 2x squared plus 3x plus C for C = minus 2, 0, 2 and 4. They are vertical shifts of one another, and at x = 1 each has the same gradient 5 because dy/dx = 6x squared minus 4x plus 3 gives 5 there, shown by parallel dashed tangents. The boundary condition y = 5 when x = 1 picks out the gold curve through (1, 5), which has C = 2.
Four curves y = 2x³ − 2x² + 3x + C for C = −2, 0, 2, 4 shifted vertically, each with the same gradient 5 at x = 1; the boundary condition y = 5 at x = 1 selects C = 2.

5.7 Optimisation in context

Optimisation means finding the greatest or least value of a quantity, such as profit, cost, area or volume. The method:

  1. Define the variables and draw a diagram if it helps.
  2. Use the constraint (a fixed volume, a fixed length) to write the quantity in terms of one variable.
  3. Differentiate and solve the derivative = 0.
  4. Show it is a maximum or minimum (sign of the derivative either side, or a GDC graph).
  5. Answer the question asked, in context, with units.

Questions on kinematics are not set in SL examinations.

Worked example 7

An open-top box has a square base of side x cm and height h cm. Its volume is 4000 cm³. Find the dimensions that make the surface area S as small as possible.

  1. Constraint: x²h = 4000, so h = 4000/x².
  2. S = x² + 4xh = x² + 4x(4000/x²) = x² + 16000/x = x² + 16000x⁻¹.
  3. dS/dx = 2x − 16000x⁻².
  4. Set 2x − 16000/x² = 0: x³ = 8000, so x = 20.
  5. Check: dS/dx at x = 19 is about −6.3 (< 0) and at x = 21 is about 5.7 (> 0), so this is a minimum.
  6. h = 4000/400 = 10. The box should be 20 cm × 20 cm × 10 cm, with S = 400 + 800 = 1200 cm².

On a GDC you can graph S and find the minimum directly. If you do, still write the expression for S that you graphed.

Graph of the surface area S = x squared plus 16000 over x of an open-top box with a square base of side x cm and volume 4000 cubic centimetres. The curve falls then rises, with its minimum at x = 20 where S = 1200 square centimetres. The gradient dS/dx is negative just left of x = 20 (about minus 6.3 at x = 19) and positive just right (about 5.7 at x = 21), so the point is a minimum. A drawing of the open-top box shows the dimensions 20 cm by 20 cm by 10 cm, since h = 4000 over 400 = 10.
Graph of S = x² + 16000/x for an open-top box with volume 4000 cm³: minimum S = 1200 at x = 20, with gradient negative then positive, and a drawing of the 20 × 20 × 10 cm box.

5.8 The trapezoidal rule

The trapezoidal rule estimates an area by splitting it into n strips of equal width h and treating each strip as a trapezium:

Area ≈ (h/2)[y₀ + yₙ + 2(y₁ + y₂ + … + yₙ₋₁)],   h = (b − a)/n

It works from a table of data or from a function.

Worked example 8: from data

The width of a pond is measured every 5 m along its length:

Distance (m) 0 5 10 15 20 25
Width (m) 0 6.2 8.4 9.0 7.1 0

h = 5 and there are 5 strips.

Area ≈ (5/2)[0 + 0 + 2(6.2 + 8.4 + 9.0 + 7.1)] = 2.5 × 61.4 = 153.5 m².

Worked example 9: from a function

Estimate ∫₁³ 8/x² dx with 4 strips, and compare with the GDC value.

  1. h = (3 − 1)/4 = 0.5. The x-values are 1, 1.5, 2, 2.5, 3.
  2. y-values: 8, 3.5556, 2, 1.28, 0.8889.
  3. Estimate = 0.25[8 + 0.8889 + 2(3.5556 + 2 + 1.28)] = 5.64.
  4. GDC: ∫₁³ 8/x² dx = 5.333… ≈ 5.33.
  5. Percentage error = (5.64 − 5.333…)/5.333… × 100 = 5.75%.

The estimate is too big because this curve bends so that each straight top edge lies above the curve. More strips give a better estimate.

The curve y = 8 over x squared from x = 1 to x = 3 is split into 4 strips of width h = 0.5, each topped by a straight line to form a trapezium. The y-values are 8, 3.56, 2, 1.28 and 0.89. The estimate is 0.25 times (8 + 0.89 + 2 times (3.56 + 2 + 1.28)) = 5.64, compared with the exact area 16 over 3 = 5.33 from a GDC, a percentage error of 5.75 percent. The estimate is too big because the curve bends so every straight top edge lies above it; the gold gaps show the overestimate.
Curve y = 8/x² from 1 to 3 with four trapezia of width 0.5; estimate 5.64 against 5.33, a 5.75% overestimate because the top edges lie above the curve.

Common errors

  • Differentiating 4/x as 4 or as 4/x⁰. Rewrite as 4x⁻¹ first, then get −4x⁻².
  • Leaving out + C in an indefinite integral, or never finding C when a boundary condition is given.
  • Using the tangent gradient for the normal, or forgetting the negative in −1/m.
  • Substituting x into f(x) instead of f′(x) when you need a gradient.
  • Stating a local maximum as “the greatest value” without checking the end points of the domain.
  • In optimisation, differentiating before reducing to one variable.
  • Writing only a GDC value for an area, with no integral shown.
  • In the trapezoidal rule, doubling the first and last values, or using the number of x-values instead of the number of strips to find h.

Where to go next

Frequently asked questions

What calculus is in the IB Maths AI SL syllabus? Sections 5.1–5.8 of the IB Maths AI guide cover estimating limits, derivatives as rates of change, differentiating axⁿ for integer n, tangents and normals, anti-differentiation with boundary conditions, area with technology, stationary points, optimisation and the trapezoidal rule. This content is common to SL and HL.

Do you need to calculate limits formally in IB Maths AI? No. In this course you only estimate limits from a table or a graph, for example by watching chord gradients approach a value from both sides. Formal methods for calculating limits are not required.

How do you differentiate a term like 4/x? Rewrite it as a negative power first, 4x⁻¹, then apply f′(x) = anxⁿ⁻¹ to get −4x⁻², which is −4/x².

Is there a calculator-free paper in IB Maths AI? No. Both SL papers are 90 minutes and both require a GDC. You still need to differentiate and anti-differentiate by hand because that working earns method marks.

Official syllabus

International Baccalaureate Organization, Diploma Programme, Mathematics: applications and interpretation guide, first assessment 2021.

Get free revision emails (optional)

Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.

Subjects (optional, up to 6)

Choose a qualification to see its subjects.

Related resources

Related articles

Studying this with a teacher

Working through Mathematics: Applications and Interpretation IB?

This page is free and stays free. If you would rather be taught it, Marlbridge runs Mathematics: Applications and Interpretation classes one-to-one, online in your own time zone. The first trial class is free. WhatsApp replies within an hour (8am–11pm Pakistan time, every day); email the same day.

IB Mathematics: Applications and Interpretation teachers at Marlbridge