AP Precalculus • Functions Involving Parameters, Vectors, and Matrices

Vectors

Quantities with both magnitude and direction that model forces, velocities, and displacements across mathematics and science.

A function curve with a triangle and circular angle measure.
Inside this lesson 9 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

For centuries, mathematicians and physicists grappled with quantities that could not be captured by a single number. A temperature of 25°C is fully described by its magnitude alone, but a wind blowing at 30 km/h only tells half the story—you also need to know which way it blows. The formal language of vectors arose precisely to handle quantities that possess both magnitude and direction, unifying ideas from geometry, physics, and algebra into a single powerful framework.

1799 • Wessel's Geometric Representation

Caspar Wessel published a paper representing complex numbers as directed line segments in the plane, foreshadowing the modern concept of a two-dimensional vector.

1843 • Hamilton's Quaternions

William Rowan Hamilton discovered quaternions, a four-dimensional extension of complex numbers that included three-dimensional vector-like components and inspired vector algebra.

1844 • Grassmann's Theory of Extension

Hermann Grassmann independently developed a general algebra of directed quantities in arbitrary dimensions, laying groundwork for modern linear algebra and the exterior product.

1881–1884 • Gibbs & Heaviside Formalize Vectors

Josiah Willard Gibbs and Oliver Heaviside distilled quaternion ideas into the streamlined vector notation (with dot and cross products) still used in physics and engineering today.

1888 • Peano's Axioms for Vector Spaces

Giuseppe Peano gave the first axiomatic definition of a vector space, transforming vectors from a physical tool into a cornerstone of abstract algebra.

The central question these developments addressed was deceptively simple: how can we do arithmetic with quantities that have direction? Scalars obey familiar rules on the number line, but directed quantities live in higher-dimensional spaces and require new operations—addition that follows the parallelogram law, multiplication that produces both scalar and vector results, and decomposition into perpendicular components. Mastering these operations is essential for AP Precalculus and for every quantitative discipline that follows.

SECTION 2

Core Principles & Definitions

A vector is a mathematical object defined by a magnitude (length) and a direction. In contrast, a scalar is fully specified by a single real number. Vectors are typically written in boldface (v) or with an arrow notation (v⃗), while their magnitude is written as |v| or ‖v‖. Two vectors are equal if and only if they share the same magnitude and direction, regardless of where they are positioned in the plane.

1

Component Form

A vector in ℝ² is written as ⟨a, b⟩ where a is the horizontal component and b is the vertical component. These components encode both magnitude and direction.
2

Magnitude

The magnitude of v = ⟨a, b⟩ is ‖v‖ = √(a² + b²), derived from the Pythagorean theorem. A vector with magnitude 1 is called a unit vector.
3

Direction Angle

The direction angle θ is measured counterclockwise from the positive x-axis: θ = tan⁻¹(b/a), adjusted for the correct quadrant. This links vectors to trigonometry.
4

Vector Addition

Vectors add component-wise: ⟨a₁, b₁⟩ + ⟨a₂, b₂⟩ = ⟨a₁ + a₂, b₁ + b₂⟩. Geometrically, place the tail of the second at the head of the first (the tip-to-tail method).
5

Scalar Multiplication

Multiplying v = ⟨a, b⟩ by scalar k gives kv = ⟨ka, kb⟩. If k > 0 the direction is preserved; if k < 0 the direction reverses. The magnitude scales by |k|.

SECTION 3

Visual Explanation — Vectors in the Coordinate Plane

xy12345120u = ⟨3, 2⟩v = ⟨2, 1⟩u + v = ⟨5, 3⟩horizontal = 3vertical = 2θVector Addition: Tip-to-Tail & Parallelogram Methods
The solid cyan arrow represents u = ⟨3, 2⟩ and the solid violet arrow represents v = ⟨2, 1⟩. The amber arrow is their sum u + v = ⟨5, 3⟩, found by adding components. The dashed lines show the tip-to-tail construction: placing v's tail at u's head (or vice versa) both lead to the same resultant. Pink dashed lines decompose u into its horizontal and vertical components.

