Solved Exercises on Introduction to Vectors in Linear Algebra

Master vector basics: magnitude, direction, addition, scalar multiplication, and geometric representations through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Vector magnitude and direction
Exercise 1
Find the magnitude and direction of the vector \(\vec{v} = \langle 3, 4 \rangle\). Express the direction as an angle with the positive x-axis.
Definition:

Vector magnitude: The length of a vector, calculated as \(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2}\) for a 2D vector \(\vec{v} = \langle v_x, v_y \rangle\).

Vector direction: The angle θ that the vector makes with the positive x-axis, calculated as \(\theta = \arctan\left(\frac{v_y}{v_x}\right)\) with appropriate quadrant consideration.

Magnitude and direction procedure:
  1. Identify the components of the vector: \(\vec{v} = \langle v_x, v_y \rangle\)
  2. Calculate the magnitude using: \(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2}\)
  3. Determine the direction using: \(\theta = \arctan\left(\frac{v_y}{v_x}\right)\)
  4. Adjust for the correct quadrant if necessary
  5. Express the vector in polar form: \(\vec{v} = \|\vec{v}\|\langle \cos\theta, \sin\theta \rangle\)
Vector
\(\vec{v} = \langle 3, 4 \rangle\)
Magnitude
\(\|\vec{v}\| = \sqrt{3^2 + 4^2} = 5\)
Direction
\(\theta = \arctan(4/3) = 53.13°\)
Component Form
\(\vec{v} = \langle 3, 4 \rangle\)
Horizontal component: 3
Vertical component: 4
Polar Form
\(\vec{v} = 5\langle \cos(53.13°), \sin(53.13°) \rangle\)
Magnitude: 5
Angle: 53.13°
Step 1: Identify vector components

For \(\vec{v} = \langle 3, 4 \rangle\):

Horizontal component: \(v_x = 3\)

Vertical component: \(v_y = 4\)

Step 2: Calculate the magnitude

\(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2} = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5\)

Step 3: Calculate the direction

\(\theta = \arctan\left(\frac{v_y}{v_x}\right) = \arctan\left(\frac{4}{3}\right)\)

\(\theta = \arctan(1.333) \approx 53.13°\)

Since both components are positive, the vector is in the first quadrant, so this angle is correct.

Step 4: Verify using polar coordinates

We can verify: \(v_x = \|\vec{v}\|\cos\theta = 5\cos(53.13°) = 5 \times 0.6 = 3\) ✓

\(v_y = \|\vec{v}\|\sin\theta = 5\sin(53.13°) = 5 \times 0.8 = 4\) ✓

Magnitude: 5, Direction: 53.13° from positive x-axis
Final answer:

The vector \(\vec{v} = \langle 3, 4 \rangle\) has a magnitude of 5 and makes an angle of approximately 53.13° with the positive x-axis.

Applied rules:

• Magnitude formula: \(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2}\)

• Direction formula: \(\theta = \arctan\left(\frac{v_y}{v_x}\right)\)

• Quadrant adjustment: Consider signs of components to determine correct angle

2 Vector addition and subtraction
Exercise 2
Given \(\vec{u} = \langle 2, -3 \rangle\) and \(\vec{v} = \langle -1, 5 \rangle\), find \(\vec{u} + \vec{v}\) and \(\vec{u} - \vec{v}\). Illustrate geometrically.
Definition:

Vector addition: \(\vec{u} + \vec{v} = \langle u_x + v_x, u_y + v_y \rangle\). Geometrically, place the tail of \(\vec{v}\) at the head of \(\vec{u}\).

Vector subtraction: \(\vec{u} - \vec{v} = \langle u_x - v_x, u_y - v_y \rangle\). Geometrically, this is the vector from the head of \(\vec{v}\) to the head of \(\vec{u}\).

