Module 4 · JEE Mathematics

Vector & 3D Geometry

No formulas. No memorization. Just stories, animations, and "AHA!" moments.
🎯 Take Mock Test
🏴‍☠️ The Pirate 🏹 Arrows 🌓 Shadow Test 👶 Perpendicular 📐 Section 🔄 Triple 📦 Volume 📏 Skew Lines 💡 Strategies 🎯 Practice

Story Time: The Pirate Who Needed Direction

Imagine a pirate finds an old treasure map. The map says: "Walk 10 steps."

The pirate walks 10 steps... and falls into a pit! Why? Because "10 steps" tells you how far but NOT where. Was it 10 steps North? East? Into the pit?

Now imagine a BETTER map that says: "Walk 10 steps NORTH." Now the pirate knows both how far AND where. The pirate finds the treasure! 🏆

"10 Steps" vs "10 Steps North"
Scalar = Just the number. "10 steps", "5 kg", "30°C". No direction.

Vector = Number + Direction. "10 steps NORTH", "5 km South-East", "3 m/s upward".

Vectors save pirates from pits. They tell you BOTH how much AND which way.
💡 Vector = Magnitude + Direction. A scalar is just a number. A vector is an arrow — it has length AND orientation!
🧭 See the Difference: Scalar vs Vector
🧑 You SCALAR (Just Distance) "Walk 10 steps" 🤷 Which way?! VECTOR (Distance + Direction) "Walk 10 steps NORTH" → ↑ NORTH 10 steps Length = 10 ✅ Knows exactly where to go!
Left: Scalar tells you "how far" but NOT "which way" — the poor pirate could go in ANY direction! Right: A Vector tells you BOTH magnitude (length) and direction — the pirate knows EXACTLY where to go.
🌟 First Big Idea
A vector is like an arrow: it has magnitude (length) and direction (where it points).
Scalar = just the number. Vector = number + direction. That's ALL you need to remember.

Welcome to 3D: The Room Corner

In the real world, we live in 3 dimensions. Think of the corner of a room where two walls meet the floor. That's your 3D coordinate system!

🏠 The Room Corner: x, y, z Axes
Floor (xy-plane) Wall (xz-plane) Wall (yz-plane) Origin (0,0,0) x y z P(x,y,z)
Think of the corner of a room. The floor is the xy-plane, the left wall is the xz-plane, the right wall is the yz-plane. Any point in the room can be found by its x, y, and z coordinates!

Representing Vectors: The Three Magical Arrows

In 3D, any vector can be broken into three components — one along each axis. We use three special unit vectors as our building blocks:

🧙 The Three Magical Arrows: i, j, k
i → along x j → along y k → along z Each has length = 1 (that's why they're called "unit" vectors)
The three magical arrows: points along x, points along y, points along z. Each has length = 1. ANY vector in 3D can be built from these three!

Building Any Vector: a = a₁i + a₂j + a₃k

Think of it like a recipe: you take a₁ spoonfuls of i, a₂ spoonfuls of j, and a₃ spoonfuls of k, and BAM — you have your vector!

📐 See the Components in Action
O a₁i x-component a₂j y-component a₃k z-component a = a₁i + a₂j + a₃k Walk a₁ along x, then a₂ along y, then a₃ along z |a| = √(a₁² + a₂² + a₃²) ← Slide to change a₁ → (Watch components grow!)
Start at origin. Walk a₁ steps along x (green), then a₂ steps along y (purple), then a₃ steps along z (amber). The straight-line distance from start to finish is the magnitude: √(a₁² + a₂² + a₃²).
🌟 Second Big Idea
Any vector in 3D = a₁î + a₂ĵ + a₃k̂. The magnitude is just the straight-line distance from tail to tip.
Like the hypotenuse of a 3D right triangle: |a| = √(a₁² + a₂² + a₃²).
🧮 Why Magnitude = √(a₁² + a₂² + a₃²)?

It's just the 3D version of the Pythagorean theorem! In 2D, the hypotenuse of a right triangle with sides a₁ and a₂ is √(a₁² + a₂²). In 3D, you add the third dimension:

Step 1: First, the projection on the xy-plane has length √(a₁² + a₂²).

Step 2: Now you have a vertical triangle with base √(a₁² + a₂²) and height a₃.

Step 3: The hypotenuse = √(√(a₁² + a₂²)² + a₃²) = √(a₁² + a₂² + a₃²).

That's ALL there is to it! It's the Pythagorean theorem in 3D.

How Much Do Two Vectors Point Together?

