Solved Exercises on Dot and Cross Products

Master dot and cross products, orthogonality, area calculations, and applications through these 5 detailed exercises.

Dot and Cross Products - Comprehensive Summary

Definitions

Dot Product: \(\vec{u} \cdot \vec{v} = u_1v_1 + u_2v_2 + ... + u_nv_n\), resulting in a scalar

Cross Product: \(\vec{u} \times \vec{v} = \begin{vmatrix} \vec{i} & \vec{j} & \vec{k} \\ u_1 & u_2 & u_3 \\ v_1 & v_2 & v_3 \end{vmatrix}\), resulting in a vector (3D only)

Orthogonal Vectors: Vectors are orthogonal if their dot product is zero

Core Rules

• Dot product is commutative: \(\vec{u} \cdot \vec{v} = \vec{v} \cdot \vec{u}\)

• Cross product is anti-commutative: \(\vec{u} \times \vec{v} = -(\vec{v} \times \vec{u})

• Cross product results in a vector perpendicular to both inputs

• Magnitude of cross product gives area of parallelogram

Methods

1. Dot product: Multiply corresponding components and sum

2. Cross product: Use determinant method or formula

3. Orthogonality test: Check if dot product equals zero

4. Area calculation: Use magnitude of cross product

Key Tips

• Dot product measures similarity/angle between vectors

• Cross product measures perpendicularity/area

• Cross product only exists in 3D (and 7D)

• Use right-hand rule for cross product direction

Solution: Exercises 1 to 3
1 Basic Dot Product
Exercise 1
Find the dot product of \(\vec{u} = \begin{pmatrix} 2 \\ 3 \end{pmatrix}\) and \(\vec{v} = \begin{pmatrix} 4 \\ -1 \end{pmatrix}\). Then determine the angle between them.
Definition:

Dot Product: \(\vec{u} \cdot \vec{v} = u_1v_1 + u_2v_2 + ... + u_nv_n\). Also, \(\vec{u} \cdot \vec{v} = |\vec{u}||\vec{v}|\cos\theta\), where \(\theta\) is the angle between vectors.

Dot Product Method:
  1. Multiply corresponding components of the vectors
  2. Sum all the products to get the dot product
  3. Calculate magnitudes of both vectors
  4. Use \(\cos\theta = \frac{\vec{u} \cdot \vec{v}}{|\vec{u}||\vec{v}|}\) to find the angle
Dot Product
\(\vec{u} \cdot \vec{v} = 2 \cdot 4 + 3 \cdot (-1) = 5\)
Magnitudes
\( |\vec{u}| = \sqrt{13}, |\vec{v}| = \sqrt{17}\)
Angle
\(\theta \approx 68.2°\)
Step 1: Calculate the dot product

\(\vec{u} \cdot \vec{v} = u_1v_1 + u_2v_2 = (2)(4) + (3)(-1) = 8 - 3 = 5\)

Step 2: Calculate the magnitudes

\(|\vec{u}| = \sqrt{2^2 + 3^2} = \sqrt{4 + 9} = \sqrt{13}\)

\(|\vec{v}| = \sqrt{4^2 + (-1)^2} = \sqrt{16 + 1} = \sqrt{17}\)

Step 3: Find the angle between vectors

Using \(\vec{u} \cdot \vec{v} = |\vec{u}||\vec{v}|\cos\theta\):

\(\cos\theta = \frac{\vec{u} \cdot \vec{v}}{|\vec{u}||\vec{v}|} = \frac{5}{\sqrt{13}\sqrt{17}} = \frac{5}{\sqrt{221}}\)

\(\theta = \arccos\left(\frac{5}{\sqrt{221}}\right) \approx 68.2°\)

Step 4: Interpretation

Since the dot product is positive, the angle is acute (less than 90°), indicating the vectors point somewhat in the same direction.

\(\vec{u} \cdot \vec{v} = 5\), \(\theta \approx 68.2°\)
Final answer:

The dot product is 5 and the angle between the vectors is approximately 68.2°.

Applied rules:

• Component multiplication: Multiply corresponding components only

• Summation: Add all products to get the scalar result

• Angle relationship: Positive dot product = acute angle

2 Cross Product Calculation
Exercise 2
Find the cross product of \(\vec{a} = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}\) and \(\vec{b} = \begin{pmatrix} 4 \\ 5 \\ 6 \end{pmatrix}\). Verify that the result is perpendicular to both original vectors.
Definition:

