Cambridge International AS & A Level Mathematics 9709 · Pure Mathematics 2

Algebra: the modulus function and polynomials

The modulus |x| and graphs of y=|ax+b|; solving modulus equations and inequalities; dividing a polynomial by a linear or quadratic divisor to find the quotient and remainder; and the remainder and factor theorems, used to factorise, solve equations and find unknown coefficients.

2.1Paper 2: Pure Mathematics 2Free lesson
What the syllabus says

2.1 (Paper 2)

  • understand the meaning of |x|, sketch the graph of y=|ax+b| and use relations such as |a|=|b|⇔a2=b2 and |x−a|<b⇔a−b<x<a+b when solving equations and inequalities
  • divide a polynomial, of degree not exceeding 4, by a linear or quadratic polynomial, and identify the quotient and remainder (which may be zero)
  • use the factor theorem and the remainder theorem.

Notes and examples

  • Graphs of y=|f(x)| and y=f(|x|) for non-linear functions f are not included.
  • e.g. |3x−2|=|2x+7|, 2x+5<|x+1|.
  • e.g. to find factors and remainders, solve polynomial equations or evaluate unknown coefficients.
  • Including factors of the form (ax+b) in which the coefficient of x is not unity, and including calculation of remainders.

Quoted from the Cambridge International AS and A Level Mathematics 9709 syllabus (2026-2027 and 2028-2030 editions, which share this content).

The modulus of a number Paper 2

The modulus of a number is its size, ignoring its sign. It is written |x| and defined by
|x|=x if x⩾0,|x|=−x if x<0
So |5|=5 and |−5|=5. The second line is not a mistake: if x is negative, −x is positive.

The most useful way to think of |x| is as a distance: it is the distance of x from 0 on the number line. In the same way, |x−a| is the distance between x and a. So |x−3|=2 asks for the numbers 2 away from 3, which are 1 and 5, and |x−3|<2 asks for the numbers less than 2 away from 3, which is 1<x<5.

Two facts follow and are used constantly:

  • a modulus is never negative, so an equation such as |2x+1|=−4 has no solutions;
  • |a|2=a2, because squaring removes the sign anyway. Two numbers with the same size have the same square, so |a|=|b|⟺a2=b2.

Graphs of y = |ax + b| Paper 2

To sketch y=|ax+b|, first think of the straight line y=ax+b. Wherever the line is above the x-axis, the modulus changes nothing. Wherever it is below, the modulus makes each y value positive, so that part of the line is reflected in the x-axis.

The result is a V shape with its vertex on the x-axis, at the root of ax+b=0, that is x=−ba. The two arms have gradients a and −a. Mark the vertex and the y-intercept, (0,|b|), on any sketch.

For y=|2x−3|: the vertex is at (1.5,0), the y-intercept is (0,3), and the arms have gradients 2 and −2.

Only graphs of this linear kind are in Paper 2: graphs of y=|f(x)| and y=f(|x|) for non-linear functions are not included.

xy−2−112345−4−3−2−112345670y = 2x - 3y = |2x - 3|(1.5, 0)(0, 3)

The part of y=2x−3 below the x-axis is reflected upwards to make the V of y=|2x−3|.

Solving modulus equations Paper 2

There are two reliable methods for an equation with a modulus on each side, |f(x)|=|g(x)| with f and g linear.

Squaring. Since |a|=|b|⟺a2=b2, square both sides and solve the quadratic. Squaring is safe here because both sides are already non-negative, so no false solutions appear.

Two cases. Two numbers have the same modulus when they are equal or when one is the negative of the other. So solve f(x)=g(x) and f(x)=−g(x). This is often quicker and avoids a quadratic.

When one side has no modulus, as in |2x−1|=3x+4, the two cases still work, but check every answer in the original equation: the right-hand side must not be negative, because a modulus cannot equal a negative number. Squaring such an equation can introduce a false root, so the cases method with a check is the safer choice.

Worked example 1 Paper 2

Solve the equation |3x−1|=|x+5|.

  1. Square both sides: (3x−1)2=(x+5)2, so 9x2−6x+1=x2+10x+25.

  2. Collect terms: 8x2−16x−24=0, which divides by 8 to give x2−2x−3=0.

  3. Factorise: (x−3)(x+1)=0, so x=3 or x=−1.

  4. Check by the cases method: 3x−1=x+5 gives x=3, and 3x−1=−(x+5) gives 4x=−4, so x=−1.

  5. Check in the equation: x=3 gives |8|=|8| and x=−1 gives |−4|=|4|.

Answer: x=3 or x=−1

Check yourself Paper 2

Solve the equation |2x+3|=|x−6|.

Answer it in the portal, where your answer is checked as you type →

Solving modulus inequalities Paper 2