Imagine you have TWO vectors. The dot product answers one simple question: "How much do they point in the SAME direction?"

Picture a flashlight shining straight down onto vector b. The shadow that a casts on b is the dot product!

🔦 The Shadow Test: a·b = |a||b|cosθ
O a b Shadow |a|cosθ θ cosθ = adjacent/hypotenuse a·b = |a||b|cosθ = (length of a) × (shadow of b onto a)
Shine a light straight down onto b. The shadow that a casts on b is |a|cosθ. Multiply by |b| and you get the dot product! It measures "how much of a points in b's direction."

The Two Special Cases

↔️ Perpendicular vs Parallel
Perpendicular: θ = 90° a b Shadow = 0! a·b = 0 (no overlap!) Parallel: θ = 0° a b Full shadow = |a| a·b = |a||b| (maximum!)
Left: If a and b are perpendicular, there's ZERO shadow — they don't point together at all. Dot = 0. Right: If they're parallel, the shadow is FULL — maximum overlap. Dot = |a||b|.
🌟 Third Big Idea
The dot product measures "how much two vectors point together." It's a scalar (just a number).
Perpendicular → dot=0. Parallel → dot=|a||b|. Everything else is somewhere in between.
🎮 Interactive: Drag the Angle, See Dot Product Change
Move the slider to rotate vector a. Watch how the dot product changes as θ changes!
O b a θ a·b = 12.0
Perpendicular (dot=0) Parallel (dot=max) θ=60°

When Two Vectors Have a Baby

If the dot product asks "how much together?", the cross product asks "how much APART?"

When two vectors a and b are NOT parallel, they form a parallelogram. The cross product gives us:

  • Magnitude: The AREA of that parallelogram = |a||b|sinθ
  • Direction: A NEW vector PERPENDICULAR to both a and b
📐 The Parallelogram: Area = |a×b|
O a b Height = |b|sinθ Base = |a| θ |a×b| = |a||b|sinθ = Area of parallelogram
Two vectors always form a parallelogram. The area of that parallelogram = base (|a|) × height (|b|sinθ) = |a||b|sinθ = magnitude of the cross product. The bigger the angle, the bigger the area!

The Right-Hand Rule: Which Way Does the Baby Point?

The cross product a×b gives a NEW vector that's perpendicular to both a and b. But which direction? Use your RIGHT hand:

✋ The Right-Hand Rule
Fingers curl from a → b Thumb points in direction of a×b The Result: a×b a (forward) b (up-right) a×b ↑ (perpendicular!) • Perpendicular to BOTH a AND b • Direction: Right-hand rule • If a∥b → cross = 0 (flat parallelogram!) • If a⊥b → cross is maximum ⚠ Parallel vectors → cross = 0 (no area!)
Point your right-hand fingers along vector a, curl them toward b. Your thumb points in the direction of a×b. If a and b are parallel, there's NO area → cross product = 0!
🌟 Fourth Big Idea
The cross product gives a NEW vector perpendicular to both parents. Its length = the area of the parallelogram they form.
a×b = |a||b|sinθ × n̂, where n̂ is the perpendicular direction (right-hand rule).
The Door That Opens
Dot product: You push a door. If you push straight (parallel to the door), it doesn't open — dot = 0. If you push perpendicular, it opens fully — dot is maximum.

Cross product: The door's hinge is like a×b. The door swings in a plane, and the hinge is PERPENDICULAR to that plane. The area the door sweeps = the cross product magnitude!
🧠 Dot = "how much together". Cross = "the perpendicular baby". One is a number, the other is a NEW vector.

Same as 2D, Just With One More Spice

Everything you know from 2D geometry works in 3D, just with an extra z-coordinate. Let's see how!

3D Distance: Just Add z!

In 2D, distance between (x₁,y₁) and (x₂,y₂) = √[(Δx)² + (Δy)²]. In 3D: just add (Δz)²!

📍 Point in 3D Space
x y z O(0,0,0) P(3,4,5) x=3 y=4 z=5 d = √(x² + y² + z²) = √(9 + 16 + 25) = √50 = 5√2
Point P(3,4,5) in 3D space. Its distance from the origin is just the 3D Pythagorean theorem: √(3² + 4² + 5²) = √50 = 5√2. Same as 2D but with an extra term!

Line in 3D: "For Each Step t, Move (a,b,c)"

A line in 3D is like a set of marching instructions: "For each step t, move a units in x, b in y, and c in z."

