Factors Two Expressions Share
To find the HCF of two expressions, you break each one into factors and keep only the factors they share. Finding the LCM begins in exactly the same way, by factorising, but this time you keep the leftover factors as well. Take the two expressions \( x^3 - 125y^3 \) and \( x^4 + 25x^2y^2 + 625y^4 \). Before anything else, each must be written as a product of its factors.
Step 1: The first expression is a difference of two cubes. Using \( a^3 - b^3 = (a - b)(a^2 + ab + b^2) \) with \( a = x \) and \( b = 5y \):
\[ \begin{aligned} x^3 - 125y^3 &= (x)^3 - (5y)^3 \\ &= (x - 5y)(x^2 + 5xy + 25y^2) \end{aligned} \]
Step 2: The second expression has the shape \( a^4 + a^2b^2 + b^4 \). Adding and subtracting \( 2 \cdot x^2 \cdot 25y^2 \) makes the first and last terms into a perfect square:
\[ \begin{aligned} &(x^2)^2 + (25y^2)^2 + 25x^2y^2 \\ &= (x^2 + 25y^2)^2 - 50x^2y^2 + 25x^2y^2 \\ &= (x^2 + 25y^2)^2 - (5xy)^2 \end{aligned} \]
Step 3: Now it is a difference of two squares, so \( a^2 - b^2 = (a + b)(a - b) \) applies:
\[ \begin{aligned} &= (x^2 + 25y^2 + 5xy)(x^2 + 25y^2 - 5xy) \\ &= (x^2 + 5xy + 25y^2)(x^2 - 5xy + 25y^2) \end{aligned} \]
Step 4: Comparing the two lists of factors, the factor found in both is:
\[ x^2 + 5xy + 25y^2 \]
This shared factor is also the HCF of the two expressions. A factor that belongs to only one of the expressions is called a remaining factor. Here the remaining factors are \( (x - 5y) \) from the first expression and \( (x^2 - 5xy + 25y^2) \) from the second.
Common factor: a factor that appears in the factorisation of at least two of the given expressions.
Remaining factor: a factor left over after the common factors are taken out, belonging to only one of the expressions.
What the LCM Is
Now multiply the common factor by the remaining factors:
\[ \begin{aligned} &(x^2 + 5xy + 25y^2)(x - 5y)(x^2 - 5xy + 25y^2) \\ &= (x^3 - 125y^3)(x^2 - 5xy + 25y^2) \end{aligned} \]
This product contains every factor of the first expression and every factor of the second. So each expression divides it exactly, which makes it a common multiple of both. If any one factor were removed, one of the two expressions would no longer divide it. That is why it is the smallest such multiple: the lowest common multiple.
The product of the common factors and the remaining factors of the given expressions is called their Lowest Common Multiple, written LCM for short.
LCM = common factors × remaining factors
A common factor goes into the LCM once only. Writing \( (x^2 + 5xy + 25y^2) \) twice, once for each expression, gives the product of the two expressions, which is a common multiple but not the lowest one.
Showing the LCM on a Venn Diagram
Let A be the set of factors of the first expression and B the set of factors of the second. A common factor belongs to both sets, so it goes in the region where the two circles overlap, \( A \cap B \). A factor of the first expression only goes in the part of A outside the overlap, and a factor of the second only goes in the part of B outside it.