Cross Product: \(\vec{a} \times \vec{b} = \begin{vmatrix} \vec{i} & \vec{j} & \vec{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix}\). The result is a vector perpendicular to both \(\vec{a}\) and \(\vec{b}\).

Cross Product
\(\vec{a} \times \vec{b} = \begin{pmatrix} -3 \\ 6 \\ -3 \end{pmatrix}\)
Perpendicularity
Both dot products = 0
Verification
Verified
Step 1: Set up the determinant

\(\vec{a} \times \vec{b} = \begin{vmatrix} \vec{i} & \vec{j} & \vec{k} \\ 1 & 2 & 3 \\ 4 & 5 & 6 \end{vmatrix}\)

Step 2: Calculate using cofactor expansion

Along the first row:

\(\vec{a} \times \vec{b} = \vec{i}\begin{vmatrix} 2 & 3 \\ 5 & 6 \end{vmatrix} - \vec{j}\begin{vmatrix} 1 & 3 \\ 4 & 6 \end{vmatrix} + \vec{k}\begin{vmatrix} 1 & 2 \\ 4 & 5 \end{vmatrix}\)

Step 3: Compute each 2×2 determinant

\(\begin{vmatrix} 2 & 3 \\ 5 & 6 \end{vmatrix} = (2)(6) - (3)(5) = 12 - 15 = -3\)

\(\begin{vmatrix} 1 & 3 \\ 4 & 6 \end{vmatrix} = (1)(6) - (3)(4) = 6 - 12 = -6\)

\(\begin{vmatrix} 1 & 2 \\ 4 & 5 \end{vmatrix} = (1)(5) - (2)(4) = 5 - 8 = -3\)

Step 4: Combine results

\(\vec{a} \times \vec{b} = \vec{i}(-3) - \vec{j}(-6) + \vec{k}(-3) = \begin{pmatrix} -3 \\ 6 \\ -3 \end{pmatrix}\)

Step 5: Verify perpendicularity

Check \((\vec{a} \times \vec{b}) \cdot \vec{a} = (-3)(1) + (6)(2) + (-3)(3) = -3 + 12 - 9 = 0\)

Check \((\vec{a} \times \vec{b}) \cdot \vec{b} = (-3)(4) + (6)(5) + (-3)(6) = -12 + 30 - 18 = 0\)

\(\vec{a} \times \vec{b} = \begin{pmatrix} -3 \\ 6 \\ -3 \end{pmatrix}\), perpendicular to both vectors.
Final answer:

The cross product is \(\vec{a} \times \vec{b} = \begin{pmatrix} -3 \\ 6 \\ -3 \end{pmatrix}\), which is perpendicular to both original vectors.

Applied rules:

• Anticommutativity: \(\vec{a} \times \vec{b} = -(\vec{b} \times \vec{a})\)

• Perpendicularity: Cross product is perpendicular to input vectors

• Right-hand rule: Direction determined by right-hand orientation

3 Orthogonality Test
Exercise 3
Determine if the vectors \(\vec{p} = \begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix}\) and \(\vec{q} = \begin{pmatrix} 1 \\ 5 \\ 1 \end{pmatrix}\) are orthogonal. If not, find the angle between them.
Definition:

Orthogonal Vectors: Two vectors are orthogonal if and only if their dot product equals zero. The angle between orthogonal vectors is 90°.

Dot Product
\(\vec{p} \cdot \vec{q} = 0\)
Orthogonality
Yes
Angle
90°
Step 1: Calculate the dot product