🪄 The 3D Line: (x-x₁)/a = (y-y₁)/b = (z-z₁)/c = t
x y z P₁(1,2,1) P₂(4,5,3) (a,b,c) t=1: +3x, +3y, +2z t=2: +6x, +6y, +4z (x-1)/3 = (y-2)/3 = (z-1)/2 = t For each step t: x goes from 1→4, y from 2→5, z from 1→3
A line in 3D is just a starting point + a direction vector. The parameter t tells you how far along the line you've gone. Like a train on tracks — at each moment t, you're at a specific position!

Plane: A Flat Sheet With a Normal

A plane is like a flat, infinite sheet. The key to understanding a plane is its normal vector — the vector that sticks out PERPENDICULAR to the surface.

🛬 The Plane: ax + by + cz = d
Plane: ax + by + cz = d O x y n = (a,b,c) Normal vector The normal vector (a,b,c) is PERPENDICULAR to EVERY line in the plane! d = perpendicular distance
A plane is a flat sheet. Vector n = (a,b,c) is the normal — it sticks straight out from the plane, perfectly perpendicular. The equation ax + by + cz = d tells you which plane it is. If a point is on the plane, substituting its coordinates satisfies the equation!
🌟 Fifth Big Idea
A plane = a flat sheet. Its normal vector sticks out perpendicular. The equation ax + by + cz = d is like a password — only points ON the plane can satisfy it.
A line = a starting point + direction vector × t. Like a train on tracks at time t.
The World Is 3D!
GPS: Your phone uses 3D coordinates (latitude, longitude, altitude) to find you — that's (x,y,z)!

Airplanes: A flight path is a 3D line: (x-x₁)/a = (y-y₁)/b = (z-z₁)/c tells the plane "for each step forward, go a East, b North, c up."

Construction: A wall is a plane. The normal vector points perpendicular to the wall. Engineers use this to ensure walls are straight!
🧠 3D Geometry isn't abstract. It's the math of how everything in the physical world works!

Dividing a Line in a Given Ratio

If two points A and B have position vectors a and b, any point P on the line AB can be expressed as a weighted combination of them. This is the core idea behind the section formula.

📍 Section Formula: P = (n·a + m·b) / (m+n)
O a A b B P (Midpoint) AP : PB = 1 : 1 P = (1·a + 1·b) / 2 When m=n, P is the midpoint
Closer to A Closer to B m:n=1:1
Drag the slider to change ratio m:n. Point P divides AB such that AP:PB = m:n. The position vector of P is a weighted average of a and b: P = (n·a + m·b)/(m+n). When m=n, P is the midpoint: (a+b)/2.

Centroid of a Triangle

The centroid (intersection of medians) of a triangle with vertices at position vectors a, b, c is simply the average of the three:

G = (a + b + c) / 3
🔺 Centroid = Average of Vertices
A B C G (Centroid) G = (A+B+C)/3
The centroid is the average of the three vertices. It's where all three medians intersect, and it divides each median in ratio 2:1.

Collinearity Condition

Three points A, B, C with position vectors a, b, c are collinear (lie on the same line) if one vector can be written as a linear combination of the other two. Specifically, there exist scalars λ + μ = 1 such that:

c = λ·a + μ·b, where λ + μ = 1

Equivalently, the vectors b - a and c - a are parallel — their cross product is zero!

🌟 Sixth Big Idea
Position vectors let you turn geometry into algebra. The centroid is just an average. Collinearity means one point is a weighted combination of the other two.
"Use position vectors to simplify any geometry problem — they turn lines into equations!"

The "bac-cab" Rule

What happens when you take the cross product of a vector with another cross product? You get the vector triple product: a×(b×c). The result is a vector that lies in the plane of b and c — always!

a × (b × c) = (a·c)b - (a·b)c
🎯 a×(b×c) Lies in the Plane of b and c
b c Plane of b, c a b×c ⟂ plane a×(b×c) ⬅ in plane! a×(b×c) = (a·c)b − (a·b)c
b×c is perpendicular to the plane of b and c. Then a×(b×c) swings back into the plane — it's a linear combination of b and c! That's why the formula only uses b and c, not a.
"Bac-Cab" = (a·c)b - (a·b)c
bac-cab — say it out loud!

bac = b × (a·c) — the "b" gets multiplied by (a·c)
cab = c × (a·b) — the "c" gets multiplied by (a·b)
• Subtract: bac − cab = (a·c)b − (a·b)c

Notice the pattern: the middle vector (b×c or c×a) determines which vector gets + and which gets −.
💡 The result is ALWAYS in the plane of the two vectors INSIDE the parentheses!
🧮 Worked Example: Simplify a×(b×c) + b×(c×a) + c×(a×b)

