Equations of Lines in R2 & R3

Intro to Equations of Lines
A line in R2 or R3 is actually just a collection of points that follow a certain rule, this rule is called the equation of the line.

We need to know how to
- write the equation of the line in various forms, given specific information about the line
- convert between different forms of the equation of a line
Lines in R2
Slope y-intercept EquationVector EquationParametric EquationsSymmetric EquationNormal EquationCartesian (a.k.a. Scalar) Equationy=mx+br=r0+tmx=x0+mxty=y0+mytmxx−x0=myy−y0(r−r0)⋅n=0Ax+By+C=0
Lines in R3
Vector EquationParametric EquationsSymmetric Equationr=r0+tmx=x0+mxty=y0+mytz=z0+mztmxx−x0=myy−y0=mzz−z0

Vector, Parametric & Symmetric Equations in R2

For any line L in R2, as long as we know one point (x0, y0) on the line and a vector m=[mx,my] that is parallel to the line, we can define the equation of the line.
Slope y-intercept Equation
y−y0=mxmy(x−x0) or y=mxmyx+(y0−mxmyx0)
Vector Equation
r=r0+tm or [x, y]=[x0, y0]+t[mx, my]
- r=[x, y] represents the position vector from the original to any point (x, y) on the line L
- r0=[x0, y0] represents the position vector of a known point on the line L
- t is a parameter that can take on any real number (t∈R)
Parametric Equations
x=x0+mxty=y0+myt
Symmetric Equation
mxx−x0=myy−y0
"Switch & Flip" Tip: If [a, b] is a vector perpendicular to the line, then [−b, a] and [b, −a] are vectors parallel to the line.
Vector & Parametric Equations in R3
Similar to lines in R2, any Line L in R3 can be defined using a vector equation or parametric equations.
Vector Equation
r=r0+tm or [x, y, z]=[x0, y0, z0]+t[mx, my, mz]
Parametric Equations
x=x0+mxty=y0+mytz=z0+mzt
Symmetric Equation
mxx−x0=myy−y0=mzz−z0

Example: Equations of Lines in R2
Find the vector, parametric, and symmetric equations of the following lines.
a) Given a point on the line and a parallel vector
The line passes through the point (1, −3) and is parallel to the vector [1, −2].
Position vector of the point: [1, −3]
Direction vector of the line: [1, −2] (or any scalar multiple)
Vector equation: r=[1, −3]+t[ 1, −2]
Parametric equations: x=1+ty=−3−2t
Symmetric equation: 1x−1=−2y+3
b) Given two points on the line
The line passes through the points (1, −3) and (0, 4).
Position vector of the point: [1, −3] or [0, 4]
Direction vector of the line: [1, −3]−[0, 4]=[1, −7] (or any scalar multiple)
Vector equation: r=[1, −3]+t[ 1, −7]
Parametric equations: x=1+ty=−3−7t
Symmetric equation: 1x−1=−7y+3
c) Given a point on the line and a parallel line
The line passes through the point (1, −3) and is parallel to the line r=[2, 5]+t[−2, 1].
Position vector of the point: [1, −3]
Direction vector of the line: [−2, 1] (or any scalar multiple)
Vector equation: r=[1, −3]+t[ −2, 1]
Parametric equations: x=1−2ty=−3+t
Symmetric equation: −2x−1=1y+3
d) Given a point on the line and a perpendicular line
The line passes through the point (1, −3) and is perpendicular to the line r=[2, 5]+t[−2, 1].
Position vector of the point: [1, −3]
Direction vector of the line: [1, 2] (or any scalar multiple)
Vector equation: r=[1, −3]+t[ 1, 2]
Parametric equations: x=1+ty=−3+2t
Symmetric equation: 1x−1=2y+3

