PaulKraemer
New member
- Joined
- Apr 10, 2011
- Messages
- 45
Hi,
I am stuck on the following:
Use the First Derivative Test to prove that the shortest distance from a point (x1, y1) to the line ax + by + c = 0 is given by:
d = |ax1 + by1 + c| / sqrt (a^2 + b^2)
What I've done so far is:
(1) I figured the distance sqared between any point (x1, y1) and a point (x, y) on the line is given by:
d^2 = x^2 - 2xx1 + x1^2 + y^2 - 2yy1 + y1^2
(2) Rearranging ax + by + c = 0, I came up with:
y = (-a/b)x - c/b
(3) I substituted the forumula for y in (2) into the formula for d^2 in (1)
d^2 = x^2 - 2xx1 + x1^2 + (a^2/b^2)x^2 + 2acx/b^2 + c^2/b^2 + 2axy1/b + 2cy1/b + y1^2
(4) I took the derivative of the d^2 formula from (3) (assuming that minimizing d^2 is the same as minimizing d) (and treating x1, y1, a, b, and c as constants)
(d^2)' = 2x - 2x1 + (2a^2/b^2)x + 2ac/b^2 + 2ay1/b
(5) I set the formula for (d^2)' = 0 and solved for x. I got:
x = [(b^2)x1 - ac - aby1] / (b^2 + x^2)
(6) Now I have the formula for a critical number. To use the first derivative test to prove that this was a minimum, I would have to show that for values of x < this critical number, d^2 is negative and for values of x > this critical number, d^2 is positive. After determining that this critical number is a minimum, I would have to plug the formula for x that I got in (5) into the formula for d^2 that I got in (1), and then I would have to take the square root to get d.
Compared to the other problems in this chapter, this seems very complicated. I was wondering if anyone could tell me if I've gone wrong somewhere.
Thanks in advance,
Paul
I am stuck on the following:
Use the First Derivative Test to prove that the shortest distance from a point (x1, y1) to the line ax + by + c = 0 is given by:
d = |ax1 + by1 + c| / sqrt (a^2 + b^2)
What I've done so far is:
(1) I figured the distance sqared between any point (x1, y1) and a point (x, y) on the line is given by:
d^2 = x^2 - 2xx1 + x1^2 + y^2 - 2yy1 + y1^2
(2) Rearranging ax + by + c = 0, I came up with:
y = (-a/b)x - c/b
(3) I substituted the forumula for y in (2) into the formula for d^2 in (1)
d^2 = x^2 - 2xx1 + x1^2 + (a^2/b^2)x^2 + 2acx/b^2 + c^2/b^2 + 2axy1/b + 2cy1/b + y1^2
(4) I took the derivative of the d^2 formula from (3) (assuming that minimizing d^2 is the same as minimizing d) (and treating x1, y1, a, b, and c as constants)
(d^2)' = 2x - 2x1 + (2a^2/b^2)x + 2ac/b^2 + 2ay1/b
(5) I set the formula for (d^2)' = 0 and solved for x. I got:
x = [(b^2)x1 - ac - aby1] / (b^2 + x^2)
(6) Now I have the formula for a critical number. To use the first derivative test to prove that this was a minimum, I would have to show that for values of x < this critical number, d^2 is negative and for values of x > this critical number, d^2 is positive. After determining that this critical number is a minimum, I would have to plug the formula for x that I got in (5) into the formula for d^2 that I got in (1), and then I would have to take the square root to get d.
Compared to the other problems in this chapter, this seems very complicated. I was wondering if anyone could tell me if I've gone wrong somewhere.
Thanks in advance,
Paul