The diagram above illustrates several foundational ideas simultaneously. Each vector originates at the origin and terminates at the point given by its components, so the cyan vector u = ⟨3, 2⟩ ends at the coordinate (3, 2). The pink dashed lines reveal that any vector can be decomposed into horizontal and vertical components using right-triangle geometry. The direction angle θ of u is measured from the positive x-axis, and in this case θ = tan⁻¹(2/3) ≈ 33.7°. Notice that the tip-to-tail method for addition produces the same resultant regardless of which vector is placed first—a visual confirmation of the commutativity of vector addition.

SECTION 4

Mathematical Framework

The algebraic treatment of vectors in ℝ² rests on a small collection of formulas that translate geometric operations into arithmetic. Every operation on vectors can be performed component-wise, making computation straightforward once the vector is expressed in component form.

MAGNITUDE

‖v‖=√(a2+b2)‖v‖ = √(a² + b²)

For v = ⟨a, b⟩, the magnitude ‖v‖ is the distance from the origin to the point (a, b), derived directly from the Pythagorean theorem.

DIRECTION ANGLE

θ=tan−1(b/a),adjustedbyquadrantθ = tan⁻¹(b / a), adjusted by quadrant

The reference angle from tan⁻¹(|b/a|) is placed into the correct quadrant by inspecting the signs of a and b. If a < 0, add 180°; if a > 0 and b < 0, add 360°.

UNIT VECTOR

u^=v/‖v‖=⟨a/‖v‖,b/‖v‖⟩û = v / ‖v‖ = ⟨a / ‖v‖, b / ‖v‖⟩

Dividing any nonzero vector by its magnitude produces a unit vector in the same direction with ‖û‖ = 1. The standard basis vectors i = ⟨1, 0⟩ and j = ⟨0, 1⟩ are the unit vectors along the x- and y-axes.

POLAR ↔ COMPONENT CONVERSION

v=⟨‖v‖cosθ,‖v‖sinθ⟩v = ⟨‖v‖ cos θ, ‖v‖ sin θ⟩

Given magnitude ‖v‖ and direction angle θ, the horizontal component is ‖v‖ cos θ and the vertical component is ‖v‖ sin θ. This is the bridge between polar (magnitude-direction) form and component form.

The dot product of two vectors u = ⟨u₁, u₂⟩ and v = ⟨v₁, v₂⟩ is defined as u · v = u₁v₁ + u₂v₂. This scalar quantity equals ‖u‖‖v‖ cos α, where α is the angle between the vectors. The dot product is zero precisely when the vectors are perpendicular (orthogonal), making it a powerful tool for testing geometric relationships algebraically.

One boat crosses a river with a visible current context. Wake and perspective are not velocity measurements; both course diagrams remain authoritative.Add the boat’s velocity relative to the water to the current’s velocity relative to the ground. Components give a ground speed of about 16.52 km/h, directed 8.70° north of east.

Add the boat’s velocity relative to the water to the current’s velocity relative to the ground. Components give a ground speed of about 16.52 km/h, directed 8.70° north of east.Add the boat’s velocity relative to the water to the current’s velocity relative to the ground. Components give a ground speed of about 16.52 km/h, directed 8.70° north of east.

SECTION 5

Detailed Breakdown of Vector Operations

Understanding vectors fully requires fluency with several interrelated operations. The table below organizes the key operations, their algebraic definitions, and their geometric interpretations so that you can see how each formula connects back to a visual idea.

