Verify the triple angle formula Verify the triple angle formula
$$\tan(3x) = \frac{3 \tan(x) − \tan^3(x)}{1 − 3 \tan^2(x)}$$
I have tried simplifying the right side by the following
$$\tan(3x) = \frac{\tan(x)(3 − \tan^2(x))}{1 − 3 \tan^2(x)}$$
but then I am getting stuck trying to verify the equation

$$\tan 3x =\tan(x+2x)=  \frac{\tan x + \tan 2x}{1 − \tan x \tan 2x}=$$
$$=\frac{\tan x + \frac{2\tan x}{1-\tan^2x}}{1 − \tan x \frac{2\tan x}{1-\tan^2x}}=\frac{3\tan x- \tan ^3x}{1-3\tan^2x}$$
