The dot product, also called the scalar product, multiplies two vectors and gives a number: a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cosθ. Below are the formulas you need, then solved problems from easy to hard: angles between vectors, orthogonality, projections and work.
Contents8 sections
Dot product formula
Algebraic form (components): a⋅b=a1b1+a2b2+a3b3
Geometric form (θ is the angle between the vectors): a⋅b=∣a∣∣b∣cosθ
Angle between two vectors:cosθ=∣a∣∣b∣a⋅b.
Orthogonal vectors:a⊥b⟺a⋅b=0.
Projection of a onto b:projba=∣b∣2a⋅bb.
Properties:a⋅b=b⋅a, a⋅(b+c)=a⋅b+a⋅c, a⋅a=∣a∣2.
Example: a=⟨1,2,2⟩, b=⟨2,−1,2⟩ give a⋅b=2−2+4=4. Both vectors have length 3, so cosθ=94 and θ≈63.6∘.
Computing the Scalar Product from Components
This section develops fluency with the algebraic formula a⋅b=axbx+ayby+azbz. Exercises begin in 2D with integer components and progress to 3D vectors with negative and fractional entries, building the mechanical skill needed for all later topics.
Problem 1: Dot Product of Two 2D Vectors
Easy
Let u=⟨4,3⟩ and v=⟨−2,5⟩.
Compute the scalar product u⋅v.
State whether the result is a scalar or a vector, and explain why.
Hint
Multiply the corresponding components and add the results: uxvx+uyvy. The dot product always produces a single number, not a vector.
View Solution
Solution to question 1:u⋅v=(4)(−2)+(3)(5)=−8+15=7Solution to question 2: The result 7 is a scalar. By definition, the dot product combines two vectors to yield a real number, not a new vector. This is precisely why the operation is called the scalar product.
Problem 2: Dot Product of Two 3D Vectors
Easy
Consider the vectors a=3i−2j+5k and b=i+4j−k.
Calculate a⋅b using the component formula.
Verify that b⋅a gives the same result, illustrating commutativity.
Hint
Apply a⋅b=axbx+ayby+azbz with the coefficients of i, j, k acting as the x, y, z components respectively.
View Solution
Solution to question 1:a⋅b=(3)(1)+(−2)(4)+(5)(−1)=3−8−5=−10Solution to question 2:b⋅a=(1)(3)+(4)(−2)+(−1)(5)=3−8−5=−10
Both products equal −10, confirming that the scalar product is commutative: a⋅b=b⋅a.
Problem 3: Scalar Product Using Magnitudes and Angle
Medium
Two vectors p and q satisfy ∣p∣=6, ∣q∣=9, and the angle between them is θ=3π.
Compute p⋅q using the geometric definition.
A third vector r has the same magnitude as q but the angle between p and r is θ′=32π. Find p⋅r and explain the sign of the result geometrically.
Hint
Use p⋅q=∣p∣∣q∣cosθ. For part 2, recall that cos(32π)=−21; think about what it means geometrically when the angle between two vectors is obtuse.
View Solution
Solution to question 1:p⋅q=6×9×cos(3π)=54×21=27Solution to question 2:p⋅r=6×9×cos(32π)=54×(−21)=−27
The negative sign indicates that the projection of r onto p points in the opposite direction to p. Whenever the angle between two vectors is obtuse (90°<θ<180°), their scalar product is negative.
Problem 4: Combining Both Definitions
Hard
Let a=2i−j+2k and b=−i+2j+2k.
Compute a⋅b using components.
Compute ∣a∣ and ∣b∣.
Use both results to find the cosine of the angle between a and b, then verify consistency between the two formulas.
Hint
After finding the dot product and both magnitudes, isolate cosθ=∣a∣∣b∣a⋅b. Check that this value lies in [−1,1].
View Solution
Solution to question 1:a⋅b=(2)(−1)+(−1)(2)+(2)(2)=−2−2+4=0Solution to question 2:∣a∣=4+1+4=9=3,∣b∣=1+4+4=9=3Solution to question 3:cosθ=3×30=0⟹θ=90°
Both definitions are consistent: the component formula gives a⋅b=0, and the geometric formula confirms cosθ=0, meaning the vectors are perpendicular.
Angle Between Vectors Using the Scalar Product
Finding the angle between two vectors is one of the most common applications of the scalar product. By rearranging the geometric definition, one obtains cosθ=∣a∣∣b∣a⋅b. The exercises in this section cover acute, right, and obtuse angles in both 2D and 3D, and introduce the role of the arccosine function.
Problem 5: Angle Between Two 2D Vectors
Easy
Find the angle θ between the vectors u=⟨1,3⟩ and v=⟨3,1⟩.
Compute the scalar product u⋅v.
Compute ∣u∣ and ∣v∣, then determine θ in degrees.
Hint
Both vectors have magnitude 2. Once you have cosθ, look for an exact value among the standard angles 0°,30°,45°,60°,90°.
View Solution
Solution to question 1:u⋅v=(1)(3)+(3)(1)=23Solution to question 2:∣u∣=1+3=2,∣v∣=3+1=2cosθ=2×223=23⟹θ=arccos(23)=30°
Problem 6: Angle Between Two 3D Vectors
Medium
Given a=⟨2,1,3⟩ and b=⟨3,−2,1⟩:
Find a⋅b, ∣a∣, and ∣b∣.
Calculate the angle θ between a and b, giving your answer in degrees to two decimal places.
Hint
Compute each magnitude using ∣v∣=vx2+vy2+vz2, then apply θ=arccos(∣a∣∣b∣a⋅b).
View Solution
Solution to question 1:a⋅b=(2)(3)+(1)(−2)+(3)(1)=6−2+3=7∣a∣=4+1+9=14,∣b∣=9+4+1=14Solution to question 2:cosθ=14⋅147=147=21⟹θ=arccos(21)=60.00°
Problem 7: Angle in a Triangle via the Scalar Product
Hard
Points A(1,2,−1), B(3,0,4), and C(−1,3,2) form a triangle.
Find the vectors AB and AC.
Use the scalar product to calculate the angle ∠BAC at vertex A, in degrees to one decimal place.
Determine the angle ∠ABC at vertex B using the same method.
Hint
For ∠BAC, the two relevant vectors both start at A: they are AB and AC. For ∠ABC, the vectors BA and BC both start at B. Subtract coordinates carefully.
View Solution
Solution to question 1:AB=B−A=⟨2,−2,5⟩,AC=C−A=⟨−2,1,3⟩Solution to question 2:AB⋅AC=(2)(−2)+(−2)(1)+(5)(3)=−4−2+15=9∣AB∣=4+4+25=33,∣AC∣=4+1+9=14cos(∠BAC)=33149=4629≈21.499≈0.4188∠BAC=arccos(0.4188)≈65.3°Solution to question 3:BA=A−B=⟨−2,2,−5⟩,BC=C−B=⟨−4,3,−2⟩BA⋅BC=(−2)(−4)+(2)(3)+(−5)(−2)=8+6+10=24∣BA∣=33,∣BC∣=16+9+4=29cos(∠ABC)=332924=95724≈30.9424≈0.7758∠ABC=arccos(0.7758)≈39.0°
Orthogonality and Perpendicular Vectors
Two non-zero vectors are orthogonal (perpendicular) if and only if their scalar product equals zero. This section explores orthogonality conditions, including how to find unknown components that make vectors perpendicular, and how to decompose a vector into parallel and orthogonal parts relative to another.
Problem 8: Testing Orthogonality in 2D
Easy
Determine which of the following pairs of vectors are orthogonal.
a=⟨3,−4⟩ and b=⟨8,6⟩
c=⟨2,5⟩ and d=⟨5,−2⟩
Hint
Compute the scalar product for each pair. A zero result means orthogonal; a non-zero result means not orthogonal.
View Solution
Solution to question 1:a⋅b=(3)(8)+(−4)(6)=24−24=0
Since a⋅b=0, vectors a and bare orthogonal.
Solution to question 2:c⋅d=(2)(5)+(5)(−2)=10−10=0
Since c⋅d=0, vectors c and dare also orthogonal.
Problem 9: Finding the Unknown Component for Perpendicularity
Medium
Let A=⟨−2,−t⟩ and B=⟨−8,t⟩, where t is a real parameter.
Find all values of t such that A and B are perpendicular.
For each value of t found, write out the two vectors explicitly.
Hint
Set A⋅B=0 and solve the resulting equation in t. You should obtain a quadratic.
View Solution
Solution to question 1:A⋅B=(−2)(−8)+(−t)(t)=16−t2=0t2=16⟹t=4ort=−4Solution to question 2: For t=4: A=⟨−2,−4⟩ and B=⟨−8,4⟩. For t=−4: A=⟨−2,4⟩ and B=⟨−8,−4⟩. In both cases one can verify A⋅B=0.
Problem 10: Orthogonal Decomposition of a Vector
Hard
Given u=⟨3,−1,2⟩ and v=⟨1,4,−1⟩:
Decompose v into v=v∥+v⊥, where v∥ is parallel to u and v⊥ is orthogonal to u.
Verify that v⊥⋅u=0.
Hint
The component of v parallel to u is v∥=∣u∣2v⋅uu. Then v⊥=v−v∥.
View Solution
Solution to question 1:v⋅u=(1)(3)+(4)(−1)+(−1)(2)=3−4−2=−3∣u∣2=9+1+4=14v∥=14−3⟨3,−1,2⟩=⟨−149,143,−146⟩v⊥=v−v∥=⟨1+149,4−143,−1+146⟩=⟨1423,1453,−148⟩Solution to question 2:v⊥⋅u=1423(3)+1453(−1)+(−148)(2)=1469−53−16=140=0✓
Vector Projection and Scalar Component
The vector projection of b onto a and the associated scalar projection (component) are central tools in applied mathematics and physics. This section develops both concepts, starting with straightforward cases and building toward problems requiring full projection decompositions.
Problem 11: Scalar Projection in 2D
Easy
Given a=⟨4,3⟩ and b=⟨2,−1⟩:
Find the scalar projection of b onto a, defined as compab=∣a∣a⋅b.
Interpret the sign of the result geometrically.
Hint
Compute the dot product first, then divide by ∣a∣=ax2+ay2. A positive value means the projection points in the same direction as a; a negative value means it points opposite.
View Solution
Solution to question 1:a⋅b=(4)(2)+(3)(−1)=8−3=5∣a∣=16+9=5compab=55=1Solution to question 2: The scalar projection equals 1>0, so the component of b in the direction of a is positive, meaning the angle between the two vectors is acute and b has a net forward component along a.
Problem 12: Vector Projection in 3D
Medium
Let a=⟨1,−1,1⟩ and b=⟨3,1,4⟩.
Find the vector projection projab=∣a∣2a⋅ba.
Find the component of b orthogonal to a, denoted b⊥.
Verify that b⊥⊥a.
Hint
Compute a⋅b and ∣a∣2 first. Then b⊥=b−projab. To verify perpendicularity, check that the dot product with a is zero.
View Solution
Solution to question 1:a⋅b=(1)(3)+(−1)(1)+(1)(4)=3−1+4=6∣a∣2=1+1+1=3projab=36⟨1,−1,1⟩=2⟨1,−1,1⟩=⟨2,−2,2⟩Solution to question 2:b⊥=b−projab=⟨3−2,1−(−2),4−2⟩=⟨1,3,2⟩Solution to question 3:b⊥⋅a=(1)(1)+(3)(−1)+(2)(1)=1−3+2=0✓
Problem 13: Component of One Vector in the Direction of Another
Hard
Find the component of b=3i+j+4k in the direction of a=i−j+k, and express the result both as a scalar and as a vector.
Compute the unit vector a^ in the direction of a.
Find the scalar component compab=b⋅a^.
Express the vector component (projection) of b along a.
Hint
The unit vector is a^=a/∣a∣. Multiplying the scalar component by a^ gives the vector component. All three sub-questions build on each other.
View Solution
Solution to question 1:∣a∣=1+1+1=3,a^=31⟨1,−1,1⟩Solution to question 2:compab=b⋅a^=31[(3)(1)+(1)(−1)+(4)(1)]=33−1+4=36=23Solution to question 3:projab=(compab)a^=23⋅31⟨1,−1,1⟩=2⟨1,−1,1⟩=⟨2,−2,2⟩
Algebraic Properties: Commutativity, Distributivity, and Bilinearity
The scalar product satisfies key algebraic properties: it is commutative (a⋅b=b⋅a), distributive over addition (a⋅(b+c)=a⋅b+a⋅c), and compatible with scalar multiplication. These exercises develop algebraic fluency and the ability to manipulate dot product expressions symbolically, which is essential for proofs and derivations.
Problem 14: Distributivity of the Scalar Product
Medium
Let a=⟨1,2,−1⟩, b=⟨3,0,4⟩, and c=⟨−2,1,1⟩.
Compute a⋅(b+c) directly by first adding b and c.
Compute a⋅b+a⋅c separately, then verify both results are equal.
Hint
Add vectors component-wise: b+c=⟨bx+cx,by+cy,bz+cz⟩. Then apply the dot product formula to each expression.
View Solution
Solution to question 1:b+c=⟨1,1,5⟩a⋅(b+c)=(1)(1)+(2)(1)+(−1)(5)=1+2−5=−2Solution to question 2:a⋅b=(1)(3)+(2)(0)+(−1)(4)=3+0−4=−1a⋅c=(1)(−2)+(2)(1)+(−1)(1)=−2+2−1=−1a⋅b+a⋅c=−1+(−1)=−2
Both methods give −2, confirming the distributive property.
Problem 15: Expanding ∣a+b∣2 Using the Scalar Product
Hard
Prove the following identity using properties of the scalar product, then verify it numerically with a=⟨2,−1,3⟩ and b=⟨1,4,−2⟩:
∣a+b∣2=∣a∣2+2a⋅b+∣b∣2
Prove the identity algebraically using the definition ∣v∣2=v⋅v and distributivity.
Verify both sides numerically with the given vectors.
Hint
Write ∣a+b∣2=(a+b)⋅(a+b) and expand using the distributive property. Use commutativity to simplify the middle terms.
View Solution
Solution to question 1 (proof):∣a+b∣2=(a+b)⋅(a+b)=a⋅a+a⋅b+b⋅a+b⋅b
Since a⋅b=b⋅a:
=∣a∣2+2a⋅b+∣b∣2□Solution to question 2 (numerical verification):a+b=⟨3,3,1⟩⟹∣a+b∣2=9+9+1=19∣a∣2=4+1+9=14,∣b∣2=1+16+4=21a⋅b=(2)(1)+(−1)(4)+(3)(−2)=2−4−6=−8∣a∣2+2a⋅b+∣b∣2=14+2(−8)+21=14−16+21=19✓
Applications: Work Done by a Force
In physics, the work done by a constant force F over a displacement d is defined as the scalar product W=F⋅d. This section applies the scalar product to mechanical work, covering cases where force and displacement are parallel, at an angle, and in 3D space.
Problem 16: Work Done by a 2D Force
Easy
A force F=⟨5,3⟩ N acts on an object that undergoes a displacement d=⟨4,−2⟩ m.
Calculate the work done W=F⋅d, giving your answer in joules.
If the same force were applied perpendicular to the displacement, state the work done and explain why.
Hint
Work is simply the dot product of force and displacement vectors. Recall that perpendicular vectors have a dot product of zero, no energy is transferred when force and motion are at right angles.
View Solution
Solution to question 1:W=F⋅d=(5)(4)+(3)(−2)=20−6=14 JSolution to question 2: If the force is perpendicular to the displacement, W=∣F∣∣d∣cos90°=0. No work is done. A physical example is a centripetal force acting perpendicular to circular motion; it changes the direction of velocity but transfers no energy to the object.
Problem 17: Work Done by a 3D Force
Medium
A particle moves from point P(2,1,2) to point Q(3,2,5) (in metres) under a constant force F=7i+5j+2k N.
Find the displacement vector PQ.
Calculate the work done by the force during this displacement.
Hint
The displacement vector is PQ=Q−P. Work is then W=F⋅PQ.
View Solution
Solution to question 1:PQ=⟨3−2,2−1,5−2⟩=⟨1,1,3⟩ mSolution to question 2:W=F⋅PQ=(7)(1)+(5)(1)+(2)(3)=7+5+6=18 J
Problem 18: Work Done When Force Acts at an Angle
Hard
A force of magnitude ∣F∣=20 N acts on a crate, making an angle of 40° with the horizontal floor. The crate is dragged horizontally a distance of 8 m.
Model the displacement as d=⟨8,0⟩ m and the force as F=⟨20cos40°,20sin40°⟩ N. Compute the work done in component form.
Apply the geometric definition W=∣F∣∣d∣cosθ and verify that both approaches agree.
Determine the percentage of the total force magnitude that contributes to useful work along the direction of motion.
Hint
The angle between F and d (horizontal) is exactly 40°. The fraction of force doing useful work is cos40°.
View Solution
Solution to question 1:F≈⟨15.32,12.86⟩ NW=F⋅d=(15.32)(8)+(12.86)(0)≈122.6 JSolution to question 2:W=20×8×cos40°=160×0.7660≈122.6 J✓
Both methods agree.
Solution to question 3:∣F∣∣F∣cos40°=cos40°≈0.766=76.6%
Only 76.6% of the applied force contributes to horizontal motion; the remaining 23.4% acts vertically against the floor’s normal reaction.
Frequently asked questions
Is the dot product the same as the scalar product?
Yes. “Dot product” refers to the notation a⋅b; “scalar product” refers to the result, which is a scalar (a number), not a vector. In Rn both names mean the same operation, which is also the standard inner product.
What does a negative dot product mean?
The angle between the vectors is obtuse (between 90∘ and 180∘), because cosθ<0. A positive dot product means an acute angle, and zero means the vectors are perpendicular.
What is the difference between the dot product and the cross product?
The dot product gives a number and measures how much two vectors point the same way. The cross product a×b (in 3D only) gives a vector perpendicular to both, with length ∣a∣∣b∣sinθ.