##### Question 11.3.7

I want to find the shortest distance between a point $(p,q)$ and the line $ax + by + c = 0$ (The reason we’re using this equation for a line and not $y=mx+c$ is that the formula happens to come out more neatly this way.) You could imagine yourself standing at the point, with the line as a fence you want to walk to. It doesn’t matter where on the fence you end up, but you want to walk to the closest part. For an extra challenge, try working out a formula for this shortest distance without reading through the following questions.

1. You will of course walk in a straight line towards the fence, but what straight line would be the shortest? What’s special about this line? Show hint

2. Now we have to work out how to use all the information we have to write some equations. We could make variables for the coordinates of the closest point on the line. Another good approach would be to shift everything so that $(p,q)$ ends up at the origin, and shift the line by the same amount (it would become $a(x+p) + b(y+q) + c=0$). But what I’ve chosen to do is work in terms of the changes in the coordinates, $\Delta x$ and $\Delta y$, as we move from the point to the line. What does your answer to the last question tell you about $\Delta x$ and $\Delta y$? Show hint

3. What does the equation of the line tell us about $\Delta x$ and $\Delta y$? Show hint

4. Find $\Delta x$ and $\Delta y$. Show hint

5. Show that $d = \frac{\abs{ap+bq+c}}{\sqrt{a^2 + b^2}}$ Show answer