OperationAlgebraic DefinitionGeometric Meaning
Addition⟨a₁ + a₂, b₁ + b₂⟩Tip-to-tail displacement; diagonal of parallelogram
Subtraction⟨a₁ − a₂, b₁ − b₂⟩Vector from the head of v to the head of u
Scalar multiplication⟨ka, kb⟩Stretches or shrinks by |k|; reverses if k < 0
Magnitude√(a² + b²)Length of the arrow (Pythagorean theorem)
Dot productu₁v₁ + u₂v₂‖u‖‖v‖ cos α; measures alignment / orthogonality
Unit vectorv / ‖v‖Direction preserved, magnitude normalized to 1

Summary of fundamental vector operations in ℝ²

Scalar MultiplicationPolar ↔ Component Conversion0v2v−0.5vk > 1 stretches; k < 0 reverses direction0v = ⟨‖v‖cosθ, ‖v‖sinθ⟩‖v‖cosθ‖v‖sinθθ‖v‖ = √(a² + b²)Trig links magnitude-direction to components
Left panel: Scalar multiplication of v by 2 (orange, same direction, double length) and by −0.5 (red, reversed direction, half length). Right panel: Conversion between polar form (magnitude ‖v‖ and angle θ) and component form using cosine and sine projections.

The left panel drives home how scalar multiplication affects a vector: multiplying by a positive scalar greater than 1 stretches the vector while preserving direction, whereas a negative scalar reverses direction. The right panel is especially important for AP Precalculus because it demonstrates the polar-to-component conversion that appears frequently on the exam. When a problem states "a force of 50 N at 60°," you should immediately decompose it as ⟨50 cos 60°, 50 sin 60°⟩ = ⟨25, 25√3⟩. Mastering this conversion eliminates the most common source of errors on vector problems.

SECTION 6

Worked Example

