Skip to content
GATEiit

GATE EC, AE, IN, AG · Linear Algebra

Vector Algebra and Operations in Plane and Space

2D and 3D vectors, direction cosines, dot and cross products, projections, scalar and vector triple products (BAC–CAB), coplanarity, and lines and planes.

Before you start

  • Matrices and determinants →

    Cross products and scalar triple products [a b c] are evaluated directly as 3 x 3 determinants.

  • 2D and 3D coordinate geometry

    Direction cosines and orthogonal components express geometric vectors algebraically in R^2 and R^3.

This topic comes before: System of forces, free-body diagrams, equilibrium equations, Biot-Savart’s law, Coulomb's Law, Lorentz force, Gradient, Directional Derivatives, Divergence and Curl, Line, Surface and Volume Integrals, Tensors

Concept notes

1. Vectors, components and direction cosines

A vector has magnitude and direction. In space, with unit vectors i^,j^,k^ along the axes,

A=Axi^+Ayj^+Azk^,∣A∣=Ax2+Ay2+Az2

In the plane, simply drop the k^ term. The unit vector along A is a^=A/∣A∣.

The vector from point P(x1,y1,z1) to Q(x2,y2,z2) is PQ→=(x2−x1)i^+(y2−y1)j^+(z2−z1)k^, and its length is the distance PQ.

Direction cosines. If A makes angles α,β,γ with the x,y,z axes,

l=cos⁡α=Ax∣A∣,m=cos⁡β=Ay∣A∣,n=cos⁡γ=Az∣A∣,l2+m2+n2=1

Any numbers proportional to (l,m,n) are direction ratios. So (l,m,n) are just the components of the unit vector.

Section formula. The point dividing PQ internally in the ratio m:n has position vector n p+m qm+n; the midpoint is (p+q)/2.

Addition is component-wise, commutative and associative; kA scales every component by k.

xyzP(Ax , Ay , Az )AγAx Ay Az A = Ax i + Ay j + Az k|A| = √(Ax ² + Ay ² + Az ²)direction cosines:l = cos α = Ax / |A|m = cos β = Ay / |A|n = cos γ = Az / |A|l² + m² + n² = 1α, β, γ: angles of A with thex, y, z axes (γ shown)
A vector A from the origin to P, with its components along the axes and the angle γ it makes with the z-axis.

2. Dot product and orthogonal projections

The dot (scalar) product of a and b with angle θ∈[0,π] between them is a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cos⁡θ.

Key consequences:

  • Perpendicularity: non-zero vectors satisfy a⊥b  ⟺  a⋅b=0.
  • Scalar projection of a onto b: compba=a⋅b^=a⋅b∣b∣ (signed).
  • Vector projection of a onto b: projba=a⋅b∣b∣2b.
  • Orthogonal decomposition: a=a∥+a⊥ where a∥=projba and a⊥=a−a∥.
  • Cauchy–Schwarz: ∣a⋅b∣≤∣a∣∣b∣.

In fluid mechanics, the volume flux across an elemental panel S=Sn^ is V⋅S, selecting only the velocity component normal to the panel.

Dot product & scalar projectionθab|a| cos θ = a·b / |b|Cross product a × b (normal & area)aba × b ⊥ planeArea = |a × b|
Left: scalar projection of a onto b. Right: cross product a × b perpendicular to both vectors with magnitude equal to the parallelogram area.

3. Cross product, area and normals

The cross (vector) product:

Its direction is perpendicular to both A and B, given by the right-hand rule.

Properties

  • Anti-commutative: B×A=−A×B; A×A=0.
  • Distributive over addition, but not associative.
  • Cyclic rule: i^×j^=k^, j^×k^=i^, k^×i^=j^; reversing the order gives a minus sign.
  • Parallel test: A∥B  ⟺  A×B=0 (components proportional).

Geometry

Quantity Formula
Area of parallelogram with sides A,B ∣A×B∣
Area of triangle PQR 12∣PQ→×PR→∣
Unit normal to the plane of A,B ±A×B∣A×B∣
Torque, moment τ=r×F

In the plane, for A=(a1,a2) and B=(b1,b2), the parallelogram area is ∣a1b2−a2b1∣.

Lagrange's identity links the two products: ∣A×B∣2+(A⋅B)2=∣A∣2∣B∣2.

ABA × Bθh = |B| sin θarea = |A × B||A × B| = |A| |B| sin θdirection: right-hand rule,fingers from A to B, thumbalong A × B (normal to both)B × A = −(A × B)Parallelogram area = |A × B|; triangle on A and B = half of it
A × B is normal to the plane of A and B, and its magnitude is the area of the parallelogram they span.

4. Scalar Triple Product, Coplanarity, and 3D Volumes

Combining one dot and one cross product yields a signed scalar; the box / scalar triple product [a  b  c]=a⋅(b×c): Key properties tested heavily in GATE:

  1. Cyclic invariance & swap sign: [a  b  c]=[b  c  a]=[c  a  b], and a⋅(b×c)=(a×b)⋅c (dot and cross can trade places). Swapping any two vectors reverses the sign.
  2. Volume readout: Vparallelepiped=∣[a  b  c]∣, whereas a tetrahedron spanned by a,b,c from a common vertex has volume Vtetra=16∣[a  b  c]∣ (triangular prism is 12∣[a  b  c]∣).
  3. Linear dependence / coplanarity: three 3D vectors are coplanar (linearly dependent) if and only if [a  b  c]=0.