Given
\(\vec{u} = \langle 2, -3 \rangle\), \(\vec{v} = \langle -1, 5 \rangle\)
Addition
\(\vec{u} + \vec{v} = \langle 1, 2 \rangle\)
Subtraction
\(\vec{u} - \vec{v} = \langle 3, -8 \rangle\)
Step 1: Calculate vector addition

\(\vec{u} + \vec{v} = \langle u_x + v_x, u_y + v_y \rangle\)

\(\vec{u} + \vec{v} = \langle 2 + (-1), (-3) + 5 \rangle\)

\(\vec{u} + \vec{v} = \langle 1, 2 \rangle\)

Step 2: Calculate vector subtraction

\(\vec{u} - \vec{v} = \langle u_x - v_x, u_y - v_y \rangle\)

\(\vec{u} - \vec{v} = \langle 2 - (-1), (-3) - 5 \rangle\)

\(\vec{u} - \vec{v} = \langle 3, -8 \rangle\)

Step 3: Geometric interpretation

For \(\vec{u} + \vec{v}\): Place \(\vec{v}\) at the head of \(\vec{u}\), the result goes from tail of \(\vec{u}\) to head of \(\vec{v}\).

For \(\vec{u} - \vec{v}\): This is equivalent to \(\vec{u} + (-\vec{v})\), where \(-\vec{v} = \langle 1, -5 \rangle\).

Step 4: Verify with triangle rule

Check: \(\vec{u} + \vec{v} + (-\vec{v}) = \vec{u}\)

\(\langle 1, 2 \rangle + \langle 1, -5 \rangle = \langle 2, -3 \rangle = \vec{u}\) ✓

\(\vec{u} + \vec{v} = \langle 1, 2 \rangle\), \(\vec{u} - \vec{v} = \langle 3, -8 \rangle\)
Final answer:

\(\vec{u} + \vec{v} = \langle 1, 2 \rangle\) and \(\vec{u} - \vec{v} = \langle 3, -8 \rangle\). The addition follows the parallelogram rule, while subtraction finds the vector from the head of \(\vec{v}\) to the head of \(\vec{u}\).

Applied rules:

• Component-wise addition: Add corresponding components

• Component-wise subtraction: Subtract corresponding components

• Parallelogram rule: For vector addition, form a parallelogram with the vectors

3 Scalar multiplication
Exercise 3
Given \(\vec{w} = \langle -2, 6 \rangle\), find \(3\vec{w}\) and \(-\frac{1}{2}\vec{w}\). Describe how scalar multiplication affects the vector's magnitude and direction.
Definition:

Scalar multiplication: Multiplying a vector by a scalar c results in \(c\vec{v} = \langle cv_x, cv_y \rangle\). The scalar changes the magnitude by factor |c| and reverses direction if c < 0.

Original
\(\vec{w} = \langle -2, 6 \rangle\)
Positive Scalar
\(3\vec{w} = \langle -6, 18 \rangle\)
Negative Scalar
\(-\frac{1}{2}\vec{w} = \langle 1, -3 \rangle\)
Step 1: Calculate \(3\vec{w}\)

\(3\vec{w} = 3\langle -2, 6 \rangle = \langle 3(-2), 3(6) \rangle = \langle -6, 18 \rangle\)

Step 2: Calculate \(-\frac{1}{2}\vec{w}\)

\(-\frac{1}{2}\vec{w} = -\frac{1}{2}\langle -2, 6 \rangle = \langle -\frac{1}{2}(-2), -\frac{1}{2}(6) \rangle = \langle 1, -3 \rangle\)

Step 3: Analyze magnitude changes

Original magnitude: \(\|\vec{w}\| = \sqrt{(-2)^2 + 6^2} = \sqrt{4 + 36} = \sqrt{40} = 2\sqrt{10}\)

\(\|3\vec{w}\| = \sqrt{(-6)^2 + 18^2} = \sqrt{36 + 324} = \sqrt{360} = 6\sqrt{10} = 3 \cdot 2\sqrt{10}\)

