Skip to content
Family Table Math
Auto

Linear Equations in 2-Space and 3-Space

You’ve been graphing equations like 2x+y=72x + y = 7 for years: the solutions form a straight line. In this unit you’ll see what happens when you add a third variable. The same kind of equation now describes a flat plane in 3-space, and two planes usually meet in a line. This page builds the pictures you’ll need for the rest of the unit on lines and planes.

An equation of the form Ax+By=CAx + By = C (with AA and BB not both zero) is a linear equation in two variables. Every solution is an ordered pair (x,y)(x, y), and when you plot all of them in 2-space (the xyxy-plane), you get a straight line.

A point is on the line exactly when its coordinates make the equation true. For example, (1,5)(1, 5) is on 2x+y=72x + y = 7 because 2(1)+5=72(1) + 5 = 7.

Two equations in two variables: three possibilities

Section titled “Two equations in two variables: three possibilities”

A system of two linear equations asks for the points that are on both lines. Two lines in a plane can meet in three ways:

How the lines sitNumber of solutionsWhat you notice in the equations
They crossexactly one pointxx and yy coefficients are not in the same ratio
Parallel and distinctnonexx and yy coefficients in the same ratio, constant term not
Coincident (the same line)infinitely manythe whole equation is a multiple of the other

For example, in 3x−6y=93x - 6y = 9 and x−2y=5x - 2y = 5, the left sides are in the ratio 3:13 : 1, but 99 is not 3×53 \times 5. Same slope, different lines: parallel, no solution.

Three pairs of lines: crossing at one point, parallel, and the same line One point 2 4 −2 2 (4, −1) 2x + y = 7 x − 3y = 7 No solution (parallel) 2 −2 2 3x − 6y = 9 x − 2y = 5 Infinitely many (same line) 2 4 −2 2 2x + 5y = 3 4x + 10y = 6
Two lines in 2-space meet in one point, in no points, or in every point.

In 3-space, each point has three coordinates (x,y,z)(x, y, z) (see vectors in 3-space). An equation of the form

Ax+By+Cz=D(A,B,C not all zero)Ax + By + Cz = D \qquad (A, B, C \text{ not all zero})

is a linear equation in three variables, and its solution points form a plane: a flat surface that goes on forever in every direction.

The same equation can mean different things depending on the space you’re in. That’s the big idea of this page:

EquationSolutions in 2-spaceSolutions in 3-space
x=0x = 0the yy-axis (a line)the yzyz-plane
y=0y = 0the xx-axis (a line)the xzxz-plane
y=xy = xa line through the origina vertical plane containing the zz-axis
z=5z = 5(no zz in 2-space)a horizontal plane 5 units above the xyxy-plane
x+z=2x + z = 2(no zz in 2-space)a plane parallel to the yy-axis

Why is x=0x = 0 a whole plane in 3-space? The equation only restricts xx. The other coordinates, yy and zz, can be anything, so every point (0,y,z)(0, y, z) is a solution, and those points fill the yzyz-plane.

The same reasoning gives a handy rule: if a variable is missing from the equation, the plane is parallel to that variable’s axis. In x+z=2x + z = 2, yy is missing, so you can slide any solution point in the yy-direction and it stays a solution.

The plane x + z = 2, parallel to the y-axis x y z (2, 0, 0) (0, 0, 2) x + z = 2 (every y allowed)
The plane x+z=2x + z = 2 contains the line x+z=2x + z = 2 in the xzxz-plane, slid along the yy-axis.

To sketch a plane like 2x+3y+6z=122x + 3y + 6z = 12, find where it crosses each axis by setting the other two variables to 00:

  • xx-intercept: 2x=122x = 12, so (6,0,0)(6, 0, 0)
  • yy-intercept: 3y=123y = 12, so (0,4,0)(0, 4, 0)
  • zz-intercept: 6z=126z = 12, so (0,0,2)(0, 0, 2)

Join the three intercepts to get a triangle. That triangle is the part of the plane in the first octant, and it shows how the plane is tilted.

A system of two linear equations in xx, yy and zz asks for the points on both planes. Two planes can:

  • intersect in a line (the usual case),
  • be parallel and distinct: no solution, or
  • be coincident (the same plane): infinitely many solutions, a whole plane of them.

You can spot the last two the same way as in 2-space: compare the coefficients of xx, yy and zz. If they are in the same ratio, the planes are parallel; if the constant terms are in that ratio too, the planes are the same.

Notice what doesn’t happen: two equations in three unknowns never pin down a single point. You’ll always have at least one “free” variable left over. To find the line of intersection, let one variable be a parameter tt (any real number) and solve for the other two in terms of tt. You’ll learn to write these lines as vector equations in lines in 3-space.

Solve the system and describe it geometrically.

2x+y=7x−3y=72x + y = 7 \qquad x - 3y = 7

Solution. Multiply the first equation by 33 and add the second to eliminate yy:

