Skip to content
GATEiit

GATE EC · Engineering Mathematics

Vectors in plane and space

Vectors in two and three dimensions: components, magnitude, direction cosines, dot and cross products, projections, scalar and vector triple products, areas and volumes, coplanarity, and lines and planes, as GATE EC asks.

Before you start

  • Determinants →

    Cross products and scalar triple products are written and evaluated as 3 × 3 determinants.

  • Linear dependence →

    Three space vectors are coplanar exactly when they are linearly dependent.

  • Trigonometry

    Angles between vectors come from cos⁡θ and sin⁡θ; recall standard values.

This topic comes before: Analytic functions, Boundary conditions, Vector operations

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 projection

The dot (scalar) product:

A⋅B=∣A∣∣B∣cos⁡θ=AxBx+AyBy+AzBz

It is a scalar. Uses:

  • Angle between vectors: cos⁡θ=A⋅B∣A∣∣B∣.
  • Perpendicular test: A⊥B  ⟺  A⋅B=0 (for non-zero vectors).
  • Scalar projection (component) of A on B: A⋅B∣B∣. Vector projection: A⋅B∣B∣2 B.
  • Work done by force F over displacement d: W=F⋅d.

Properties: commutative, distributes over addition, A⋅A=∣A∣2, i^⋅i^=1, i^⋅j^=0.

Useful identity: ∣A+B∣2=∣A∣2+∣B∣2+2 A⋅B. So ∣A+B∣=∣A−B∣ exactly when A⊥B.

The Cauchy–Schwarz inequality ∣A⋅B∣≤∣A∣∣B∣ holds, with equality only for parallel vectors.

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 and vector triple products

Scalar triple product (box product):

  • ∣[A B C]∣ is the volume of the parallelepiped with edges A,B,C. The tetrahedron on the same edges has 16 of it.
  • Coplanar (linearly dependent)   ⟺  [A B C]=0. A non-zero value means the three vectors form a basis of space.
  • Cyclic shifts keep the value: [A B C]=[B C A]=[C A B]; swapping two vectors changes the sign. Dot and cross can be interchanged: A⋅(B×C)=(A×B)⋅C.
  • Any repeated vector gives zero, e.g. A⋅(A×B)=0.

Four points P,Q,R,S are coplanar iff [PQ→ PR→ PS→]=0.

Vector triple product ("BAC minus CAB"):

A×(B×C)=B(A⋅C)−C(A⋅B)

The result lies in the plane of B and C. Since the cross product is not associative, (A×B)×C=B(A⋅C)−A(B⋅C), which is different in general. This identity is the source of ∇×(∇×F)=∇(∇⋅F)−∇2F used in electromagnetics.

5. 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

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: Area of a triangle in space

numerical

Find the area of the triangle with vertices P(1,0,0), Q(0,2,0) and R(0,0,3), and a unit normal to its plane.

  1. Step 1: Form two edge vectors from $P$.

    Try it on paper first.

Example 3: Coplanar vectors and volume

numerical

For A=(1,2,1), B=(2,1,k), C=(1,−1,1): (a) find k for which the three vectors are coplanar; (b) find the volume of the parallelepiped they form when k=5.

  1. Step 1: Write the scalar triple product as a determinant in $k$.

    Try it on paper first.

Example 4: Distance from a point to a plane

numerical

Find the distance of the point (1,2,3) from the plane 2x+y+2z=1, and say on which side of the plane (relative to the normal (2,1,2)) the point lies.

  1. Step 1: Substitute the point into $ax + by + cz - d$.

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, 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 EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.