1

I am trying to figure out a general formula for getting the product of two degree-2 polynomials.

For example, I have $ax^2+bx+c$ and want to multiply it by $dx^2+ex+f$ where all variables are constants except for $x$. What would be the product of these two polynomials?

I tried computing the general formula, but I don't believe I got the correct answer. Thanks for your help!

What I got was $adx^4 + (ae+bd)x^3 + (af+be+cd)x^2 + (ce+bf)x + cf$.

Ben West
  • 12,366
Logan
  • 245

2 Answers2

2

$$(a_{_2}x^2+a_{_1}x+a_{_0})\cdot(b_{_2}x^2+b_{_1}x+b_{_0})=\sum_{k=0}^4\sum a_i\cdot b_{k-i}\cdot x^k$$

Lucian
  • 48,334
  • 2
  • 83
  • 154
1

We have $$(ax^2+bx+c)(dx^2+ex+f)=ax^2(dx^2+ex+f)+bx(dx^2+ex+f)+c(dx^2+ex+f).$$ Do the multiplications mentioned on the right. We get $$(adx^4+aex^3+afx^2)+(bdx^3+bex^2+bfx)+(cdx^2+cex+cf).$$ Now gather like powers of $x$ together. We get $$adx^4+(ae+bd)x^3+(af+be+cd)x^2+(bf+ce)x+cf.$$

Added: The answer you added is correct.

André Nicolas
  • 507,029