Hey MHF, today in class we took Melloweid's formula, then the teacher gave us this equation and only two students were able to solve it

I'm 100% sure I'm going to have to use Melloweid's formula to derive it.

Law of Tangents For any triangle, derive the Law of Tangents.

Any ideas?

Thanks