Expand and write as a polynomial in :
Choose an order that keeps the arithmetic manageable. A triple product is best done as two multiplications, not one. Multiply the two brackets that share the coefficient first, then distribute the third bracket over the resulting quadratic. Predict the shape too: three linear factors give a cubic, with leading coefficient , which is negative.
Multiply the first two brackets with FOIL.
so
Adding the two constants before multiplying by saves a step and a rounding risk.
Distribute the from the third bracket.
Distribute the from the third bracket. Each power of goes up by one:
Collect like terms. The two pieces and the two pieces combine:
giving
Check the two easiest coefficients exactly. The constant term must be the product of the constants, ✓, and the leading coefficient must be ✓. Both endpoints of the polynomial match, which is the fastest audit of a long expansion.
Need to solve a different problem like this? Open the solver →