The answers are truly ugly . . . but they check out!
I'll baby-talk through this for you . . .
. . Then: .
So is in a right triangle with: .
Then  becomes: . .
We need this identity: .
Take the tangent of both sides of :
So we have: .
. . which simplifies to: .