• Foundation
  • About 17 min
  • 5 practice questions

Equations of a line and a plane: the basics

Write the equation of a line through a point in a given direction or through two points, in vector and Cartesian form, read the point and direction back, and write a plane from a point and a normal or from its intercepts.

If something looks wrong, please tell us.

With points, distances and directions in hand, we can now write equations. A line is fixed by one point and a direction; a plane is fixed by one point and a direction perpendicular to it. This lesson writes both in the two standard ways, vector and Cartesian, and shows how to read the point and the direction back from an equation.

A line through a point in a given direction

Let a line pass through the point A with position vector a and be parallel to the vector b. A point R with position vector r is on the line exactly when the vector AR is a multiple of b, that is, r = a + λb for some number λ. This is the vector equation of the line. If A = (x₁, y₁, z₁) and b has direction ratios a, b, c, comparing components gives x = x₁ + aλ, y = y₁ + bλ and z = z₁ + cλ. Solving each for λ gives the Cartesian equation (x − x₁)/a = (y − y₁)/b = (z − z₁)/c.

The triple (x₁ + aλ, y₁ + bλ, z₁ + cλ) is the general point of the line: each value of λ gives one point, and λ = 0 gives A itself. To test whether a point lies on the line, find λ from one coordinate and check the other two. To read a Cartesian equation, the point is the one that makes every numerator zero, and the direction ratios are the denominators. Each numerator must be exactly x − x₁, y − y₁ or z − z₁ with coefficient 1, so a numerator x + 2 means x₁ = −2.

Worked example 1: from a point and a direction

Find the line through A(2, −1, 3) parallel to 3î + 2ĵ − k̂. Vector form: r = (2î − ĵ + 3k̂) + λ(3î + 2ĵ − k̂). Cartesian form: (x − 2)/3 = (y + 1)/2 = (z − 3)/(−1). Putting λ = 1 gives the point (5, 1, 2) of the line, and λ = −1 gives (−1, −3, 4).

Worked example 2: through two points

Find the line through A(1, 2, −1) and B(3, −2, 4), and test whether C(5, −6, 9) lies on it. The direction ratios are (3 − 1, −2 − 2, 4 − (−1)) = (2, −4, 5). Through A the line is (x − 1)/2 = (y − 2)/(−4) = (z + 1)/5. For C the three fractions are (5 − 1)/2 = 2, (−6 − 2)/(−4) = 2 and (9 + 1)/5 = 2. They are all equal, so C is on the line, at λ = 2.

A plane through a point with a given normal

A normal to a plane is a vector perpendicular to every line lying in the plane. Suppose the plane passes through P₀(x₁, y₁, z₁) and has a normal n with direction ratios (A, B, C). For any point R(x, y, z) of the plane, the vector P₀R lies in the plane, so its dot product with n is zero: A(x − x₁) + B(y − y₁) + C(z − z₁) = 0. In vector form this is (r − a) · n = 0. Expanding gives the general equation Ax + By + Cz + D = 0, and the coefficients of x, y and z are always direction ratios of a normal.

Worked example 3: point and normal

Find the plane through (1, −2, 3) with normal 2î + ĵ − k̂. Point-normal form: 2(x − 1) + 1(y + 2) − 1(z − 3) = 0, which simplifies to 2x + y − z + 3 = 0. Check the point: 2 − 2 − 3 + 3 = 0. Read backwards, the plane 4x − y + 2z = 7 has a normal with direction ratios (4, −1, 2).

Simple planes and the intercept form

The plane z = 5 is parallel to the xy-plane, 5 units above it, and its normal is along the z-axis. A plane that cuts the x-, y- and z-axes at (a, 0, 0), (0, b, 0) and (0, 0, c), with a, b and c non-zero, has the intercept form x/a + y/b + z/c = 1.

Worked example 4: from the intercepts