Example: Converting Equations of Lines in R2
a) Convert the equation y=−2x+3 into a vector equation, parametric equations, and symmetric equation.
The slope is −2=−12 → rise=−2, run=1. Meaning that the direction vector is m=[1, −2] (or any scalar multiple).
If we let x=0, we can solve for y: y=−2(0)+3=3. Meaing that the position vector of one point on the line is [0, 3].
Vector equation: r=[0, 3]+[1,−2]
Parametric equations: x=ty=3−2t
Symmetric equation: 1x−0=−2y−3
b) Convert the equation r=[1, 2]+t[3, 4] into a slope y-intercept equation.
Method 1
The slope is runrise=34. Meaing that m=34.
A point on the line is (x0, y0)=(1, 2).
Therefore, the slope y-intercept equation is y−2=34(x−1) → y=34x+32
Method 2
First write out the symmetric equation of the line: 3x−1=4y−2
Then, solve for y:
4(x−1)=3(y−2)
4x−4=3y−6
4x+2=3y
34x+2=y
y=34x+32
Practice: Converting Equations of Lines in R2 & R3
Match the following vector equations with their identical parametric, symmetric, or slope y-intercept equations.
x=1y=2+tz=3−5t
x=3−ty=−4+2t
x=−1+4ty=2+3t
3x−1=4y−2
y=−2x+10
x=−1+3ty=2−4t
x−3=2y−4
x=2y−1=3z+5
[3, −4]+t[−1, 2]
[−1, 2]+t[3, −4]
[0, 1, −5]+t[1, 2, 3]
[1, 2, 3]+t[0, 1, −5]
[3, 4]+t[1, 2]
[−1, 2]+t[4, 3]
[3, 4]+t[−1, 2]
[1, 2]+t[3, 4]

Example: Equations of Lines in R3
Which of the following points lie on the line that passes through the points (2, −1, 0) and (1, 1, 3)?
☐ (0, 3, 6)
☐ (0, 3, −6)
☐ (3, −3, 3)
☐ (2.5, −2, −1.5)
☐ (5, −4, −3)
The direction vector parallel to the line is [2, −1, 0]−[1, 1, 3]=[1, −2, −3] (or any scalar multiple of this)
The vector equation of the line is r=[2, −1, 0]+t[1, −2, −3] (you could have used the position vector of the other point as well).
So, the parametric equations of the line are x=2+ty=−1−2tz=−3t.
Point (0, 3, 6):
0=2+t → =−2
3=−1−2t → t=−2
6=−3t → t=−2
Since the parameter t is the same for each of these parametric equations, the point (0, 3, 6) is on the line.
Point (0, 3, -6):
Since the x and y coordinates are the same as the point above while the z coordinate is different, we know that this point cannot be on the line. Alternatively, we can show this by solving for the parameter t.
Point (3, -3, 3):
3=2+t → t=1
−3=−1−2t → t=1
3=−3t → t=−1
Since the parameter t is not the same for all these parametric equations, the point (3, -3, 3) is not on the line.
Point (2.5, -2, -1.5):
2.5=2+t → t=0.5
−2=−1−2t → t=0.5
−1.5=−3t → t=0.5
Since the paramter t is the same for each of these parametric equations, the point (2.5, -2, -1.5) is on the line.
Point (5, -4, -3):
Although this point is a scalar multiple of the point directly before this one, don't let that trick you!
5=2+t → t=3
−4=−1−2t → t=1.5
Since the parameter t is not the same for all these parametric equations, the point (5, -4, -3) is not on the line.
Alternatively
We could substitute the x, y, z values from the given points into the symmetric equation 1x−2=−2y−(−1)=−3z−0, if all 3 parts of the equation equal, then the given point is on the line. Otherwise, the point is not on the line.

Cartesian (Scalar) & Normal Equations in R2
For any line L in R2, as long as we know a normal vector that is perpendicular to the line, we can define the equation of the line.

Normal Equation
(r−r0)⋅n=0
- r=[x, y] represents the position vector from the original to any point (x, y) on the line L
- r0=[x0, y0] represents the position vector of a known point on the line L
- n=[A, B] represents the normal vector that is perpendicular to the line L
Cartesian (a.k.a. Scalar) Equation
Ax+By+C=0
- n=[A,B] represents the normal vector that is perpendicular to the line L
- C=−[x0, y0]⋅[A, B] where [x0, y0] represents the position vector of a known point on the line L
How About in R3?
Can we define a Normal or Cartesian Equation of a line in R3?
A line in R3 has more than 1 normal vector, it actually has infinitely many normal vectors. So, we cannot define a line in R3 by a normal vector of the line and a known point on the line.
In fact, a normal vector and a known point defines an equation of a plane in R3!

