a. Given a cubic function, \(f(x)=ax^3+bx^2+cx+d\), determine the formulas for the sum and product of the roots of the equation \(f(x)=0\) in terms of \(a\), \(b\), \(c\), and \(d\).
Solution
a. Let \(r_1\), \(r_2\), and \(r_3\) be the three roots of the equation \(ax^3+bx^2+cx+d=0\).
Then, \(0=\left(x-r_1\right)\left(x-r_2\right)\left(x-r_3\right)\). Expanding and simplifying, we get
\(=\left(x - r_1\right)\left(x - r_2\right)\left(x - r_3\right)\)
\(=\left(x^2 - r_2x - r_1x + r_1r_2\right)\left(x - r_3\right)\)
\(=\left(x^2 - \left(r_1 + r_2\right)x + r_1r_2\right)\left(x - r_3\right)\)
\(=\left(x^3 - r_3x^2 -\left(r_1 + r_2\right)x^2 + r_3\left(r_1 + r_2\right)x + r_1r_2x - r_1r_2r_3\right)\)
\(=x^3 - \left(r_1 + r_2 + r_3\right)x^2 + \left(r_1r_2 + r_2r_3 + r_1r_3\right)x - r_1r_2r_3\)
Express \(ax^3+bx^2+cx+d=0\) with a leading coefficient of \(1\).
\(x^3+\frac{b}{a}x^2+\frac{c}{a}x+\frac{d}{a}=0\), since \(a\neq0\)