Formula used: tan2θ=1−tan2θ2tanθ, applied first with θ=2x and then with θ=x.
LHS=tan4x=tan2(2x)
=1−tan22x2tan2x
Now put tan2x=1−tan2x2tanx.
=1−(1−tan2x2tanx)22×1−tan2x2tanx
=(1−tan2x)2(1−tan2x)2−4tan2x1−tan2x4tanx
=1−tan2x4tanx×(1−tan2x)2−4tan2x(1−tan2x)2
=1−2tan2x+tan4x−4tan2x4tanx(1−tan2x)
=1−6tan2x+tan4x4tanx(1−tan2x)=RHS
∴ LHS = RHS. Hence proved.