Ordinary Differential Equation (quick question about a step in the process)

Looking through my notes for a maths exam tomorrow I can't figure out the jump from one step to another:

The original question is Solve:

$\displaystyle \frac{dy}{dx}-y=x^2e^2x$

now further down the steps I can't figure out how it jumps from:

$\displaystyle \frac{1}{x}\frac{dy}{dx}-\frac{1}{x^2}y=e^2x$

to

$\displaystyle \frac{d}{dx}(y\frac{1}{x})=e^2x$

What I want to know is how you get from the $\displaystyle \frac{dy}{dx}$ to the $\displaystyle \frac{d}{dx}$ and what happens to the $\displaystyle \frac{-1}{x^2}y$

Thanks