- The product of the factors in the overlap \( A \cap B \) is the HCF.
- The product of every factor inside the two circles together, \( A \cup B \), is the LCM.
- The product of everything in the whole of circle A is the first expression, and everything in the whole of circle B gives the second.
How the HCF and the LCM Are Linked
In the example above, HCF \( = x^2 + 5xy + 25y^2 \) and LCM \( = (x^3 - 125y^3)(x^2 - 5xy + 25y^2) \). Now multiply the two together.
Step 1: Writing the product of the HCF and the LCM:
\[ \begin{aligned} &(x^3 - 125y^3)(x^2 - 5xy + 25y^2) \\ &\times (x^2 + 5xy + 25y^2) \end{aligned} \]
Step 2: The last two brackets multiply back into the second expression we factorised earlier, so the product becomes:
\[ (x^3 - 125y^3)(x^4 + 25x^2y^2 + 625y^4) \]
This is exactly the first expression multiplied by the second. The reason is simple. When you multiply the two expressions directly, the common factor appears twice. The LCM carries it once and the HCF carries it once more, so HCF × LCM also carries it exactly twice, and each remaining factor once.
When there are only two expressions: HCF × LCM = first expression × second expression
This rule holds for two expressions only. For the numbers 2, 4 and 8, the HCF is 2 and the LCM is 8, giving 16, while the product of all three numbers is 64.
Finding a Missing Expression
If the HCF, the LCM and one of the two expressions are known, the rule above gives the other expression. Suppose two expressions have HCF \( (x + 2) \) and LCM \( x(x + 2)(x - 3) \), and one of them is \( x(x + 2) \).
Step 1: Rearranging the rule, the other expression equals HCF × LCM divided by the known expression:
\[ \frac{(x + 2) \times x(x + 2)(x - 3)}{x(x + 2)} \]
Step 2: Cancelling \( x \) and \( (x + 2) \), which appear above and below the line:
\[ (x + 2)(x - 3) \]
Check: \( x(x + 2) \) and \( (x + 2)(x - 3) \) share the factor \( (x + 2) \), and their remaining factors are \( x \) and \( (x - 3) \). So their LCM is \( x(x + 2)(x - 3) \), exactly as given.
The LCM of Three Expressions
The LCM of three expressions is found the same way: factorise each one, sort the factors into common and remaining, and multiply. Let us find the LCM of \( (x - y)^2 + 4xy \), \( (x + y)^3 - 3xy(x + y) \) and \( x^2 + 2xy + y^2 \).
Step 1: Expanding the square in the first expression and collecting like terms:
\[ \begin{aligned} (x - y)^2 + 4xy &= x^2 - 2xy + y^2 + 4xy \\ &= x^2 + 2xy + y^2 \\ &= (x + y)(x + y) \end{aligned} \]
Step 2: Taking \( (x + y) \) out of both terms of the second expression:
\[ \begin{aligned} &(x + y)\{(x + y)^2 - 3xy\} \\ &= (x + y)(x^2 + 2xy + y^2 - 3xy) \\ &= (x + y)(x^2 - xy + y^2) \end{aligned} \]
Step 3: The third expression is a perfect square:
\[ x^2 + 2xy + y^2 = (x + y)(x + y) \]
Step 4: One \( (x + y) \) is in all three expressions. A second \( (x + y) \) is in the first and third, so it counts as common too. The common factors are \( (x + y)(x + y) \) and the remaining factor is \( (x^2 - xy + y^2) \), so the LCM is:
\[ (x + y)^2(x^2 - xy + y^2) \]
With three expressions, a factor shared by any two of them is still a common factor, even if the third does not have it.
A factor appears in the LCM as many times as it appears in the expression that has it most often. Above, no expression has \( (x + y) \) more than twice, so the LCM has \( (x + y)^2 \), not \( (x + y)^3 \) or \( (x + y)^5 \).
Worked Examples with Two Expressions
Example 1 (a): Find the LCM of \( a^3 - y^3 \) and \( a^4 + a^2y^2 + y^4 \), and show it on a Venn diagram.
Step 1: Factorising the first expression as a difference of cubes:
\[ a^3 - y^3 = (a - y)(a^2 + ay + y^2) \]
Step 2: Adding and subtracting \( 2a^2y^2 \) in the second expression:
\[ \begin{aligned} a^4 + a^2y^2 + y^4 &= (a^2 + y^2)^2 - a^2y^2 \\ &= (a^2 + y^2)^2 - (ay)^2 \\ &= (a^2 + ay + y^2)(a^2 - ay + y^2) \end{aligned} \]
Step 3: The common factor is \( (a^2 + ay + y^2) \) and the remaining factors are \( (a - y)(a^2 - ay + y^2) \), so the LCM is:
\[ (a - y)(a^2 + ay + y^2)(a^2 - ay + y^2) \]

Example 1 (b): Find the LCM of \( x^2 - y^2 - 2y - 1 \) and \( x^2 - 1 + 2xy + y^2 \).
Step 1: Grouping the last three terms of the first expression into a perfect square:
\[ \begin{aligned} &x^2 - (y^2 + 2y + 1) \\ &= x^2 - (y + 1)^2 \\ &= (x + y + 1)(x - y - 1) \end{aligned} \]
Step 2: Gathering \( x^2 + 2xy + y^2 \) together in the second expression:
\[ \begin{aligned} &(x^2 + 2xy + y^2) - 1 \\ &= (x + y)^2 - (1)^2 \\ &= (x + y + 1)(x + y - 1) \end{aligned} \]
Step 3: The common factor is \( (x + y + 1) \) and the remaining factors are \( (x - y - 1)(x + y - 1) \), so the LCM is:
\[ (x + y + 1)(x - y - 1)(x + y - 1) \]

Example 1 (c): Find the LCM of \( x^4 - 8xy^3 \) and \( 3x^2 - 5xy - 2y^2 \).
Step 1: Taking out \( x \) from the first expression, then using the difference of cubes:
\[ \begin{aligned} x^4 - 8xy^3 &= x\{(x)^3 - (2y)^3\} \\ &= x(x - 2y)(x^2 + 2xy + 4y^2) \end{aligned} \]
Step 2: Splitting the middle term \( -5xy \) into \( -6xy + xy \), because \( 3 \times (-2) = -6 \) and \( -6 + 1 = -5 \):
\[ \begin{aligned} &3x^2 - 6xy + xy - 2y^2 \\ &= 3x(x - 2y) + y(x - 2y) \\ &= (x - 2y)(3x + y) \end{aligned} \]
Step 3: The common factor is \( (x - 2y) \) and the remaining factors are \( x(x^2 + 2xy + 4y^2)(3x + y) \), so the LCM is:
\[ x(x - 2y)(3x + y)(x^2 + 2xy + 4y^2) \]

