WishWasTraining Academy
CDS exam school
โ† home
Chapter A3-3 ยท 3 of 9 in Algebra ยท 17 min read

HCF and LCM of polynomials; rational expressions

14 real CDS questions of this kind in the 6 papers from CDS I 2024 to CDS II 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter gave 14 questions in the 6 papers from CDS I 2024 to CDS II 2026. That is about 2 questions in every paper. Six of the 14 ask for the HCF of two or three polynomials. Three ask for an LCM or use the rule that HCF times LCM equals the product of two polynomials. Five ask you to simplify algebraic fractions. The idea is the same as for numbers. All the work lies in factorising quickly, so this chapter depends on the two before it.

What you will be able to do

  • Find the HCF and the LCM of polynomials from their factors.
  • Recognise the factor patterns the paper uses again and again, such as โ€‹x^4 + x^2y^2 + y^4โ€‹.
  • Use the rule HCF โ€‹\timesโ€‹ LCM โ€‹=โ€‹ product, and know when it does not hold.
  • Simplify, add, subtract, multiply and divide rational expressions.

Before you start you should know: HCF and LCM of numbers (Chapter A1-5), the identities (Chapter A3-1), and factorisation with the factor theorem (Chapter A3-2).

1. HCF and LCM, from factors

For numbers: โ€‹12 = 2^2 \times 3โ€‹ and โ€‹18 = 2 \times 3^2โ€‹. The HCF takes each common prime with its lowest power: โ€‹2 \times 3 = 6โ€‹. The LCM takes every prime with its highest power: โ€‹2^2 \times 3^2 = 36โ€‹.

Polynomials work the same way. The factors that cannot be split further play the part of the primes.

  • The HCF (highest common factor) is the polynomial of highest degree that divides each of them exactly.
  • The LCM (lowest common multiple) is the polynomial of lowest degree that each of them divides exactly.

Method. Factorise each polynomial completely. Then:

Take With the power
HCF only the factors common to all lowest
LCM every factor that appears anywhere highest

Take โ€‹x^2 - 4 = (x - 2)(x + 2)โ€‹ and โ€‹x^2 - 5x + 6 = (x - 2)(x - 3)โ€‹. The only common factor is โ€‹x - 2โ€‹, so the HCF is โ€‹x - 2โ€‹. The LCM is โ€‹(x - 2)(x + 2)(x - 3)โ€‹.

With powers: for โ€‹(x - 1)^2(x + 2)โ€‹ and โ€‹(x - 1)(x + 2)^3โ€‹ the HCF is โ€‹(x - 1)(x + 2)โ€‹ and the LCM is โ€‹(x - 1)^2(x + 2)^3โ€‹.

With single terms: for โ€‹6x^2yโ€‹ and โ€‹9xy^3โ€‹ the HCF is โ€‹3xyโ€‹ and the LCM is โ€‹18x^2y^3โ€‹.

If there is no common factor at all, the HCF is 1.

2. Factor patterns the paper uses

The polynomials in these questions are chosen so that they factorise by a known pattern. Learn to see these.

Expression Factors
โ€‹x^3 - y^3โ€‹ โ€‹(x - y)(x^2 + xy + y^2)โ€‹
โ€‹x^3 + y^3โ€‹ โ€‹(x + y)(x^2 - xy + y^2)โ€‹
โ€‹x^4 + x^2y^2 + y^4โ€‹ โ€‹(x^2 + xy + y^2)(x^2 - xy + y^2)โ€‹
โ€‹x^4 + x^2 + 1โ€‹ โ€‹(x^2 + x + 1)(x^2 - x + 1)โ€‹
โ€‹x^8 + x^4 + 1โ€‹ โ€‹(x^4 + x^2 + 1)(x^4 - x^2 + 1)โ€‹
โ€‹x^6 - y^6โ€‹ โ€‹(x^3 - y^3)(x^3 + y^3) = (x - y)(x + y)(x^2 + xy + y^2)(x^2 - xy + y^2)โ€‹
โ€‹a^3 + b^3 + c^3 - 3abcโ€‹ โ€‹(a + b + c)(a^2 + b^2 + c^2 - ab - bc - ca)โ€‹

