simplify and factor if necessary

Hello there today we will solve your problem, we will need to factorize btw...
[tex]{\huge{\boxed{\mathfrak{Equation}}}[/tex]
[tex]{\big{\boxed{\frac{x^2-5x+4}{x^2-4x}}}}[/tex]
First we will factor [tex]x^2-5x+4[/tex], which gives us [tex]\left(x-1\right)\left(x-4\right)[/tex]
[tex]\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\frac{\left(x-1\right)\left(x-4\right)}{x^2-4x}\\[/tex]
factorize [tex]x^2-4x[/tex] giving us [tex]x\left(x-4\right)[/tex]
[tex]\frac{\left(x-1\right)\left(x-4\right)}{x\left(x-4\right)}[/tex]
cancel the common factor [tex]x-4[/tex]
and we get [tex]\frac{x-1}{x}[/tex]