Dot Product
Scalar product, projection, work done calculation.
The dot product is one of the foundational operations in vector algebra and appears throughout electromagnetics in computing work done by a force, electric flux, and power flow. It takes two vectors and returns a scalar, capturing how much one vector projects onto the direction of another. Understanding this operation physically and mathematically is essential for GATE and university examinations alike.
Core Concept Explanation
The dot product between two vectors A and B is defined as the product of their magnitudes and the cosine of the angle between them. The result is always a scalar quantity, not a vector. This is the key distinction from the cross product. When two vectors are parallel, cosine of 0 degrees is 1, so the dot product equals the product of magnitudes. When they are perpendicular, cosine of 90 degrees is 0, so the dot product is zero.
Physically, the dot product measures how much of vector A lies along the direction of vector B. This is why it appears in work calculations: work is done only by the component of force that acts along the direction of motion. The rest of the force contributes nothing to energy transfer. This projection concept is also central to flux calculations in electromagnetics, where only the normal component of a field passes through a surface.
In rectangular coordinates, the dot product avoids angle computation entirely. If A = Ax ax + Ay ay + Az az and B = Bx ax + By ay + Bz az, then A · B = AxBx + AyBy + AzBz. This follows from the orthogonality of unit vectors: any unit vector dotted with itself gives 1, and dotted with a different unit vector gives 0.
Mathematical Expression
The two equivalent definitions must be known precisely. The geometric definition is A · B = |A||B|cos theta, where theta is the angle between the two vectors measured from the tail of one to the tail of the other (between 0 and 180 degrees). The algebraic definition is A · B = AxBx + AyBy + AzBz in Cartesian coordinates. These two forms are always equal and the choice of which to use depends on what information is given in the problem.
One important consequence is the formula for the angle between two vectors: cos theta = (A · B) divided by (|A| times |B|). In GATE problems, this is frequently used to find the angle between two given vectors or to check whether two vectors are perpendicular. The magnitude of A is found as the square root of AxAx plus AyAy plus AzAz, which is simply the square root of A dotted with itself.
Practical Understanding
In circuit and field problems, the dot product appears whenever a vector field interacts with a surface or a direction. Electric flux density D dotted with differential surface element dS gives the differential flux through that surface. Power flow given by the Poynting vector S = E cross H, when integrated over a surface using S dotted with dS, gives radiated power. The dot product is always the tool used when extracting the normal or directed component of a vector field.
Another practical use is in determining orthogonality. If A · B = 0 and neither A nor B is a zero vector, then A and B are perpendicular. This is used in antenna theory, waveguide analysis, and polarization problems. In coordinate transformations between different coordinate systems, dot products of unit vectors form the transformation coefficients.
Given:
A = 3ax + 4ay + 0az
B = 1ax + 0ay + 2az
Why this formula applies:
We have components in Cartesian coordinates, so algebraic dot product is direct.
Formula:
A · B = AxBx + AyBy + AzBz
Substitution:
A · B = (3)(1) + (4)(0) + (0)(2)
Calculation:
A · B = 3 + 0 + 0 = 3
|A| = sqrt(3² + 4² + 0²) = sqrt(9+16) = 5
|B| = sqrt(1² + 0² + 2²) = sqrt(1+4) = sqrt(5) = 2.236
cosθ = 3 / (5 × 2.236) = 3 / 11.18 = 0.2683
θ = cos⁻¹(0.2683) = 74.44°
Final Answer:
A · B = 3 (scalar), Angle between A and B = 74.44°Exam Tip: If GATE gives two vectors and asks for the angle, always use cosθ = (A·B)/(|A||B|). A common trap is computing |A| incorrectly by forgetting to square root. Also remember: dot product is commutative, A·B = B·A always.
Key Points on Dot Product Mechanism
- The dot product is a scalar operation: two vectors in, one number out. It has no direction.
- Geometrically it represents the projection of one vector onto another, scaled by the second vector's magnitude.
- The algebraic form AxBx + AyBy + AzBz avoids computing the angle explicitly and is preferred in numerical problems.
- Unit vector orthogonality rules (ax.ay = 0, ax.ax = 1) are the reason the component form works directly.
- Electric flux, work done by a force, and power calculations in EM all rely on the dot product to extract the relevant component.
Quick Revision
- A · B = |A||B|cosθ = AxBx + AyBy + AzBz. Both forms must be memorized.
- Result is always a scalar. If the answer has a direction, you made a mistake, use cross product instead.
- A · B = 0 means the vectors are perpendicular (provided neither is zero).
- A · A = |A|² is used to find magnitude: |A| = sqrt(A·A).
- Angle formula: cosθ = (A·B)/(|A||B|). This is a very common GATE one-liner.
- Dot product is commutative and distributive over addition.
- GATE trap: do not confuse dot product (scalar) with cross product (vector). Work = F·d is a dot product, torque = r×F is a cross product.
Dot Product Quiz
Test your ability to compute scalar products, find projections, and apply dot products to physical problems.
Q1.Given A = 2x-hat + 3y-hat - z-hat and B = x-hat - y-hat + 2z-hat, the scalar projection of A onto B is:
Related Articles
Scalar Triple Product
Volume of parallelepiped, [A B C] determinant form.
11 min read
Divergence
Del dot A, source or sink of vector field, flux density.
8 min read
Curl
Del cross A, circulation per unit area, rotational measure.
7 min read
Cartesian Coordinate System
x y z axes, unit vectors, position vector.
5 min read
Gradient
Del V, direction of maximum rate of increase, normal to surface.
12 min read