\(\|-\frac{1}{2}\vec{w}\| = \sqrt{1^2 + (-3)^2} = \sqrt{1 + 9} = \sqrt{10} = \frac{1}{2} \cdot 2\sqrt{10}\)

Step 4: Analyze direction changes

Original direction: \(\theta = \arctan\left(\frac{6}{-2}\right) = \arctan(-3) \approx 108.43°\) (second quadrant)

For \(3\vec{w}\): Direction unchanged (positive scalar), still ~108.43°

For \(-\frac{1}{2}\vec{w}\): Direction reversed by 180°, so \(\theta = 108.43° + 180° = 288.43°\) (or equivalently -71.57°)

Step 5: Summarize effects of scalar multiplication

• Positive scalar c: Magnitude scaled by c, direction preserved

• Negative scalar c: Magnitude scaled by |c|, direction reversed by 180°

• Zero scalar: Results in zero vector

\(3\vec{w} = \langle -6, 18 \rangle\), \(-\frac{1}{2}\vec{w} = \langle 1, -3 \rangle\)
Final answer:

\(3\vec{w} = \langle -6, 18 \rangle\) and \(-\frac{1}{2}\vec{w} = \langle 1, -3 \rangle\). Scalar multiplication changes the magnitude by the absolute value of the scalar and reverses direction when the scalar is negative.

Applied rules:

• Scalar multiplication: \(c\vec{v} = \langle cv_x, cv_y \rangle\)

• Magnitude scaling: \(\|c\vec{v}\| = |c|\|\vec{v}\|\)

• Direction reversal: Negative scalar reverses vector direction

Rules and methods, laws,...
\(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2}, \quad \vec{u} + \vec{v} = \langle u_x + v_x, u_y + v_y \rangle, \quad c\vec{v} = \langle cv_x, cv_y \rangle\)
Vector Operations Formulas
Magnitude
\(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2}\)
Length of vector
Addition
\(\vec{u} + \vec{v} = \langle u_x + v_x, u_y + v_y \rangle\)
Component-wise
Scalar Mult.
\(c\vec{v} = \langle cv_x, cv_y \rangle\)
Scale by constant
Key definitions:

Vector: A mathematical object with magnitude and direction, represented as \(\vec{v} = \langle v_x, v_y \rangle\) in 2D space.

Magnitude: The length of a vector, calculated using the Pythagorean theorem.

Direction: The angle the vector makes with the positive x-axis.

Unit vector: A vector with magnitude 1, obtained by dividing a vector by its magnitude.

Zero vector: A vector with all components equal to zero, denoted as \(\vec{0}\).

Complete methodology:
  1. Identify vector components: Extract x and y components from vector notation
  2. Perform operations: Apply magnitude, addition, subtraction, or scalar multiplication formulas
  3. Calculate results: Execute the arithmetic operations
  4. Geometric interpretation: Understand the visual meaning of the operation
  5. Verify results: Check calculations using alternative methods when possible
Tip 1: Always pay attention to the signs of vector components when calculating angles.
Tip 2: Negative scalars reverse the direction of the vector.
Tip 3: Vector addition is commutative: \(\vec{u} + \vec{v} = \vec{v} + \vec{u}\).
Tip 4: The magnitude of a vector is always non-negative.
Common errors: Sign mistakes in subtraction, forgetting to consider quadrants for angles, miscalculating magnitudes.
Applications: Physics (forces, velocities), computer graphics, navigation, and engineering.
Formulas to know by heart:

• \(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2}\)

• \(\vec{u} + \vec{v} = \langle u_x + v_x, u_y + v_y \rangle\)

• \(\vec{u} - \vec{v} = \langle u_x - v_x, u_y - v_y \rangle\)

• \(c\vec{v} = \langle cv_x, cv_y \rangle\)

• \(\theta = \arctan\left(\frac{v_y}{v_x}\right)\) (with quadrant adjustment)