6x+3y=21x−3y=77x=28addx=4\begin{aligned} 6x + 3y &= 21 \\ x - 3y &= 7 \\ 7x &= 28 && \text{add} \\ x &= 4 \end{aligned}

Then 2(4)+y=72(4) + y = 7 gives y=−1y = -1.

The two lines intersect at the single point (4,−1)(4, -1).

Check: 2(4)+(−1)=72(4) + (-1) = 7 ✓ and 4−3(−1)=74 - 3(-1) = 7 ✓.

Without solving, decide how many solutions each system has.

  • (a) 3x−6y=93x - 6y = 9 and x−2y=5x - 2y = 5
  • (b) 4x+10y=64x + 10y = 6 and 2x+5y=32x + 5y = 3

Solution.

(a) The xx and yy coefficients are in the ratio 3:13 : 1 (3=3×13 = 3 \times 1 and −6=3×(−2)-6 = 3 \times (-2)). If the lines were the same, the constants would be in that ratio too, but 9≠3×5=159 \ne 3 \times 5 = 15. The lines are parallel and distinct, so there is no solution.

(b) The first equation is exactly 22 times the second: 2(2x+5y)=2(3)2(2x + 5y) = 2(3). The equations describe the same line, so there are infinitely many solutions: every point on 2x+5y=32x + 5y = 3, such as (4,−1)(4, -1) and (−1,1)(-1, 1).

Describe the solutions of each equation in 2-space and in 3-space.

  • (a) y=2y = 2
  • (b) x+y=4x + y = 4

Solution.

(a) In 2-space, y=2y = 2 is a horizontal line 2 units above the xx-axis. In 3-space, only yy is fixed; xx and zz are free. The solutions (x,2,z)(x, 2, z) form a plane parallel to the xzxz-plane, 2 units from it in the positive yy-direction.

(b) In 2-space, x+y=4x + y = 4 is the line through (4,0)(4, 0) and (0,4)(0, 4). In 3-space, zz is missing, so the plane is parallel to the zz-axis. It’s the “wall” that stands on the line x+y=4x + y = 4 in the xyxy-plane, passing through (4,0,0)(4, 0, 0) and (0,4,0)(0, 4, 0) and going straight up and down.

Find the line of intersection of the planes

x+2y−z=32x+y+z=6x + 2y - z = 3 \qquad 2x + y + z = 6

Solution. The coefficients 1,2,−11, 2, -1 and 2,1,12, 1, 1 are not in the same ratio, so the planes aren’t parallel. They meet in a line.

Add the equations to eliminate zz:

3x+3y=9⇒x=3−y3x + 3y = 9 \quad\Rightarrow\quad x = 3 - y

Two equations, three unknowns: one variable stays free. Let y=ty = t. Then x=3−tx = 3 - t, and from the first equation

z=x+2y−3=(3−t)+2t−3=tz = x + 2y - 3 = (3 - t) + 2t - 3 = t

The line of intersection is

x=3−t,y=t,z=t,t∈Rx = 3 - t, \qquad y = t, \qquad z = t, \qquad t \in \mathbb{R}

Each value of tt gives a point: t=0t = 0 gives (3,0,0)(3, 0, 0) and t=1t = 1 gives (2,1,1)(2, 1, 1).

Check with t=1t = 1: 2+2(1)−1=32 + 2(1) - 1 = 3 ✓ and 2(2)+1+1=62(2) + 1 + 1 = 6 ✓.

Calling x = 3 a line no matter what. In 2-space it’s a vertical line, but in 3-space it’s a plane (every point (3,y,z)(3, y, z)). Always ask which space you’re working in before describing a graph.

Checking only the left sides for coincident lines or planes. Matching coefficient ratios only tells you the lines (or planes) are parallel. They’re the same only if the constant terms are in that ratio too.

Expecting two planes to meet in a point. Two equations in three unknowns can’t pin down a single point. If they intersect at all, they share a whole line (or a whole plane).

Stopping when you get to 0 = 0. When elimination wipes out an equation completely (0=00 = 0), it doesn’t mean “no solution”. It means the equations were really the same, and there are infinitely many solutions.

Forgetting to check your line. After finding a line of intersection, substitute one point (say t=1t = 1) into both original equations. A sign error usually shows up right away.

1. (Warm-up) Which of these points are on the line 3x−2y=123x - 2y = 12: (2,−3)(2, -3) or (4,1)(4, 1)?

Solution

For (2,−3)(2, -3): 3(2)−2(−3)=6+6=123(2) - 2(-3) = 6 + 6 = 12 ✓. It’s on the line.

For (4,1)(4, 1): 3(4)−2(1)=12−2=10≠123(4) - 2(1) = 12 - 2 = 10 \ne 12. It’s not on the line.

2. (Warm-up) Describe the solutions of x=−2x = -2 in 2-space and in 3-space.

Solution

In 2-space: a vertical line through (−2,0)(-2, 0), parallel to the yy-axis.

