The question was as follows:
| (9) |
Firstly, it is worth noting that the expression given for the boundary, is a simple euclidean form line equation, represented using vectors.
is a vector containing the coefficients of the equation, and
contains the variables of the equation.
Let us suppose, that this is a simple form equation, if this is to be the case then we must define the following for
and
.
| (10) |
We can then see that,
| (11) |
This is now in a more obvious form of the euclidean line equation (
,
), a form we can work with much more easily.
The aim of the question is to find the shortest distance between this line, and the origin . This can be found by
finding the perpendicular line which passes through both our boundary, and the origin, then finding the point
where this perpendicular line intercepts the boundary, and then finding the distance of that point from the origin, which
will simply be the euclidean norm:
.
It is known that for a line , a perpendicular line passing through said line would be of the form
.
Remember that
indicates the point at which a line passes through the y-axis (the y-intercept), and
is the gradient of the line.
Given this knowledge, we can see that the line perpendicular to our boundary must have a gradient of
, i.e.
.
| (12) |
Note that I am using to refer to perpendicular line, this is not a commonly used notation (to my knowledge), just something I like
to do to make my work a little clearer.
Now we must find , the y-intercept. Remember that this line must pass through the origin, so at some point along it, we will have
, and
, so let us substitute these values, and solve for
:
| (13) |
We have . Note that
is commonplace when a line must pass through the origin, since it intercepts the y-axis at
.
Given what we have found, we can now see that the perpendicular line to our boundary which passes through the origin has the euclidean form:
| (14) |
The next step, is to find the point where this line intercepts our boundary line, and for this, we will approach the problem with simultaneous equations.
When the lines intercept, they will have the same values of and
, so we can begin by simply setting them equal to each other (since they are equal
at the point of intercept!), and solving for
. We solve for
, since this will give us the
ordinate of their intercept point. We can then substitute
that value back into one of the original line equations to find the
ordinate.
| (15) |
And now, for the cool bit. If you thought the rest of this was cool, the coolest bit is yet to come.
You might be thinking, `But Nathan, how does this coalesce into the answer¿, just you wait... just you wait. This final bit is one of those moments that made me actually gasp in excitement when I saw it. Because the equation itself looks very scary, but its such an elegant simplification.
We now calculate
, the euclidean norm of our intercept point
.
| (16) |
And we have our answer! So cool.