impera Open Impera

IB Diploma Mathematics AI · Functions

Linear and quadratic models

1Choosing and using a model

A mathematical model is a function that describes a real situation, so that we can make predictions. The process:

  1. Choose a type of function that fits the pattern of the data or the situation.
  2. Find the parameters, from given information or with regression on your calculator.
  3. Use the model to predict, and interpret the answer in context.
  4. Evaluate: is the model reasonable? Over what domain?
  • Linear models fit a constant rate of change.
  • Quadratic models fit something that rises then falls (or falls then rises), like the height of a thrown ball or profit as price changes.

Extrapolation (predicting outside the data range) is less reliable than interpolation (predicting within it).

Check yourself

Why is extrapolation less reliable than interpolation?

  • It cannot be done on a calculator, only by hand

  • It uses more data than interpolation, so errors build up

  • The pattern may not continue outside the range of the data

  • It always gives negative answers for large values of x

Show the answer

The pattern may not continue outside the range of the data

Conditions outside the observed range may be different.

2Piecewise linear models

Sometimes the rate changes at a certain point. A piecewise linear model uses different straight lines over different parts of the domain.

Worked example

An electricity tariff

  1. The first 100 kWh cost 0.20 euros each, and any further kWh cost 0.30 euros each.
  2. For $0 \le x \le 100$: $C = 0.2x$.
  3. For $x > 100$: $C = 20 + 0.3(x - 100)$.
  4. Using 150 kWh costs $20 + 0.3 \times 50 = 35$ euros.

The pieces must join up where they meet: at $x = 100$ both give $C = 20$.

Check yourself

Using the tariff above, what does 80 kWh cost?

  • 16 euros

  • 24 euros

  • 14 euros

  • 20 euros

Show the answer

16 euros

80 is within the first piece: 0.2 × 80 = 16.

3Quadratic functions

A quadratic function has the form $f(x) = ax^2 + bx + c$. Its graph is a parabola.

  • If $a > 0$, the parabola opens upwards and has a minimum. If $a < 0$, it opens downwards and has a maximum.
  • The axis of symmetry is the vertical line $x = -\frac{b}{2a}$. The vertex lies on it.
  • The $y$-intercept is $c$.
  • The zeros are where $f(x) = 0$: find them with the calculator's solver or graph.

A thrown ball: a quadratic model with a maximum

Worked example

A thrown ball

  1. A ball's height is $h(t) = -4.9t^2 + 14.7t + 2$ metres, $t$ seconds after it is thrown.
  2. Axis of symmetry: $t = -\frac{14.7}{2(-4.9)} = 1.5$ s.
  3. Maximum height: $h(1.5) = 13.0$ m (13.025 m).
  4. It lands when $h(t) = 0$. The solver gives $t = 3.13$ s (rejecting the negative root).
  5. The initial height is $h(0) = 2$ m: the ball was thrown from 2 m above the ground.
Check yourself

For f(x) = 2x² − 8x + 3, what is the axis of symmetry?

  • x = 2

  • x = −2

  • x = 8

  • x = 4

Show the answer

x = 2

x = −(−8) ÷ (2 × 2) = 2.

4Quadratic models of profit

In business questions, profit often depends on price in a quadratic way: too low a price earns little per item, too high a price sells few items.

Worked example

Maximum profit

  1. A company's profit is $P(x) = -2x^2 + 120x - 1000$ euros, where $x$ is the selling price in euros.
  2. Maximum at $x = -\frac{120}{2(-2)} = 30$, so the best price is 30 euros.
  3. Maximum profit: $P(30) = -1800 + 3600 - 1000 = 800$ euros.
  4. Break-even prices, where $P = 0$: the solver gives $x = 10$ and $x = 50$. Between 10 and 50 euros the company makes a profit.
Check yourself

A profit model has its maximum at the vertex. What does the vertex's y-coordinate give?

  • The best price

  • The maximum profit

  • The fixed costs

  • The break-even price

Show the answer

The maximum profit

The x-coordinate is the best price; the y-coordinate is the profit at that price.

5Break-even analysis

A business breaks even when revenue equals cost.