In 3-space: yy and zz are free, so the solutions (−2,y,z)(-2, y, z) form a plane parallel to the yzyz-plane, crossing the xx-axis at (−2,0,0)(-2, 0, 0).

3. (Warm-up) Is the point (1,−2,3)(1, -2, 3) on the plane 2x+y−z=−32x + y - z = -3?

Solution2(1)+(−2)−3=2−2−3=−32(1) + (-2) - 3 = 2 - 2 - 3 = -3

Yes, the point is on the plane.

4. (Core) Solve the system x+4y=2x + 4y = 2 and 3x−2y=203x - 2y = 20, and describe the result geometrically.

Solution

Multiply the first equation by 33 and subtract the second:

3x+12y=63x−2y=2014y=−14subtracty=−1\begin{aligned} 3x + 12y &= 6 \\ 3x - 2y &= 20 \\ 14y &= -14 && \text{subtract} \\ y &= -1 \end{aligned}

Then x+4(−1)=2x + 4(-1) = 2, so x=6x = 6.

The lines intersect at the single point (6,−1)(6, -1). Check: 3(6)−2(−1)=203(6) - 2(-1) = 20 ✓.

5. (Core) Consider the system 2x+ky=52x + ky = 5 and 6x−9y=126x - 9y = 12.

  • (a) Find the value of kk that makes the lines parallel.
  • (b) For that value of kk, how many solutions does the system have? Is there any kk that gives infinitely many solutions?
Solution

(a) The xx-coefficients are in the ratio 2:6=1:32 : 6 = 1 : 3. For parallel lines the yy-coefficients need the same ratio: k−9=13\dfrac{k}{-9} = \dfrac{1}{3}, so k=−3k = -3.

(b) With k=−3k = -3, the left side of the second equation is 33 times the first, but 12≠3×5=1512 \ne 3 \times 5 = 15. The lines are parallel and distinct, so there is no solution. The constants are never in the ratio 1:31 : 3, so no value of kk makes the lines coincident: the system never has infinitely many solutions. (For every k≠−3k \ne -3 it has exactly one.)

6. (Core) Find the intercepts of the plane 3x+4y+6z=123x + 4y + 6z = 12 and describe how you would sketch it.

Solution

Set two variables to 00 each time:

  • xx-intercept: 3x=123x = 12, so (4,0,0)(4, 0, 0)
  • yy-intercept: 4y=124y = 12, so (0,3,0)(0, 3, 0)
  • zz-intercept: 6z=126z = 12, so (0,0,2)(0, 0, 2)

Plot the three points on the axes and join them to form a triangle. The triangle is the part of the plane in the first octant.

7. (Core) Describe the solutions of each equation in 3-space.

  • (a) z=−1z = -1
  • (b) 2y+z=42y + z = 4
Solution

(a) xx and yy are free, so this is a horizontal plane (parallel to the xyxy-plane) 1 unit below it, crossing the zz-axis at (0,0,−1)(0, 0, -1).

(b) xx is missing, so the plane is parallel to the xx-axis. In the yzyz-plane it contains the line through (0,2,0)(0, 2, 0) and (0,0,4)(0, 0, 4); the plane is that line slid along the xx-direction.

8. (Challenge) Find the line of intersection of the planes x+y+z=2x + y + z = 2 and x−y+3z=8x - y + 3z = 8. Give two points on it.

Solution

Add the equations to eliminate yy:

2x+4z=10⇒x=5−2z2x + 4z = 10 \quad\Rightarrow\quad x = 5 - 2z

Let z=tz = t. Then x=5−2tx = 5 - 2t, and from the first equation

y=2−x−z=2−(5−2t)−t=−3+ty = 2 - x - z = 2 - (5 - 2t) - t = -3 + t

The line is x=5−2tx = 5 - 2t, y=−3+ty = -3 + t, z=tz = t, for t∈Rt \in \mathbb{R}.

t=0t = 0 gives (5,−3,0)(5, -3, 0) and t=1t = 1 gives (3,−2,1)(3, -2, 1).

Check (3,−2,1)(3, -2, 1): 3−2+1=23 - 2 + 1 = 2 ✓ and 3+2+3=83 + 2 + 3 = 8 ✓.

9. (Challenge) Show that the planes 2x−y+4z=32x - y + 4z = 3 and −4x+2y−8z=5-4x + 2y - 8z = 5 have no points in common. Then write the equation of a plane that is coincident with the first plane but looks different.

Solution

Multiply the first equation by −2-2:

−4x+2y−8z=−6-4x + 2y - 8z = -6

The left side now matches the second plane exactly, but the right sides are −6-6 and 55. No point can make −4x+2y−8z-4x + 2y - 8z equal to both, so the planes are parallel and distinct, with no common points.

Any non-zero multiple of the whole first equation is the same plane, for example 6x−3y+12z=96x - 3y + 12z = 9 (multiply by 33).