[Math] Finding the intersection of two 2d vector equations

linear algebravectors

A few weeks ago at school we started a course in linear algebra. A few days ago we got a problem and some steps on how to solve the problem. I get this working just plugging in numbers, but I don't understand why this actually works. The problem is described below:

find the intersection x y coordinates of the following equations:

$$
\begin{bmatrix}x\\y \\ \end{bmatrix} = \begin{bmatrix}6\\-\frac{8}{3} \\ \end{bmatrix} + \lambda\begin{bmatrix}12\\-6 \\ \end{bmatrix} \\ \begin{bmatrix}11\\ 2\\ \end{bmatrix}\begin{bmatrix}x\\y \\ \end{bmatrix}=\begin{bmatrix}11\\2 \\ \end{bmatrix}\begin{bmatrix}5\\-\frac{47}{2}\\ \end{bmatrix}
$$

We were taught to set up the equation of a perpendicular line of the first equation, then calculating some constant $c$ :
$$
-6x-12y=c \\ -6*6-12*-\frac{8}{3} = c \\ c=-4
$$

Then for the second equation, we get the following:
$$
11x+2y=11*5+2*-\frac{47}{2}\\
11x+2y=8
$$
Next, we solve the following system:
$$
\left\{
\begin{array}{c}
-6x-12y=-4 \\
12x+2y = 8
\end{array}
\right.
$$

Which gives the answer $x = \frac{11}{15}$ and $y = \frac{-1}{30}$

What I don't understand:

  • Why do we need to calculate perpendicular line equation to find the point where these two lines intersect? Why can't we just use or modify the original equation?
  • What does that constant $c$ represent and why do we need it?

I tried plugging in things in online graphing calculators but I can't get a clear visual representation of what is actually going on here.

Unfortunately, the quality of our teacher isn't very great and he tells us to just do the trick without understanding why we need to do these steps. Hope someone can clarify this for me and my class mates! Thank you in advance.

Best Answer

You have here two of the fundamental ways to represent a line in $\mathbb R^2$. The first is described by a parametric representation that uses a point $\mathbf p_0$ on the line and a direction vector $\mathbf v$ parallel to the line. Every point on the line can then be expressed in the form $\mathbf p_0+\lambda\mathbf v$, $\lambda\in\mathbb R$.

The second line is described implicitly by an equation in point-normal form. There are various ways to interpret it geometrically, but I find this one easiest to visualize: The perpendicular line through the origin to a line $\mathscr l$ is completely characterized by a direction vector $\mathbf n$. Per the preceding paragraph, a parameterization of that perpendicular line is simply $\lambda\mathbf n$. If $\mathscr l$ is translated so that it passes through the origin, the translated line $\mathscr l'$ has the property that the position vector $\mathbf x'$ of every point on it is orthogonal to $\mathbf n$. That is, $\mathscr l'$ is the set of points that satisfy $\mathbf n\cdot\mathbf x'=0$. We can translate $\mathscr l$ in this way by fixing some point $\mathbf p$ on it and subtracting this from every point $\mathbf x$ on $\mathscr l$. Substituting into the orthogonality condition, an equation for $\mathscr l$ is therefore $\mathbf n\cdot(\mathbf x-\mathbf p)=0$, or $\mathbf n\cdot\mathbf x=\mathbf n\cdot\mathbf p$. Observe that it doesn’t matter which point was chosen for $\mathbf p$—the last form of the point-normal equation says that the dot product of any point on $\mathscr l$ with the normal vector $\mathbf n$ is constant.

Multiplying both sides of that last equation by $\mathbf n/\|\mathbf n\|^2$, we have $${\mathbf n \cdot \mathbf x\over \mathbf n\cdot\mathbf n}\mathbf n = {\mathbf n \cdot \mathbf p\over \mathbf n\cdot\mathbf n}\mathbf n,$$ which says that every point of $\mathscr l$ has the same orthogonal projection onto the normal vector $\mathbf n$. The length of this projection is $|\mathbf n\cdot\mathbf p|/\|\mathbf n\|$, which is also the distance of the line from the origin. Thus, the constant term in the point-normal equation of a line is the distance to the origin multiplied by the length of the normal vector. The sign of the constant term tells you on which side of the origin relative to the direction $\mathbf n$ the line lies.

To convert from the point-direction form to point-normal form, you have to find a normal to the line, which is any vector perpendicular to the line’s direction vector, and vice-versa when converting from point-normal to point-direction. The constant term for the point-normal form is then found by computing the dot product of this normal vector with any point on the line, as described above.

It’s not really necessary to convert representations to solve this problem, though. The intersection of the two lines is a point on the first line that satisfies the equation of the second, so you could simply plug the generic expressions for $x$ and $y$ from the first into the second and solve for $\lambda$ without doing any conversion. I expect that your professor has you do the conversion because he wants you to practice solving systems of linear equations, which is a major motivation for linear algebra in the first place.

Related Question