Ask your own question, for FREE!
Mathematics 20 Online
OpenStudy (anonymous):

what is the formula of the distance between a point and a line

OpenStudy (chaise):

d = sqrt((x1-x2)^2 + (y1-y2)^2 This is just pythagoras theorem, applied to a straight line.

OpenStudy (anonymous):

hold on

OpenStudy (anonymous):

you have a line, say \[y=2x+1\] and a point not on the line, say (3,8) and you want the distance right?

OpenStudy (anonymous):

yes

OpenStudy (anonymous):

or do you have as specific one you would like to do?

OpenStudy (anonymous):

i have a calculus journal i have to do and it asks me the formula for a distance between a point and a line

OpenStudy (anonymous):

because this is not that trivial

OpenStudy (anonymous):

ooooooooooooooh you want to use calculus ok

OpenStudy (anonymous):

so "distance" of course means "shortest distance" you can do it without calculus or you can use calculus. now if you want some sort of formula i guess we should call the line \[y=mx+b\] and the point \[(x_1,y_1)\] or something like that

OpenStudy (anonymous):

ok and how to find the distance between those two?

OpenStudy (anonymous):

ok first of all use the distance to find the point on the line closest to the point \[(x_1,y_1)\] the point is given and the line is given. the only variable is x and y

OpenStudy (anonymous):

put \[d^2=(x-x_1)^2+(y-y_1)^2\]

OpenStudy (anonymous):

you want to find x and y that make this a minimum. x and y being on the line y = mx +b

OpenStudy (anonymous):

you mean like in vector?

OpenStudy (anonymous):

so replace y by mx + b in the formula to get \[d^2(x)=(x-x_1)^2+(mx+b-y_1)^2\]

OpenStudy (anonymous):

now you have a function of x, it is smallest where the derivative is 0, so take the derivative, set it = 0 and solve

OpenStudy (anonymous):

remember that the variable is x, \[x_1,y_1,b\] are constants

OpenStudy (anonymous):

@imranmeah if there is a snap way let me know. i would make the slopes perpendicular, but we are supposed to use calculus

OpenStudy (anonymous):

\[\frac{\left|P_x\times n\right|}{|n|}\] this one?

OpenStudy (anonymous):

thanks is there a specific formula. i googled it and i got a bunch of different formulas

OpenStudy (anonymous):

not that one but it does have an absolute value in it

OpenStudy (anonymous):

my understanding of the question was we have a line \[y=mx+b\] and a point \[(x_1,y_1)\] and we want to use calculus to find the distance between the point and the line

OpenStudy (anonymous):

the derivative is \[2(x-x_1)+2(mx+b-y_1)\] by the chain rule. set this equal to zero, solve for x. you answer will have an \[x_1,y_1,m, b\] in it which is to be expected because you want a formula which will obviously depend on those 4 numbers

OpenStudy (anonymous):

OpenStudy (anonymous):

a quick bit of algebra tells me \[x=\frac{x_1+y_1-b}{m+1}\]

OpenStudy (anonymous):

now that is not the formula for the distance, that is the x - value of the point on the line that gives the distance. the y value is what you get if you replace x by this mess and the distnance is what you get from the distance formula

OpenStudy (anonymous):

ok thanks

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!