James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI SL › Functions › Linear, quadratic & cubic models

Linear, quadratic & cubic models

Using straight lines, parabolas and cubics to model real situations: costs and charges, the path of a ball, the volume of a box. You find the parameters, use the GDC to find maximum points and zeros, and decide which part of the graph makes sense in context.

SL 2.5Paper 1Paper 2GDC allowed≈ 60 min to work through
Before you start: graphing and Analyze Graph on the GDC (Functions & graphing with technology) and solving systems of equations (Solving equations with technology).

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Build and use linear models, including piecewise linear modelsSL 2.5
  • Use a quadratic model f(x)=ax2+bx+c: axis of symmetry, vertex, zeros and y-interceptSL 2.5
  • Find a quadratic from its vertex, its zeros, or three pointsSL 2.5, 1.8
  • Use a cubic model f(x)=ax3+bx2+cx+d and find its maximum and minimum points with the GDCSL 2.5
  • Choose a sensible domain for a model and interpret results in contextSL 2.5, 2.6

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Choose the model by its shape. A linear model changes at a constant rate. A quadratic rises then falls (or falls then rises) symmetrically: anything thrown, any arch. A cubic can rise, fall and rise again, which suits things like the volume of a box as you change one length. Once you have the model, the GDC does the rest: the maximum of a quadratic is the highest point of the ball; the zero is where it lands.

2.1 Linear and piecewise linear models

A linear model f(x)=mx+c has a constant rate of change m and a starting value c. A piecewise model uses different rules on different parts of the domain, for example a fixed price up to a limit and then a rate for every extra unit.

