$\frac13\tan^3x-\tan x+x$
I solved it and got $\frac13\cdot3\tan x-\sec^2x+1$ by using chain rule.
I got $\tan x+\tan^3x-\tan^2x$.
The answer is $\tan^4x$. I am not able to get this.
$\frac13\tan^3x-\tan x+x$
I solved it and got $\frac13\cdot3\tan x-\sec^2x+1$ by using chain rule.
I got $\tan x+\tan^3x-\tan^2x$.
The answer is $\tan^4x$. I am not able to get this.
You forgot to multiply the first term by $\sec^2x$… $$\frac d{dx}=\tan^2x(1+\tan^2x)-(1+\tan^2x)+1=\tan^4x$$