A boat is heading due east at 12 km/h, but a river current pushes it in the direction 30° north of east at 5 km/h. Find the resultant velocity vector, its magnitude (the boat's actual speed), and the direction angle of the boat's true path.

Worked example

  1. 1

    Step 1 — Express each velocity in component form

    The boat's velocity is vb = ⟨12, 0⟩ (due east means θ = 0°). The current's velocity is vc = ⟨5 cos 30°, 5 sin 30°⟩ = ⟨5 × (√3/2), 5 × (1/2)⟩ = ⟨5√3/2, 5/2⟩ ≈ ⟨4.330, 2.500⟩.
    vb = ⟨12, 0⟩; vc ≈ ⟨4.330, 2.500⟩
  2. 2

    Step 2 — Add component-wise to find the resultant

    vr = vb + vc = ⟨12 + 5√3/2, 0 + 5/2⟩ = ⟨12 + 5√3/2, 5/2⟩ ≈ ⟨16.330, 2.500⟩.
    vr ≈ ⟨16.330, 2.500⟩
  3. 3

    Step 3 — Compute the magnitude (speed)

    ‖vr‖ = √(16.330² + 2.500²) = √(266.668 + 6.250) = √272.918 ≈ 16.52 km/h.
    Speed ≈ 16.52 km/h
  4. 4

    Step 4 — Compute the direction angle

    θ = tan⁻¹(2.500 / 16.330) = tan⁻¹(0.1531) ≈ 8.7°. Both components are positive (Quadrant I), so no adjustment is needed.
    Direction ≈ 8.7° north of east
ℹ
Exam Strategy

SECTION 7

Comparing Representations & Common Pitfalls

Vectors can be represented in two primary ways—component form and magnitude-direction (polar) form—and each has strengths depending on the task at hand. Choosing the right representation at the right time is a hallmark of mathematical fluency.

FeatureComponent Form ⟨a, b⟩Magnitude-Direction (‖v‖, θ)
Addition / subtractionEasy — add/subtract componentsRequires conversion to components first
Scalar multiplicationMultiply each component by kMultiply magnitude by |k|; negate angle if k < 0
Physical intuitionLess intuitive for real-world descriptionsNatural — "50 N at 60°" is immediate
Dot productDirect — u₁v₁ + u₂v₂Requires knowing the angle between vectors
Common errorForgetting to check signs of componentsUsing tan⁻¹ without quadrant adjustment

Comparison of component form vs. magnitude-direction form

SECTION 8

Connection to Advanced Theory

The two-dimensional vectors you study in AP Precalculus are the gateway to a vast mathematical landscape. In subsequent courses—calculus, linear algebra, physics—vectors generalize to higher dimensions, gain new operations, and become the language of change, force, and transformation.

AP Precalculus ConceptAdvanced Extension
Vectors in ℝ²Vectors in ℝ³ and ℝⁿ; abstract vector spaces over arbitrary fields
Dot product u · vInner products, projections, least-squares regression, and Fourier analysis
Magnitude and unit vectorsNorms in functional analysis; normalization in machine learning
Component form ⟨a, b⟩Matrix columns as vectors; linear transformations T(v) = Av
Direction angle θArgument of complex numbers; polar coordinates in multivariable calculus

How AP Precalculus vector concepts extend into higher mathematics

In three dimensions, a new operation called the cross product produces a vector perpendicular to both inputs, enabling the computation of torques, surface normals, and magnetic forces. Meanwhile, matrices—another topic in this AP Precalculus unit—can be viewed as collections of column vectors, and the operations you learn here (addition, scalar multiplication, dot product) extend seamlessly to matrix algebra. Building rock-solid intuition with two-dimensional vectors now will pay dividends throughout your mathematical career.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Which of the following statements correctly distinguishes a vector from a scalar?
  • A. A vector has magnitude only, while a scalar has both magnitude and direction.
  • B. A vector can be negative, but a scalar is always positive.
  • C. A vector has both magnitude and direction, while a scalar has magnitude only.
  • D. A vector is always larger than a scalar because it has more components.
  • E. A vector and a scalar differ only in notation; they carry the same information.
Show answer (C)
C is correct: by definition, a vector encodes both magnitude and direction, whereas a scalar is completely described by a single real number (magnitude alone). A is the reverse of the correct definition. B is wrong because scalars can be negative (e.g., temperature −5°C). D is wrong because size comparison between vectors and scalars is meaningless—they are different types of quantities. E is wrong because the directional information in a vector is substantive, not merely notational.

Question 2: BASIC CALCULATION

Given u = ⟨−3, 4⟩, what is the magnitude ‖u‖ and the unit vector in the direction of u?
  • A. ‖u‖ = 7; û = ⟨−3/7, 4/7⟩
  • B. ‖u‖ = 5; û = ⟨−3/5, 4/5⟩
  • C. ‖u‖ = 25; û = ⟨−3/25, 4/25⟩
  • D. ‖u‖ = 5; û = ⟨3/5, −4/5⟩
  • E. ‖u‖ = 1; û = ⟨−3, 4⟩
Show answer (B)
B is correct. ‖u‖ = √((−3)² + 4²) = √(9 + 16) = √25 = 5, and the unit vector is u/‖u‖ = ⟨−3/5, 4/5⟩. A incorrectly uses ‖u‖ = |−3| + |4| = 7, which is the sum of absolute values rather than the Pythagorean formula. C uses ‖u‖ = (−3)² + 4² = 25 without taking the square root. D has the correct magnitude but reverses the signs of the components, pointing in the opposite direction. E claims the magnitude is 1, which would only be true if u were already a unit vector.

Question 3: INTERMEDIATE

A force of 80 N acts at an angle of 150° from the positive x-axis. Which of the following gives its correct component form?
  • A. ⟨40√3, 40⟩
  • B. ⟨−40, 40√3⟩
  • C. ⟨−40√3, 40⟩
  • D. ⟨−40√3, −40⟩
  • E. ⟨40, −40√3⟩
Show answer (C)
C is correct. The horizontal component is 80 cos 150° = 80 × (−√3/2) = −40√3, and the vertical component is 80 sin 150° = 80 × (1/2) = 40. A ignores the sign of cos 150° (150° is in Quadrant II where cosine is negative). B swaps the cosine and sine values. D incorrectly makes the vertical component negative, which would place the vector in Quadrant III instead of Quadrant II. E has both components with incorrect signs, pointing into Quadrant IV.

Question 4: APPLIED

An airplane flies with a velocity of ⟨250, 100⟩ km/h relative to the air, and the wind has a velocity of ⟨−40, 30⟩ km/h. (a) Find the resultant ground velocity vector. (b) Calculate the ground speed (magnitude of the resultant). (c) Determine the direction angle of the airplane's ground path. (d) A second airplane must arrive at the same ground velocity. If this plane encounters the same wind, find the airspeed and the direction angle (heading) at which it should aim to achieve this resultant.
Show answer
(a) Resultant = ⟨250 + (−40), 100 + 30⟩ = ⟨210, 130⟩ km/h. [1 pt] (b) Ground speed = √(210² + 130²) = √(44100 + 16900) = √61000 ≈ 246.98 km/h. [1 pt] (c) θ = tan⁻¹(130/210) ≈ tan⁻¹(0.6190) ≈ 31.8°. Since both components are positive, the vector lies in Quadrant I and no adjustment is needed. [1 pt] (d) The second airplane's air velocity vector is ⟨s cos α, s sin α⟩ where s is its airspeed. For the ground velocity to equal ⟨210, 130⟩ with wind ⟨−40, 30⟩, we need: s cos α − 40 = 210 → s cos α = 250 s sin α + 30 = 130 → s sin α = 100 So the required airspeed is s = √(250² + 100²) = √(62500 + 10000) = √72500 ≈ 269.3 km/h. [1 pt] The heading angle is α = tan⁻¹(100/250) = tan⁻¹(0.4) ≈ 21.8°. Since both components are positive, the angle is in Quadrant I and no adjustment is needed. [1 pt]Head-to-tail vector sum of air velocity (250,100) and wind (−40,30), giving ground velocity (210,130), magnitude about 247 and direction about 31.8° north of east.Aircraft air velocity and wind add to ground velocity in one east–north frame; heading and ground-track direction differ.

Question 5: CRITICAL THINKING

Let u and v be two nonzero vectors in ℝ². (a) Using the algebraic definition of the dot product and the magnitude formula, prove that u · v = ‖u‖ ‖v‖ cos α, where α is the angle between u and v. (Hint: Apply the law of cosines to the triangle formed by u, v, and u − v.) (b) Use your result from (a) to explain why the dot product is zero if and only if the vectors are perpendicular. (c) Give a geometric interpretation of the quantity (u · v) / ‖v‖ and identify it by name.
Show answer
(a) Consider the triangle with sides u, v, and u − v. By the law of cosines: ‖u − v‖² = ‖u‖² + ‖v‖² − 2‖u‖‖v‖cos α. Expanding the left side in components: ‖u − v‖² = (u₁ − v₁)² + (u₂ − v₂)² = u₁² − 2u₁v₁ + v₁² + u₂² − 2u₂v₂ + v₂² = ‖u‖² + ‖v‖² − 2(u₁v₁ + u₂v₂). Equating: ‖u‖² + ‖v‖² − 2(u₁v₁ + u₂v₂) = ‖u‖² + ‖v‖² − 2‖u‖‖v‖cos α, so u₁v₁ + u₂v₂ = ‖u‖‖v‖cos α, which means u · v = ‖u‖‖v‖cos α. [2 pts] (b) Since u and v are nonzero, ‖u‖ > 0 and ‖v‖ > 0. Thus u · v = 0 ⟺ cos α = 0 ⟺ α = 90°, which is the definition of perpendicularity. [1 pt] (c) The quantity (u · v)/‖v‖ = ‖u‖ cos α is the scalar projection (or component) of u onto v. Geometrically, it is the signed length of the shadow that u casts onto the line containing v when light shines perpendicular to v. [1 pt]

Varsity Tutors • AP Precalculus • Vectors