\(\vec{p} \cdot \vec{q} = (2)(1) + (-1)(5) + (3)(1) = 2 - 5 + 3 = 0\)

Step 2: Check for orthogonality

Since \(\vec{p} \cdot \vec{q} = 0\), the vectors are orthogonal.

Step 3: Determine the angle

When vectors are orthogonal, the angle between them is 90°.

Step 4: Verify with angle formula

For completeness: \(\cos\theta = \frac{\vec{p} \cdot \vec{q}}{|\vec{p}||\vec{q}|} = \frac{0}{|\vec{p}||\vec{q}|} = 0\)

Therefore \(\theta = \arccos(0) = 90°\)

The vectors are orthogonal with an angle of 90° between them.
Final answer:

The vectors \(\vec{p}\) and \(\vec{q}\) are orthogonal (perpendicular) to each other.

Applied rules:

• Orthogonality test: Dot product equals zero

• Angle determination: Zero dot product = 90° angle

• Perpendicularity: Geometric interpretation of zero dot product

Dot and Cross Products Properties
\(\vec{u} \cdot \vec{v} = |\vec{u}||\vec{v}|\cos\theta\)
Dot Product Angle Formula
\(\vec{u} \times \vec{v} = |\vec{u}||\vec{v}|\sin\theta \cdot \vec{n}\)
Cross Product Magnitude
Dot Product
\(\vec{u} \cdot \vec{v} = u_1v_1 + u_2v_2 + u_3v_3\)
Commutative: \(\vec{u} \cdot \vec{v} = \vec{v} \cdot \vec{u}\)
Cross Product
\(\vec{u} \times \vec{v} = \begin{pmatrix} u_2v_3-u_3v_2 \\ u_3v_1-u_1v_3 \\ u_1v_2-u_2v_1 \end{pmatrix}\)
Anti-commutative: \(\vec{u} \times \vec{v} = -(\vec{v} \times \vec{u})\)
Magnitude
\(|\vec{u} \times \vec{v}| = \text{Area of parallelogram}\)
Cross product magnitude gives area
Dot Product Properties: Distributive, scalar multiplication, and \(\vec{u} \cdot \vec{u} = |\vec{u}|^2\)
Cross Product Properties: Anti-commutative, distributive, and \(\vec{u} \times \vec{u} = \vec{0}\)
Orthogonality: \(\vec{u} \perp \vec{v} \Leftrightarrow \vec{u} \cdot \vec{v} = 0\)
Solution: Exercises 4 to 5
4 Area of Parallelogram
Exercise 4
Find the area of the parallelogram formed by vectors \(\vec{m} = \begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix}\) and \(\vec{n} = \begin{pmatrix} 1 \\ 3 \\ 2 \end{pmatrix}\).
Definition:

Parallelogram Area: The area of a parallelogram formed by two vectors equals the magnitude of their cross product: \(A = |\vec{m} \times \vec{n}|\).

Cross Product
\(\vec{m} \times \vec{n} = \begin{pmatrix} 5 \\ -5 \\ 5 \end{pmatrix}\)
Magnitude
\( |\vec{m} \times \vec{n}| = 5\sqrt{3}\)
Area
\(5\sqrt{3}\) square units
Step 1: Calculate the cross product

\(\vec{m} \times \vec{n} = \begin{vmatrix} \vec{i} & \vec{j} & \vec{k} \\ 2 & 1 & -1 \\ 1 & 3 & 2 \end{vmatrix}\)

\(= \vec{i}\begin{vmatrix} 1 & -1 \\ 3 & 2 \end{vmatrix} - \vec{j}\begin{vmatrix} 2 & -1 \\ 1 & 2 \end{vmatrix} + \vec{k}\begin{vmatrix} 2 & 1 \\ 1 & 3 \end{vmatrix}\)

Step 2: Compute determinants

