Mathematics/Lessons/Algebra & Functions/Modelling with Quadratics
Pure · Algebra & Functions · Year 1

Modelling with Quadratics

Profit, height, area — whenever one quantity is built by multiplying two linear pieces together, a quadratic appears. The vertex then answers the question a picture can't: the biggest, the smallest, or the exact moment something happens.

9 min read 3 worked examples

A quadratic doesn't usually turn up by itself — it's built. Whenever a real quantity is the product of two linear expressions, the result is quadratic: revenue is price times quantity sold, and the quantity sold often falls linearly as price rises; the area of a rectangular field is length times width, and a fixed length of fencing ties those two together; the height of something thrown or launched follows $s=ut+\tfrac12at^2$, a quadratic in time. Modelling with quadratics is the skill of turning a sentence like this into an equation, then using everything you already know about parabolas to answer the question that was actually asked.

The algebra doesn't change from the last lesson — you'll still complete the square, still use the discriminant, still solve for roots. What's new is the context: every letter stands for something physical, the domain is often restricted to values that make sense, and the answer has to be interpreted, not just stated.

Strategy — set up, then complete the square

Every modelling question follows the same shape: define the variable in words (what does $x$ actually represent?), write the quadratic expression for the quantity you care about, then complete the square to read off the vertex. That one algebraic step usually answers the question in front of you — a maximum profit, a maximum height, a maximum area — directly.

Reading off the maximum or minimum

Writing a quadratic in vertex form $y=a(x-p)^2+q$ makes the extreme value visible at a glance. Because $(x-p)^2 \geq 0$ for every real $x$, the term $a(x-p)^2$ contributes as little as possible — exactly zero — when $x=p$. So if $a<0$ (the parabola opens downward), $y$ is at its largest when $x=p$, and that largest value is $q$. If $a>0$, the same reasoning gives a smallest value $q$ at $x=p$. Either way, the vertex $(p,\,q)$ is the answer to "what's the best this quantity can be, and when?"

Why the vertex gives the best value

$a(x-p)^2$ is a squared term scaled by $a$: it's the only part of $a(x-p)^2+q$ that changes as $x$ varies, and a square is never negative. So moving $x$ away from $p$ can only push $a(x-p)^2$ further from zero — making $y$ smaller if $a<0$, or larger if $a>0$. The single value of $x$ that avoids this penalty entirely is $x=p$, which is exactly why the vertex is where the maximum or minimum sits.

Restricting the domain to what makes sense

A price can't be negative. A length of fencing can't be longer than the fencing you have. A time before the object was launched doesn't exist. Real models come with a domain — the set of $x$-values that actually mean something — and it's often narrower than "all real numbers".

Caution — check the vertex lies inside the domain

The vertex is only the answer if it falls within the domain the model is valid for. If a calculation gives a vertex outside the sensible range (say, a negative price), the quantity is instead increasing or decreasing throughout the whole valid domain, and the true best value sits at a boundary of that domain instead. Always state the domain, and glance at whether $x=p$ actually lies inside it, before quoting the vertex as your final answer.

Worked example 1

Maximising profit · a business context
A shop's weekly profit, in pounds, from selling a product at a price of $x$ pounds is modelled by $P(x) = -2x^2 + 60x - 250$, valid for $0 \leq x \leq 30$. Find the price that maximises profit, and state the maximum profit.
MethodComplete the square, then check the domain
1
Factor $-2$ from the $x$-terms: $P(x) = -2(x^2 - 30x) - 250$.
The leading coefficient must come out before halving.
2
Complete the square inside: $x^2-30x = (x-15)^2 - 225$.
Half of $-30$ is $-15$; square it and subtract.
3
So $P(x) = -2\big[(x-15)^2-225\big]-250 = -2(x-15)^2 + 450 - 250 = -2(x-15)^2+200$.
Distribute the $-2$, then simplify the constants.
4
Since $-2(x-15)^2 \leq 0$ always, the maximum of $P$ is $200$, at $x=15$.
Vertex form: $a=-2<0$ gives a maximum.
5
$x=15$ lies inside the given domain $0\leq x\leq 30$, so it's a valid answer.
Always check the vertex is actually reachable.
6
A price of $\pounds15$ gives the maximum weekly profit of $\pounds200$.
State the answer in context, with units.
▪ solved
Examiner's eye

Two numbers are expected here, not one: the price and the profit it produces. It's easy to complete the square correctly and then only report $x=15$, or only report $200$ — read the question again before you finish, and answer exactly what was asked.

Worked example 2