Example: Equations of Lines in R2
Find the Normal and Cartesian equations of the following lines.
a) Given a point on the line and a perpendicular vector
The line passes through the point (1, −3) and is normal to the vector [1, −2].
Position vector of the point: [1, −3]
Normal vector of the line: n=[1, −2] (or any scalar multiple)
Normal equation: ([x, y]−[1, −3])⋅[1, −2]=0
Cartesian equation: x−2y−[1, −3]⋅[1, −2]=0 or x−2y−7=0
b) Given two points on the line
The line passes through the points (1, −3) and (0, 4).
Position vector of the point: [1, −3] or [0, 4]
Direction vector of the line: [1, −3]−[0, 4]=[1, −7] (or any scalar multiple)
Normal vector of the line: n=[7, 1] (or any scalar multiple)
Normal equation: ([x, y]−[1, −3])⋅[7, 1]=0
Cartesian equation: 7x+y−[1,−3]⋅[7,1]=0 or 7x+y−4=0
c) Given a point on the line and a parallel line
The line passes through the point (1, −3) and is parallel to the line r=[2, 5]+t[−2, 1].
Position vector of the point: [1, −3]
Direction vector of the line: [−2, 1] (or any scalar multiple)
Normal vector of the line: n=[1, 2] (or any scalar multiple)
Normal equation: ([x, y]−[1, −3])⋅[1, 2]=0
Cartesian equation: 1x+2y−[1,−3]⋅[1,2]=0 or x+2y+5=0
d) Given a point on the line and a perpendicular line
The line passes through the point (1, −3) and is perpendicular to the line r=[2, 5]+t[−2, 1].
Position vector of the point: [1, −3]
Normal vector of the line: n=[−2, 1] (or any scalar multiple)
Normal equation: ([x, y]−[1, −3])⋅[−2, 1]=0
Cartesian equation: −2x+y−[1, −3]⋅[−2, 1]=0 or 2x−y−5=0
Practice: Equations of Lines in R2
Line 1 is a line that passes through the points (1, −2) and (3, 0).
Line 2 is the line that passes through the point (5, 3) and is perpendicular to the line [−1, −1]+t[−1, 1].
Determine the Cartesian equations of the lines 1 and 2.
Which of the following is/are true about line 1 and line 2?
(Select all that apply)
Practice: Converting Equations of Lines in R2
Select all of the equations that are identical to this slope y-intercept equation y=−31x−1.
Write the slope y-intercept equation of the line x=2ty=1−3t.

Angle Between Lines
The angle between any two lines in R2 is the angle between the two direction vectors of the lines or between the two normal vectors of the line.

Parallel Lines
- m1 and m2 are parallel (scalar multiples)
- n1 and n2 are parallel (scalar multiples)
- m1 and n2 are perpendicular (dot product is 0)
- m2 and n1 are perpendicular (dot product is 0)
Perpendicular Lines
- m1 and m2 are perpendicular (dot product is 0)
- n1 and n2 are perpendicular (dot product is 0)
- m1 and n2 are parallel (scalar multiples)
- m2 and n1 are parallel (scalar multiples)
Example
Find the angle between the lines r1=[1,2]+t[−1,3] and x+y−3=0.
Line 1:
- Direction vector: m1=[−1, 3]
- Normal vector: n1=[3, 1]
Line 2:
- Normal vector: n2=[1, 1]
- Direction vector m2=[1,−1]
Therefore, the angle between the two lines can be calculated with either one of these formulas:
- cos−1( ∣∣[−1, 3]∣∣∣∣[1, −1]∣∣[−1, 3]⋅[1, −1])=cos−1(102−4)=cos−1(−52)≈153.43°
- cos−1(∣∣[3, 1]∣∣∣∣[1, 1]∣∣[3, 1]⋅[1, 1])=cos−1(1024)=cos−1(52)≈26.57°