The question is: a line $x \cos\theta + y\sin\theta = p$ is given such that $a^2\cos^2\theta - b^2\sin^2\theta =p^2$.
I have to prove that it touches a hyperbola $\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1$. I do not see how to proceed. I thought I could proceed by eliminating $p$ by squaring the line equation and equate both but I don't get an idea what to do next. What do I need to show to prove that it touches that hyperbola?