Worked example

A bakery

  1. Cost: $C = 2n + 150$ euros (fixed costs 150, 2 euros per cake).
  2. Revenue: $R = 5n$ euros.
  3. Break-even: $5n = 2n + 150$, so $n = 50$ cakes.
  4. Profit: $P = R - C = 3n - 150$. For 80 cakes, $P = 90$ euros.
Check yourself

At the break-even point, what is the profit?

  • Maximum

  • Zero

  • Equal to cost

  • Negative

Show the answer

Zero

Revenue = cost.

6Modelling projectiles

The height of a projectile is often quadratic.

Worked example

A ball thrown upwards

  1. $h = -4.9t^2 + 19.6t + 1.5$ metres.
  2. Maximum height at $t = -\frac{19.6}{2(-4.9)} = 2$ s.
  3. $h(2) = -19.6 + 39.2 + 1.5 = 21.1$ m.
  4. Hits the ground when $h = 0$: using a GDC, $t \approx 4.08$ s.
Check yourself

At what time does the ball in $h = -4.9t^2 + 19.6t + 1.5$ reach its maximum?

  • 4 seconds

  • 1.5 seconds

  • 19.6 seconds

  • 2 seconds

Show the answer

2 seconds

Vertex.

7Going deeper: a projectile model and a profit model worked in full

Worked example (projectile): a ball's height is $h(t) = -5t^2 + 20t + 1.5$ metres after $t$ seconds.

  1. Initial height: $h(0) = 1.5$ m.
  2. Time of maximum height: the axis of symmetry is $t = -\frac{b}{2a} = -\frac{20}{2(-5)} = 2$ s.
  3. Maximum height: $h(2) = -20 + 40 + 1.5 = 21.5$ m.
  4. Landing: solve $-5t^2 + 20t + 1.5 = 0$. The quadratic formula gives $t = \frac{20 + \sqrt{430}}{10} \approx 4.07$ s (the negative root is rejected).
  5. Domain: $0 \le t \le 4.07$. Range: $0 \le h \le 21.5$.
  6. The ball is above 16.5 m when $-5t^2 + 20t + 1.5 > 16.5$, that is $t^2 - 4t + 3 < 0$, so $1 < t < 3$: for 2 seconds.

Worked example (profit): a company's weekly profit from selling $x$ items is $P(x) = -2x^2 + 120x - 1000$.

  1. Break-even: $P(x) = 0$ gives $x^2 - 60x + 500 = 0$, so $(x - 10)(x - 50) = 0$: $x = 10$ or $x = 50$.
  2. The company makes a profit for $10 < x < 50$.
  3. Maximum profit: at the midpoint of the roots, $x = 30$. $P(30) = -1800 + 3600 - 1000 = 800$.
  4. Fixed costs: $P(0) = -1000$, the loss if nothing is sold.
  5. Selling more than 50 items makes a loss in this model, perhaps because the price must be cut to sell them. Ask whether that is realistic.

Three forms of a quadratic and what each shows

  • $y = ax^2 + bx + c$: the $y$-intercept, $c$.
  • $y = a(x - p)(x - q)$: the roots, $p$ and $q$.
  • $y = a(x - h)^2 + k$: the vertex, $(h, k)$.

Finding a quadratic model from data: with three points, use the GDC's quadratic regression, or substitute to form three equations. With the vertex and one other point, use vertex form: a vertex at $(2, 21.5)$ and the point $(0, 1.5)$ give $1.5 = 4a + 21.5$, so $a = -5$.

Judging a model

  • A linear model has a constant rate of change; a quadratic has a rate that changes steadily.
  • Check the model against a data point not used to build it.
  • State the domain for which it is sensible.

Common mistakes

  • Giving the time of the maximum when the question asks for the maximum height.
  • Keeping a negative time as a solution.
  • Sign errors with $-\frac{b}{2a}$ when $a$ is negative.
Check yourself

What is the maximum value of y = −x² + 8x − 3?

  • 13

  • −3

  • 16

  • 4

Show the answer

13

The vertex is at x = 4, and −16 + 32 − 3 = 13.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera