19  Polynomials and factoring

When the curve is the point

You kick a ball straight up. For a moment it keeps going — then it slows, stops, and falls back down. The height isn’t a straight line; it curves up and back. That curve has an equation.

You’re fencing off a rectangular garden and you’ve got 40 metres of fencing. You want the biggest possible area. If you make it long and thin, the area shrinks. If you make it square, the area is as large as it can be. Finding that optimum — that maximum — is a polynomial problem.

Your school sells tickets to a performance. At a lower price more people buy, but revenue per ticket drops. At a higher price fewer people buy. Somewhere in the middle is the price that brings in the most money. That relationship between price and total revenue follows a curve — a polynomial.

Straight lines describe constant rates. Polynomials describe the rest.

19.1 What the notation is saying

Here is a polynomial:

\[ax^2 + bx + c\]

Read it aloud: a times x-squared, plus b times x, plus c.

The letters \(a\), \(b\), and \(c\) are coefficients — the numbers multiplying each power of \(x\). They’re just fixed numbers; you’ll swap them for actual values in any particular problem. The letter \(x\) is the unknown — the variable you’re either solving for, or letting run freely while you watch what the output does. When you write \(y = ax^2 + bx + c\), \(y\) is the output — the value the polynomial produces for each value of \(x\).

Each piece — \(ax^2\), \(bx\), \(c\) — is called a term. Count the terms and you know you have three. The \(c\) term has no \(x\) at all; it’s a plain number, a constant.

The degree of a polynomial is the highest power of \(x\) present. In \(ax^2 + bx + c\) the highest power is 2, so the degree is 2. Degree-2 polynomials are called quadratics. Degree-1 polynomials — like \(3x + 7\) — are the linear equations from Vol 2. Degree-3 polynomials are called cubics, and so on.

Why does the \(x^2\) term make the graph curve? Because \(x^2\) grows faster than \(x\). When \(x = 2\), \(x^2 = 4\). When \(x = 10\), \(x^2 = 100\). The squared term pulls the output away from the straight line. Take \(a = 0\) and you’re back to a line. Leave \(a\) nonzero and the whole shape bends.

A specific example: \(y = x^2 - 5x + 6\). Here \(a = 1\), \(b = -5\), \(c = 6\). The negative \(b\) means the straight-line part is pulling down, and the positive \(c\) shifts the whole thing up by 6 units. The coefficient \(a = 1\) means the parabola opens upward — a positive \(a\) always curves upward, a negative \(a\) always curves downward.

19.2 The method

19.2.1 Part a: Expanding

Before you can factor, it helps to know how to expand — to go from the factored form back to the full polynomial. This makes the reverse step (factoring) easier to recognise.

The distributive law says: multiply everything inside the brackets by everything outside.

\[3(x + 4) = 3x + 12\]

When you have two brackets multiplied together, you apply the same idea twice — every term in the first bracket multiplies every term in the second. This is sometimes called FOIL (First, Outer, Inner, Last), though the name matters less than the idea: don’t miss any pair.

\[(x + 3)(x + 2)\]

  • First terms: \(x \cdot x = x^2\)
  • Outer terms: \(x \cdot 2 = 2x\)
  • Inner terms: \(3 \cdot x = 3x\)
  • Last terms: \(3 \cdot 2 = 6\)

Add them up: \(x^2 + 2x + 3x + 6 = x^2 + 5x + 6\).

The pattern is worth noticing. With \((x + 3)(x + 2)\), the number in the middle (\(5\)) is the sum of 3 and 2. The constant term (\(6\)) is their product. That observation is what makes factoring work in reverse.

19.2.2 Part b: Factoring

Factoring means breaking a polynomial back into the brackets that produced it. There are three main methods; apply them in this order.

Method 1: Common factor. Check whether every term shares a factor you can pull out.

\[6x^2 + 9x = 3x(2x + 3)\]

The common factor here is \(3x\). Dividing both terms by \(3x\) gives the bracket. Always check for a common factor first — it simplifies what comes next.

Method 2: Difference of squares. When you have two perfect squares separated by a minus sign, it factors as:

\[a^2 - b^2 = (a + b)(a - b)\]

For example:

\[x^2 - 25 = (x + 5)(x - 5)\]

Check it by expanding: \((x + 5)(x - 5) = x^2 - 5x + 5x - 25 = x^2 - 25\). Yes.

This works because the middle terms cancel. It doesn’t work if the sign between the squares is positive — \(x^2 + 25\) doesn’t factor over the real numbers.

Method 3: Factoring a trinomial \(ax^2 + bx + c\). When \(a = 1\), look for two numbers that multiply to \(c\) and add to \(b\).

\[x^2 - 5x + 6\]

You need two numbers that multiply to \(6\) and add to \(-5\). Try: \(-2\) and \(-3\). Product: \((-2)(-3) = 6\). Sum: \((-2) + (-3) = -5\). Yes.

