Why isn't the graph of $\ln(\tan(x^2))$ same as that of $2\ln(\tan(x))$, when they should be according to the power rule?

397 Views Asked by At

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.

2

There are 2 best solutions below

7
On

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$)

enter image description here

enter image description here

0
On

It's because the identity $\log x^n = n \log x$ holds only for $x > 0$.

Thus, here we must have $\tan x > 0$, or $x \in (0, \frac \pi 2) \mod \pi$