Step 1: Apply bac-cab to each term:

a×(b×c) = (a·c)b - (a·b)c

b×(c×a) = (b·a)c - (b·c)a

c×(a×b) = (c·b)a - (c·a)b

Step 2: Add all three:

= (a·c)b - (a·b)c + (b·a)c - (b·c)a + (c·b)a - (c·a)b

Step 3: Collect like terms. Notice (a·c)b and -(c·a)b cancel! Similarly the other pairs cancel too.

Answer: a×(b×c) + b×(c×a) + c×(a×b) = 0

This is a famous identity — the sum of cyclic triple products is always zero!

a·(b×c) = Volume of Parallelepiped

Take three vectors a, b, c. They form a slanted box called a parallelepiped. The scalar triple product [a b c] = a·(b×c) gives the volume of this box!

[a b c] = a · (b × c) = Volume of parallelepiped
📦 The Parallelepiped: Volume = |a·(b×c)|
Base Area = |b×c| a b c Height = |a|cosθ Volume = Base Area × Height = |b×c| × |a|cosθ = |a·(b×c)|
The three vectors a, b, c form a slanted box. Base area = |b×c| (parallelogram of b and c). Height = |a|cosθ (how much a sticks up). Volume = base × height = |a·(b×c)|. If the volume is zero, the vectors lie in the same plane!

Coplanarity: When Three Vectors Lie in a Plane

If a, b, c are coplanar (all in the same plane), they can't form a 3D box — the volume is zero!

[a b c] = 0 ⇔ a, b, c are coplanar
⬇️ Coplanar = Zero Volume
⚠ Coplanar: Volume = 0 All three vectors lie FLAT — no height at all! a b c
If a, b, c are coplanar, the scalar triple product [a b c] = 0. Think of it as a box that got squashed flat — no height, no volume!

Four Points Coplanarity

Four points A, B, C, D are coplanar if the vectors AB, AC, AD are coplanar:

[(b-a) (c-a) (d-a)] = 0
🌟 Seventh Big Idea
The scalar triple product = volume of a box. If it's zero, everything is flat — the vectors are coplanar.
"Think 3D: three vectors either make a box or lie flat. The triple product tells you which!"

Skew Lines, Line-Plane Angles, and More

Shortest Distance Between Two Skew Lines

Two lines in 3D that are neither parallel nor intersecting are called skew lines. They don't meet, but there's a unique shortest distance between them — along a line perpendicular to BOTH.

📏 Shortest Distance Between Skew Lines
L₁ L₂ Shortest Distance d d = |(a₂−a₁)·(b₁×b₂)| / |b₁×b₂| Project the vector between the lines onto the common perpendicular
Two skew lines L₁ and L₂ — they don't meet, don't run parallel. The shortest distance is the length of the common perpendicular segment connecting them (shown in amber). It's the projection of the vector between any two points (one on each line) onto the direction perpendicular to both lines.

Angle Between a Line and a Plane

The angle between a line and a plane is NOT the angle between the line and the normal! It's the complement — the angle between the line and its projection onto the plane.

sin φ = |(direction vector of line) · (normal vector of plane)| / (|d| · |n|)
🪄 Line Piercing Through a Plane
Plane Intersection Point n φ (angle) Angle between line and plane = 90° − angle between line and normal
A line piercing through a plane. The angle φ between the line and the plane is the complement of the angle between the line and the normal vector. If the line is parallel to the normal, it's perpendicular to the plane (φ = 90°). If the line is perpendicular to the normal, it lies in the plane (φ = 0°).

Condition for a Line to Lie in a Plane

A line with direction vector d passing through point A lies in a plane with normal n if and only if:

d · n = 0 AND A lies on the plane

The direction vector must be perpendicular to the normal (parallel to the plane), AND the point must satisfy the plane equation.

🌟 Eighth Big Idea
For any line-plane problem: the normal vector is your best friend. Project onto it for distances, take dot products for angles, use cross products for perpendicular directions.
"When in doubt, find the normal first. Everything else follows from that."

Finding the Best Solution in a Feasible Region

Linear programming is about optimizing (maximizing or minimizing) a linear objective function subject to linear constraints. The corner point method says: the optimum always occurs at a vertex of the feasible region!

📊 Feasible Region & Corner Points
x y O A(50,0) B(80,20) C(35,45) D(0,30) O(0,0) Objective line sweeping → Feasible Region Corner Point Method: Evaluate Z = ax+by at each vertex → pick max/min
The feasible region is the set of points satisfying all constraints. The optimum of the objective function Z always occurs at a corner point (vertex). Sweep the objective line outward — the last corner it touches gives the optimal value!
🧮 Worked Example: Maximize Z = 3x + 4y with Constraints

