Law of tangents is a less known formula when compared with Laws of sines and cosines. Law of tangents establishes a ratio relationship between the sum and difference of two sides of a triangle to the tangents of half the sum and differences of the angles opposite to the sides. It can also be used to solve triangles when two sides and the included angle are given. Thus in SAS situations, Law of tangents can be used instead of Law of cosines. Like laws of sines and cosines law of tangents is also used in proving identities related to the measures of a triangle.
The law of tangents for the ΔABC consists of three formulas as follows:

1. $\frac{a+b}{a-b}$ = $\frac{tan\frac{A+B}{2}}{tan\frac{A-B}{2}}$

2. $\frac{b+c}{b-c}$ = $\frac{tan\frac{B+C}{2}}{tan\frac{B-C}{2}}$

3. $\frac{c+a}{c-a}$ = $\frac{tan\frac{C+A}{2}}{tan\frac{C-A}{2}}$

Where a, b and c are the three sides of a triangle. And A, B and C are angle opposite to these sides.

Let us look into the proof of law of tangents and solve few problems using this property.

The law of tangents is proved using sine rule and sine sum and difference rules.
The Law of sines states that in any triangle the measure of a side bears a constant ratio to the sine of the angle opposite to it. Thus we have,

$\frac{a}{sinA}$ = $\frac{b}{sinB}$ = $\frac{c}{sinC}$ = k

Thus we have a = k.sin A, b = k.sin B and c = k.sin C.
The Law of tangents states

$\frac{a+b}{a-b}$ = $\frac{tan\frac{A+B}{2}}{tan\frac{A-B}{2}}$
Considering the left side of identity,

$\frac{a+b}{a-b}$ = $\frac{ksinA+ ksinB}{ksinA-ksinC}$ Applying law of sines

= $\frac{k(sinA+sinB)}{k(sinA-sinB)}$ Common factor taken out

= $\frac{sinA+sinB}{sinA-sinB}$

= $\frac{2sin(\frac{A+B}{2})cos(\frac{A-B}{2})}{2cos(\frac{A+B}{2})sin(\frac{A-B}{2})}$ Sum and difference laws for sine function.

= $\frac{tan(\frac{A+B}{2})}{tan(\frac{A-B}{2})}$ Simplified using Quotient identities

= Right side of the identity.

The other two versions can also be proved considering the corresponding ratios and using the related sum and difference formulas.

It is sufficient to remember one of the formulas. The other two can be suitably got by replacing the sides and angles in a symmetrical order.