Problem:
Differentiate with respect to $x$: $\sin^2(\ln(x^2))$
My book's solution:
$$\frac{d}{dx}(\sin^2(\ln(x^2)))$$
$$2\sin\ln x^2.\cos\ln x^2.\frac{1}{x^2}.2x$$
$$\frac{2}{x}\sin(2\ln x^2)$$
$$\frac{2}{x}\sin(4\ln x)\tag{1}$$
Question:
- Isn't $(1)$ wrong: $x$ could be a negative number, and then we wouldn't be able to apply logarithm properties?