Could you differentiate $|\sin x|$ and give the points where the derivative doesn't exist?
I have only so far tried to analyze it using the graph, from 0 to $\pi$ is $\cos x$. But from $\pi$ to $2\pi$ $\sin x$ will be on the positive side and it'd be given by the derivative of $\cos x$ too. Anyways I am confused and need help. Is there a better way of doing this?
You can take the derivative using the chain rule. $\frac{d}{dx}f(g(x)) = f'(g(x))*g'(x)$. $f(x) = |x|$ and $g(x) = \text{sin}(x)$. The derivative of $|x| = \text{sign}(x)$ so $f'(g(x)) = \text{sign}(\text{sin}(x))$ and $g'(x) = \text{cos}(x)$. Therefore the full derivative is $$\text{sign}(\text{sin}(x))*\text{cos}(x)$$Because the $\text{sign}(x)$ makes all negative numbers $-1$ and all positive numbers $1$, $\text{sign}(\text{sin}(x))$ makes a repeating wave of positive and negative numbers. The positive numbers will follow a pattern from $0$ to $\pi$, $2\pi$ to $3\pi$ and etc. The negative numbers will go from $\pi$ to $2\pi$, $3\pi$ to $4\pi$ and etc. When you multiply the $-1$ from the $\text{sign}(x)$ by the corresponding parts of the $\text{cos}(x)$, that will give you the discontinuities.