so I have this Polar Coordinates Homework Problem, and I don't know really know how to start/prove it. The problem goes as follows:
Let $f$ be a differentiable function, and let $P$ be the point $(\theta,f(\theta))$ on the polar graph of $r = f(\theta).$ Let $\alpha$ be the angle between the tangent line to the graph at $P,$ and the line $OP,$ where $O$ is the origin. Assuming that $f'(\theta) \neq 0,$ show that
$\tan\alpha=\frac{f(\theta)}{f'(\theta)}$

From what I've understood from this problem, if I extended a tangent line to P all the way to the x-axis, and called that point Q, I make $\angle PQO=\pi-\theta-\alpha,$ beyond that, I am lost.

The slope of the tangent line is $ \dfrac{dy}{dx} $ and we have
$ \dfrac{dy}{dy} = \dfrac{ \dfrac{dy}{d \theta} }{ \dfrac{dx}{d \theta}} $
Now, $ x = f(\theta) \cos \theta $ , so
$ \dfrac{dx}{d \theta} = f'(\theta) \cos \theta - f(\theta) \sin \theta $
and $ y = f(\theta) \sin \theta $, therefore,
$ \dfrac{ dy } {d \theta } = f'(\theta) \sin \theta + f(\theta) \cos \theta $
Hence,
$ \dfrac{dy}{dx} = \dfrac{f'(\theta) \sin \theta + f(\theta) \cos \theta }{f'(\theta) \cos \theta - f(\theta) \sin \theta} $
Dividing by $ \cos \theta $ top and bottom,
$ m_1 = \dfrac{dy}{dx} = \dfrac{ f'(\theta) \tan \theta + f( \theta) } { f'(\theta) - f(\theta) \tan \theta } $
This is the slope of the tangent line, and $m_2 = \tan \theta $ is the slope of $OP$
Hence, the tangent of the angle between the two lines is given by
$\tan \alpha = \dfrac{m_1-m_2}{1 + m_1 m_2 } $
$ \tan \alpha = \dfrac{ f'(\theta) m_2 + f(\theta) - m_2 (f'(\theta) - m_2 f(\theta) } { (f'(\theta) - m_2 f(\theta)) + m_2 (f'(\theta) m_2 + f(\theta) ) }$
Simplifying,
$ \tan \alpha = \dfrac{ (1 + m_2^2) f(\theta) }{(1 + m_2^2) f'(\theta)} = \dfrac{f(\theta)}{f'(\theta) } $