• Unit vector: \(\hat{v} = \frac{\vec{v}}{\|\vec{v}\|}\)

Solution: Exercises 4 to 5
4 Linear combinations
Exercise 4
Given \(\vec{a} = \langle 1, 2 \rangle\), \(\vec{b} = \langle 3, -1 \rangle\), and \(\vec{c} = \langle -2, 4 \rangle\), find the vector \(\vec{w} = 2\vec{a} - 3\vec{b} + \vec{c}\).
Definition:

Linear combination: A sum of scalar multiples of vectors: \(\vec{w} = c_1\vec{v_1} + c_2\vec{v_2} + \ldots + c_n\vec{v_n}\). This is fundamental in defining vector spaces.

Given
\(\vec{a} = \langle 1, 2 \rangle\), \(\vec{b} = \langle 3, -1 \rangle\), \(\vec{c} = \langle -2, 4 \rangle\)
Operation
\(\vec{w} = 2\vec{a} - 3\vec{b} + \vec{c}\)
Result
\(\vec{w} = \langle -5, 11 \rangle\)
Step 1: Calculate each scalar multiplication

\(2\vec{a} = 2\langle 1, 2 \rangle = \langle 2, 4 \rangle\)

\(-3\vec{b} = -3\langle 3, -1 \rangle = \langle -9, 3 \rangle\)

\(\vec{c} = \langle -2, 4 \rangle\) (unchanged)

Step 2: Add the vectors component-wise

\(\vec{w} = 2\vec{a} - 3\vec{b} + \vec{c} = \langle 2, 4 \rangle + \langle -9, 3 \rangle + \langle -2, 4 \rangle\)

\(\vec{w} = \langle 2 + (-9) + (-2), 4 + 3 + 4 \rangle\)

\(\vec{w} = \langle 2 - 9 - 2, 4 + 3 + 4 \rangle\)

\(\vec{w} = \langle -9, 11 \rangle\)

Step 3: Verify by recomputing

Let's double-check: \(2\vec{a} = \langle 2, 4 \rangle\), \(-3\vec{b} = \langle -9, 3 \rangle\), \(\vec{c} = \langle -2, 4 \rangle\)

\(\vec{w} = \langle 2, 4 \rangle + \langle -9, 3 \rangle + \langle -2, 4 \rangle = \langle 2-9-2, 4+3+4 \rangle = \langle -9, 11 \rangle\)

Step 4: Calculate magnitude and direction

\(\|\vec{w}\| = \sqrt{(-9)^2 + 11^2} = \sqrt{81 + 121} = \sqrt{202}\)

Direction: \(\theta = \arctan\left(\frac{11}{-9}\right)\). Since x < 0 and y > 0, it's in the second quadrant.

\(\theta = 180° + \arctan\left(\frac{11}{-9}\right) = 180° + \arctan(-1.222) \approx 180° - 50.71° = 129.29°\)

\(\vec{w} = \langle -9, 11 \rangle\), \(\|\vec{w}\| = \sqrt{202}\), \(\theta \approx 129.29°\)
Final answer:

The linear combination \(\vec{w} = 2\vec{a} - 3\vec{b} + \vec{c}\) equals \(\langle -9, 11 \rangle\). This vector has magnitude \(\sqrt{202}\) and makes an angle of approximately 129.29° with the positive x-axis.

Applied rules:

• Scalar multiplication: Apply scalar to each component

• Vector addition: Add corresponding components

• Linear combinations: Combine scalar multiplication and vector addition

5 Vector normalization
Exercise 5
Find the unit vector in the direction of \(\vec{v} = \langle 5, -12 \rangle\). Then find a vector of length 3 in the same direction as \(\vec{v}\).
Definition:

Unit vector: A vector with magnitude 1 that points in the same direction as the original vector. The unit vector in the direction of \(\vec{v}\) is \(\hat{v} = \frac{\vec{v}}{\|\vec{v}\|}\).

