00:01
So here we're given this point, which in this problem is the origin, and we're asked to find the distance of this point from this point to the line given by these equations.
00:14
And so first let's just try and draw a general picture of what's going on.
00:18
So let's say here's the line and here's the point.
00:23
Okay, so let's call this p.
00:27
And let's say we can just find another point on the line, call it s.
00:30
Okay, now it should be sort of clear from the picture that the point where this line, the distance from this point to this line is the smallest, is when you can imagine like taking this point s, sliding it along the line, when this length of this segment is going to be the shortest is when it meets the line at a right angle.
01:09
Okay, so right now the distance is going to be given by the length of ps and then assuming we know the angle theta between them, cosine theta.
01:23
That's just from the fact that this is a right triangle.
01:28
But now we might think, well, maybe i don't want to find the angle between the line and this segment from the line to the point.
01:40
So what i want to do in that case is there's a little trick here.
01:52
I'm sorry, and saying cosine, that's wrong.
01:56
So cosine would be adjacent over hypotenuse.
01:59
What i meant, what i really want is this guy right here, which is opposite over hypotenuse.
02:05
So that's sine theta.
02:07
Sorry about that.
02:09
But still, i don't necessarily know this angle.
02:13
But what i can do is just say that...