\(\begin{vmatrix} 1 & -1 \\ 3 & 2 \end{vmatrix} = (1)(2) - (-1)(3) = 2 + 3 = 5\)

\(\begin{vmatrix} 2 & -1 \\ 1 & 2 \end{vmatrix} = (2)(2) - (-1)(1) = 4 + 1 = 5\)

\(\begin{vmatrix} 2 & 1 \\ 1 & 3 \end{vmatrix} = (2)(3) - (1)(1) = 6 - 1 = 5\)

Step 3: Combine results

\(\vec{m} \times \vec{n} = \vec{i}(5) - \vec{j}(5) + \vec{k}(5) = \begin{pmatrix} 5 \\ -5 \\ 5 \end{pmatrix}\)

Step 4: Calculate the magnitude

\(|\vec{m} \times \vec{n}| = \sqrt{5^2 + (-5)^2 + 5^2} = \sqrt{25 + 25 + 25} = \sqrt{75} = 5\sqrt{3}\)

Step 5: State the area

The area of the parallelogram is \(5\sqrt{3}\) square units.

Area = \(5\sqrt{3}\) square units
Final answer:

The area of the parallelogram is \(5\sqrt{3}\) square units.

Applied rules:

• Area formula: Cross product magnitude gives parallelogram area

• Cross product calculation: Determinant method

• Magnitude calculation: Square root of sum of squares

5 Triple Scalar Product
Exercise 5
Calculate the triple scalar product \(\vec{u} \cdot (\vec{v} \times \vec{w})\) where \(\vec{u} = \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix}\), \(\vec{v} = \begin{pmatrix} 2 \\ 0 \\ 3 \end{pmatrix}\), and \(\vec{w} = \begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix}\). Interpret the result geometrically.
Definition:

Triple Scalar Product: \(\vec{u} \cdot (\vec{v} \times \vec{w})\) gives the volume of the parallelepiped formed by the three vectors. It equals the determinant of the matrix formed by the three vectors.

Cross Product
\(\vec{v} \times \vec{w} = \begin{pmatrix} -3 \\ 1 \\ 2 \end{pmatrix}\)
Dot Product
\(\vec{u} \cdot (\vec{v} \times \vec{w}) = 1\)
Volume
1 cubic unit
Step 1: Calculate \(\vec{v} \times \vec{w}\)

\(\vec{v} \times \vec{w} = \begin{vmatrix} \vec{i} & \vec{j} & \vec{k} \\ 2 & 0 & 3 \\ 1 & 1 & 1 \end{vmatrix}\)

\(= \vec{i}\begin{vmatrix} 0 & 3 \\ 1 & 1 \end{vmatrix} - \vec{j}\begin{vmatrix} 2 & 3 \\ 1 & 1 \end{vmatrix} + \vec{k}\begin{vmatrix} 2 & 0 \\ 1 & 1 \end{vmatrix}\)

\(= \vec{i}(0-3) - \vec{j}(2-3) + \vec{k}(2-0) = \begin{pmatrix} -3 \\ 1 \\ 2 \end{pmatrix}\)

Step 2: Calculate the dot product

\(\vec{u} \cdot (\vec{v} \times \vec{w}) = \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix} \cdot \begin{pmatrix} -3 \\ 1 \\ 2 \end{pmatrix}\)

\(= (1)(-3) + (2)(1) + (1)(2) = -3 + 2 + 2 = 1\)

Step 3: Alternative calculation (determinant)

\(\vec{u} \cdot (\vec{v} \times \vec{w}) = \begin{vmatrix} 1 & 2 & 1 \\ 2 & 0 & 3 \\ 1 & 1 & 1 \end{vmatrix}\)

Expanding along first row: \(1\begin{vmatrix} 0 & 3 \\ 1 & 1 \end{vmatrix} - 2\begin{vmatrix} 2 & 3 \\ 1 & 1 \end{vmatrix} + 1\begin{vmatrix} 2 & 0 \\ 1 & 1 \end{vmatrix}\)

