Three Dimensional Geometry
Every point you have ever plotted lived on a flat page — two coordinates and you were done. This chapter breaks out of the page. A point in space needs three coordinates, a direction needs three numbers too (not two angles but three linked cosines), and the two basic objects of solid geometry — the straight line and the flat plane — each acquire a compact vector recipe and an equally compact Cartesian one. The whole chapter is a translation exercise: everything you already know about lines and points in the plane gets re-expressed with one extra coordinate, using the vector algebra of the previous chapter as the working language. Three ideas carry the entire chapter. First, direction: a line's direction is captured by its direction cosines (with always) or, more conveniently, by any direction ratios proportional to them. Second, the line and the plane each have a vector equation — a point plus a direction, or a point plus a normal — that collapses into one clean Cartesian equation. Third, once you have two lines or two planes, the same four questions repeat throughout: are they parallel, are they perpendicular, what angle do they make, and how far apart are they? Skew lines — lines that are neither parallel nor intersecting, a genuinely three-dimensional situation with no analogue in plane geometry — force you to ask what "distance between two lines" even means, and the answer (project the join of any two points on them onto their common perpendicular direction) is one of the most elegant derivations in the whole CBSE syllabus. This is a formula-dense chapter, and every formula in it descends from just two vector operations — the dot product, which answers every question about angles and projections, and the cross product, which builds perpendicular directions and measures shortest distances. Learn the central derivations properly and the rest of the formula list becomes recoverable rather than memorised — precisely the standard CBSE boards, JEE and NEET expect.
- Direction cosines of a line satisfy ; any numbers proportional to them are its direction ratios, and they are not unique.
- Direction ratios of the line joining and are , with .
- A line through a point with position vector , parallel to , has vector equation and Cartesian form .
- The angle between two lines uses ; the lines are perpendicular when the numerator is zero, parallel when the ratios match.
- Skew lines (neither parallel nor intersecting) have a unique shortest distance along their common perpendicular, ; parallel lines use a simpler cross-product formula instead.
- A plane is fixed by a point and a normal vector, , or by three non-collinear points, or in intercept form .
- The distance of a point from the plane is ; the angle between a line and a plane uses sine, not cosine.
- Two lines are coplanar exactly when a determinant built from their direction ratios and the join of their base points vanishes — the same determinant whose value, when nonzero, feeds the shortest-distance formula.
- Key idea: every line is a point plus a direction and every plane is a point plus a normal, and the dot and cross products of those direction and normal vectors answer every question of angle, parallelism, perpendicularity, coplanarity and distance in the chapter.
A line in space is a point plus a direction (, Cartesian ) and a plane is a point plus a normal (), so that every angle, parallelism, perpendicularity, coplanarity and distance question in this chapter reduces to a dot product or a cross product of these direction and normal vectors.
What this chapter covers
The chapter builds outward in a fixed order, and it helps to hold that order in mind while studying it. It opens with direction cosines and direction ratios, the numeric fingerprint of a direction in space. It then writes the equation of a line, first through a point and parallel to a given vector, then through two given points. Next come the angle between two lines and the special cases of parallel and perpendicular lines, followed by the shortest distance between two lines — first the general skew-line case, then the simpler parallel-line case. The second half of the chapter turns to the plane: its equation in normal form, in point-plus-normal form, through three non-collinear points, in intercept form, and as a family of planes through the intersection of two given planes. It closes with the angle between two planes, the angle between a line and a plane, the distance of a point from a plane, and finally the coplanarity of two lines, which ties the line half of the chapter to the plane half. Every idea here is available in both a vector form (compact, coordinate-free) and a Cartesian form (the one you actually compute with) — learning to translate fluently between the two is itself a chapter skill, and both forms are given for every result below.
The core ideas
Direction cosines and direction ratios of a line
If a directed line makes angles with the positive axes, these are its direction angles, and their cosines are its direction cosines, always written :
where: are measured from the positive direction of each axis to the line. Reversing the line's direction replaces each angle by its supplement, flipping the sign of all three direction cosines — so a genuinely unique triple exists only once the line has been given a direction, that is, turned into a directed line. Because are the projections of a unit vector along onto the three axes,
This single identity is used constantly to check or to fix the sign of a missing direction cosine, and it is the chapter's most-quoted formula. Any three numbers proportional to — that is, , , for some nonzero — are called direction ratios of the line. Squaring and adding, , so
where: the sign choice, all plus or all minus, fixes which of the line's two directions is meant. Unlike direction cosines, direction ratios are not unique even up to sign — for any nonzero is an equally valid set — which is exactly why they are easier to work with in practice: normalising is postponed to the last step, if it is needed at all. For two points and , the direction ratios of line are simply (or the negatives, for the opposite direction), and dividing each by
gives the direction cosines of the directed line from to . This is the workhorse formula for turning any two given points into a usable direction.
Equation of a line in space
A line is fixed uniquely either by a point and a direction, or by two points. Let have position vector and let the line pass through parallel to a vector . For any point on the line with position vector , the vector is parallel to , so for some scalar , giving the vector equation
where: is a free real parameter sweeping out every point of the line as it varies, and carries the direction ratios of the line directly as its components. Writing and and equating components gives the parametric equations ; eliminating produces the Cartesian equation
If the direction cosines are used in place of , the same equation reads , with the advantage that any point on the line at signed distance from is exactly . When the line is fixed by two points and instead, the direction vector is simply , giving
where: and are the two given points; setting recovers and recovers .
Angle and shortest distance between two lines
Two lines with direction ratios and meet — or would meet, if translated to a common point — at an angle given by
where: the modulus keeps the acute angle between the lines, since a line has no preferred direction; in vector form the same statement is . The lines are perpendicular exactly when , and parallel exactly when . Two lines in space either intersect, are parallel, or are skew — neither parallel nor intersecting, lying in no common plane, a case with no analogue in two-dimensional geometry (in a plane, two distinct non-parallel lines always meet). The classic picture is a rectangular room: a diagonal drawn across the ceiling and a diagonal drawn down an adjacent wall never meet and are never parallel — they are skew. Skew lines still have a well-defined, unique shortest distance between them, achieved along the one line segment perpendicular to both simultaneously; this is derived in full below. When the two lines happen to be parallel instead, the shortest distance reduces to the ordinary perpendicular distance from any point of one line to the other:
The plane — standard forms of its equation
A plane, like a line, needs a point and one more piece of geometric data — but for a plane that extra data is a normal vector, a vector perpendicular to every line lying in the plane. If is a normal and (position vector ) is a known point of the plane, then lies in the plane exactly when is perpendicular to :
where: , so are the direction ratios of the normal — and, on expanding, they are exactly the coefficients of in the plane's Cartesian equation . A special, very useful case is the normal form: if is the unit normal and is the perpendicular distance of the plane from the origin, the plane is , or in Cartesian form with the direction cosines of the normal. A plane through three non-collinear points is fixed without ever naming a normal explicitly — the normal is manufactured from the points themselves by a cross product, and the whole construction collapses into a single determinant, derived in full below:
If a plane cuts off intercepts on the axes respectively, its equation takes the tidy intercept form
Finally, every plane through the line of intersection of two given planes and , except itself, is captured by the one-parameter family of planes
where: is chosen afterwards to satisfy one further condition, most often that the plane passes through a named third point — this is the standard shortcut for "find the plane through this line of intersection and this extra point," and it avoids ever finding the line of intersection explicitly.
Angle between planes, a line and a plane, and the distance from a point
Two planes with normals and meet at a dihedral angle equal to the angle between their normals:
The planes are perpendicular when and parallel when . A line with direction ratios meets a plane with normal direction ratios at an angle measured from the plane itself, not from the normal, so is complementary to the angle between the two direction vectors:
where: the line is parallel to the plane precisely when , its direction vector perpendicular to the normal, and perpendicular to the plane precisely when , its direction vector parallel to the normal — the reverse pairing from the plane-plane case, and a frequent source of confusion. The perpendicular distance of a point from the plane is obtained by projecting the join of and any point of the plane onto the unit normal direction, derived in full below:
Coplanarity of two lines
Two lines and lie in a common plane exactly when the vector from a point of the first to a point of the second, , is coplanar with and — equivalently, when the scalar triple product vanishes:
In Cartesian form, with direction ratios and and points , , the condition is the vanishing of exactly the same numerator determinant that appears in the shortest-distance formula:
where: this is exactly the statement that the shortest distance between the two lines is zero — coplanar lines are precisely the lines for which the general skew-line formula collapses, either because they intersect () or because they are parallel. Checking coplanarity is therefore the natural first step of any shortest-distance calculation, not a separate topic.
The goal is to find the length of the one line segment that meets both of two skew lines at right angles — the shortest possible join between them — starting only from a point and a direction vector on each line, using nothing beyond the dot and cross product built in the vector algebra chapter. Skew lines never meet and are never parallel, so no elementary distance formula applies directly; instead the direction of the common perpendicular is manufactured first, and only then is the actual separation of the two lines measured along it.
Step 1. Let the two skew lines be and , with a chosen point on (position vector ) and a chosen point on (position vector ). The vector joins the two lines, but it is not, in general, the shortest such join — it depends entirely on which points and happened to be picked.
Step 2. Construct the one direction that does not depend on the choice of and : the line of shortest distance must be perpendicular to both and simultaneously, since it is the unique segment realising the minimum separation of the two lines. The only vector, up to scale, perpendicular to both and is their cross product, so the unit vector along is .
Step 3. Relate the fixed vector to the unknown shortest distance. Whatever the true feet (on ) and (on ) of the common perpendicular turn out to be, the length is exactly the projection of onto the fixed direction , because moving from to or from to along the lines only ever adds components parallel to or , both of which vanish upon dotting with , since is perpendicular to both. So, if is the unsigned shortest distance, .
Step 4. Substitute Steps 1 and 2 into Step 3 to reach the working formula. Since and ,
Step 5. Confirm the formula degrades sensibly at its edges. If the lines actually intersect, lies in the plane spanned by , the numerator vanishes, and — exactly the coplanarity condition of equation (16). If the lines are parallel instead, and the formula breaks down as a division by zero, which is why the parallel case needs its own formula, equation (8), obtained by the same projection argument but onto a normal to the single shared direction .
Go deeper · Derivation B · 2 minEquation of a plane through three non-collinear points
The goal is to write down the equation of the unique plane through three given non-collinear points , , without ever being handed a normal vector directly — the three points must manufacture their own normal, and the final answer should reduce, in a single stroke, to a determinant equation that can be written straight from the coordinates.
Step 1. Since are non-collinear, the two vectors and are not parallel, so they span a genuine plane, and their cross product is a nonzero vector perpendicular to both — hence perpendicular to the whole plane through . This is exactly the normal vector the point-plus-normal formula, equation (9), needs.
Step 2. Let , with position vector , be any point of the plane. Because and , and lies in the plane spanned by , the vector is a linear combination of and , so it is automatically perpendicular to as well: . This is exactly equation (9) with substituted in.
Step 3. Expand the condition using the scalar triple product identity: a vector is perpendicular to exactly when the scalar triple product vanishes, and this triple product is precisely the determinant with as its three rows. Taking , , gives directly
which is the required equation, and it is manifestly satisfied at in turn — each substitution collapses the determinant to zero, either by repeating a row or by making the first row a combination of the other two.
Step 4. Read off the coplanarity link. The determinant in Step 3 is structurally the same object as the numerator of the coplanarity test for two lines, equation (17): both express "the vector from a base point to a target point lies in the plane spanned by two given directions" as the vanishing of a scalar triple product. Once expanded along the first row, the determinant is linear in , so it always reduces to the Cartesian form with exactly the components of .
Go deeper · Derivation C · 1 minDistance of a point from a plane
The goal is to derive the compact Cartesian formula for the perpendicular distance of a point from the plane , starting from nothing more than the definition of "distance from a plane" as the length of the perpendicular dropped onto it, together with the point-plus-normal equation of a plane already established.
Step 1. Let be a normal to the plane and the corresponding unit normal. Pick any point of the plane with position vector , so simply because lies on the plane. Let have position vector .
Step 2. The perpendicular distance from to the plane is, by definition, the length of the projection of onto the normal direction — every component of that runs along the plane contributes nothing to how far sits off the plane, only the component along does. So .
Step 3. Expand the dot product in coordinates: . The bracketed second term is exactly , by Step 1, so the unknown reference point drops out entirely: .
Step 4. Substitute back into Step 2, with , to get the final formula, valid for any choice of the reference point , which is exactly why never needs to appear in the answer:
Step 5. Specialise to the origin, : , which matches the normal-form distance in once the plane's equation is divided through by to make the normal a unit vector — confirming that the normal form of equation (9) is simply this general formula applied at the origin.
Worked examples
Board level - direction cosines and the equation of a line through two given points
Find the direction cosines of the line joining and , and hence write the vector and Cartesian equations of the line .
Step 1. Direction ratios of are .
Step 2. Length , so the direction cosines are .
Step 3. Taking as the base point with position vector and direction vector from Step 1, the vector equation of line is .
Step 4. Eliminating gives the Cartesian form directly from equation (5): . Answer: direction cosines ; line , that is .
Board level - equation of a plane through three points and its distance from the origin
Find the equation of the plane through the points , and , and find its distance from the origin.
Step 1. Form two vectors lying in the plane: and .
Step 2. Compute the normal, , so .
Step 3. Using the point in equation (9): , which simplifies to .
Step 4. Distance from the origin, using equation (15) with and : . Answer: the plane is , at perpendicular distance from the origin.
Competitive level (JEE / NEET) - shortest distance between skew lines and the angle a line makes with a plane
Two lines are given by and . Find the shortest distance between and , and then find the angle that makes with the plane found in the previous example.
Step 1. Read off , , , , so .
Step 2. Compute , with magnitude .
Step 3. Shortest distance, using the derivation above: .
Step 4. For the line-plane angle, take as the line direction and as the plane's normal from the previous example. By equation (14), .
Step 5. Since , . Answer: shortest distance ; angle between and the plane is . Timing note: this two-part JEE-style question should take under four minutes once the cross-product mechanics are automatic. Compute once and reuse it for the shortest-distance dot product — do not recompute it for the second part. The commonest slip under time pressure is plugging the line's direction ratios into the plane-plane angle formula (cosine, no reference to sine) instead of equation (14); say out loud which formula applies — line versus plane means sine, plane versus plane or line versus line means cosine — before writing a single number.
Common traps
- Forgetting the modulus in the angle-between-lines formula. Raw direction ratios have no fixed sign, so from the plain dot-product formula can come out negative; always take the absolute value so stays the acute angle between the lines, as in equation (7).
- Confusing direction ratios with direction cosines. Direction ratios are not unique and do not satisfy in general — only the normalised do. Never plug raw direction ratios into a formula that expects direction cosines without dividing by their magnitude first.
- Swapping the plane-plane and line-plane angle formulas. The angle between two planes uses cosine on the two normals, equation (13); the angle between a line and a plane uses sine, comparing the line's direction to the plane's normal, equation (14) — because the angle worth reporting for a line meeting a plane is measured from the plane, not from the normal.
- Using the skew-line shortest-distance formula on parallel lines. If , the general formula divides by zero; switch to the dedicated parallel-line formula, equation (8), instead.
- Sign inconsistency in the plane's constant. Some sources write the plane as , others as ; the distance formula's sign convention changes accordingly. Fix one convention — this article uses — and keep it for an entire problem.
- Treating coplanar as automatically parallel. Coplanar lines can equally well intersect; coplanarity only rules out the skew case. Always check the determinant condition, equation (17), rather than assuming parallelism.
You should be able to…
- Find the direction cosines and direction ratios of a line from two given points, and verify the identity .
- Write the vector and Cartesian equations of a line through a point and a direction, or through two points, and translate fluently between the two forms.
- Find the angle between two lines from their direction ratios or direction cosines, and decide when they are parallel or perpendicular.
- Distinguish skew lines from intersecting and parallel lines, and compute the shortest distance between two skew lines using the cross-product formula.
- Compute the distance between two parallel lines.
- Write the equation of a plane in normal form, in point-plus-normal form, through three non-collinear points, and in intercept form.
- Find the angle between two planes and the angle between a line and a plane, without confusing which formula needs sine and which needs cosine.
- Find the perpendicular distance of a given point from a plane.
- Test whether two lines are coplanar using the determinant condition, and connect a zero result to the shortest-distance formula.
- Build the family of planes through the intersection of two given planes and pin down the parameter using an extra condition.
Ask the tutor: if you are stuck on whether two lines in a problem are skew, parallel or intersecting, ask the tutor to walk through the coplanarity determinant with your exact numbers.
What is the actual difference between direction cosines and direction ratios?
Direction cosines are the cosines of the angles a line makes with the , , axes, and they always satisfy — one such triple per direction. Direction ratios are any numbers proportional to , so they need not square-sum to and are never unique: and describe the same direction. In practice, compute direction ratios first (subtraction of coordinates gives them for free), and normalise into direction cosines only when a formula specifically needs them.
How do I tell that two lines are skew without trying to visualise them in 3D?
Do not rely on a mental picture — use the coplanarity determinant, equation (17). Take the two lines' direction ratios as the second and third rows and the vector joining a point on each line as the first row; if that determinant is zero, the lines are coplanar (either intersecting or parallel), and if it is nonzero, they are skew. As a quick pre-check, see whether the direction ratios are proportional first — if they are, the lines are parallel, not skew, and the determinant is not even needed.
Why does the shortest-distance formula use a cross product instead of just subtracting the two given points?
Because the vector joining any arbitrarily chosen point on each line is not, by itself, the shortest possible join — it depends on which two points you picked, and only one particular segment, perpendicular to both lines at once, is actually the minimum. The cross product is the unique direction perpendicular to both lines' directions simultaneously, so projecting the join of any two chosen points onto that fixed direction always gives the same answer regardless of which points were chosen — exactly what the derivation above proves.
Is the plane equation Ax + By + Cz = D the same thing as the normal form?
Yes, up to one rescaling: the normal form is the special case where the coefficients have been divided by so that become the direction cosines of the normal (satisfying ) rather than arbitrary direction ratios, and is then automatically the plane's perpendicular distance from the origin. Dividing any plane by , with the sign chosen so the right side is non-negative, converts it to normal form directly.
How much of this chapter actually shows up in JEE Main and Advanced compared to boards?
Boards test the line formulas heavily — direction cosines, the equations of a line, the angle between two lines, and the shortest distance between skew or parallel lines. JEE and NEET go further into the plane half: equations of a plane through three points or via the family-of-planes trick, the angle between a line and a plane, distance of a point from a plane, and especially coplanarity of two lines combined with finding an unknown constant, a favourite multi-step JEE pattern. Both levels expect fluent, hesitation-free translation between vector and Cartesian forms.