The proof takes a long way around, so let me be straightforward.
Pre-required knowledge:-

The tangent ratio in two other ratios.

The reciprocal relation. It is not defined for the zero value.
The problem requires the form in
.



So, this is how it is done.