\(x^2-5x+4=0\Rightarrow\left(x^2-x\right)-\left(4x-4\right)=0\)\(\Rightarrow x\left(x-1\right)-4\left(x-1\right)=0\Rightarrow\left(x-1\right)\left(x-4\right)=0\)
\(\Rightarrow\orbr{\begin{cases}x-1=0\\x-4=0\end{cases}\Rightarrow}\orbr{\begin{cases}x=1\\x=4\end{cases}}\)
Vậy x=1 hoặc x=4