Given the equation:
$$\left(x - 1\right) \left(\left(x^{2} - 5 x\right) + 4\right) = 0$$
Because the right side of the equation is zero, then the solution of the equation is exists if at least one of the multipliers in the left side of the equation equal to zero.
We get the equations
$$x - 1 = 0$$
$$x^{2} - 5 x + 4 = 0$$
solve the resulting equation:
1.
$$x - 1 = 0$$
Move free summands (without x)
from left part to right part, we given:
$$x = 1$$
We get the answer: x1 = 1
2.
$$x^{2} - 5 x + 4 = 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:
$$x_{2} = \frac{\sqrt{D} - b}{2 a}$$
$$x_{3} = \frac{- \sqrt{D} - b}{2 a}$$
where D = b^2 - 4*a*c - it is the discriminant.
Because
$$a = 1$$
$$b = -5$$
$$c = 4$$
, then
D = b^2 - 4 * a * c =
(-5)^2 - 4 * (1) * (4) = 9
Because D > 0, then the equation has two roots.
x2 = (-b + sqrt(D)) / (2*a)
x3 = (-b - sqrt(D)) / (2*a)
or
$$x_{2} = 4$$
$$x_{3} = 1$$
The final answer:
$$x_{1} = 1$$
$$x_{2} = 4$$
$$x_{3} = 1$$