Example — GCD and LCM with factorisation

Calculate the GCD and LCM of P1=2x3+3x22x3P_1 = 2x^3+3x^2-2x-3 and P2=x4+2x23P_2 = x^4+2x^2-3.

Factorisation of P1P_1 (partial grouping):

2x^3+3x^2-2x-3 &= x^2(2x+3) - (2x+3) \\ &= (x^2-1)(2x+3) = \boxed{(x-1)(x+1)(2x+3)} \end{aligned}$$ **Factorisation of $P_2$** (substitution $t=x^2$): $$\begin{aligned} x^4+2x^2-3 &= t^2+2t-3 = (t-1)(t+3) \\ &= (x^2-1)(x^2+3) = \boxed{(x-1)(x+1)(x^2+3)} \end{aligned}$$

Observation

x2+3x^2+3 is irreducible in R\mathbb{R}: it is always positive, so it has no real roots.

Comparing the factors of the two polynomials:

(x1)(x-1)(x+1)(x+1)(2x+3)(2x+3)(x2+3)(x^2+3)
P1P_1
P2P_2
GCD
LCM

The GCD collects the common factors, the LCM all the factors: MCD=(x1)(x+1),mcm=(x1)(x+1)(2x+3)(x2+3)\text{MCD} = \boxed{(x-1)(x+1)}, \qquad \text{mcm} = \boxed{(x-1)(x+1)(2x+3)(x^2+3)}

Topics: Algebraic calculation
Concepts: GCD · LCM · Irreducible polynomial · Factorisation
Skills: Calculating · Factorising