Skip to main content

CLP-3 Multivariable Calculus

Section 1.3 Equations of Lines in 2d

A line in two dimensions can be specified by giving one point \((x_0,y_0)\) on the line and one vector \(\vd=\llt d_x,d_y\rgt \) whose direction is parallel to the line.
If \((x,y)\) is any point on the line then the vector \(\llt x-x_0,y-y_0\rgt \text{,}\) whose tail is at \((x_0,y_0)\) and whose head is at \((x,y)\text{,}\) must be parallel to \(\vd\) and hence must be a scalar multiple of \(\vd\text{.}\) So
These are called the parametric equations of the line, because they contain a free parameter, namely \(t\text{.}\) As \(t\) varies from \(-\infty\) to \(\infty\text{,}\) the point \((x_0+td_x,y_0+td_y)\) traverses the entire line.
It is easy to eliminate the parameter \(t\) from the equations. Just multiply \(x-x_0=t d_x\) by \(d_y\text{,}\) multiply \(y-y_0=t d_y\) by \(d_x\) and subtract to give
\begin{gather*} (x-x_0)d_y-(y-y_0)d_x=0 \end{gather*}
In the event that \(d_x\) and \(d_y\) are both nonzero, we can rewrite this as
This is called the symmetric equation for the line.
A second way to specify a line in two dimensions is to give one point \((x_0,y_0)\) on the line and one vector \(\vn=\llt n_x,n_y\rgt \) whose direction is perpendicular to that of the line.
If \((x,y)\) is any point on the line then the vector \(\llt x-x_0,y-y_0\rgt \text{,}\) whose tail is at \((x_0,y_0)\) and whose head is at \((x,y)\text{,}\) must be perpendicular to \(\vn\) so that
Observe that the coefficients \(n_x,n_y\) of \(x\) and \(y\) in the equation of the line are the components of a vector \(\llt n_x,n_y\rgt \) perpendicular to the line. This enables us to read off a vector perpendicular to any given line directly from the equation of the line. Such a vector is called a normal vector for the line.

Example 1.3.4.

Consider, for example, the line \(y=3x+7\text{.}\) To rewrite this equation in the form
\begin{equation*} n_xx+n_yy= n_xx_0+n_yy_0 \end{equation*}
we have to move terms around so that \(x\) and \(y\) are on one side of the equation and \(7\) is on the other side: \(3x-y=-7\text{.}\) Then \(n_x\) is the coefficient of \(x\text{,}\) namely \(3\text{,}\) and \(n_y\) is the coefficient of \(y\text{,}\) namely \(-1\text{.}\) One normal vector for \(y=3x+7\) is \(\llt 3,-1\rgt \text{.}\)
Of course, if \(\llt 3,-1\rgt \) is perpendicular to \(y=3x+7\text{,}\) so is \(-5\llt 3,-1\rgt =\llt -15,5\rgt \text{.}\) In fact, if we first multiply the equation \(3x-y=-7\) by \(-5\) to get \(-15x+5y=35\) and then set \(n_x\) and \(n_y\) to the coefficients of \(x\) and \(y\) respectively, we get \(\vn=\llt -15,5\rgt \text{.}\)

Example 1.3.5.

In this example, we find the point on the line \(y=6-3x\) (call the line \(L\)) that is closest to the point \((7,5)\text{.}\)
We’ll start by sketching the line. To do so, we guess two points on \(L\) and then draw the line that passes through the two points.
  • If \((x,y)\) is on \(L\) and \(x=0\text{,}\) then \(y=6\text{.}\) So \((0,6)\) is on \(L\text{.}\)
  • If \((x,y)\) is on \(L\) and \(y=0\text{,}\) then \(x=2\text{.}\) So \((2,0)\) is on \(L\text{.}\)
