Recently, I was trying to graph the function $\ln(\tan(x^2))$ without derivatives or any calculator whatsoever. To get the answer, I used the graphing software Desmos, and was playing around when I saw that the graphs of $\ln(\tan(x^2))$ and $2\ln(\tan(x))$ are not the same. This goes against what I learned in high school, of the power rule property of $\ln$ and $\log$. Maybe it's a stupid question, I feel it is, but I can't see why and it is gnawing at me. Please explain. This is my first post, sorry if it's not properly formatted.
Note that $\tan(x^2) \neq (\tan x)^2$, and so $$\ln((\tan x)^2) =2\ln(\tan x)$$ but $$\ln(\tan (x^2)) \neq 2\ln(\tan x)$$
Edit: As noted in the other answer, you have to check the domain. Here's what I got when I tried Desmos: (they overlap when $x\in (0,\pi/2)$ mod $\pi$)