\[x^2 - 5x + 6 = (x - 2)(x - 3)\]

When \(a \neq 1\), try the grouping method (also called the \(ac\) method). Multiply \(a\) by \(c\), find two numbers with that product and sum \(b\), then split the middle term and factor in pairs.

\[2x^2 + 7x + 3\]

Multiply \(a \cdot c = 2 \cdot 3 = 6\). Find two numbers that multiply to \(6\) and add to \(7\): those are \(1\) and \(6\).

Split the middle term:

\[2x^2 + x + 6x + 3\]

Factor in pairs:

\[x(2x + 1) + 3(2x + 1) = (x + 3)(2x + 1)\]

Both terms contain the factor \((2x + 1)\), so it can be pulled out — the same distributive law used in expanding, run backwards.

Check by expanding: \((x + 3)(2x + 1) = 2x^2 + x + 6x + 3 = 2x^2 + 7x + 3\). Yes.

19.2.3 Part c: Solving quadratic equations

A quadratic equation is when you set a quadratic equal to zero:

\[ax^2 + bx + c = 0\]

There are two methods.

Solving by factoring. If you can factor the left side, you can use the fact that if two things multiply to zero, at least one of them must be zero.

\[x^2 - 5x + 6 = 0\]

\[(x - 2)(x - 3) = 0\]

Either \((x - 2) = 0\) or \((x - 3) = 0\). So \(x = 2\) or \(x = 3\).

Check both: \(4 - 10 + 6 = 0\). Yes. \(9 - 15 + 6 = 0\). Yes.

Solving with the quadratic formula. Not every quadratic factors neatly. For any quadratic \(ax^2 + bx + c = 0\), the solutions are always:

\[x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\]

Read it: x equals negative b, plus or minus the square root of b-squared minus four-a-c, all over two-a.

The \(\pm\) sign means there are two candidate answers — one where you add the square root term, one where you subtract it (whether there are two, one, or no real answers depends on the discriminant — that’s the next section).

The piece under the square root — \(b^2 - 4ac\) — is called the discriminant, often written \(\Delta\) (delta). It tells you how many solutions exist before you do any arithmetic:

  • \(\Delta > 0\): two real solutions (the parabola crosses the x-axis twice)
  • \(\Delta = 0\): one solution (the parabola just touches the x-axis at one point)
  • \(\Delta < 0\): no real solutions (the parabola doesn’t reach the x-axis)

19.2.4 Part d: Reading the graph

Every quadratic \(y = ax^2 + bx + c\) draws a parabola — a symmetric U-shape (or inverted U if \(a < 0\)).

The roots are where the parabola crosses the x-axis — the values of \(x\) where \(y = 0\). These are exactly the solutions to \(ax^2 + bx + c = 0\). Factoring gives you the roots. The roots are the x-intercepts of the graph.

The vertex is the turning point — the very top of a downward parabola (the maximum) or the very bottom of an upward one (the minimum). The x-coordinate of the vertex is:

\[x_v = -\frac{b}{2a}\]

Read it: negative b over two a. Substitute this back into the equation to find the y-coordinate — the maximum or minimum value itself.

For \(y = x^2 - 5x + 6\): \(x_v = -(-5)/(2 \cdot 1) = 5/2 = 2.5\). Then \(y = (2.5)^2 - 5(2.5) + 6 = 6.25 - 12.5 + 6 = -0.25\). The vertex is at \((2.5, -0.25)\) — the minimum point, halfway between the two roots at \(x = 2\) and \(x = 3\).

19.3 Why this works

Where the quadratic formula comes from

The formula isn’t magic — it’s derived by solving \(ax^2 + bx + c = 0\) directly, using a technique called completing the square.

The key move: rewrite \(x^2 + \frac{b}{a}x\) as a perfect square minus a correction term.

\[x^2 + \frac{b}{a}x = \left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a^2}\]

Substitute this into \(ax^2 + bx + c = 0\), divide through by \(a\), then isolate the squared bracket:

\[\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}\]

Take the square root of both sides (giving \(\pm\)), then subtract \(\frac{b}{2a}\):

\[x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\]

That’s it. The formula is just completing the square, done once in general so you don’t have to do it every time.

19.4 Worked examples

Example 1 (sci) — height of a thrown ball

A ball is thrown upward from ground level with an initial speed of 14 m/s. Ignoring air resistance, its height in metres after \(t\) seconds is:

\[h(t) = 14t - 4.9t^2\]

When does it land?

Landing means \(h = 0\):

\[14t - 4.9t^2 = 0\]

Factor out a common term of \(t\):

\[t(14 - 4.9t) = 0\]

Either \(t = 0\) (the moment it’s thrown) or \(14 - 4.9t = 0\). Solving the second:

\[4.9t = 14 \implies t = \frac{14}{4.9} \approx 2.86 \text{ s}\]

The ball lands after about 2.86 seconds.

