## Chapter:11

# What are Three-Dimensional Geometry ?

## Direction Cosines Of A Line Joining Two Points

Let a line PQ is being formed by joining two-points P (x1, y1, z1)and Q (x2, y2, z2). Let l, m, n be the direction cosines of line PQ and it makes angle α, β, γ with x, y, z

axis respectively. Draw a line parallel to PQ and passing through origin as direction cosines of two parallel lines are always same, so direction cosines of PQ will be

$$\overrightarrow{\text{MN}}=(x_2-x_1)\hat{i}\space +\space (y_2-y_1)\hat{j}\space+\space(z_2-z_1)\hat{k}.\qquad\\\text{cos}\space\alpha=\frac{x_2-x_1}{\text{PQ}},\text{cos}\space \beta=\frac{y_2-y_1}{\text{PQ}},\text{cos}\space\gamma=\frac{z_2-z_1}{\text{PQ}}.\\\qquad\text {where}, \text{PQ}=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}$$

## Direction Ratios Of A Line Joining Two Points

_{1}, y

_{1}, z

_{1})and Q (x

_{2}, y

_{2}, z

_{2}) may be taken as x

_{2}- x

_{1}, y

_{2}- y

_{1}, z

_{2}- z

_{1}or x

_{1}- x

_{2}, y

_{1}- y

_{2}, z

_{1}- z

_{2}.

## Cartesian Equation And Vector Equation Of A Line

A line is uniquely determined if

- It passes through one point and has a given direction.
- It passes through two given points.

Equation of a line through a given point and parallel to a given vector

$$\vec{b}:$$

**Vector Equation :**A line which passes through A with position vector a, also this line is parallel to

$$\vec{b}:$$

A variable point P having position vector r lies on this line. Then,

$$\vec{r}=\vec{a}+\lambda\vec{b}\space\space\space\space\space \lambda\space\epsilon\space\text{R}$$

**Cartesian Equation :**In given fig. let the co-ordinates of the given point A be (x_{1}, y_{1}, z_{1}) and the direction ratios of a line parallel to this line are a, b, c. Then,

$$\frac{x-x_1}{a}=\frac{y-y_1}{b}=\frac{z-z_1}{c}=\lambda$$

**Equation of a line through two given points: **

**Vector Equation :**In the given fig. let O is the origin, now consider a line passing through two points A and B having position vectors

$$\vec{a}\space\text{and}\space\vec{b}$$

respectively. Let a variable point P having position vector r lies on this line. Then,

$$\vec{r}=\space\vec{a}+\lambda(\vec{b}-\vec{a}).\space\space\space \lambda\space\epsilon \space R $$

**Cartesian Equation :**In the given fig., let two points A (x1, y1, z1) and B (x2, y2, z2) on the given line, so equation of line in the vector form is given by :

$$\frac{x-x_1}{a}=\frac{y-y_1}{b}=\frac{z-z_1}{c}=\lambda.$$

## Skew Lines

Two straight lines are skew if they are neither parallel nor intersecting.**NOTE :** Two skew lines are always non-coplanar.

## Shortest Distance Between Two Lines

**Shortest distance between the given Parallel Lines:**

**Shortest distance between the given Parallel Lines:**

See given figure, Shortest distance between the parallel lines

$$\vec{r}=\vec{a}_1+\lambda(\vec{b})\space\text{and}\space\vec{r}=\vec{a}_2+ \mu\vec{\text{b}}\space \text{is given by}$$

$$\bigg|\frac{(\vec{a}_2-\vec{a}_1)×\vec{b}}{|\vec{b}|}\bigg|$$

**Shortest distance between two skew lines:**

See given figure

**Vector form :**Shortest distance between the skew lines

$$\vec{r}=\vec{a}_1+\lambda(\vec{b}_1)\space\text{and}\space\vec{r}=\vec{a}_2+ \mu\vec{\text{b}}_2\space \text{is given by}\\\text{d}=\bigg|\frac{(\vec{b}_1×\vec{b}_2).(\vec{a}_2×\vec{a}_1)}{|\vec{b}_1×\vec{b}_2|}\bigg|$$

**Cartesian form :**Let cartesian equations of two skew lines be

$$\frac{x-x_1}{a_1}=\frac{y-y_1}{b_1}=\frac{z-z_1}{c_1}\space\text{and}\space\frac{x-x_2}{a_2}=\frac{y-y_2}{b_2}=\frac{z-z_2}{c_2}\\\text{Then}, \text{d}=\frac{\begin{vmatrix}

x_2-x_1 & y_2-y_1 & z_2-z_1 \\

a_1 & b_1 & c_1\\

a_2 & b_2 & c_2

\end{vmatrix}}{\sqrt{(b_1c_2-b_2c_1)^2+(c_1a_2-c_2a_1)^2+(a_1b_2-a_2b_1)^2}}$$

**Shortest distance between the lines which are intersecting at a single point:**

The shortest distance between two intersecting lines is zero.