The distance idea gives the basic results at once. For b>0:

  • |x−a|<b⟺a−b<x<a+b (within b of a);
  • |x−a|>b⟺x<a−b or x>a+b (more than b away from a).

For |2x−7|⩽5, write −5⩽2x−7⩽5, add 7 to get 2⩽2x⩽12, and halve: 1⩽x⩽6.

Modulus on both sides. For |f(x)|<|g(x)|, both sides are non-negative, so squaring keeps the inequality true: solve f(x)2<g(x)2 as a quadratic inequality, using the critical values and a sketch of the parabola.

Modulus on one side only. For an inequality such as 3x−1<|x+3|, do not square: the left side can be negative, and squaring a negative number reverses its size order. Instead, find where the graphs meet and use a sketch to see where one graph is above the other. Where the line y=3x−1 is below the x-axis it is certainly below the modulus graph, which a squared inequality would miss.

Worked example 2 Paper 2

Solve the inequality |2x−5|<|x+2|.

  1. Both sides are non-negative, so square: (2x−5)2<(x+2)2.

  2. Expand: 4x2−20x+25<x2+4x+4, so 3x2−24x+21<0, or x2−8x+7<0.

  3. Critical values: (x−1)(x−7)=0 gives x=1 and x=7.

  4. The parabola y=(x−1)(x−7) is below the axis between its roots, so 1<x<7.

  5. Test a value: x=3 gives |1|<|5|, which is true.

Answer: 1<x<7

Worked example 3 Paper 2

Solve the inequality 3x−1<|x+3|.

  1. Find where y=3x−1 meets y=|x+3|. On the right arm, x+3=3x−1 gives x=2, and then both sides equal 5.

  2. On the left arm, −(x+3)=3x−1 gives x=−12. But then 3x−1=−52, which is negative, so it cannot equal a modulus: reject it. The graphs meet only at x=2.

  3. Sketch: the line is steeper than the right arm and crosses it at x=2. To the left of x=2 the line is below the V; to the right it is above.

  4. So 3x−1<|x+3| for x<2.

  5. Squaring would give (2x+1)(x−2)<0, that is −12<x<2, which wrongly leaves out every x⩽−12, such as x=−1, where −4<2 is plainly true.

Answer: x<2

xy−5−4−3−2−11234−8−6−4−22468100y = |x + 3|y = 3x - 1(2, 5)

The line lies below the V for every x<2, including where the line is below the x-axis.

Check yourself Paper 2

Solve the inequality |2x−7|⩽5.

Answer it in the portal, where your answer is checked as you type →

Polynomials and long division Paper 2

A polynomial in x is a sum of terms axn with n a non-negative whole number, such as 2x3+5x2−4x+1. Its degree is the highest power: 3 here, so it is a cubic.

Dividing a polynomial p(x) by a divisor d(x) means writing
p(x)≡d(x)q(x)+r(x)
where q(x) is the quotient and the remainder r(x) has a lower degree than d(x). Dividing by a linear divisor leaves a constant remainder; dividing by a quadratic leaves a remainder of the form Ax+B, which may be zero. This is exactly the same idea as 47=6×7+5 in arithmetic.

Long division builds the quotient one term at a time:

  1. write both polynomials in descending powers, with a 0 term for any missing power;
  2. divide the leading term of what is left by the leading term of the divisor: that is the next term of the quotient;
  3. multiply the whole divisor by that term and subtract;
  4. repeat until what is left has a lower degree than the divisor.

Each step removes the highest power of what is left, which is why the process must end. Always check by multiplying back: d(x)q(x)+r(x) must give p(x).

Worked example 4 Paper 2

Find the quotient and remainder when 2x3+5x2−4x+1 is divided by (x+3).

  1. 2x3÷x=2x2. Subtract 2x2(x+3)=2x3+6x2: this leaves −x2−4x+1.

  2. −x2÷x=−x. Subtract −x(x+3)=−x2−3x: this leaves −x+1.

  3. −x÷x=−1. Subtract −1(x+3)=−x−3: this leaves 4.

  4. Quotient 2x2−x−1, remainder 4.

  5. Check: (x+3)(2x2−x−1)+4=2x3+5x2−4x−3+4, which is right.

Answer: Quotient 2x2−x−1, remainder 4

Worked example 5 Paper 2

Find the quotient and remainder when x4−5x2+3x+2 is divided by x2−x−1.

  1. Write the dividend with a zero term: x4+0x3−5x2+3x+2.

  2. x4÷x2=x2. Subtract x2(x2−x−1)=x4−x3−x2: this leaves x3−4x2+3x+2.

  3. x3÷x2=x. Subtract x(x2−x−1)=x3−x2−x: this leaves −3x2+4x+2.

  4. −3x2÷x2=−3. Subtract −3(x2−x−1)=−3x2+3x+3: this leaves x−1.

  5. x−1 has a lower degree than the divisor, so it is the remainder. Quotient x2+x−3, remainder x−1.

