How to correctly compute tangential angle of polynomial?

165 Views Asked by At

I would like to compute the tangential angle of a polynomial $f(x)$ as shown in this picture:

enter image description here

Here the red line represents $f(x)$.

According to this site of Wikipedia I can compute the tangential angle as follows

$\varphi = \arctan(f'(x))$

When I try to derive the equation for the tangential angle I end up with the following equation

$\varphi = \arctan(\frac{f(x)}{x})$

Which one is correct?