Worked Examples with Three Expressions
Example 2 (a): Find the LCM of \( (x^2 + xy + y^2)^3 \), \( x^3 - y^3 \) and \( x^4 + x^2y^2 + y^4 \).
Step 1: The first expression is one factor multiplied three times:
\[ (x^2 + xy + y^2)(x^2 + xy + y^2)(x^2 + xy + y^2) \]
Step 2: The second expression as a difference of cubes:
\[ x^3 - y^3 = (x - y)(x^2 + xy + y^2) \]
Step 3: Adding and subtracting \( 2x^2y^2 \) in the third expression:
\[ \begin{aligned} &(x^2 + y^2)^2 - (xy)^2 \\ &= (x^2 + xy + y^2)(x^2 - xy + y^2) \end{aligned} \]
Step 4: \( (x^2 + xy + y^2) \) is in all three and appears three times in the first, so the LCM carries it to the power 3. The remaining factors are \( (x - y) \) and \( (x^2 - xy + y^2) \). The LCM is:
\[ (x - y)(x^2 + xy + y^2)^3(x^2 - xy + y^2) \]
Example 2 (b): Find the LCM of \( 8x^3 + 125y^3 \), \( 4x^3 - 10x^2y + 25xy^2 \) and \( 16x^4 + 100x^2y^2 + 625y^4 \).
Step 1: The first expression is a sum of cubes, \( a^3 + b^3 = (a + b)(a^2 - ab + b^2) \):
\[ \begin{aligned} &(2x)^3 + (5y)^3 \\ &= (2x + 5y)(4x^2 - 10xy + 25y^2) \end{aligned} \]
Step 2: Taking out the common \( x \) from the second expression:
\[ x(4x^2 - 10xy + 25y^2) \]
Step 3: Adding and subtracting \( 2 \cdot 4x^2 \cdot 25y^2 = 200x^2y^2 \) in the third expression:
\[ \begin{aligned} &(4x^2 + 25y^2)^2 - 100x^2y^2 \\ &= (4x^2 + 25y^2)^2 - (10xy)^2 \\ &= (4x^2 + 10xy + 25y^2) \\ &\quad \times (4x^2 - 10xy + 25y^2) \end{aligned} \]
Step 4: \( (4x^2 - 10xy + 25y^2) \) is common to all three. The remaining factors are \( x \), \( (2x + 5y) \) and \( (4x^2 + 10xy + 25y^2) \). The LCM is:
\[ \begin{aligned} &x(2x + 5y)(4x^2 - 10xy + 25y^2) \\ &\times (4x^2 + 10xy + 25y^2) \end{aligned} \]
Example 2 (c): Find the LCM of \( 3y^3 + 14y^2 - 5y \), \( y^4 + 125y \) and \( y^5 + 25y^3 + 625y \).
Step 1: Taking out \( y \) from the first expression and splitting the middle term as \( 14y = 15y - y \):
\[ \begin{aligned} &y(3y^2 + 15y - y - 5) \\ &= y\{3y(y + 5) - 1(y + 5)\} \\ &= y(y + 5)(3y - 1) \end{aligned} \]
Step 2: Taking out \( y \) from the second expression and using the sum of cubes:
\[ \begin{aligned} y(y^3 + 125) &= y\{(y)^3 + (5)^3\} \\ &= y(y + 5)(y^2 - 5y + 25) \end{aligned} \]
Step 3: Taking out \( y \) from the third expression, then adding and subtracting \( 50y^2 \):
\[ \begin{aligned} &y(y^4 + 25y^2 + 625) \\ &= y\{(y^2 + 25)^2 - (5y)^2\} \\ &= y(y^2 + 5y + 25)(y^2 - 5y + 25) \end{aligned} \]
Step 4: \( y \) is common to all three, \( (y + 5) \) to the first and second, and \( (y^2 - 5y + 25) \) to the second and third. The remaining factors are \( (3y - 1) \) and \( (y^2 + 5y + 25) \). The LCM is:
\[ \begin{aligned} &y(y + 5)(3y - 1) \\ &\times (y^2 - 5y + 25)(y^2 + 5y + 25) \end{aligned} \]
Reading Expressions from a Venn Diagram
When a Venn diagram is given, you can work backwards. Multiplying everything in circle A gives the first expression, everything in circle B gives the second, and everything inside the two circles, each taken once, gives the LCM.

Step 1: Multiplying the factors in circle A, \( 5x \) and \( x + y \), gives the first expression:
\[ 5x(x + y) = 5x^2 + 5xy \]
Step 2: Multiplying the factors in circle B, \( x + y \) and \( 2x - y \), gives the second expression:
\[ (x + y)(2x - y) = 2x^2 + xy - y^2 \]
Step 3: Multiplying the factors from all three regions, each once, gives the LCM:
\[ 5x(x + y)(2x - y) \]
The full lesson is waiting for you
The notes are free to read in full. A free account opens the rest of the practice, and tracks your progress and confidence score for every subject. Presentations and videos need approval from Learn Yeti.