Updated · By Pete Bromfield, IB examiner

IA idea · Optimisation & linear programming

What speed minimises the total cost of a long drive?

AA SLAI SLAA HLAI HL Solid Also in: Calculus, Finance, Kinematics

Research question

If fuel use per kilometre rises with speed but driver time also costs money, what speed minimises the total cost of a 300 km journey, and how does that speed depend on fuel price and the value of time?

Adapt it: change the place, the data or the comparison until the question is yours.

Free: the A–E checklist an examiner uses, by email ↓

Why it makes a good exploration

Two costs pull in opposite directions, which makes a genuine minimum. Fitting your own fuel-consumption model before optimising adds a modelling step that most textbook versions skip.

The mathematics you'll need

  • Fitting a quadratic (or other) model to fuel consumption against speed
  • Total cost as a function of speed, including a time cost ∝ 1/v
  • Differentiation to find the minimum; second-derivative check
  • Sensitivity of the optimum to fuel price

Course labels show where a technique sits; using maths from outside your course is fine if you explain it clearly and say it is new to you.

Where the data comes from

Record fuel consumption at different steady speeds from a family car's trip computer (as a passenger, on safe roads), or find published fuel-economy-by-speed figures from a reputable source and cite them.

Cite every source in a footnote where you use it and in your bibliography. Check the licence of any dataset you download.

A possible outline

  1. Collect or source consumption-against-speed data.
  2. Fit and compare two models.
  3. Build the total cost function and minimise it.
  4. Explore how the optimum changes with fuel price and value of time.
  5. Reflect on speed limits, safety and the data's reliability.

Pitfalls that cost marks

  • Optimising without a real consumption model.
  • Collecting data unsafely; use a trip computer as a passenger only.
  • Ignoring speed limits in the conclusion.

Showing personal engagement

  • Use your own family car.
  • Choose a journey you actually make.
  • Find the fuel price at which the optimum crosses the speed limit.

See Criterion C: personal engagement for what examiners look for.

Which course is it for?

CourseFitMaths to lean on
AA SLGood fitFitting a quadratic (or other) model to fuel consumption against speed; Total cost as a function of speed, including a time cost ∝ 1/v
AA HLGood fitFitting a quadratic (or other) model to fuel consumption against speed; Total cost as a function of speed, including a time cost ∝ 1/v
AI SLGood fitFitting a quadratic (or other) model to fuel consumption against speed; Total cost as a function of speed, including a time cost ∝ 1/v
AI HLGood fitFitting a quadratic (or other) model to fuel consumption against speed; Total cost as a function of speed, including a time cost ∝ 1/v

Level: Solid. Needs some independent work beyond class examples. See how the IA differs between AA and AI, SL and HL.

How this idea reaches the top bands

Personal engagement (C)

Optimise a decision that is really yours or your school's (a timetable, a budget, a delivery), gather the real constraints yourself, and say which ones you chose to ignore and why.

Reflection (D)

Compare the mathematical optimum with what people actually do, and test how sensitive the optimum is: which constraint, if relaxed a little, would change the answer most? For this idea, start with: optimising without a real consumption model — say how it affects your answer.

Use of mathematics (E)

SL: An objective function and constraints set up from the context, solved correctly (graphically for two variables, or with differentiation), the optimum checked and interpreted, and any new method such as linear programming explained in your own words.

HL: Optimisation with two or more variables, a justified numerical search, a proof that the optimum lies at a vertex, or a sensitivity analysis with calculus, used because the problem needs it.

Criteria A and B (presentation and communication) work the same way for every idea: see the guides to Criterion A and Criterion B.

Taking it further

Treat fuel price and value of time as parameters and find the optimum speed as a function of their ratio.

Extending it for HL

Add a second variable or a non-linear constraint, use a numerical search where calculus alone is not enough, and analyse how the optimum moves as a parameter changes.

Before you start: the checklist an examiner uses

Every check for Criteria A–E in a 4-page PDF, the mistakes that cost the most marks and a self-assessment grid. We'll email it with a short IA tip every few days, timed to your deadline if you give it. Free — no account, no payment.

Turn this idea into your IA

Similar ideas

All optimisation ideas · AA SL ideas · AI SL ideas · AA HL ideas · AI HL ideas · All 239 IA ideas