In two-dimensional geometry, a line can be determined by a point and a slope, or by two distinct points.
In three-dimensional geometry, the same idea appears in a slightly richer form. A line is uniquely determined if:
it passes through a known point and has a known direction, or
it passes through two distinct points.
The direction of a line in space is described by a vector parallel to it. Once we know one point on the line and one direction vector, the entire line is fixed.
The equation of a line is commonly written in two equivalent forms:
Vector form
Cartesian (or symmetric) form
Both forms describe the same set of points in space and can be converted into one another.
Line through a Given Point and Parallel to a Given Vector
Vector Form
Let a line pass through a point A whose position vector is a, and let the line be parallel to a vector b.
If P is any point on the line with position vector r, then the vector AP must be parallel to b. Hence,
AP=λb
for some real parameter λ.
Since
r=a+AP,
we get the vector equation of the line:
r=a+λb.
Here, λ is called the parameter. Different values of λ give different points on the line.
Cartesian Form
Suppose the point A has coordinates (x1,y1,z1), so that
a=x1i^+y1j^+z1k^.
Also suppose the direction vector is
b=ai^+bj^+ck^,
where a,b,c are direction ratios of the line.
If P(x,y,z) is any point on the line, then
r=xi^+yj^+zk^.
Substituting in
r=a+λb,
and comparing coefficients of i^,j^,k^, we get
x=x1+λa,y=y1+λb,z=z1+λc.
So,
x−x1=λa,y−y1=λb,z−z1=λc.
Eliminating λ, we obtain the symmetric Cartesian equation:
ax−x1=by−y1=cz−z1.
If a,b,c are replaced by the direction cosines l,m,n, then the equation becomes
lx−x1=my−y1=nz−z1.
In that case the common value is the actual directed distance from the fixed point along the line, because l,m,n are components of a unit direction vector.
Line Passing Through Two Given Points
Vector Form
Let the line pass through two points A and B whose position vectors are a and b respectively.
Then the direction of the line is given by
AB=b−a.
Using the point-direction form of a line, the vector equation becomes
r=a+λ(b−a).
This is the standard vector equation of the line through the two given points.
Cartesian Form
If
A(x1,y1,z1),B(x2,y2,z2),
then the direction ratios of the line are
x2−x1,y2−y1,z2−z1.
Therefore the Cartesian equation is
x2−x1x−x1=y2−y1y−y1=z2−z1z−z1.
This is valid provided the denominators are interpreted carefully when one of them is zero.
Important Considerations and General Point on a Line
When a denominator is zero: If one direction ratio is zero, say a=0, then the expression
0x−x1
means x−x1=0, so x=x1. It does not mean division in the usual arithmetic sense; it is shorthand notation used in symmetric line equations.
General point on a line: If
ax−x1=by−y1=cz−z1=λ,
then any point on the line can be written as
(x,y,z)=(x1+aλ,y1+bλ,z1+cλ).
This parametric representation is extremely useful in finding intersections with planes, distances, feet of perpendiculars, and reflections.
Example 1: Vector and Cartesian Equation (Point & Direction)
Find the vector and the Cartesian equations of the line through the point (5,2,−4) and which is parallel to the vector 3i^+2j^−8k^.
Solution:
Step 1: The given point is
A(5,2,−4).
Its position vector is
a=5i^+2j^−4k^.
Step 2: The given direction vector is
b=3i^+2j^−8k^.
So the direction ratios are 3,2,−8.
Step 3: Use the vector form of the line:
r=a+λb.
Hence,
r=(5i^+2j^−4k^)+λ(3i^+2j^−8k^).
Step 4: Use the Cartesian symmetric form:
ax−x1=by−y1=cz−z1.
Substituting x1=5,y1=2,z1=−4 and a=3,b=2,c=−8, we get
3x−5=2y−2=−8z+4.
The Cartesian equation of a line is 2x+3=4y−5=2z+6. Find the vector equation for the line.
Solution:
Step 1: Compare with the standard form
ax−x1=by−y1=cz−z1.
From
2x+3=4y−5=2z+6,
we get
x1=−3,y1=5,z1=−6.
So one point on the line is (−3,5,−6).
Step 2: The direction ratios are the denominators:
2,4,2.
So a direction vector is
2i^+4j^+2k^.
Step 3: Therefore the vector equation is
r=(−3i^+5j^−6k^)+λ(2i^+4j^+2k^).
Answer:r=(−3i^+5j^−6k^)+λ(2i^+4j^+2k^).
Example 4: Standardizing Cartesian Equations
Find the Cartesian equation of the line passing through the point (−2,4,−5) and parallel to the line given by 3x+3=54−y=6z+8.
Solution:
Step 1: Rewrite the given line in standard form.
Since
4−y=−(y−4),
we have
54−y=−5y−4.
So the line becomes
3x+3=−5y−4=6z+8.
Therefore, its direction ratios are
3,−5,6.
Step 2: A parallel line has the same direction ratios.
The required line passes through
(−2,4,−5).
Step 3: Using the symmetric form,
3x−(−2)=−5y−4=6z−(−5).
Hence,
3x+2=−5y−4=6z+5.
Answer:3x+2=−5y−4=6z+5.
Example 5: Intersection with a Plane (xy-plane)
Find the point where the line passing through the points A(3,4,1) and B(5,1,6) crosses the xy-plane.
Solution:
Step 1: Find the direction ratios of the line through A and B:
5−3=2,1−4=−3,6−1=5.
So the line is
2x−3=−3y−4=5z−1=λ.
Step 2: Write a general point on the line:
x=3+2λ,y=4−3λ,z=1+5λ.
So any point is
P(3+2λ,4−3λ,1+5λ).
Step 3: The xy-plane is given by
z=0.
So,
1+5λ=0⟹λ=−51.
Step 4: Substitute into x and y:
x=3+2(−51)=3−52=513,y=4−3(−51)=4+53=523.
Thus the required point is
(513,523,0).
Answer:(513,523,0).
Example 6: Equation of Coordinate Axes
Find the Cartesian equation of the y-axis.
Solution:
Step 1: The y-axis passes through the origin
(0,0,0).
Step 2: Its direction vector is along j^, so the direction ratios are
0,1,0.
Step 3: Therefore the symmetric equation is
0x−0=1y−0=0z−0.
That is,
0x=1y=0z.
This is equivalent to the system
x=0,z=0,
with y free, which is exactly the y-axis.
Answer:0x=1y=0z, equivalently x=0,z=0.
Example 7: Line Parallel to an Axis
Find the Cartesian equation of a line passing through (2,−1,3) and parallel to the z-axis.
Solution:
Step 1: A line parallel to the z-axis has direction ratios
0,0,1.
Step 2: The given point is
(2,−1,3).
Step 3: Using the symmetric form,
0x−2=0y−(−1)=1z−3.
So,
0x−2=0y+1=1z−3.
This means
x=2,y=−1,
and z can vary freely.
Answer:0x−2=0y+1=1z−3, equivalently x=2,y=−1.
Example 8: Checking Collinearity using Line Equations
Show that the points A(1,2,3), B(4,0,4), and C(−2,4,2) are collinear using the equation of a line.
Solution:
Step 1: First find the line through A and B.
Direction ratios of AB are
4−1=3,0−2=−2,4−3=1.
So its equation is
3x−1=−2y−2=1z−3.
Step 2: Check whether point C(−2,4,2) satisfies this equation:
3−2−1=3−3=−1,−24−2=−22=−1,12−3=−1.
All three ratios are equal.
Step 3: Since point C satisfies the equation of the line through A and B, it lies on the same line.
Hence the three points are collinear.
Answer: Proved.
Example 9: Foot of Perpendicular from a Point to a Line
Find the coordinates of the foot of the perpendicular drawn from the point P(0,2,3) to the line 5x+3=2y−1=3z+4.
Solution:
Step 1: Let the foot of the perpendicular be Q on the given line.
Write the line in parametric form:
5x+3=2y−1=3z+4=λ.
Then
x=5λ−3,y=2λ+1,z=3λ−4.
So,
Q=(5λ−3,2λ+1,3λ−4).
Step 2: Since PQ is perpendicular to the line, the vector
PQ=(5λ−3,2λ−1,3λ−7)
must be perpendicular to the direction vector of the line
d=(5,2,3).
Step 3: Therefore,
PQ⋅d=0.
So,
5(5λ−3)+2(2λ−1)+3(3λ−7)=0.
Expanding,
25λ−15+4λ−2+9λ−21=0,38λ−38=0,λ=1.
Step 4: Substitute λ=1 into the point Q:
Q=(5−3,2+1,3−4)=(2,3,−1).
Answer:(2,3,−1).
Example 10: Image of a Point in a Line
Find the image of the point P(0,2,3) in the line 5x+3=2y−1=3z+4.
Solution:
Step 1: To find the image of a point in a line, first find the foot of the perpendicular from the point to the line. Let that foot be Q.
From the previous example, the foot is
Q(2,3,−1).
Step 2: If P′ is the image of P in the line, then the line acts as the perpendicular bisector of the segment PP′. Hence Q is the midpoint of PP′.
Let
P′=(x′,y′,z′).
Then, using the midpoint formula,
20+x′=2⟹x′=4,22+y′=3⟹y′=4,23+z′=−1⟹z′=−5.
Therefore,
P′=(4,4,−5).
Answer:(4,4,−5).
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.