**Three Dimensional Geometry for class 12** covers the important topics such as direction cosine and direction ratios of a line joining two points. Also, we will discuss here, the equation of lines and planes in space under different condition, the angle between line and plane, between two lines etc. You need to practice the questions to understand the topic better and based on the formulas as well.

To understand the different types of shapes and figures, this topic has been introduced in Maths. In real-world, almost all the objects are in a three-dimensional shape.Â For example, there are many objects at home such as a table, chair, bed, kitchen utensils, etc. which have 3D geometry. In our primary classes, we have learned the basics of three-dimension geometry, but in 12th standard, we will learn the advanced version of it.

## Direction Cosine and Direction Ratios of a line

Consider a line L passing through origin makes an angle of Î±,Â Î²,Â Î³Â with x, y, and z-axes respectively, then the cosine of these angles is the direction cosine of the directed line L.

Any three numbers which are proportional to the direction cosines of a line are called the direction ratios of the line. Consider the direction cosine of line L be l, m, n and direction ratio a, b, c then a = Î»l, b = Î»m, c = Î»n, for non-zero Î» âˆˆ R.

\(\frac{l}{a} = \frac{m}{b} = \frac{n}{c} = k\)Then the direction cosine are:

\(l = \pm \frac{a}{a^{2} + b^{2} + c^{2}}\), \(m = \pm \frac{b}{a^{2} + b^{2} + c^{2}}\), \(n = \pm \frac{c}{a^{2} + b^{2} + c^{2}}\)**Note:**Â If the given line in space does not pass through the origin, then, in order to find its direction cosines, we draw a line through the origin and parallel to the given line. Now take one of the directed lines from the origin and find its direction cosines as two parallel line have same set of direction cosines.

## Important Formulas

Let us discuss some important formulas of three-dimensional geometry, based on which we will solve problems.

### Relation betweenÂ the direction cosines of a line

For a given line RS with direction cosines l, m, n, the relation between the direction cosines of a line RS is given by;

**l ^{2} + m^{2} + n^{2} = 1**

### Direction cosines of a line passing through two points

The direction cosines of the line segment joining the points P(x_{1}, y_{1}, z_{1}) and Q(x_{2}, y_{2}, z_{2}) are:

**x _{2}-x_{1}/PQ, y_{2}-y_{1}/PQ, z_{2}-z_{1}/PQ**

where PQ =Â âˆš[(**x _{2}-x_{1}**)

**+(**

^{2}**y**)

_{2}-y_{1}**+(**

^{2}**z**)

_{2}-z_{1}**]**

^{2}### Important Questions

Practise questions to prepare for this chapter and score good marks in the exam.

**Question 1: If a line makes angles 90Â°, 135Â°, 45Â° with the x, y and z-axes respectively, find its direction cosines.**

Solution:

Let the direction cosines of the line be l, m and n.

Here let Î± = 90Â°, Î² = 135Â° and Î³ = 45Â°

As we know,

l = cos Î±, m = cos Î² and n = cos Î³

Thus, direction cosines are:

l = cos 90Â° = 0

m = cos 135Â°= cos (180Â° â€“ 45Â°) = -cos 45Â° = -1/âˆš2

n = cos 45Â° = 1/âˆš2

Therefore, the direction cosines of the line are 0, -1/âˆš2, 1/âˆš2.

**Question 2:Â Show that the points (2, 3, 4), (â€“1, â€“2, 1), (5, 8, 7) are collinear.**

Solution:

If the direction ratios of two lines segments are proportional, then the lines are collinear.

Let the given points are: A(2, 3, 4), B(âˆ’1, âˆ’2, 1) and C(5, 8, 7)

Direction ratio of the line joining the points A (2, 3, 4) and B (âˆ’1, âˆ’2, 1), are:

((âˆ’1âˆ’2), (âˆ’2âˆ’3), (1âˆ’4)) = (âˆ’3, âˆ’5, âˆ’3)

Where, a_{1} = -3, b_{1} = -5, c_{1} = -3

Direction ratio of the line joining the points B (âˆ’1, âˆ’2, 1) and C (5, 8, 7) are:

[(5âˆ’ (âˆ’1)), (8âˆ’ (âˆ’2)), (7âˆ’1)] = (6, 10, 6)Where, a_{2} = 6, b_{2} = 10 and c_{2} =6

Since, it is clear that the direction ratios of AB and BC are of same proportions, hence,

a_{2}/a_{1} = 6/-3 = -2

b_{2}/b_{1} = 10/-5 = -2

c_{2}/c_{1} = 6/-3 = -2

Therefore, the points A, B and C are collinear.

Practice more questions on this topic by registering on BYJU’S.