Why the third line is true. Add and subtract โ€‹x^2y^2โ€‹:

x^4 + x^2y^2 + y^4 = (x^2 + y^2)^2 - (xy)^2

This is a difference of two squares, so it is โ€‹(x^2 + y^2 + xy)(x^2 + y^2 - xy)โ€‹. The fourth line is the third with โ€‹y = 1โ€‹. The fifth is the fourth with โ€‹x^2โ€‹ in place of โ€‹xโ€‹.

Notice that the two quadratic factors โ€‹x^2 + xy + y^2โ€‹ and โ€‹x^2 - xy + y^2โ€‹ are the very ones that appear in โ€‹x^3 - y^3โ€‹ and โ€‹x^3 + y^3โ€‹. That is why these expressions are put together in HCF and LCM questions.

Watch also for a perfect square in disguise: โ€‹a^4 + 2a^3 + 3a^2 + 2a + 1 = (a^2 + a + 1)^2โ€‹.

3. Three short cuts for HCF questions

  • One divides the other. If one polynomial is a factor of the other, the HCF is the smaller one and the LCM is the larger one. Since โ€‹x^4 - 1 = (x^2 - 1)(x^2 + 1)โ€‹, the HCF of โ€‹x^4 - 1โ€‹ and โ€‹x^2 - 1โ€‹ is โ€‹x^2 - 1โ€‹.
  • Test the options. The HCF must divide every one of the polynomials. If an option is โ€‹x - aโ€‹, put โ€‹x = aโ€‹ in each polynomial (the factor theorem). All must give 0. Start with the option of highest degree, because the HCF is the highest common factor.
  • The HCF is given. If โ€‹x - aโ€‹ is the HCF, then โ€‹aโ€‹ is a zero of each polynomial. Put โ€‹x = aโ€‹ in each to find the unknown coefficients.

4. HCF โ€‹\timesโ€‹ LCM โ€‹=โ€‹ product

For two numbers, โ€‹12 \times 18 = 216 = 6 \times 36โ€‹. For two polynomials โ€‹p(x)โ€‹ and โ€‹q(x)โ€‹ the same holds:

p(x) \times q(x) = \text{HCF} \times \text{LCM}

Check with section 1: โ€‹(x^2 - 4)(x^2 - 5x + 6) = (x - 2)^2(x + 2)(x - 3)โ€‹, and HCF โ€‹\timesโ€‹ LCM is โ€‹(x - 2) \times (x - 2)(x + 2)(x - 3)โ€‹. The same.

So if the HCF, the LCM and one polynomial are given, the other polynomial is โ€‹\frac{\text{HCF} \times \text{LCM}}{\text{the given one}}โ€‹.

The rule is for two only. For 2, 4 and 6 the HCF is 2 and the LCM is 12, but โ€‹2 \times 4 \times 6 = 48โ€‹, not 24.

5. Rational expressions

A rational expression is a fraction whose top and bottom are polynomials, such as โ€‹\frac{x^2 - 5x + 6}{x^2 - 4}โ€‹. It has no meaning for a value of โ€‹xโ€‹ that makes the bottom 0. The rules are those of ordinary fractions.

To Do this Example
simplify factorise top and bottom, cancel common factors โ€‹\frac{x^2 - 5x + 6}{x^2 - 4} = \frac{(x - 2)(x - 3)}{(x - 2)(x + 2)} = \frac{x - 3}{x + 2}โ€‹
add or subtract bring to the LCM of the denominators โ€‹\frac{1}{x - 1} + \frac{1}{x + 1} = \frac{(x + 1) + (x - 1)}{x^2 - 1} = \frac{2x}{x^2 - 1}โ€‹
multiply factorise, cancel across, multiply โ€‹\frac{x^2 - 1}{x^2 + x} \times \frac{x}{x - 1} = \frac{(x - 1)(x + 1)}{x(x + 1)} \times \frac{x}{x - 1} = 1โ€‹
divide turn the second fraction over and multiply โ€‹\frac{a}{b} \div \frac{c}{d} = \frac{a}{b} \times \frac{d}{c}โ€‹

