If N(p, alpha)N(p,α) is the foot of the perpendicular to the straight line
from the pole r = 0 and P(r, theta)P(r,θ) on the line, the equation to the
line is
r=psec(theta-alpha)r=psec(θ−α),
using the projection OPcos anglePON=ONOPcos∠PON=ON.
In cartesian form, this is
xcos alpha + y sin alpha = pxcosα+ysinα=p
Here, p = 9/sqrt2 and alpha = pi/4p=9√2andα=π4, and so, the equations are
r = 9/sqrt2 sec(theta-pi/4)r=9√2sec(θ−π4) and
x/sqrt2+y/sqrt2=9/sqrt2x√2+y√2=9√2.
However, directly ( ignoring all these relevant details, about the
polar form )
x+ y = r(cos theta+sin theta)=9x+y=r(cosθ+sinθ)=9. Simplifying for explicit r
r =9/sqrt2sec(theta-pi/4)=9/sqrt2csc(theta+pi/4)r=9√2sec(θ−π4)=9√2csc(θ+π4)