\(= 1(0-3) - 2(2-3) + 1(2-0) = -3 + 2 + 2 = 1\)

Step 4: Geometric interpretation

Since the triple scalar product is positive (1), the three vectors form a right-handed system.

The absolute value (1) represents the volume of the parallelepiped formed by the three vectors.

\(\vec{u} \cdot (\vec{v} \times \vec{w}) = 1\), Volume = 1 cubic unit
Final answer:

The triple scalar product is 1, representing a volume of 1 cubic unit for the parallelepiped formed by the three vectors.

Applied rules:

• Triple scalar product: Volume of parallelepiped

• Right-hand rule: Positive value indicates right-handed system

• Determinant equivalence: Triple scalar product equals determinant

Dot and Cross Products: Advanced Concepts
\(\vec{u} \cdot \vec{v} = \sum_{i=1}^{n} u_iv_i\)
Dot Product Definition
Key definitions:

Dot Product: An algebraic operation that takes two equal-length sequences of numbers and returns a single number. It measures how much two vectors point in the same direction.

Cross Product: A binary operation on two vectors in three-dimensional space that results in a vector perpendicular to both input vectors.

Orthogonal Projection: The projection of one vector onto another using the dot product.

Complete methodology:
  1. For dot products: Multiply corresponding components and sum the results
  2. For cross products: Use determinant method or component formula
  3. For orthogonality: Check if dot product equals zero
  4. For angles: Use \(\cos\theta = \frac{\vec{u} \cdot \vec{v}}{|\vec{u}||\vec{v}|}\)
Tip 1: Use the dot product to determine if vectors are perpendicular (orthogonal).
Tip 2: Remember the right-hand rule for determining the direction of cross products.
Tip 3: The magnitude of the cross product gives the area of the parallelogram formed by the vectors.
Tip 4: Cross products only exist in 3D (and 7D) spaces, unlike dot products which exist in any dimension.
Common errors: Confusing dot and cross products, forgetting to normalize vectors, incorrect sign in cross products, using cross product in 2D.
Applications: Physics (work, torque), computer graphics (normals, lighting), engineering (moments), data science (similarity measures).
Properties to know by heart:

• Dot product is commutative: \(\vec{u} \cdot \vec{v} = \vec{v} \cdot \vec{u}\)

• Cross product is anticommutative: \(\vec{u} \times \vec{v} = -(\vec{v} \times \vec{u})\)

• \(\vec{u} \cdot \vec{u} = |\vec{u}|^2\) (dot product with itself)

• \(\vec{u} \times \vec{u} = \vec{0}\) (cross product with itself)

• Distributive property: \(\vec{u} \cdot (\vec{v} + \vec{w}) = \vec{u} \cdot \vec{v} + \vec{u} \cdot \vec{w}\)

Dot and Cross Products Visualization: Geometric Interpretation
Exercise 6: Geometric Relationships
Visualize the relationship between dot and cross products for vectors \(\vec{u} = \begin{pmatrix} 3 \\ 0 \end{pmatrix}\) and \(\vec{v} = \begin{pmatrix} 2 \\ 2 \end{pmatrix}\). Show how the dot product relates to the angle and how the cross product magnitude relates to the area of the parallelogram.

Geometric Interpretation: The dot product measures the projection of one vector onto another, while the cross product magnitude measures the area of the parallelogram formed by the vectors.

  • \(\vec{u} = \begin{pmatrix} 3 \\ 0 \end{pmatrix}\) (horizontal vector)
  • \(\vec{v} = \begin{pmatrix} 2 \\ 2 \end{pmatrix}\) (diagonal vector)
  • \(\vec{u} \cdot \vec{v} = 6\) measures alignment
  • \(|\vec{u} \times \vec{v}| = 6\) gives parallelogram area

Questions & Answers

Question: I'm confused about when to use dot product versus cross product. How do I know which one to use?

