Focus: (3,5)
Directrix: $y=-x-1$
I'm comfortable with questions where the directrix is simply $y=3$ or something that is constant (i.e. a horizontal line).
I know that I need to find the distance between a general point (x,y) and (3,5) as well as the distance between (x,y) and the line $y=-x-1$
The distance between (x,y) and (3,5) is $\sqrt{(x-3)^2+(y-5)^2}$
I see online that the formula for the distance from a line to a point is given by
$\frac{|Ax+By+C|}{\sqrt{A^2+B^2}}$
I want to know if there is some easier way for me to calculate this distance? Do I just need to memorize this?
Also, using this formula, is my calculation correct?
Distance from $(x,y)$ to $y=-x-1$:
$$x+y+1=0$$
$$ \frac{|x+y+1|}{\sqrt{1^2+1^2}}$$
$$\sqrt{(x-3)^2+(y-5)^2} = \frac{|x+y+1|}{\sqrt{2}}$$
$$(x-3)^2+(y-5)^2=\frac{(x+y+1)^2}{2}$$
Then from here I just expand everything out and solve for $x$:
$$2(x^2-6x+9+y^2-10y+25)=x^2+y^2+2xy+2x+2y+1$$
$$2x^2+2y^2-12x-20y+68=x^2+y^2+2xy+2x+2y+1$$
$$x^2=-67+14x+22y+2xy-y^2$$
Not exactly sure what to do from here?