Given
\(\vec{v} = \langle 5, -12 \rangle\)
Magnitude
\(\|\vec{v}\| = 13\)
Unit Vector
\(\hat{v} = \langle \frac{5}{13}, -\frac{12}{13} \rangle\)
Step 1: Calculate the magnitude of \(\vec{v}\)

\(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2} = \sqrt{5^2 + (-12)^2} = \sqrt{25 + 144} = \sqrt{169} = 13\)

Step 2: Find the unit vector \(\hat{v}\)

\(\hat{v} = \frac{\vec{v}}{\|\vec{v}\|} = \frac{1}{13}\langle 5, -12 \rangle = \left\langle \frac{5}{13}, \frac{-12}{13} \right\rangle\)

Step 3: Verify the unit vector has magnitude 1

\(\|\hat{v}\| = \sqrt{\left(\frac{5}{13}\right)^2 + \left(\frac{-12}{13}\right)^2} = \sqrt{\frac{25}{169} + \frac{144}{169}} = \sqrt{\frac{169}{169}} = \sqrt{1} = 1\) ✓

Step 4: Find a vector of length 3 in the same direction

To get a vector of length 3 in the same direction as \(\vec{v}\), multiply the unit vector by 3:

\(\vec{w} = 3\hat{v} = 3 \cdot \left\langle \frac{5}{13}, \frac{-12}{13} \right\rangle = \left\langle \frac{15}{13}, \frac{-36}{13} \right\rangle\)

Step 5: Verify the new vector has magnitude 3

\(\|\vec{w}\| = \sqrt{\left(\frac{15}{13}\right)^2 + \left(\frac{-36}{13}\right)^2} = \sqrt{\frac{225}{169} + \frac{1296}{169}} = \sqrt{\frac{1521}{169}} = \sqrt{9} = 3\) ✓

Step 6: Verify direction is preserved

The direction of \(\vec{w}\) should be the same as \(\vec{v}\):

For \(\vec{v}\): \(\theta_v = \arctan\left(\frac{-12}{5}\right) \approx -67.38°\) (fourth quadrant)

For \(\vec{w}\): \(\theta_w = \arctan\left(\frac{-36/13}{15/13}\right) = \arctan\left(\frac{-36}{15}\right) = \arctan(-2.4) \approx -67.38°\) ✓

Unit vector: \(\left\langle \frac{5}{13}, -\frac{12}{13} \right\rangle\), Vector of length 3: \(\left\langle \frac{15}{13}, -\frac{36}{13} \right\rangle\)
Final answer:

The unit vector in the direction of \(\vec{v}\) is \(\left\langle \frac{5}{13}, -\frac{12}{13} \right\rangle\). A vector of length 3 in the same direction is \(\left\langle \frac{15}{13}, -\frac{36}{13} \right\rangle\).

Applied rules:

• Normalization: \(\hat{v} = \frac{\vec{v}}{\|\vec{v}\|}\)

• Scaling: Multiply unit vector by desired magnitude to get vector of specific length

• Direction preservation: Scalar multiplication preserves direction (except for sign)

Key Concepts: Vector Operations, Properties, Applications
\(\vec{u} \cdot \vec{v} = |\vec{u}||\vec{v}|\cos\theta, \quad \|\vec{u} + \vec{v}\|^2 = \|\vec{u}\|^2 + 2\vec{u} \cdot \vec{v} + \|\vec{v}\|^2\)
Vector Dot Product and Properties
Key definitions:

Vector: A quantity with both magnitude and direction, represented as \(\vec{v} = \langle v_x, v_y \rangle\) in 2D space.

Magnitude: The length of a vector, calculated as \(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2}\).

Direction: The angle θ that a vector makes with the positive x-axis: \(\theta = \arctan\left(\frac{v_y}{v_x}\right)\).

Unit vector: A vector with magnitude 1, obtained by normalizing: \(\hat{v} = \frac{\vec{v}}{\|\vec{v}\|}\).

