Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

1.3: Equations of Lines in 2d

( \newcommand{\kernel}{\mathrm{null}\,}\)

A line in two dimensions can be specified by giving one point (x0,y0) on the line and one vector d=dx,dy whose direction is parallel to the line.

twodLine.svg

If (x,y) is any point on the line then the vector xx0,yy0, whose tail is at (x0,y0) and whose head is at (x,y), must be parallel to d and hence must be a scalar multiple of d. So

Equation 1.3.1. Parametric Equations

xx0,yy0=td

or, writing out in components,

xx0=tdxyy0=tdy

These are called the parametric equations of the line, because they contain a free parameter, namely t. As t varies from to , the point (x0+tdx,y0+tdy) traverses the entire line.

It is easy to eliminate the parameter t from the equations. Just multiply xx0=tdx by dy, multiply yy0=tdy by dx and subtract to give

(xx0)dy(yy0)dx=0

In the event that dx and dy are both nonzero, we can rewrite this as

Equation 1.3.2. Symmetric Equation

xx0dx=yy0dy

This is called the symmetric equation for the line.

A second way to specify a line in two dimensions is to give one point (x0,y0) on the line and one vector n=nx,ny whose direction is perpendicular to that of the line.

twodLineNormal.svg

If (x,y) is any point on the line then the vector xx0,yy0, whose tail is at (x0,y0) and whose head is at (x,y), must be perpendicular to n so that

Equation 1.3.3

nxx0,yy0=0

Writing out in components

nx(xx0)+ny(yy0)=0ornxx+nyy=nxx0+nyy0

Observe that the coefficients nx,ny of x and y in the equation of the line are the components of a vector nx,ny 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. To rewrite this equation in the form

nxx+nyy=nxx0+nyy0

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: 3xy=7. Then nx is the coefficient of x, namely 3, and ny is the coefficient of y, namely 1. One normal vector for y=3x+7 is 3,1.

Of course, if 3,1 is perpendicular to y=3x+7, so is 53,1=15,5. In fact, if we first multiply the equation 3xy=7 by 5 to get 15x+5y=35 and then set nx and ny to the coefficients of x and y respectively, we get n=15,5.

Example 1.3.5

In this example, we find the point on the line y=63x (call the line L) that is closest to the point (7,5).

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, then y=6. So (0,6) is on L.
  • If (x,y) is on L and y=0, then x=2. So (2,0) is on L.

closestA.svg            closestB.svg

Denote by P the point on L that is closest to (7,5). It is characterized by the property that the line from (7,5) to P is perpendicular to L. This is the case just because if Q is any other point on L, then, by Pythagoras, the distance from (7,5) to Q is larger than the distance from (7,5) to P. 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.

closest.svg

Since L has the equation 3x+y=6, one vector perpendicular to L, and hence parallel to N, is 3,1. So if (x,y) is any point on N, the vector x7,y5 must be of the form t3,1. So the parametric equations of N are

x7,y5=t3,1orx=7+3t, y=5+t

Now let (x,y) be the coordinates of P. Since P is on N, we have x=7+3t, y=5+t for some t. Since P is also on L, we also have 3x+y=6. So

3(7+3t)+(5+t)=610t+26=6t=2x=7+3×(2)=1, y=5+(2)=3

and P is (1,3).

Exercises

Stage 1

1

A line in R2 has direction d and passes through point c.

Which of the following gives its parametric equation: x,y=c+td, or x,y=ctd?

2

A line in R2 has direction d and passes through point c.

Which of the following gives its parametric equation: x,y=c+td, or x,y=c+td?

3

Two points determine a line. Verify that the equations

x1,y9=t8,4

and

x9,y13=t1,12

describe the same line by finding two different points that lie on both lines.

4

A line in R2 has parametric equations

x3=9ty5=7t

There are many different ways to write the parametric equations of this line. If we rewrite the equations as

xx0=dxtyy0=dyt

what are all possible values of x0,y0 and dx,dy?

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), direction 3,2
  2. point (5,4), direction 2,1
  3. point (1,3), direction 1,2
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), normal 3,2
  2. point (5,4), normal 2,1
  3. point (1,3), normal 1,2
7

Use a projection to find the distance from the point (2,3) to the line 3x4y=4.

8

Let a, b and c 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). Find an equation for the line tangent to C at the point (52,1+32).


This page titled 1.3: Equations of Lines in 2d is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Joel Feldman, Andrew Rechnitzer and Elyse Yeager via source content that was edited to the style and standards of the LibreTexts platform.

  • Was this article helpful?

Support Center

How can we help?