How do I prove the identities of these questions?
$$ \frac{1+\tan^2 u}{1-\tan^2u}= \frac{1}{\cos^2u-\sin^2u} \tag1 \\ $$ $$ \frac{\sin x + \sin(5x)}{\cos x+\cos(5x)} = \tan(3x) \tag2 $$
Do I substitute the value for the sin or tan first when solving this? I'm confused.
You will need two facts, first the definition of tangent, second main trigonometric identity: $$ \tan x= \frac{\sin x}{\cos x} \\ \sin^2x + \cos^2x = 1 $$
Using that you may transform $(1)$ as: $$ \frac{1+\tan^2u}{1-\tan^2u} = \frac{1+\frac{\sin^2u}{\cos^2u}}{1-\frac{\sin^2u}{\cos^2u}} =\\ = \frac{\frac{\cos^2u + \sin^2u}{\cos^2u}}{\frac{\cos^2u - \sin^2u}{\cos^2u}} = \frac{1}{\cos^2u} \cdot \frac{\cos^2u}{\cos^2u-\sin^2u} = \frac{1}{\cos^2u-\sin^2u} $$
The original $(2)$ which is: $$ \sin x + \frac{\sin 5x}{\cos x + \cos 5x} = \tan 3x $$ is false as shown in another answer (take $x={\pi \over 4}$ for instance). Here is a visualization of LHS and RHS