Scalar Triple Product a · (b × c) = Volume of Parallelepiped (1/6 Volume for Tetrahedron) b c a b × c h = |a| cos θ Base Area = |b × c| Geometric Readouts Parallelepiped V = |a · (b × c)| Tetrahedron V = (1/6) |a · (b × c)| Coplanar ⇔ a · (b × c) = 0 Triangle Area = ½ |b × c| Cyclic invariant: [a b c] = [b c a]
Scalar triple product computes signed volume of the parallelepiped (base area |b×c| times projection height); a tetrahedron takes 1/6 of that volume.

5. Vector Triple Product (BAC–CAB) and Four-Vector Products

Because b×c is perpendicular to the (b,c) plane, taking a×(b×c) forces the result back into the plane spanned by b and c via the BAC–CAB identity: a×(b×c)=(a⋅c)b−(a⋅b)c. Notice carefully: the cross product is not associative Compare parentheses placement: (a×b)×c=−c×(a×b)=(a⋅c)b−(b⋅c)a. They are equal only in special cases (such as a∥c or b⊥both), and cyclically summing obeys the Jacobi identity a×(b×c)+b×(c×a)+c×(a×b)=0. For an arbitrary unit normal n^, BAC–CAB splits any vector u orthogonally into parallel and transverse parts: u=(u⋅n^)n^+n^×(u×n^)(used directly in TE/TM waveguide fields).

Vector Triple Product Decomposition: u = (u · n̂) n̂ + n̂ × (u × n̂) n̂ (u · n̂) n̂ u u_⊥ = n̂ × (u × n̂) BAC − CAB Identity a × (b × c) = (a · c) b − (a · b) c (a × b) × c = (a · c) b − (b · c) a Generally: a × (b × c) ≠ (a × b) × c Jacobi sum = 0
Applying BAC−CAB to unit normal n̂ splits any field u into longitudinal component (u·n̂)n̂ and transverse plane projection n̂×(u×n̂).

6. Lines and planes

Line through point a along direction b: r=a+t b, or

x−x1b1=y−y1b2=z−z1b3

Plane through point r0 with normal n=(a,b,c): n⋅(r−r0)=0, that is ax+by+cz=d. The coefficients of x,y,z form a normal vector. A plane through three points has normal PQ→×PR→.

Distance from point (x0,y0,z0) to the plane ax+by+cz=d:

D=∣ax0+by0+cz0−d∣a2+b2+c2

It is the projection of the vector from any point on the plane to the given point onto the unit normal. In the plane, the distance from (x0,y0) to ax+by=d is ∣ax0+by0−d∣/a2+b2.

Angles

Between Formula
Two lines with directions b1,b2 cos⁡θ=∣b1⋅b2∣∣b1∣∣b2∣
Two planes with normals n1,n2 cos⁡θ=∣n1⋅n2∣∣n1∣∣n2∣
Line b and plane n sin⁡ϕ=∣b⋅n∣∣b∣∣n∣

A line is parallel to a plane when b⋅n=0, and perpendicular to it when b×n=0.

Formulas to remember

Magnitude
∣A∣=Ax2+Ay2+Az2
Direction cosines
l2+m2+n2=1,l=Ax∣A∣
Dot product
A⋅B=∣A∣∣B∣cos⁡θ=AxBx+AyBy+AzBz
Scalar projection of A on B
A⋅B∣B∣
Cross product magnitudeArea of the parallelogram on A,B
∣A×B∣=∣A∣∣B∣sin⁡θ
Triangle area
Area=12 ∣PQ→×PR→∣
Scalar triple productParallelepiped volume; zero iff coplanar; tetrahedron volume is one sixth
[A B C]=A⋅(B×C)
Vector triple product
A×(B×C)=B(A⋅C)−C(A⋅B)
Point to plane distance
D=∣ax0+by0+cz0−d∣a2+b2+c2
Lagrange norm identity
∣a×b∣2+(a⋅b)2=∣a∣2∣b∣2
Scalar triple product & tetrahedron volumeCheck edge vectors from a common vertex: for vertices A,B,C,D use AB, AC, AD.
[a  b  c]=a⋅(b×c)=det⁡[a    b    c],Vtetra=16∣[a  b  c]∣

Common mistakes

  • Forgetting the minus sign on the middle (j^) term when expanding the cross-product determinant.
  • Using the full parallelogram area for a triangle; the triangle is half of ∣PQ→×PR→∣.
  • Forgetting the factor 16 for a tetrahedron; the triple product gives the parallelepiped volume.
  • Treating the cross product as associative; use A×(B×C)=B(A⋅C)−C(A⋅B).
  • Dividing by ∣A∣ instead of ∣B∣ for the projection of A on B.
  • Dropping the −d term or the absolute value in the point-to-plane distance formula.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Angle and projection

numerical

For A=2i^+j^−2k^ and B=3i^−4k^, find the angle between them and the scalar projection of A on B.

  1. Step 1: Find the dot product and the magnitudes.

    Try it on paper first.

Example 2: Coplanarity parameter via scalar triple product

numerical

Find λ so that a=i^+2j^−k^, b=2i^+j^+3k^, and c=3i^+λj^+2k^ are coplanar.

  1. Step 1: Set the scalar triple product determinant to zero.

    Try it on paper first.

Example 3: Evaluating a Nested Vector Triple Product via BAC–CAB

numerical

Simplify i^×(a×i^)+j^×(a×j^)+k^×(a×k^) for any a∈R3.

  1. Step 1: Apply BAC-CAB to the i-hat term

    Try it on paper first.

Example 4: Applying Lagrange's Identity Without Finding Components

numerical

Two vectors satisfy ∣a∣=3, ∣b∣=4, and ∣a×b∣=6. Compute (a⋅b)2 and possible angles θ.

  1. Step 1: Substitute magnitudes into Lagrange's identity

    Try it on paper first.

Previous year questions

1 official GATE Engineering Mathematics question mapped to this topic across published papers, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE Engineering Mathematics (EC, AE, IN, AG) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.