Only a factor of the whole top and the whole bottom may be cancelled. In โ€‹\frac{x^2 + 3}{x + 3}โ€‹ nothing cancels: the 3 is a term, not a factor.

6. How the paper shortens long fractions

The real questions look long. Each one becomes short with one of these steps.

  • Factorise every denominator first. Two denominators that look different are often the same. For example โ€‹c^2 + bc - a^2 - ab = (c - a)(c + a) + b(c - a) = (c - a)(c + a + b)โ€‹.
  • Add 1 to a fraction, or take 1 away. โ€‹\frac{x + y}{x - y} + 1 = \frac{2x}{x - y}โ€‹ and โ€‹\frac{x + y}{x - y} - 1 = \frac{2y}{x - y}โ€‹. A loose number such as 3 beside three fractions is a sign to share it out, 1 to each.
  • Put in small numbers. If the answer must be a fixed number, choose simple values that make no denominator 0 and work it out (Chapter A3-1, section 6).

Worked examples

Example 1. Find the HCF and the LCM of โ€‹x^2 - 9โ€‹ and โ€‹x^2 - x - 6โ€‹.

โ€‹x^2 - 9 = (x - 3)(x + 3)โ€‹ and โ€‹x^2 - x - 6 = (x - 3)(x + 2)โ€‹. The HCF is โ€‹x - 3โ€‹. The LCM is โ€‹(x - 3)(x + 3)(x + 2)โ€‹.

Example 2. Find the HCF of โ€‹x^3 - 8โ€‹ and โ€‹x^4 + 4x^2 + 16โ€‹.

โ€‹x^3 - 8 = x^3 - 2^3 = (x - 2)(x^2 + 2x + 4)โ€‹.

โ€‹x^4 + 4x^2 + 16โ€‹ is the pattern โ€‹x^4 + x^2y^2 + y^4โ€‹ with โ€‹y = 2โ€‹, so it is โ€‹(x^2 + 2x + 4)(x^2 - 2x + 4)โ€‹.

The common factor is โ€‹x^2 + 2x + 4โ€‹. That is the HCF.

Example 3. The HCF of two polynomials is โ€‹x - 1โ€‹ and their LCM is โ€‹(x - 1)(x + 2)(x - 3)โ€‹. One of them is โ€‹x^2 + x - 2โ€‹. Find the other.

โ€‹x^2 + x - 2 = (x - 1)(x + 2)โ€‹. By the product rule,

\text{other} = \frac{(x - 1) \times (x - 1)(x + 2)(x - 3)}{(x - 1)(x + 2)} = (x - 1)(x - 3)

So the other polynomial is โ€‹x^2 - 4x + 3โ€‹. Check: โ€‹(x - 1)(x + 2)โ€‹ and โ€‹(x - 1)(x - 3)โ€‹ have HCF โ€‹x - 1โ€‹ and LCM โ€‹(x - 1)(x + 2)(x - 3)โ€‹. Always make this check; it catches a question whose data do not fit.

Example 4. Simplify โ€‹\frac{1}{x - 1} - \frac{1}{x + 1} - \frac{2}{x^2 + 1}โ€‹.

Take the first two together: โ€‹\frac{(x + 1) - (x - 1)}{x^2 - 1} = \frac{2}{x^2 - 1}โ€‹.

Now โ€‹\frac{2}{x^2 - 1} - \frac{2}{x^2 + 1} = \frac{2(x^2 + 1) - 2(x^2 - 1)}{(x^2 - 1)(x^2 + 1)} = \frac{4}{x^4 - 1}โ€‹.

Adding two at a time kept every step small.

Example 5. If โ€‹x - 2โ€‹ is the HCF of โ€‹x^2 + ax - 6โ€‹ and โ€‹x^2 - 5x + bโ€‹, find โ€‹a + bโ€‹.