Worked example 1Paper 1
A phone plan costs €10 per month, which includes 2 GB of data. Each extra GB costs €3. (a) Write a model for the monthly cost C when x GB are used. (b) Find the cost for 5 GB.
(a) C(x)={10,0≤x≤210+3(x−2),x>2
(b) C(5)=10+3(3)= €19
5 GB is more than 2 GB, so use the second rule.

2.2 Quadratic models

Quadratic functions In formula booklet
f(x)=ax2+bx+caxis of symmetry: x=−b2a

If a<0 the graph has a maximum (an arch); if a>0 it has a minimum. The vertex lies on the axis of symmetry, halfway between the zeros. c is the y-intercept: in a model, the starting value.

Worked example 2Paper 2
A ball is thrown upwards. Its height after t seconds is h(t)=−4.9t2+14.7t+2 metres. Find (a) the height it is thrown from (b) its maximum height, and when it occurs (c) when it hits the ground.
(a) h(0)=2 m
(b) GDC maximum: (1.5, 13.025). Maximum height 13.0 m at t=1.5 s
Or the axis of symmetry: t=−14.72(−4.9)=1.5.
(c) Zeros: t=−0.130 or t=3.13. It lands after 3.13 s.
Reject the negative time: the model only makes sense for 0≤t≤3.13.
Worked example 3Paper 1
A parabolic arch is 6 m tall and 8 m wide at ground level. Take the top of the arch as (0,6). Find its equation in the form y=ax2+c.
The vertex is (0,6), so c=6 and there is no x term.
The axis of symmetry is the y-axis, so b = 0.
The arch meets the ground at (4,0): 0=16a+6⇒a=−0.375
y=−0.375x2+6
Worked example 4Paper 1
A quadratic y=ax2+bx+c passes through (0,3), (2,7) and (5,−2). Find a, b and c, and the vertex.
c=3; 4a+2b+c=7; 25a+5b+c=−2
One equation for each point.
GDC: a=−1, b=4, c=3
Vertex (GDC maximum): (2,7)
Worked example 5 (faded)Paper 1
A company’s monthly profit, in thousands of euros, is P(x)=−2x2+80x−500, where x is the selling price in euros. Find the price that gives the maximum profit, and the maximum profit.
Axis of symmetry: x=−802(−2)= 20  ← you work this out
P(20)= 300 thousand euros  ← you work this out

2.3 Cubic models

A cubic model f(x)=ax3+bx2+cx+d can have a local maximum and a local minimum. In context you usually want one of them, inside a domain set by the situation.

Worked example 6Paper 2
Squares of side x cm are cut from the corners of a 20 cm by 12 cm card, and the sides are folded up to make an open box. (a) Write the volume V in terms of x. (b) State a suitable domain. (c) Find the maximum volume.
(a) V=x(20−2x)(12−2x)
(b) 0<x<6
The width is 12 − 2x, which must be positive.
(c) Graph on 0<x<6; GDC maximum (2.43, 263). Maximum volume 263 cm³ when x=2.43 cm.
There is another turning point outside the domain: ignore it.
On your TI-Nspire Calculator tricks →

Maximum and minimum: graph the model, then menu → Analyze Graph → Maximum or Minimum. Restrict the domain with |0<x<6 so you only see the part that makes sense. Zeros: Analyze Graph → Zero, or the polynomial root finder. Fitting through points: write one equation per point and solve the system (menu → Algebra → Solve System of Linear Equations).

3Explore it

Change a, b and c in y=ax2+bx+c. The dashed line is the axis of symmetry. See how the sign of a decides between an arch and a valley.

4Common mistakes & exam tips

Common mistakes

  • Giving the maximum height when the question asks for the time it happens, or the other way round.
  • Keeping a negative zero (a negative time or length) as an answer.
  • Forgetting that the model only makes sense on part of its graph: state the domain.
  • Mixing up −b2a and b2a.
  • For a cubic box, reporting the turning point that lies outside the domain.

Exam tips

  • The axis of symmetry x=−b2a is in the formula booklet. The GDC maximum gives the same answer and the height as well.
  • "Hence find the maximum": write the coordinates from the GDC, then answer in words with units.
  • When a quadratic passes through (0,c), you know c straight away: one fewer equation to solve.
  • Questions often end with "comment on the validity of the model": think about the domain and about extrapolation.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Find the axis of symmetry of y=2x2−12x+7.
x=3
FluencyP2
Find the maximum point of y=−x2+6x−4.
(3,5)
FluencyP3
A taxi charges €4 for the first 2 km and €1.50 per km after that. Find the cost of a 9 km journey.
4+1.5×7= €14.50
FluencyP4
Find the zeros of y=−0.5x2+2x+6.
x=−2 and x=6
Problem solvingP5
A quadratic has zeros at x=1 and x=7, and passes through (0,14). Find its equation.
y=a(x−1)(x−7); 14=7a⇒a=2: y=2x2−16x+14
Problem solvingP6
An open box is made from a 30 cm by 20 cm card by cutting squares of side x from the corners. Find the maximum volume.
V=x(30−2x)(20−2x): maximum 1060 cm³ at x=3.92

6Exam-style questions

Original questions in the style of the IB Maths AI SL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.

Question 1Paper 1[5 marks]

A company makes x items a week. Its weekly cost is C(x)=0.5x+40 euros and its weekly income is R(x)=2x euros.

  • (a)Interpret the value 40 in context.[1]
  • (b)Find the least number of items the company must make each week to make a profit.[3]
  • (c)Find the profit when 100 items are made.[1]
(a)
a fixed weekly cost of €40 (paid even if nothing is made)A1
(b)
2x>0.5x+40(M1)
x>26.7(A1)
27 itemsA1
(c)
200−90= €110A1
Question 2Paper 1[7 marks]

The height of a javelin, h metres, when it has travelled x metres horizontally is modelled by h(x)=−0.02x2+0.9x+1.8.

  • (a)Write down the height from which the javelin is thrown.[1]
  • (b)Find the equation of the axis of symmetry.[1]
  • (c)Find the maximum height of the javelin.[2]
  • (d)Find the horizontal distance the javelin travels before it hits the ground.[2]
  • (e)Write down a suitable domain for the model.[1]
(a)
1.8 mA1
(b)
x=22.5A1
(c)
h(22.5) or GDC maximum(M1)
11.9 m (11.925)A1
(d)
solving h(x)=0(M1)
46.9 mA1
(e)
0≤x≤46.9A1
Question 3Paper 2[8 marks]

An open box is made from a rectangular sheet 30 cm by 20 cm by cutting squares of side x cm from each corner and folding up the sides.

  • (a)Show that the volume is V=4x3−100x2+600x.[2]
  • (b)State the domain of V in context.[1]
  • (c)Find the value of x that gives the maximum volume, and the maximum volume.[3]
  • (d)Find the values of x for which the volume is 800 cm³.[2]
(a)
V=x(30−2x)(20−2x)M1
=x(600−100x+4x2)=4x3−100x2+600xAG A1
(b)
0<x<10A1
(c)
GDC maximum on the domain(M1)
x=3.92A1
1060 cm³ (1056.31…)A1
(d)
graphing V and y=800(M1)
x=1.88, 6.36A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try these real IB Maths AI SL questions. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
May 2022 · TZ1 · Paper 1Q3Baseball height quadratic: initial height, landing time, sensible domain★☆☆
Nov 2024 · TZ1 · Paper 1Q5Bike hire C(d) = 60d + 10: interpret, evaluate, domain, inverse★★☆
May 2025 · TZ1 · Paper 1Q5Dolphin jump quadratic: axis of symmetry, find b, re-entry point★★☆
May 2023 · TZ1 · Paper 1Q7Open box from card: cubic volume, domain, maximum on the GDC★★☆
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake