3
$\begingroup$

I have a line function that is $y = x + 4$ and I want to find the point on that line that is closest to the point $(1,1)$.

Here is my attempt. $y = x + 4$ so that means $(x, x + 4)$ should be my initial point and $(1,1)$ will be my final point.

I assume I'll need to make use of the distance formula so $\sqrt[2]{(1-x)^2 + (-x-3)^2}$

This is where I'm stuck. I think I need to take the derivative of it, but when I do, I come out with $\frac{1}{2}(4x + 10)^\frac{-1}{2}$ which doesn't seem right especially if I want to set it to $0$.

  • 0
    @Mike I assumed it could be; however, this is practice for an exam I have in calculus. I don't think the teacher would give credit if I used geometry to solve it on the test.2012-11-28

2 Answers 2

4

Hint: Minimizing the distance is equivalent to minimizing the square of the distance. Remove that square root sign. You get a harmless quadratic.

So I would write "equivalently, we minimize the square of the distance $\dots$. "

The calculation can be done without removing the square root sign, but the probability of mechanical error increases markedly.

  • 0
    On my paper I do that part in two steps. First step is the one I have in my post and second step is like the one you just posted (making x first and dividing out the negatives). I'll keep in mind for my next post to just post my second step instead. Thanks for the help!2012-11-28
3

If you expand under the square root, you should get $2x^2+4x+10$. It looks like you canceled the $x^2$ terms, but they are both positive. Then you need the derivative of this in the numerator from the chain rule.

  • 1
    @StrugglingWithMath: That is right. The denominator of the derivative doesn't matter when you set the derivative to zero, and the numerator is $4x+4$. A check is that the the line from your point to $(1,1)$ should be perpendicular to the given $y=x+4$, which it is.2012-11-28