# Distance Formula & Section Formula – Three-dimensional Geometry

One of the most powerful tools in any engineer or scientist’s toolkit is **3D geometry**. 3D geometry comes to picture into model real-world quantities such as velocity, fluid flows, electrical signals, and many other physical quantities. In this article, we are going to discuss two important formulas Distance and Section along with some important examples. One can understand any 3D space in terms of 3 coordinates- x, y, and z. Below is a simple representation of 3D space.

**Distance Formula and Its Use in 3D Geometry **

The distance formula states the distance between any two points in the XYZ space.

**Formula:**

For two points P1(x

_{1}, y_{1, }z_{1}) and P2(x_{2}, y_{2, }z_{2})Distance (d) =

This distance formula is used to calculate the distance between two points in any 3D space. When we know the coordinates of the two points in the plane (in form of ordered pair (x, y, z)) we can easily get the distance between two points by substituting in the distance formula.

**The Distance Between Two Points: Formulas, and Solved Examples **

Suppose there are two points P(x_{1}, y_{1, }z_{1}) and Q(x_{2}, y_{2, }z_{2}) in the 3D space. To find the distance between them, the formula is,

Distance (d) =

**Example 1:** **Find the distance between the points P(1, –3, 4) and Q (– 4, 1, 2)?**

**Solution:**

Using the formula to calculate the distance between point P and Q,

Distance (d) =

d =

**Example 2: Show that the points P (–2, 3, 5), Q (1, 2, 3) and R (7, 0, –1) are collinear?**

**Solution:**

We know that points are said to be collinear if they lie on a line.

As PQ+QR=PRHence P, Q and R are collinear.

### The Distance** of Point From a Line: Meaning, Formulas, and Examples **

The distance of a point from a line is the perpendicular distance from the point to the line. Suppose we have to find the distance of a point P(x_{0}, y_{0, }z_{0}) from line l, then the formula is,

Distance (d) =

Where ‘s’ is the directing vector of line l.

**Example: Find the distance from point P(-6, 1, 21) to a line ****?**

**Solution:**

**The Distance of a Point from a Plane: Formulas, Equations, and Examples**

The distance from a point to a plane is the perpendicular distance from a point on a plane. If Qx + Ry + Sz + T = 0 is a plane equation, then the distance from point P(Px, Py, Pz) to plane can be found using the following formula:

Distance (d) =

**Example: To find a distance between plane 2x + 4y – 4z – 6 = 0 and point P(0, 3, 6)?**

**Solution: **

Using the formula:

Distance (d) =

**The Distance Between Parallel Lines: Formulas and Examples **

The distance between any two parallel lines is the perpendicular distance from any point on one line to the other line. Suppose there are two parallel lines y = mx + c_{1} and y = mx + c_{2}, then the formula is,

Distance (d) =

If the equation of two parallel lines is given as:

ax + by + d1 = 0 and ax + by + d2 = 0, then the formula is,

Distance (d) =

Where a and b are the coefficients of variables x and y in the line.

**Example 1: Find the distance between lines y = 2x + 10 and y = 2x + 12? (Note: Both lines are parallel to each other)**

**Solution: **

The lines y = 2x + 10 and y = 2x + 12 are in form y = mx + c.

Where

c_{1} = 10,c_{2 }= 12,m= 2Using formula, the distance (d) =

**Example 2: Find the distance between two parallel lines 4x + 3y + 6 = 0 and 4x + 3y – 3 = 0?**

**Solution:**

The lines given are 4x + 3y + 6 = 0 and 4x + 3y – 3 = 0. Both lines are in form ax + by + d = 0.

Hence,

d_{1 }= 6,d_{2 }= −3,a= 4,b= 3Using formula for this case, distance (d) will be calculated as:

**Section Formula: Definition, Vector Formula, Case, and Examples **

Section formula is the concept that can be implemented in 2D and 3D space as well. In three dimension system, we have to choose a coordinate system. Suppose two points P(x1, y1, z1) and Q (x2, y2, z2) are given and let the point R (x, y, z) divide PQ in the given ratio m: n internally. Hence, the coordinates of the point R which divides the line segment joining two points P (x1, y1, z1) and Q (x2, y2, z2) internally in the ratio m: n can be calculated using the formula,

If the point R divides PQ externally in the ratio m: n, then its coordinates are obtained by replacing n by – n, and the formula for the same is,

**Case 1: **Coordinates of the mid-point: In case R is the mid-point of PQ, then m : n = 1 : 1 so that

x = , y = and z =

These are the coordinates of the midpoint of the segment joining P (x1, y1, z1)and Q (x2, y2, z2).

**Case 2: **The coordinates of the point R which divides PQ in the ratio k: 1 are obtained by taking k= which are as given below,

**Example 1: Find the coordinates of the point which divides the line segment joining the points (1, –2, 3) and (3, 4, –5) in the ratio 2 : 3 (i) internally, and (ii) externally?**

**Solution: **

(i)Let P (x, y, z) be the point that divides the line segment joining A(1, – 2, 3)and B (3, 4, –5) internally in the ratio 2 : 3. Therefore

Thus, the required point is

(ii)Let P (x, y, z) be the point which divides segment joining A (1, –2, 3) andB (3, 4, –5) externally in the ratio 2 : 3. Then,

Therefore, the required point is (–3, –14, 19).

**Example 2: Using section formula, prove that the three points (– 4, 6, 10), (2, 4, 6), and (14, 0, –2) are collinear?**

**Solution:**

Let A (– 4, 6, 10), B (2, 4, 6), and C(14, 0, – 2) be the given points. Let the

point P divides AB in the ratio k: 1. Then coordinates of the point P are

Let us examine whether, for some value of k, the point P coincides with point C.

On putting , When k=then,

Therefore, C (14, 0, –2) is a point that divides AB externally in the ratio 3: 2 and is

same as P. Hence A, B, C are collinear.

## Please

Loginto comment...