Height against time · a kinematics context
A ball is thrown upwards from a height of $3$ metres. Its height in metres, $t$ seconds after release, is modelled by $h(t) = -5t^2 + 20t + 3$ for $t \geq 0$. Find the maximum height and when it occurs, and find the time at which the ball hits the ground.
MethodVertex for the maximum, then solve $h=0$ for landing
1
Factor $-5$ out: $h(t) = -5(t^2-4t)+3$.
Same first move as any completed square with $a\neq1$.
2
Complete the square: $t^2-4t = (t-2)^2-4$, so $h(t) = -5\big[(t-2)^2-4\big]+3 = -5(t-2)^2+23$.
Half of $-4$ is $-2$; distribute the $-5$ and simplify.
3
Maximum height is $23$ metres, reached at $t=2$ seconds — and $t=2$ is inside the domain $t\geq0$.
Vertex of $-5(t-2)^2+23$, with $a=-5<0$.
4
The ball lands when $h(t)=0$: solve $-5(t-2)^2+23=0 \Rightarrow (t-2)^2 = \dfrac{23}{5}$.
Landing is a different question from the maximum — it needs the roots, not the vertex.
5
$t - 2 = \pm\sqrt{\dfrac{23}{5}} \Rightarrow t = 2 \pm \dfrac{\sqrt{115}}{5}$.
Take square roots of both sides; $\sqrt{23/5}=\sqrt{115}/5$.
6
$t = 2 - \dfrac{\sqrt{115}}{5} \approx -0.14$ is rejected, since $t\geq0$. So $t = 2+\dfrac{\sqrt{115}}{5} \approx 4.14$ seconds.
The domain rules out one of the two algebraic roots.
▪ solved
Two different questions, two different tools

"Maximum height" is a vertex question — read it straight from the completed-square form. "When does it land" is a roots question — set $h(t)=0$ and solve. The same completed square feeds both, but only because $(t-2)^2=23/5$ was one algebraic step away once the square was already done. Notice too that the quadratic formula would have given the identical surd — completing the square and the formula are the same method wearing different clothes.

Worked example 3

Maximising area · a fencing / constraint context
A farmer has $40$ metres of fencing to enclose a rectangular area against an existing straight wall, so only three sides need fencing. Letting $x$ metres be the length of each of the two sides perpendicular to the wall, show that the enclosed area is $A(x) = -2x^2+40x$, and find the value of $x$ that maximises the area.
MethodBuild the model from the constraint, then optimise
1
Two sides of length $x$ use $2x$ metres of fencing, leaving $40-2x$ metres for the side parallel to the wall.
The wall itself needs no fencing — only three sides are built.
2
Area $=$ length $\times$ width $= x(40-2x) = 40x-2x^2$, i.e. $A(x)=-2x^2+40x$.
Exactly the form requested — two linear pieces multiplied together.
3
The domain is $0<x<20$: $x>0$ since it's a length, and $40-2x>0$ forces $x<20$.
Both sides of the rectangle must have positive length.
4
Complete the square: $A(x) = -2(x^2-20x) = -2\big[(x-10)^2-100\big] = -2(x-10)^2+200$.
Half of $-20$ is $-10$.
5
Maximum area is $200\text{ m}^2$, at $x=10$ — and $x=10$ lies inside $0<x<20$, so it's achievable.
The vertex falls safely inside the domain from step 3.
6
At $x=10$, the parallel side is $40-2(10)=20$ metres — a $10\text{ m}\times20\text{ m}$ rectangle.
The question asks for $x$, but stating the full rectangle shows the answer makes sense.
▪ solved
Where the model actually comes from

Nothing here was quadratic to begin with — the fencing constraint is linear ($2x + \text{(third side)} = 40$), and area is just length times width. Multiplying two linear expressions is precisely what generates a quadratic, and it's the reason "fixed perimeter, maximum area" problems are one of the most common quadratic-modelling contexts you'll meet.

Common mistake

Finding the roots (where the model equals zero) answers a different question from finding the vertex (the best value). Worked example 2 needed both, for two separate parts of the question — don't reach for the discriminant or the quadratic formula out of habit when the question is really asking "what's the maximum", and don't complete the square when the question is really asking "when does it hit zero". Read what's being asked before choosing the tool.

Check yourself

A company's daily revenue, in pounds, from selling $n$ items is modelled by $R(n) = -3n^2 + 90n$ for $n \geq 0$. Find the number of items that maximises revenue, and state the maximum revenue.
(Hint: factor the $-3$ out of the $n$-terms before completing the square.)

Method
1
Factor $-3$ from the $n$-terms: $R(n) = -3(n^2-30n)$.
2
Complete the square inside: $n^2-30n = (n-15)^2-225$.
3
So $R(n) = -3\big[(n-15)^2-225\big] = -3(n-15)^2+675$.
Distribute the $-3$: $-3\times(-225)=675$.
4
Maximum revenue is $\pounds675$, at $n=15$ items.
Since $-3(n-15)^2\leq0$, and $n=15$ satisfies $n\geq0$.
▪ solved

Notice there's no constant term to carry through here — $R(n)$ has no "$+c$", so the completed square simplifies a little faster than in the earlier examples. The method doesn't change either way.