Answer: Quotient x2+x−3, remainder x−1

Check yourself Paper 2

Find the quotient when 4x3−6x2+5 is divided by (2x−1).

Answer it in the portal, where your answer is checked as you type →

The remainder theorem Paper 2

Write the division by (x−a) as p(x)≡(x−a)q(x)+R, where R is a constant. Substitute x=a: the first term becomes 0×q(a)=0, so p(a)=R.

The remainder theorem: when p(x) is divided by (x−a), the remainder is p(a).

For a divisor (ax+b), the same argument with x=−ba, the value that makes the divisor zero, gives the remainder p(−ba). So the remainder when 4x3−6x2+5 is divided by (2x−1) is p(12)=12−32+5=4, agreeing with the long division above.

The theorem gives the remainder without dividing, which is why it is the tool for finding an unknown coefficient: a given remainder becomes an equation in the unknown. Be careful with the sign: dividing by (x+2) means substituting x=−2.

The factor theorem Paper 2

A remainder of zero means the divisor goes exactly. So:

The factor theorem: (x−a) is a factor of p(x) if and only if p(a)=0; and (ax+b) is a factor if and only if p(−ba)=0.

To factorise a cubic, search for a root among the factors of the constant term (and fractions such as 12 or 13 when the leading coefficient is not 1). Once p(a)=0, divide by (x−a), or compare coefficients, to find the quadratic factor, then factorise that.

To show that (x−a) is a factor, the examiner wants to see the substitution worked out and the conclusion: "p(3)=54−27−33+6=0, so (x−3) is a factor."

Unknown coefficients. Each piece of information (a factor, or a remainder) gives one equation. Two unknowns need two pieces of information, which give simultaneous equations.

Worked example 6 Paper 2

The polynomial p(x)=3x3+ax2+bx+6, where a and b are constants, has (x+2) as a factor. When p(x) is divided by (x−1) the remainder is −12. (a) Find a and b. (b) Factorise p(x) completely. (c) Solve p(x)=0.

  1. (a) Factor: p(−2)=−24+4a−2b+6=0, so 4a−2b=18, or 2a−b=9.

  2. Remainder: p(1)=3+a+b+6=−12, so a+b=−21.

  3. Add the two equations: 3a=−12, so a=−4 and b=−17.

  4. (b) p(x)=3x3−4x2−17x+6. Divide by (x+2): the quotient is 3x2−10x+3, with remainder 0.

  5. 3x2−10x+3=(3x−1)(x−3), so p(x)=(x+2)(3x−1)(x−3).

  6. (c) x=−2, x=13 or x=3.

Answer: a=−4, b=−17; p(x)=(x+2)(3x−1)(x−3); x=−2,13,3

Check yourself Paper 2

Find the remainder when x4−3x2+2x−5 is divided by (x+2).

Answer it in the portal, where your answer is checked as you type →

Key points

  • |x−a| is the distance between x and a; a modulus is never negative.

  • y=|ax+b| is a V with vertex at x=−ba on the x-axis: reflect the part of the line below the axis.

  • |a|=|b|⟺a2=b2, or solve a=b and a=−b.

  • |x−a|<b⟺a−b<x<a+b; |x−a|>b gives two separate ranges.

  • Square only when both sides are non-negative; with a modulus on one side, use the meeting points and a sketch.

  • p(x)≡d(x)q(x)+r(x), with the remainder of lower degree than the divisor.

  • Remainder theorem: dividing by (ax+b) leaves p(−ba). Factor theorem: it is a factor exactly when that is 0.

Where marks are lost

  • Squaring an inequality such as 3x−1<|x+3|, where one side can be negative, and losing part of the answer.

  • Not checking solutions of |f(x)|=g(x), and keeping a value that makes g(x) negative.

  • Writing |x−4|>3 as −1>x>7, which no number satisfies: it is two separate ranges, x<1 or x>7.

  • Leaving out a zero term in long division, so the columns no longer line up.

  • Substituting x=2 for a divisor (x+2), or x=2 instead of x=12 for (2x−1).

  • Stating that (x−a) is a factor without showing p(a)=0 worked out.

  • Stopping at a quadratic factor that still factorises, when the question says "completely".

Related AS & A Level Mathematics 9709 lessons

All AS & A Level Mathematics 9709 lessons →

An original lesson written to the Cambridge International AS & A Level Mathematics 9709 syllabus (2026 to 2027 and 2028 to 2030). The worked examples and questions are our own, not Cambridge questions. Back to every AS & A Level Mathematics 9709 lesson.