I want mathematica to factor the quadratic polynomial $a x^2 +b x +c$ into this standard form $a(x-r_1)(x-r_2)$ with $r_1=-\frac{b}{2a}+\frac{\sqrt{b^2-4ac}}{2a}$ and $r_2=-\frac{b}{2a}-\frac{\sqrt{b^2-4ac}}{2a}$. I tried Factor and its Extension option but I could not get anyting.
Asked
Active
Viewed 316 times
0
J. M.'s missing motivation
- 124,525
- 11
- 401
- 574
Hosein Rahnama
- 1,727
- 1
- 15
- 29
1 Answers
1
a Times @@ (y - # & /@ (x /. Solve[a x^2 + b x + c == 0, x]))
David G. Stork
- 41,180
- 3
- 34
- 96
-
(+1) Thanks. :) But, why they really made
Factor? :D Also, you missed the coefficient $a$. :) – Hosein Rahnama Mar 07 '18 at 17:13 -
1@H.R. This is similar to https://mathematica.stackexchange.com/a/8258/4999 – Michael E2 Mar 07 '18 at 17:28
-
@MichaelE2: Yes, you are right. I just saw that before you mentioned. :) Thanks by the way. :) – Hosein Rahnama Mar 07 '18 at 17:33
factorCompletely[a x^2 + b x + c, x]from Daniel's answer to the question @Artes linked. – Michael E2 Mar 07 '18 at 17:29