Suppose I am given the curve $f(x,y)=\frac{x^2}{p^2}+\frac{y^2}{q^2}=1$. I want to write down explicitly an equation that parametrizes all tangent lines to this ellipse. In this question, the answers freely use the fact that the equation of any tangent line at a point $(x_0,y_0)$ of the ellipse can be written as $$\frac{x}{p^2}x_0+\frac{y}{q^2}y_0=1\space\text{or}\space\frac{x}{p^2}\left(p\cos(t)\right)+\frac{y}{q^2}q\sin(t)=1$$
Why is this?