Linear combination: A sum of scalar multiples of vectors: \(c_1\vec{v_1} + c_2\vec{v_2} + \ldots\).

Complete methodology:
  1. Component identification: Extract x and y components from vector notation
  2. Operation selection: Determine which operation to perform (magnitude, addition, etc.)
  3. Formula application: Apply the appropriate vector formula
  4. Arithmetic execution: Perform the calculations carefully
  5. Verification: Check results using alternative methods
Tip 1: Always consider the quadrant when calculating angles using arctan.
Tip 2: The magnitude of a vector is always positive or zero.
Tip 3: Scalar multiplication affects both magnitude and direction (for negative scalars).
Tip 4: The zero vector has magnitude 0 and no specific direction.
Common applications: Physics (forces, velocities, accelerations), computer graphics, navigation, and engineering design.
Vector properties: Commutativity of addition, associativity of addition, distributivity of scalar multiplication.
Essential formulas and concepts:

• \(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2}\)

• \(\vec{u} + \vec{v} = \langle u_x + v_x, u_y + v_y \rangle\)

• \(\vec{u} - \vec{v} = \langle u_x - v_x, u_y - v_y \rangle\)

• \(c\vec{v} = \langle cv_x, cv_y \rangle\)

• \(\theta = \arctan\left(\frac{v_y}{v_x}\right)\) (with quadrant consideration)

• Unit vector: \(\hat{v} = \frac{\vec{v}}{\|\vec{v}\|}\)

• \(\|c\vec{v}\| = |c|\|\vec{v}\|\)

Questions & Answers

Question: How do I determine the correct angle when using arctan to find a vector's direction?

Answer: The arctan function only returns angles between -90° and 90°, so you need to consider the signs of the components:

  • First quadrant: Both x and y positive → angle is as calculated
  • Second quadrant: x negative, y positive → add 180° to calculated angle
  • Third quadrant: Both x and y negative → add 180° to calculated angle
  • Fourth quadrant: x positive, y negative → angle is as calculated (or add 360° if you want positive angle)

Alternatively, use the atan2(y, x) function which automatically handles all quadrants correctly.

For example, if \(\vec{v} = \langle -3, 4 \rangle\): \(\theta = \arctan\left(\frac{4}{-3}\right) = \arctan(-1.333) \approx -53.13°\). Since x < 0 and y > 0, we add 180°: \(\theta = -53.13° + 180° = 126.87°\).

Question: What's the geometric interpretation of a linear combination of vectors?

Answer: A linear combination of vectors creates a new vector through a sequence of scalar multiplications followed by vector additions:

For \(\vec{w} = c_1\vec{u} + c_2\vec{v}\):

  1. Scale \(\vec{u}\) by \(c_1\) to get \(c_1\vec{u}\)
  2. Scale \(\vec{v}\) by \(c_2\) to get \(c_2\vec{v}\)
  3. Add the scaled vectors using the parallelogram rule

The result is a vector that lies in the plane spanned by \(\vec{u}\) and \(\vec{v}\). The scalars \(c_1\) and \(c_2\) determine how much of each original vector contributes to the result.

Linear combinations are fundamental in defining vector spaces and spans.

Question: Why are unit vectors important in physics and engineering?

Answer: Unit vectors are crucial because they:

  • Indicate direction: They provide pure directional information without magnitude
  • Standardize measurements: Allow comparison of directions regardless of magnitude
  • Form coordinate systems: Basis vectors like \(\hat{i}\), \(\hat{j}\), \(\hat{k}\) define coordinate axes
  • Simplify calculations: Any vector can be expressed as magnitude × unit vector

In physics, unit vectors are used to specify directions of forces, velocities, and fields. In engineering, they're essential for resolving vectors into components and for coordinate transformations.

The decomposition \(\vec{v} = \|\vec{v}\|\hat{v}\) separates magnitude and direction, which is often useful in analysis.