by direct calculation of the tangent line, e.g.
or by making use of the angle complementary to theta, e.g.
Other problem solutions