Maths WorkshopMaths problems with full solutions
Exercise 1109Algebra › PolynomialsL1Added 3 Nov 2026

Composition of polynomials

#composition#polynomials#degree

Statement

Let P(X)=X2+1P(X)=X^2+1 and Q(X)=X−2Q(X)=X-2. Compute P∘QP\circ Q and Q∘PQ\circ P, and check whether P∘Q=Q∘PP\circ Q=Q\circ P.

Hint

P∘Q=P(Q(X))P\circ Q=P(Q(X)).

Show solutionHide solution

Solution

P∘QP\circ Q. P(Q(X))=(X−2)2+1=X2−4X+5P(Q(X))=(X-2)^2+1=X^2-4X+5.

Q∘PQ\circ P. Q(P(X))=(X2+1)−2=X2−1Q(P(X))=(X^2+1)-2=X^2-1.

Conclusion. P∘Q=X2−4X+5P\circ Q=X^2-4X+5 and Q∘P=X2−1Q\circ P=X^2-1. They are different: composition of polynomials is not commutative.

Remark. deg⁡(P∘Q)=deg⁡P⋅deg⁡Q=2⋅1=2\deg(P\circ Q)=\deg P\cdot\deg Q=2\cdot1=2, consistent with the results.