Denote by \(P\) the point on \(L\) that is closest to \((7,5)\text{.}\) It is characterized by the property that the line from \((7,5)\) to \(P\) is perpendicular to \(L\text{.}\) This is the case just because if \(Q\) is any other point on \(L\text{,}\) then, by Pythagoras, the distance from \((7,5)\) to \(Q\) is larger than the distance from \((7,5)\) to \(P\text{.}\) See the figure on the right above.
Let’s use \(N\) to denote the line which passes through \((7,5)\) and which is perpendicular to \(L\text{.}\)
Since \(L\) has the equation \(3x+y=6\text{,}\) one vector perpendicular to \(L\text{,}\) and hence parallel to \(N\text{,}\) is \(\llt 3,1\rgt \text{.}\) So if \((x,y)\) is any point on \(N\text{,}\) the vector \(\llt x-7,y-5\rgt \) must be of the form \(t\llt 3,1\rgt \text{.}\) So the parametric equations of \(N\) are
\begin{gather*} \llt x-7,y-5\rgt =t\llt 3,1\rgt \qquad\text{or}\qquad x=7+3t,\ y=5+t \end{gather*}
Now let \((x,y)\) be the coordinates of \(P\text{.}\) Since \(P\) is on \(N\text{,}\) we have \(x=7+3t\text{,}\) \(y=5+t\) for some \(t\text{.}\) Since \(P\) is also on \(L\text{,}\) we also have \(3x+y=6\text{.}\) So
\begin{alignat*}{2} & & 3(7+3t)+(5+t)&= 6\\ & \iff\qquad& 10t+26&= 6\\ & \iff\qquad& t&=-2\\ & \implies\qquad& x&= 7+3\times (-2)=1,\ y=5+(-2)=3 \end{alignat*}
and \(P\) is \((1,3)\text{.}\)

Exercises Exercises

Exercise Group.

Exercises — Stage 1
1.
A line in \(\mathbb R^2\) has direction \(\mathbf d\) and passes through point \(\mathbf c\text{.}\)
Which of the following gives its parametric equation: \(\llt x,y\rgt =\mathbf c + t\mathbf d \text{,}\) or \(\llt x,y\rgt =\mathbf c - t\mathbf d \text{?}\)
2.
A line in \(\mathbb R^2\) has direction \(\mathbf d\) and passes through point \(\mathbf c\text{.}\)
Which of the following gives its parametric equation: \(\llt x,y\rgt =\mathbf c + t\mathbf d \text{,}\) or \(\llt x,y\rgt =-\mathbf c +t \mathbf d\text{?}\)
3.
Two points determine a line. Verify that the equations
\begin{equation*} \llt x-1,y-9\rgt=t\llt 8,4\rgt \end{equation*}
and
\begin{equation*} \llt x-9,y-13\rgt=t\llt 1,\tfrac12\rgt \end{equation*}
describe the same line by finding two different points that lie on both lines.
4.
A line in \(\mathbb R^2\) has parametric equations
\begin{equation*} \begin{array}{lcl} x-3&=&9t\\ y-5&=&7t \end{array} \end{equation*}
There are many different ways to write the parametric equations of this line. If we rewrite the equations as
\begin{equation*} \begin{array}{lcl} x-x_0&=&d_xt\\ y-y_0&=&d_yt \end{array} \end{equation*}
what are all possible values of \(\llt x_0,y_0\rgt\) and \(\llt d_x,d_y\rgt\text{?}\)

Exercise Group.

Exercises — Stage 2
5.
Find the vector parametric, scalar parametric and symmetric equations for the line containing the given point and with the given direction.
  1. point \((1,2)\text{,}\) direction \(\llt 3,2\rgt \)
  2. point \((5,4)\text{,}\) direction \(\llt 2,-1\rgt \)
  3. point \((-1,3)\text{,}\) direction \(\llt -1,2\rgt \)
6.
Find the vector parametric, scalar parametric and symmetric equations for the line containing the given point and with the given normal.
  1. point \((1,2)\text{,}\) normal \(\llt 3,2\rgt \)
  2. point \((5,4)\text{,}\) normal \(\llt 2,-1\rgt \)
  3. point \((-1,3)\text{,}\) normal \(\llt -1,2\rgt \)
7.
Use a projection to find the distance from the point \((-2,3)\) to the line \(3x-4y=-4\text{.}\)
8.
Let \(\va\text{,}\) \(\vb\) and \(\vc\) be the vertices of a triangle. By definition, a median of a triangle is a straight line that passes through a vertex of the triangle and through the midpoint of the opposite side.
  1. Find the parametric equations of the three medians.
  2. Do the three medians meet at a common point? If so, which point?
9.
Let \(C\) be the circle of radius 1 centred at \((2,1)\text{.}\) Find an equation for the line tangent to \(C\) at the point \(\left(\frac{5}{2},1+\frac{\sqrt3}{2}\right)\text{.}\)