hi guys can you please help me with this:

b) if f(x) = |sin(x)|, find f'(x) and sketch the graphs of f and f'. Where is f not differentiable?you don't have to worry about the graphing part.

a website said that the derivative is:

$\displaystyle \frac{cos(x)sin(x)}{|sin(x)|} $

can someone tell me how to get to that, if that's correct? I understand the rule is x/|x| right? Along with chain rule?

there's also this one:

c) If g(x) = sin|x|, find g'(x) and sketch the graphs of g and g'. Where is f not differentiable.

the same website said g' is $\displaystyle \frac{xcos|x|}{|x|} $.

How do I get there?