Grade 12 IB Math is live, AA and AI · see the IB course

Grade 12 · MHF4U · Advanced Functions

MHF4U: Finding the Equation of a Polynomial

Every polynomial with real zeros can be written as f(x)=a(x−r1)(x−r2)⋯f(x) = a(x - r_1)(x - r_2)\cdots, and a graph hands you almost all of it. The zeros come from the xx-intercepts, the multiplicities from how the graph behaves at each one, and one more point fixes aa.

How It Works

Start with the xx-intercepts. A zero at x=rx = r is a factor (x−r)(x - r), so a zero at x=−2x = -2 gives (x+2)(x + 2), not (x−2)(x - 2). Fractions are fine too: a zero at x=12x = \frac{1}{2} gives (x−12)(x - \frac{1}{2}), or (2x−1)(2x - 1) once you absorb the 22 into aa.

Then read the multiplicity from the shape. The graph cuts straight through the axis at a zero of multiplicity 1, bounces off it at multiplicity 2 (an even power), and flattens out as it passes through at multiplicity 3 (an odd power above 1). The degree is the sum of the multiplicities, so count them and check the total against the end behaviour.

Now you have f(x)=a(x−r1)m1(x−r2)m2⋯f(x) = a(x - r_1)^{m_1}(x - r_2)^{m_2}\cdots with one unknown. Substitute any other point on the graph, usually the yy-intercept because it is easiest to read, and solve for aa. Without that point you only know the family: x(x−2)x(x - 2) and 5x(x−2)5x(x - 2) have the same zeros.

If the question wants expanded form, expand last, after aa is known. Multiply two factors at a time and collect like terms. If it wants integer coefficients and your zeros are fractions, clear them by pairing each fraction with part of the aa out front.

Check: substitute the given point back in, and make sure the sign of the leading coefficient matches the end behaviour you can see.

5 Worked Examples

Easy first, test level last. Try each one on paper, then open the solution.

  1. Easy

    A cubic has zeros at x=−2x = -2, x=1x = 1 and x=3x = 3, and its yy-intercept is 1212. Find its equation in factored form.
    Show solution
    1. Each zero is a factor: f(x)=a(x+2)(x−1)(x−3)f(x) = a(x + 2)(x - 1)(x - 3).
    2. The yy-intercept is the point (0,12)(0, 12): f(0)=a(2)(−1)(−3)=6af(0) = a(2)(-1)(-3) = 6a, so 6a=126a = 12 and a=2a = 2.

    Answer: f(x)=2(x+2)(x−1)(x−3)f(x) = 2(x + 2)(x - 1)(x - 3)

  2. Easy

    A quartic crosses the xx-axis at x=−3x = -3 and x=0x = 0, bounces off it at x=2x = 2, and passes through (1,−8)(1, -8). Find its equation.
    Show solution
    1. Crossing means multiplicity 1 and bouncing means multiplicity 2: f(x)=ax(x+3)(x−2)2f(x) = ax(x + 3)(x - 2)^2. The degree is 1+1+2=41 + 1 + 2 = 4, a quartic, as required.
    2. Substitute (1,−8)(1, -8): f(1)=a(1)(4)(1)2=4a=−8f(1) = a(1)(4)(1)^2 = 4a = -8, so a=−2a = -2.

    Answer: f(x)=−2x(x+3)(x−2)2f(x) = -2x(x + 3)(x - 2)^2

  3. Medium

    Find, in expanded form, the cubic with zeros −1-1, 11 and 44 whose graph passes through (0,8)(0, 8).
    Show solution
    1. Factored form: f(x)=a(x+1)(x−1)(x−4)f(x) = a(x + 1)(x - 1)(x - 4).
    2. At (0,8)(0, 8): f(0)=a(1)(−1)(−4)=4a=8f(0) = a(1)(-1)(-4) = 4a = 8, so a=2a = 2.
    3. Expand: (x+1)(x−1)=x2−1(x + 1)(x - 1) = x^2 - 1, then 2(x2−1)(x−4)=2(x3−4x2−x+4)2(x^2 - 1)(x - 4) = 2(x^3 - 4x^2 - x + 4).

    Answer: f(x)=2x3−8x2−2x+8f(x) = 2x^3 - 8x^2 - 2x + 8

  4. Medium

    A degree 4 polynomial touches the xx-axis at x=−2x = -2 without crossing, crosses it at x=1x = 1 and x=3x = 3, and passes through (2,−32)(2, -32). Find its equation.
    Show solution
    1. Touching without crossing is a double zero: f(x)=a(x+2)2(x−1)(x−3)f(x) = a(x + 2)^2(x - 1)(x - 3). Degree 2+1+1=42 + 1 + 1 = 4 checks.
    2. Substitute (2,−32)(2, -32): f(2)=a(4)2(1)(−1)=−16a=−32f(2) = a(4)^2(1)(-1) = -16a = -32, so a=2a = 2.

    Answer: f(x)=2(x+2)2(x−1)(x−3)f(x) = 2(x + 2)^2(x - 1)(x - 3)

  5. Test level

    A quartic has a double zero at x=0x = 0, single zeros at x=−12x = -\frac{1}{2} and x=32x = \frac{3}{2}, and passes through (2,20)(2, 20). Find its equation with integer coefficients.
    Show solution
    1. Factored form: f(x)=ax2(x+12)(x−32)f(x) = ax^2(x + \frac{1}{2})(x - \frac{3}{2}).
    2. Substitute (2,20)(2, 20): f(2)=a(4)(52)(12)=5a=20f(2) = a(4)(\frac{5}{2})(\frac{1}{2}) = 5a = 20, so a=4a = 4.
    3. Clear the fractions by splitting a=4=2×2a = 4 = 2 \times 2 across the two fraction factors: 4(x+12)(x−32)=(2x+1)(2x−3)4(x + \frac{1}{2})(x - \frac{3}{2}) = (2x + 1)(2x - 3), so f(x)=x2(2x+1)(2x−3)f(x) = x^2(2x + 1)(2x - 3).
    4. Expand: (2x+1)(2x−3)=4x2−4x−3(2x + 1)(2x - 3) = 4x^2 - 4x - 3, then multiply by x2x^2.

    Answer: f(x)=x2(2x+1)(2x−3)=4x4−4x3−3x2f(x) = x^2(2x + 1)(2x - 3) = 4x^4 - 4x^3 - 3x^2

Learn It on Martian Lab

Martian Lab teaches this in the Sketching Polynomials lesson of its MHF4U Polynomial Functions unit. Watch it, then take the Polynomial Functions practice tests to see if it stuck.

Watch the Sketching Polynomials lesson free

Start Practicing

No credit card required to start.

Get started