find the critical points of $\displaystyle f(x)= 5sin^2x$ on $\displaystyle [0,\pi]$

$\displaystyle f'= 10sinxcosx$

I have a question when i get to this part.

$\displaystyle 10sinxcosx=0$

When I set to zero, do I break into part then mutlipy the inverses of both sides?

10sin = 0 and cosx=0