Find the plane with intercepts 2, −3 and 4 on the x-, y- and z-axes. Intercept form: x/2 + y/(−3) + z/4 = 1. Multiply by 12: 6x − 4y + 3z = 12. Check: (2, 0, 0), (0, −3, 0) and (0, 0, 4) each give 12.

Line: r = a + λb, or (x − x₁)/a = (y − y₁)/b = (z − z₁)/c, with general point (x₁ + aλ, y₁ + bλ, z₁ + cλ). Plane: A(x − x₁) + B(y − y₁) + C(z − z₁) = 0, where (A, B, C) is a normal; intercepts a, b, c give x/a + y/b + z/c = 1.

Key takeaways. A line needs a point and a direction; a plane needs a point and a normal. In a Cartesian line the denominators are the direction and the numerators give the point with the sign changed. In a plane Ax + By + Cz + D = 0 the coefficients are the normal. Always check your answer by substituting the given points.

Check your understanding

  1. 1. What is the Cartesian equation of the line through (−1, 4, 2) parallel to 2î − ĵ + 5k̂?

    1. (x + 1)/2 = (y − 4)/(−1) = (z − 2)/5
    2. (x − 1)/2 = (y + 4)/(−1) = (z + 2)/5
    3. (x + 1)/2 = (y − 4)/1 = (z − 2)/5
    4. (x − 2)/(−1) = (y + 1)/4 = (z − 5)/2
    Show answer

    Answer: A. Through (x₁, y₁, z₁) = (−1, 4, 2) with direction ratios (2, −1, 5): (x + 1)/2 = (y − 4)/(−1) = (z − 2)/5. (x − 1)/2 = (y + 4)/(−1) = (z + 2)/5 has the signs of the point reversed, (x + 1)/2 = (y − 4)/1 = (z − 2)/5 drops the minus sign of the direction, and (x − 2)/(−1) = (y + 1)/4 = (z − 5)/2 swaps the roles of the point and the direction.

  2. 2. Which point lies on the line (x − 3)/2 = (y + 1)/(−3) = (z − 2)/4?

    1. (5, 2, 6)
    2. (5, −4, 6)
    3. (2, −3, 4)
    4. (3, 1, 2)
    Show answer

    Answer: B. The general point is (3 + 2λ, −1 − 3λ, 2 + 4λ). λ = 1 gives (5, −4, 6). For (5, 2, 6) the fractions are 1, −1 and 1, which are not equal; (2, −3, 4) and (3, 1, 2) fail in the same way.

  3. 3. What is the equation of the plane through (2, −1, 4) with normal 3î − 2ĵ + k̂?

    1. 2x − y + 4z = 12
    2. 3x − 2y + z = 4
    3. 3x − 2y + z = 12
    4. 3x + 2y + z = 12
    Show answer

    Answer: C. 3(x − 2) − 2(y + 1) + 1(z − 4) = 0 gives 3x − 2y + z − 12 = 0, that is 3x − 2y + z = 12. Check: 6 + 2 + 4 = 12. 2x − y + 4z = 12 uses the point as the normal.

  4. 4. Which vector is normal to the plane 4x − y + 2z = 7?

    1. 4î + ĵ + 2k̂
    2. 4î − ĵ + 2k̂
    3. 7î + 7ĵ + 7k̂
    4. 4î − ĵ + 7k̂
    Show answer

    Answer: B. The coefficients of x, y and z give a normal: (4, −1, 2), that is 4î − ĵ + 2k̂. The constant 7 only fixes where the plane is, not its direction.

  5. 5. Which plane cuts the x-, y- and z-axes at 3, 4 and −2?

    1. 3x + 4y − 2z = 12
    2. 4x + 3y + 6z = 12
    3. 4x + 3y − 6z = 12
    4. x + y + z = 5
    Show answer

    Answer: C. Intercept form: x/3 + y/4 + z/(−2) = 1. Multiplying by 12 gives 4x + 3y − 6z = 12. Check: (3, 0, 0) gives 12, (0, 4, 0) gives 12 and (0, 0, −2) gives 12.

Privacy · Terms · Refunds · Delivery