Given the equation 3x+1=x−1 3x+1=x−1 We raise the equation sides to 2-th degree 3x+1=(x−1)2 3x+1=x2−2x+1 Transfer the right side of the equation left part with negative sign −x2+5x=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=5 c=0 , then
D = b^2 - 4 * a * c =
(5)^2 - 4 * (-1) * (0) = 25
Because D > 0, then the equation has two roots.
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
or x1=0 x2=5
Because 3x+1=x−1 and 3x+1≥0 then x−1≥0 or 1≤x x<∞ The final answer: x2=5