Given the equation 3x+1=9−x 3x+1=9−x We raise the equation sides to 2-th degree 3x+1=(9−x)2 3x+1=x2−18x+81 Transfer the right side of the equation left part with negative sign −x2+21x−80=0 This equation is of the form
a*x^2 + b*x + c = 0
A quadratic equation can be solved using the discriminant. The roots of the quadratic equation: x1=2aD−b x2=2a−D−b where D = b^2 - 4*a*c - it is the discriminant. Because a=−1 b=21 c=−80 , then
D = b^2 - 4 * a * c =
(21)^2 - 4 * (-1) * (-80) = 121
Because D > 0, then the equation has two roots.
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
or x1=5 x2=16
Because 3x+1=9−x and 3x+1≥0 then 9−x≥0 or x≤9 −∞<x The final answer: x1=5