<s>[INST] Prove the following equality in a triangle 
If $A,B,C$ are angles of a triangle then prove that $$\frac{\operatorname{tan}A}{\operatorname{tan}B}=\frac{c^2+a^2-b^2}{c^2+b^2-a^2}$$ where $\angle A$ is opposite to side $a$ , $\angle B$ to side $b$ and $\angle C$ to side $c$.

I wasn't having a clue of proceeding. So, I applied another method. If the above expression is true then this expression must also be true $$\frac{\operatorname{tan}A+\operatorname{tan}B}{\operatorname{tan}A-\operatorname{tan}B}=\frac{c^2+a^2-b^2+c^2+b^2-a^2}{c^2+a^2-b^2-c^2-b^2+a^2}$$ $$\frac{\operatorname{tan}A+\operatorname{tan}B}{\operatorname{tan}A-\operatorname{tan}B}=\frac{c^2}{a^2-b^2}$$ Now, I am stuck here.
I applied sine rule and got the result $$\frac{c^2+a^2-b^2}{c^2+b^2-a^2}=\frac{\operatorname{sin}^2C+\operatorname{sin}^2A-\operatorname{sin}^2B}{\operatorname{sin}^2C+\operatorname{sin}^2B-\operatorname{sin}^2A}$$
Any help is greatly appreciated.
 [/INST] Use the sine and cosine rules: $$\tan A =\frac{\sin A}{\cos A}, \tan B=\frac{\sin B}{\cos B}$$
$$\text{Sine Rule:}\quad \sin A=\frac{a}{2R}, \sin B=\frac{b}{2R}$$
$$\text{Cosine Rule:}\quad \cos A=\frac{c^2+b^2-a^2}{2bc}, \cos B=\frac{c^2+a^2-b^2}{2ac}$$
Thus, $$\tan A=\frac{abc}{R}\frac{1}{c^2+b^2-a^2}, \tan B= \frac{abc}{R}\frac{1}{c^2+a^2-b^2} $$ Divide. Hence proved.
</s>