Answer: Here's how to decide between dot and cross products:

  • Use dot product when you need:
    • To find the angle between vectors
    • To determine if vectors are orthogonal/perpendicular
    • To project one vector onto another
    • To measure similarity between vectors
    • To calculate work done (physics)
  • Use cross product when you need:
    • To find a vector perpendicular to two given vectors
    • To calculate the area of a parallelogram or triangle
    • To determine if vectors are parallel
    • To calculate torque or angular momentum (physics)
    • To find normal vectors to planes

The key difference is that dot product gives a scalar (single number) while cross product gives a vector (in 3D). Dot product measures alignment, cross product measures perpendicularity.

Question: Why is the cross product only defined for 3D vectors? Can't we have it in 2D or higher dimensions?

Answer: This is a fascinating aspect of mathematics:

  1. 2D limitation: In 2D, there's no unique direction perpendicular to two vectors. Any vector perpendicular to the plane would have to go "into" or "out of" the 2D space.
  2. 3D uniqueness: In 3D, there is exactly one direction perpendicular to any two non-parallel vectors (up to sign), which is why the cross product works perfectly here.
  3. Higher dimensions: Technically, cross products exist in 7D (related to octonions) and 0D/1D (trivially), but not in other dimensions.
  4. Generalization: For higher dimensions, mathematicians use exterior products or wedge products instead of cross products.

In 2D, we sometimes use the scalar \(u_1v_2 - u_2v_1\) (the z-component of the 3D cross product) to find areas or determine orientation.

Question: What's the connection between the dot product being zero and vectors being perpendicular?

Answer: The connection comes from the geometric formula for the dot product:

We know that \(\vec{u} \cdot \vec{v} = |\vec{u}||\vec{v}|\cos\theta\), where \(\theta\) is the angle between the vectors.

When vectors are perpendicular, \(\theta = 90°\), and \(\cos(90°) = 0\).

Therefore: \(\vec{u} \cdot \vec{v} = |\vec{u}||\vec{v}| \cdot 0 = 0\)

Conversely, if \(\vec{u} \cdot \vec{v} = 0\) and both vectors are non-zero, then \(\cos\theta = 0\), which means \(\theta = 90°\) (or \(\theta = 270°\), which is equivalent to 90°).

This elegant relationship connects algebra (the component-wise calculation) with geometry (the angle between vectors), making the dot product a powerful tool for determining perpendicularity without needing to measure angles directly.

Question: How are dot and cross products used in physics?

Answer: Dot and cross products are fundamental in physics:

Dot Product Applications:

  • Work: \(W = \vec{F} \cdot \vec{d}\) (force dotted with displacement)
  • Power: \(P = \vec{F} \cdot \vec{v}\) (force dotted with velocity)
  • Energy projections: Finding components of vectors in specific directions

Cross Product Applications:

  • Torque: \(\vec{\tau} = \vec{r} \times \vec{F}\) (position crossed with force)
  • Angular momentum: \(\vec{L} = \vec{r} \times \vec{p}\) (position crossed with momentum)
  • Magnetic force: \(\vec{F} = q\vec{v} \times \vec{B}\) (velocity crossed with magnetic field)
  • Normal vectors: Finding perpendicular directions to surfaces

These operations are essential for describing physical phenomena involving directions and orientations.

Question: How are dot and cross products used in computer graphics?

Answer: Dot and cross products are essential in computer graphics:

Dot Product Uses:

  • Lighting calculations: Determining how much light hits a surface based on the angle between light direction and surface normal
  • Face culling: Determining if a polygon faces toward or away from the camera
  • Similarity measures: Comparing vectors for AI and machine learning applications
  • Projection: Finding how much of one vector goes in the direction of another

Cross Product Uses:

  • Surface normals: Calculating perpendicular vectors to polygons for proper lighting
  • Constructing coordinate systems: Creating orthogonal basis vectors
  • Area calculations: Computing surface areas for various geometric operations
  • Orientation: Determining handedness of coordinate systems

These operations enable realistic rendering, collision detection, and spatial relationships in 3D environments.