The HCF divides both, so โ€‹x = 2โ€‹ makes each 0. First: โ€‹4 + 2a - 6 = 0โ€‹, so โ€‹a = 1โ€‹. Second: โ€‹4 - 10 + b = 0โ€‹, so โ€‹b = 6โ€‹. Then โ€‹a + b = 7โ€‹. Check: โ€‹x^2 + x - 6 = (x - 2)(x + 3)โ€‹ and โ€‹x^2 - 5x + 6 = (x - 2)(x - 3)โ€‹, with HCF โ€‹x - 2โ€‹.

From the real papers

These six questions are from the Elementary Mathematics papers of CDS I 2024, CDS I 2025 and CDS II 2025 (Series A). The answers agree with the final official key. Try each for 72 seconds before reading the solution.

CDS I 2024, Q23. What is the HCF of โ€‹x^4 - 13x^2y^2 - 300y^4โ€‹, โ€‹x^3 - 4x^2y - 4xy^2 - 5y^3โ€‹ and โ€‹x^3 - 125y^3โ€‹?

(a) โ€‹x - 5yโ€‹โ€ƒโ€ƒ(b) โ€‹x + 5yโ€‹โ€ƒโ€ƒ(c) โ€‹x^2 + 5xy + 25y^2โ€‹โ€ƒโ€ƒ(d) 1

Solution. Test the options. The third polynomial is โ€‹x^3 - (5y)^3 = (x - 5y)(x^2 + 5xy + 25y^2)โ€‹, so the HCF can only be made of these two factors. Put โ€‹x = 5yโ€‹ in the other two: โ€‹625y^4 - 325y^4 - 300y^4 = 0โ€‹ and โ€‹125y^3 - 100y^3 - 20y^3 - 5y^3 = 0โ€‹. So โ€‹x - 5yโ€‹ divides all three. Dividing the second by โ€‹x - 5yโ€‹ leaves โ€‹x^2 + xy + y^2โ€‹, which is not โ€‹x^2 + 5xy + 25y^2โ€‹, so nothing more is common. Answer (a).

CDS I 2025, Q83. What is the HCF of the polynomials โ€‹x^8 + x^4 + 1โ€‹ and โ€‹x^4 + x^2 + 1โ€‹?

(a) 1โ€ƒโ€ƒ(b) โ€‹x^4 - x^2 + 1โ€‹โ€ƒโ€ƒ(c) โ€‹x^4 + x^2 + 1โ€‹โ€ƒโ€ƒ(d) โ€‹x^4 - x^2 - 1โ€‹

Solution. By the pattern of section 2, โ€‹x^8 + x^4 + 1 = (x^4 + x^2 + 1)(x^4 - x^2 + 1)โ€‹. The second polynomial divides the first, so it is the HCF. Answer (c).

CDS II 2025, Q16. What is the HCF of โ€‹x^3 + y^3 + 3xy - 1โ€‹ and โ€‹(x+y)^4 - 1โ€‹?

(a) โ€‹x+yโ€‹โ€ƒโ€ƒ(b) โ€‹x+y+1โ€‹โ€ƒโ€ƒ(c) โ€‹x+y-1โ€‹โ€ƒโ€ƒ(d) 1

Solution. The second is a difference of squares twice: โ€‹(x + y)^4 - 1 = (x + y - 1)(x + y + 1)\left((x + y)^2 + 1\right)โ€‹. The first is โ€‹a^3 + b^3 + c^3 - 3abcโ€‹ with โ€‹a = xโ€‹, โ€‹b = yโ€‹, โ€‹c = -1โ€‹, so it has the factor โ€‹a + b + c = x + y - 1โ€‹. So โ€‹x + y - 1โ€‹ is common. Its other factor is โ€‹x^2 + y^2 + 1 - xy + x + yโ€‹. At โ€‹x = 0โ€‹, โ€‹y = -1โ€‹ this equals 1, while โ€‹x + y + 1โ€‹ equals 0 there, so โ€‹x + y + 1โ€‹ is not a factor of it. At โ€‹x = y = -1โ€‹ it equals 0, while โ€‹(x + y)^2 + 1โ€‹ equals 5 there, so that is not a factor of it either. Nothing more is common. Answer (c).