Constraints:

x + y ≤ 50, 2x + y ≤ 80, x ≥ 0, y ≥ 0

Step 1: Plot the constraints and find the feasible region.

Step 2: Find the corner points:

O(0,0), A(50,0), B(30,20) — intersection of x+y=50 and 2x+y=80, C(0,50)

Wait — let me solve correctly: x+y=50 and 2x+y=80 → subtract: x=30, y=20. So B(30,20).

Step 3: Evaluate Z at each corner:

O: Z=0 | A: Z=150 | B: Z=3(30)+4(20)=170 | C: Z=100

Maximum Z = 170 at B(30,20). Minimum Z = 0 at O(0,0).

Unbounded case: If the region doesn't close, and Z can increase without bound, there's no finite maximum. If the region is empty, there's no solution at all!

🌟 Ninth Big Idea
Linear Programming = optimizing a straight line over a polygon. The answer is ALWAYS at a corner. Just check the vertices!
"When the region is unbounded, the optimum might not exist. When it's empty, there's no solution. Check both!"

How to Attack Any Vector & 3D Problem

Use Position Vectors to Simplify Geometry
When you see a geometry problem with points, immediately assign position vectors a, b, c, etc. to the points. Now the problem is just vector algebra — no messy coordinate manipulation!

Example: "Prove the medians of a triangle are concurrent." Assign position vectors a, b, c. The centroid G = (a+b+c)/3 lies on each median. Done!
💡 Position vectors = coordinate-free geometry. They make proofs elegant and simple.
Dot = Projection, Cross = Area
a·b = "how much of a points in b's direction" = projection of a on b. Use it when you need shadow length, overlap, or perpendicularity (dot=0).

a×b = area of the parallelogram they form. Use it when you need area, a perpendicular vector, or parallelism (cross=0).

Pro tip: Dot product = "togetherness meter". Cross product = "apartness meter".
💡 Dot = scalar (a number). Cross = vector (an arrow). They measure different things — don't mix them up!
For Planes, Always Find the Normal First
The normal vector n = (a,b,c) is the key to EVERY plane problem:

Equation: ax + by + cz = d — the coefficients ARE the normal.
Distance from point to plane: |ax₁+by₁+cz₁-d| / √(a²+b²+c²)
Angle with line: sinφ = |d·n| / (|d|·|n|)
Parallel planes: Same normal, different d.
Perpendicular planes: Dot product of normals = 0.
💡 The normal vector is a plane's "fingerprint." Find it first, and everything else falls into place.

Trap Doors in Vector Problems

Order Matters in Cross Product!
Wrong: a×b = b×a
Right: a×b = b×a

The cross product is anti-commutative. Swapping the vectors flips the direction (right-hand rule reverses). This is the #1 cause of sign errors in vector problems!

Memory trick: a before b → thumbs up. b before a → thumbs down.
⚠ Always check the order! a×b ≠ b×a — they're opposites!
Dot Product → Scalar. Cross Product → Vector.
Wrong: "a·b gives a vector perpendicular to both."
Right: a·b gives a number (scalar). a×b gives a vector.

The names tell you everything:
Dot product → the dot is a small multiplication → scalar
Cross product → the cross is a big X → vector
⚠ Dot = number. Cross = vector. Never confuse them again!
a×b = 0 Doesn't Mean a = 0 or b = 0!
Wrong: "a×b = 0, so either a or b must be zero."
Right: a×b = 0 means a and b are parallel (or one of them is zero).

Remember: |a×b| = |a||b|sinθ. If sinθ = 0, the cross product is zero — even if both vectors are huge! They just happen to be pointing the same (or opposite) way.
⚠ a×b = 0 means they're parallel, not that they're small! Don't jump to conclusions.
Distance Formula — Don't Forget the Absolute Value!
Wrong: Distance from point (x₁,y₁,z₁) to plane ax+by+cz+d=0 = (ax₁+by₁+cz₁+d)/√(a²+b²+c²)
Right: Distance = |ax₁+by₁+cz₁+d| / √(a²+b²+c²)

The absolute value is crucial! Distance can never be negative. The numerator might be negative (if the point is on the opposite side of the plane), but the distance is always positive.
⚠ Distance is always positive! Put absolute value bars around the numerator.

Practice Zone: Think, Don't Compute

These questions test if you truly understand the ideas. No calculation needed — just reasoning!

← Coordinate Geometry Probability & Statistics →