The vertex — the highest point — is at \(t = 14/(2 \times 4.9) = 14/9.8 \approx 1.43\) s, at height \(h(1.43) = 14(1.43) - 4.9(1.43)^2 \approx 20.02 - 10.02 \approx 10\) m.


Example 2 (eng) — maximum area from fixed fencing

You have 40 m of fencing and want to enclose a rectangular garden with the largest possible area. What dimensions give the maximum area?

Let the width be \(x\) metres. Since the total perimeter is 40 m, the two widths use \(2x\) metres, leaving \(40 - 2x\) for the two lengths. Each length is \((40 - 2x)/2 = 20 - x\) metres.

Area:

\[A = x(20 - x) = 20x - x^2\]

This is a downward parabola (\(a = -1\)). Maximum at:

\[x_v = -\frac{20}{2 \times (-1)} = 10 \text{ m}\]

Length \(= 20 - 10 = 10\) m. Area \(= 10 \times 10 = 100\) m². A square encloses the most area for a given perimeter.


Example 3 (biz) — maximum revenue from a pricing function

A small business sells handmade candles. Market research shows that at a price of \(p\) dollars each, the number sold per week is \(q = 60 - 2p\). Revenue is:

\[R = p \cdot q = p(60 - 2p) = 60p - 2p^2\]

This is a downward parabola (\(a = -2\)). Maximum revenue at:

\[p_v = -\frac{60}{2 \times (-2)} = -\frac{60}{-4} = 15\]

Price of $15. Revenue: \(R = 15 \times (60 - 30) = 15 \times 30 = 450\) per week.

To confirm it’s a maximum and not a minimum: \(a = -2 < 0\), so the parabola opens downward. The vertex is the top. Any price above or below $15 gives less revenue.


Example 4 (comp) — character jump arc

A game character jumps. The height of the character above the ground in metres at time \(t\) seconds after the jump is:

\[h(t) = -5t^2 + 10t\]

Find the maximum height and the time the character lands.

The parabola opens downward (\(a = -5\)), so the vertex is the maximum.

Vertex time: \(t_v = -10/(2 \times -5) = 1\) second.

Maximum height: \(h(1) = -5(1)^2 + 10(1) = -5 + 10 = 5\) metres.

Landing: set \(h = 0\).

\[-5t^2 + 10t = 0\] \[t(-5t + 10) = 0\]

\(t = 0\) (take-off) or \(t = 2\) seconds (landing).

Evaluating a polynomial at a specific value — like checking the height at \(t = 1\) or \(t = 2\) — is a calculation every game engine runs many times per second to determine where characters and objects are.

19.5 Where this goes

The natural next step is Vol 3, Chapter 4: Functions and relations. A quadratic is a function — it takes an \(x\) value and produces a \(y\) value, one output for each input. Once you have the function concept, the parabola becomes one member of a large family: linear functions, quadratic functions, exponential functions, trigonometric functions. The machinery you’ve built here — reading coefficients, finding roots, locating vertices — applies across all of them.

The bigger horizon is calculus. The vertex formula \(x_v = -b/(2a)\) gives you the maximum or minimum, but it only works for quadratics. What about a cubic, or a more complicated curve? That’s what differential calculus (Vol 5) answers: a general method for finding the exact peak or trough of any smooth curve. The quadratic vertex is the simplest case of a much more powerful idea. When you reach it, what you learned here will already be familiar.

Where this shows up

  • A structural engineer calculating deflection in a beam under a distributed load solves a polynomial equation.
  • A physicist modelling projectile trajectory — range, maximum height, time of flight — works with quadratics throughout.
  • A pricing analyst finding the revenue-maximising price point solves \(dR/dp = 0\), which for a linear demand function produces a quadratic.
  • A computer graphics programmer evaluating a Bezier spline is computing a polynomial at a parameter value thousands of times per frame.
  • A data scientist fitting a parabola to experimental data (polynomial regression of degree 2) uses the same \(ax^2 + bx + c\) form.

19.6 Exercises

These are puzzles. Each has a clean answer. The interesting part is setting up the equation first, then solving it.

  1. A ball is thrown upward from a cliff 20 m above the ground with an initial upward speed of 10 m/s. Its height above the ground after \(t\) seconds is \(h(t) = 20 + 10t - 4.9t^2\). When does it hit the ground?
  1. Factor \(x^2 - 7x + 12\) completely, then write down the two roots of \(x^2 - 7x + 12 = 0\).
  1. A rectangular garden has an area of 48 m². Its length is 2 m more than its width. Find the dimensions.
  1. Use the quadratic formula to solve \(2x^2 - 3x - 2 = 0\).
  1. A candle company finds its weekly profit in dollars is \(P(p) = -3p^2 + 48p - 165\), where \(p\) is the price per candle. At what price is profit maximised, and what is that profit?
  1. Factor \(4x^2 - 25\) completely.