CDS II 2025, Q18. What is the LCM of โ€‹x^4 + x^2y^2 + y^4โ€‹, โ€‹x^3y + y^4โ€‹ and โ€‹x^4y^2 - x^3y^3โ€‹?

(a) โ€‹x^3y^3(x^6 - y^6)โ€‹โ€ƒโ€ƒ(b) โ€‹x^3y^2(x^6 - y^6)โ€‹โ€ƒโ€ƒ(c) โ€‹x^3y(x^6 - y^6)โ€‹โ€ƒโ€ƒ(d) โ€‹xy(x^6 - y^6)โ€‹

Solution. Factorise each. First: โ€‹(x^2 + xy + y^2)(x^2 - xy + y^2)โ€‹. Second: โ€‹y(x^3 + y^3) = y(x + y)(x^2 - xy + y^2)โ€‹. Third: โ€‹x^3y^2(x - y)โ€‹. The LCM takes every factor with its highest power: โ€‹x^3y^2(x - y)(x + y)(x^2 + xy + y^2)(x^2 - xy + y^2)โ€‹. By the sixth line of the table in section 2, the four brackets make โ€‹x^6 - y^6โ€‹. Answer (b).

CDS II 2025, Q21. What is โ€‹\frac{(a+b)^2}{(c-a)(c+a+b)} + \frac{(a+b)c}{c^2 + bc - a^2 - ab} - \frac{(a+2b+c)}{2(c-a)}โ€‹, โ€‹a \ne bโ€‹, โ€‹b \ne cโ€‹, โ€‹c \ne aโ€‹ equal to?

(a) โ€‹-1/2โ€‹โ€ƒโ€ƒ(b) 0โ€ƒโ€ƒ(c) โ€‹1/2โ€‹โ€ƒโ€ƒ(d) 1

Solution. Factorise the second denominator: it is โ€‹(c - a)(c + a + b)โ€‹, the same as the first (section 6). Add the first two: โ€‹\frac{(a + b)^2 + (a + b)c}{(c - a)(c + a + b)} = \frac{(a + b)(a + b + c)}{(c - a)(c + a + b)} = \frac{a + b}{c - a}โ€‹. Now subtract the third: โ€‹\frac{2(a + b) - (a + 2b + c)}{2(c - a)} = \frac{a - c}{2(c - a)} = -\frac{1}{2}โ€‹. Answer (a).

CDS II 2025, Q40. What is โ€‹\frac{\frac{x}{x-y} + \frac{y}{y-z} + \frac{z}{z-x}}{\frac{x+y}{x-y} + \frac{y+z}{y-z} + \frac{z+x}{z-x} + 3}โ€‹ equal to?

(a) 1โ€ƒโ€ƒ(b) 1/2โ€ƒโ€ƒ(c) 1/3โ€ƒโ€ƒ(d) 1/4

Solution. Share the 3 in the bottom line, 1 to each fraction: โ€‹\frac{x + y}{x - y} + 1 = \frac{2x}{x - y}โ€‹, and in the same way โ€‹\frac{2y}{y - z}โ€‹ and โ€‹\frac{2z}{z - x}โ€‹. So the bottom line is exactly twice the top line. The value is โ€‹\frac{1}{2}โ€‹. Answer (b).

Each of the six was settled by one pattern from section 2 or one step from section 6.

Mistakes that cost marks

  1. Cancelling terms. โ€‹\frac{x^2 + 3}{x + 3}โ€‹ is not โ€‹xโ€‹. At โ€‹x = 2โ€‹ it is โ€‹\frac{7}{5}โ€‹. Cancel only a factor of the whole top and the whole bottom.
  2. Highest and lowest the wrong way round. HCF: common factors, lowest power. LCM: all factors, highest power. For โ€‹(x - 1)^2โ€‹ and โ€‹(x - 1)^3โ€‹ the HCF is โ€‹(x - 1)^2โ€‹ and the LCM is โ€‹(x - 1)^3โ€‹.
  3. Using the product rule for three polynomials. HCF โ€‹\timesโ€‹ LCM โ€‹=โ€‹ product holds for two only.
  4. Losing a sign when subtracting a fraction. The minus sign applies to the whole top: โ€‹\frac{3}{x - 1} - \frac{x + 2}{x - 1} = \frac{3 - x - 2}{x - 1} = \frac{1 - x}{x - 1} = -1โ€‹.

