# Equations of the line of intersection of two planes

This online calculator finds the equations of a straight line given by the intersection of two planes in space. The calculator displays the canonical and parametric equations of the line, as well as the coordinates of the point belonging to the line and the direction vector of the line.

This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/8815/. Also, please do not modify any references to the original work (if any) contained in this content.

This online calculator is designed to find solutions to problems that can be formulated as follows:

Find the parametric equations for the line of intersection of the planes.

.

You enter the coefficients of the general equations of the planes, A₁, B₁, C₁, D₁ and A₂, B₂, C₂, D₂, in the form below, the calculator displays the equations of the line of intersection in parametric and canonical forms, as well as the found point belonging to the line and the direction vector of the line.

Pay attention, if the problem gives the equations of the planes in the form

,

you need to change the sign when entering the coefficients D₁ and D₂.

A bit of theory, as usual, can be found below the calculator

### Canonical equation of a straight line given by the intersection of two planes

If the planes intersect, then the system of planes equations given at the beginning of the article defines a straight line in space. To write the equations of this line in the canonical form, you need to find a **point on the line of intersection** and a **direction vector**.

**Point belonging to the line** also belongs to each of the planes, that is, it is one of the solutions to the system of equations above. To find a point belonging to a straight line, we switch from a system of two equations with three unknowns to a system of two equations with two unknowns, arbitrarily taking any coordinate of the point as zero. As a rule, when solving problems, we choose the coordinate, which, when zeroed, results in the **integer** solution of a remaining system of two equations (a result with integer coefficients looks much prettier). The calculator takes this fact into account and also tries to find an integer solution, zeroing out all the coordinates one by one.

The **direction vector** of the straight line is orthogonal to the normal vectors of the planes, which are given by the coefficients A, B and C in the general equation of a plane . Thus, it can be found as the result of the cross product of the normal vectors of the planes: .

The point and the vector give us the canonical equation of the line in space:

There are special cases when one or two coordinates of the direction vector are equal to zero.

If two coordinates are equal to zero, the direction vector is collinear to one of the coordinate axes. Accordingly, the points of the straight line can take any value along this axis, while the values along the other two axes will be constant. For example, if the two zero coordinates are y and z, the canonical equations of a straight line will look like this:

If only one coordinate is equal to zero, the direction vector lies in one of the coordinate planes (planes formed by pairs of coordinate axes), the value of the coordinate along the third axis orthogonal to this plane (just the one for which the coordinate of the direction vector is zero) will again be constant. For example, if the zero coordinate is x, then the canonical equations of the line will look like this:

These cases are also taken into account by the calculator.

### Parametric equations of a straight line given by the intersection of two planes

Knowing the point lying on the line and the direction vector of the line, it is easy to write down the parametric equations of the line. For a point belonging to the line and a direction vector , the parametric equations of the line look like this:

#### Similar calculators

**

**PLANETCALC, Equations of the line of intersection of two planes

## Comments