Quick check

Do these without help. Answers are at the end.

  1. Find the HCF of โ€‹12x^2y^3โ€‹ and โ€‹18x^3yโ€‹.
  2. Find the LCM of โ€‹x^2 - 1โ€‹ and โ€‹x^2 + 2x + 1โ€‹.
  3. Find the HCF of โ€‹x^3 + 1โ€‹ and โ€‹x^2 - 1โ€‹.
  4. Simplify โ€‹\frac{x^2 - 9}{x^2 + x - 12}โ€‹.
  5. Simplify โ€‹\frac{1}{x - 2} - \frac{4}{x^2 - 4}โ€‹.

Read and watch more, free

The NCERT books for Classes 6 to 10 do not teach HCF and LCM of polynomials. For that, this lesson and the past papers are the material. Rational expressions and the factor patterns are covered below.

What Where Language
Textbook, rational expressions NCERT Class 9 Ganita Manjari Part I, Chapter 4 Exploring Algebraic Identities, section 4.8 Simplifying Rational Expressions ยท Hindi edition English, Hindi
Textbook, special products and factors NIOS Secondary Mathematics (211), Lesson 4 Special Products and Factorization ยท Hindi edition English, Hindi
Practice in factorising, with answers NCERT Exemplar Class 9, Unit 2 Polynomials ยท Hindi edition English, Hindi
The real papers UPSC previous question papers English, Hindi
Video, a full CDS course R.S SIR: Maths Playlist for CDS 2025 (the algebra lessons, about 55 minutes each) Hindi and Hinglish
Video, numbered classes Chandigarh Career Group: CDS advance maths by Sandeep Brar (the seven algebra classes) Hinglish
Video, in Hindi Rojgar with Ankit Defence: CDS 01 2025, Maths By Neeraj Baisla Sir (the ten algebra lessons) Hindi

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹6x^2yโ€‹: the HCF of 12 and 18 is 6, and the lowest powers are โ€‹x^2โ€‹ and โ€‹yโ€‹.
  2. โ€‹x^2 - 1 = (x - 1)(x + 1)โ€‹ and โ€‹x^2 + 2x + 1 = (x + 1)^2โ€‹. The LCM is โ€‹(x - 1)(x + 1)^2โ€‹.
  3. โ€‹x^3 + 1 = (x + 1)(x^2 - x + 1)โ€‹ and โ€‹x^2 - 1 = (x - 1)(x + 1)โ€‹. The HCF is โ€‹x + 1โ€‹.
  4. โ€‹\frac{(x - 3)(x + 3)}{(x + 4)(x - 3)} = \frac{x + 3}{x + 4}โ€‹.
  5. โ€‹\frac{(x + 2) - 4}{x^2 - 4} = \frac{x - 2}{(x - 2)(x + 2)} = \frac{1}{x + 2}โ€‹.

Next chapter: Laws of indices and surds.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    The product of two polynomials is โ€‹(x - 1)^3(x + 2)^2โ€‹ and their HCF is โ€‹(x - 1)(x + 2)โ€‹. What is their LCM?
  2. Question 2 of 3
    Consider the following statements: I. โ€‹x^2 - x + 1โ€‹ is a factor of โ€‹x^3 - 1โ€‹. II. โ€‹x^2 - x + 1โ€‹ is a factor of โ€‹x^4 + x^2 + 1โ€‹. Which of the statements given above is/are correct?
  3. Question 3 of 3
    What is the HCF of โ€‹x^2 - 4โ€‹, โ€‹x^3 - 8โ€‹ and โ€‹x^2 + x - 6โ€‹?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the working is WishWas's own, checked against UPSC's answer key where one has been published. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.