Vectors & Matrices in Two Dimensions – Comprehensive Notes

Administrative & Context Notes

  • Summer & Fall classes open for enrollment; scheduling reminder.
  • Class: Precalculus – Week 15 (Vectors & Matrices in 2 D) — Jun 29
  • Instructor: Annie Meyers; time slots given in ET/PT.

Review of 2-D Vectors

  • Vectors viewed as instructions for a robot: 1st component → horizontal displacement; 2nd component → vertical displacement.
  • Components written column-style \begin{pmatrix}x\y\end{pmatrix} or plain text “(x; y)”.
  • Robot metaphor reinforces geometric meaning of addition & scalar multiplication.

Dot Product

  • Definition for \mathbf{x}=\begin{pmatrix}x1\x2\end{pmatrix},\;\mathbf{y}=\begin{pmatrix}y1\y2\end{pmatrix}:
    xy=x<em>1y</em>1+x<em>2y</em>2.\mathbf{x}\,\cdot\,\mathbf{y}=x<em>1y</em>1+x<em>2y</em>2.
  • Properties
    • Commutative: xy=yx.\mathbf{x}\cdot\mathbf{y}=\mathbf{y}\cdot\mathbf{x}.
    • Scalar (real-valued) output.
  • Self-dot gives squared magnitude: x2=xx.|\mathbf{x}|^{2}=\mathbf{x}\cdot\mathbf{x}.

Magnitude

  • x=x<em>12+x</em>22.|\mathbf{x}|=\sqrt{x<em>1^{2}+x</em>2^{2}}. Examples: |\begin{pmatrix}1\2\end{pmatrix}|=\sqrt5,\;|\begin{pmatrix}3\1\end{pmatrix}|=\sqrt{10}. (Used later for triangle inequality.)

Geometric Constructions with Two Given Basis Vectors

  • Two specific vectors (diagrammed) named x,y.\mathbf{x},\mathbf{y}.
  • Students practiced identifying: 2y,  x+y,  2xy,  x+2y.2\mathbf{y},\;\mathbf{x}+\mathbf{y},\;2\mathbf{x}-\mathbf{y},\;\mathbf{x}+2\mathbf{y}. Key points:
    • Head-to-tail rule for addition.
    • Parallel scaling recognisable on grid lines drawn parallel to x,y.\mathbf{x},\mathbf{y}.
  • Trick question: no arrow in diagram equalled xy.\mathbf{x}-\mathbf{y}.

Linear Combinations

  • General form in 2-D: ax+by.a\mathbf{x}+b\mathbf{y}. Scalars a,bR.a,b\in\mathbb R.
  • Example 1: c=x+y(1)x+(1)y.\mathbf{c}=\mathbf{x}+\mathbf{y}\Rightarrow (1)\mathbf{x}+(1)\mathbf{y}.
  • Example 2 (non-integer coefficients).
    • Target \mathbf{v}=\begin{pmatrix}5\4\end{pmatrix}.
    • Algebraic system \begin{cases}a+3b=5\2a+b=4\end{cases} solved to a=75,  b=65.a=\tfrac75,\;b=\tfrac65.
    • Therefore v=75x+65y.\mathbf{v}=\tfrac75\mathbf{x}+\tfrac65\mathbf{y}.
  • Example 3 (impossible case).
    • Showed \mathbf{w}=\begin{pmatrix}5\2\end{pmatrix} cannot be written from the set x,y,2y{\mathbf{x},\,\mathbf{y},\,2\mathbf{y}} because all three candidate vectors are parallel; algebraic system inconsistent.

Using Linear Combinations in Dot-Product Problems

  • To find angle between v=x+y\mathbf{v}=\mathbf{x}+\mathbf{y} and w=3x2y\mathbf{w}=3\mathbf{x}-2\mathbf{y} given x=5,y=10,xy=5.|\mathbf{x}|=\sqrt5,\,|\mathbf{y}|=\sqrt{10},\,\mathbf{x}\cdot\mathbf{y}=5.
  • Algebraic expansion (linearity):
    vw=(x+y)(3x2y)=3xx2xy+3yx2yy.\mathbf{v}\cdot\mathbf{w}=(\mathbf{x}+\mathbf{y})\cdot(3\mathbf{x}-2\mathbf{y})=3\mathbf{x}\cdot\mathbf{x}-2\mathbf{x}\cdot\mathbf{y}+3\mathbf{y}\cdot\mathbf{x}-2\mathbf{y}\cdot\mathbf{y}. Simplifies to 0.0.
  • Hence cosθ=0    θ=90.\cos\theta=0\;\Rightarrow\;\theta=90^{\circ}.

Magnitude of a Linear Combination

  • Computed v=x+y.|\mathbf{v}|=|\mathbf{x}+\mathbf{y}|.
    • Direct triangle inequality only gives an upper bound.
    • Dot-product route: v2=(x+y)(x+y)=x2+2xy+y2=5+25+10=25.|\mathbf{v}|^{2}=(\mathbf{x}+\mathbf{y})\cdot(\mathbf{x}+\mathbf{y})=|\mathbf{x}|^{2}+2\mathbf{x}\cdot\mathbf{y}+|\mathbf{y}|^{2}=5+2\cdot5+10=25.
    • Thus v=5.|\mathbf{v}|=5.

Projections

  • Definition: Projection of v\mathbf{v} onto u\mathbf{u} (notation projuv\operatorname{proj}_{\mathbf{u}}\mathbf{v}) is the “shadow” of v\mathbf{v} on a line having direction u\mathbf{u}, with light rays perpendicular to that line.
  • Facts observed geometrically:
    • If angle between v,u\mathbf{v},\mathbf{u} is acute ⇒ projection is positive multiple of u.\mathbf{u}.
    • Obtuse ⇒ negative multiple.
    • Right angle ⇒ zero vector.
    • If v\mathbf{v} is already parallel to u\mathbf{u} ⇒ projection equals v\mathbf{v} itself.
  • Numerical Example: project \begin{pmatrix}2\3\end{pmatrix} onto \mathbf{u}=\begin{pmatrix}-1\0\end{pmatrix}.
    • Direction line horizontal (slope 0).
    • Projection found visually: \begin{pmatrix}-2\0\end{pmatrix} (opposite orientation still valid).
  • Algebraic formula deferred to later lecture; focus kept on geometric intuition.

Introduction to Matrices

  • Matrix = rectangular array of numbers.
    • Pronunciation: “MAY-trix”; plural “MAY-tri-seez”.
  • Notation examples: \begin{pmatrix}1&2\3&4\end{pmatrix}\;\equiv\;(1,2;3,4).
  • Dimensions (m × n): m rows (height), n columns (width).
  • Rows/Columns treated as vectors: row<em>1(A),row</em>2(A);  col<em>1(A),col</em>2(A).\text{row}<em>1(A),\text{row}</em>2(A);\;\text{col}<em>1(A),\text{col}</em>2(A).

Matrix Addition & Scalar Multiplication (2 × 2 only for now)

  • Component-wise:
    \begin{pmatrix}1&-1\3&6\end{pmatrix}+\begin{pmatrix}-6&5\3&2\end{pmatrix}=\begin{pmatrix}-5&4\6&8\end{pmatrix}.
  • Scalar example: 3\begin{pmatrix}1&2\3&4\end{pmatrix}=\begin{pmatrix}3&6\9&12\end{pmatrix}.

Matrix-Vector Multiplication

  • Definition: For A=\begin{pmatrix}a&b\c&d\end{pmatrix},\;\mathbf{v}=\begin{pmatrix}v1\v2\end{pmatrix}
    A\mathbf{v}=\begin{pmatrix}(a,b)\cdot(v1,v2)\(c,d)\cdot(v1,v2)\end{pmatrix}=\begin{pmatrix}av1+bv2\cv1+dv2\end{pmatrix}. (Row-dot-vector rule.)
  • Practice:
    • A=\begin{pmatrix}1&2\4&-1\end{pmatrix},\;\mathbf{e}1=\begin{pmatrix}1\0\end{pmatrix}\Rightarrow A\mathbf{e}1=\begin{pmatrix}1\4\end{pmatrix}.
    • Same matrix with \begin{pmatrix}2\1\end{pmatrix}\Rightarrow\begin{pmatrix}4\7\end{pmatrix}.

Important Special Matrices

  • Identity I=\begin{pmatrix}1&0\0&1\end{pmatrix}
    • Acts as identity function: Iv=v  v.I\mathbf{v}=\mathbf{v}\;\forall\mathbf{v}.
  • Rotation by 9090^{\circ} counter-clockwise: J=\begin{pmatrix}0&-1\1&0\end{pmatrix}.
    • Maps (v<em>1<ˇ/em>2)(v<em>2<ˇ/em>1).\begin{pmatrix}v<em>1\v</em>2\end{pmatrix}\mapsto\begin{pmatrix}-v<em>2\v</em>1\end{pmatrix}.
    • Proven via correspondence with multiplying complex number a+bia+bi by ii.
  • Reflection across the line y=xy=x (direction vector \begin{pmatrix}1\1\end{pmatrix}): R=\begin{pmatrix}0&1\1&0\end{pmatrix}.
    • Swaps coordinates: R(v<em>1<ˇ/em>2)=(v<em>2<ˇ/em>1).R\begin{pmatrix}v<em>1\v</em>2\end{pmatrix}=\begin{pmatrix}v<em>2\v</em>1\end{pmatrix}. Not a rotation (angle depends on input).

Conceptual View: Matrices as Functions

  • Any 2 × 2 matrix defines a linear transformation T:R2R2,  T(v)=Av.T:\mathbb R^{2}\to\mathbb R^{2},\;T(\mathbf{v})=A\mathbf{v}.
  • Examples:
    II → identity function.
    JJ → rotation by π2.\tfrac{\pi}{2}.
    RR → reflection about line in direction \begin{pmatrix}1\1\end{pmatrix}.

Additional Numerical & Diagram Insights

  • Slope connection: direction vector (1,0)(-1,0) ⇒ horizontal line (slope 0).
  • Direction vectors for lines used in projection tasks: any non-zero scalar multiple qualifies.
  • Emphasis that vectors have no fixed location ⇒ rotations/reflections independent of centre, lines only need direction.
  • Triangle Inequality revisited: x+yx+y.|\mathbf{x}+\mathbf{y}|\le|\mathbf{x}|+|\mathbf{y}|.
  • Perpendicular vectors have zero projection, dot product 0.
  • Parallelism & scalar multiples: kuk\mathbf{u} gives same direction for any non-zero kR.k\in\mathbb R.

Key Vocabulary

  • Vector, scalar, dot product, magnitude, linear combination, span (implicitly introduced), projection, direction vector, matrix, row, column, identity matrix, transformation, rotation, reflection.

Ethical / Practical Remarks

  • Copyright notice: material protected; printing for personal use only.
  • Reminder about class schedule break for July 4.

Takeaways & Next Steps

  • Comfort with writing/solving linear combinations is foundational for future study (basis, span, linear independence upcoming).
  • Geometric intuition of projection critical for later formula derivation and applications (least squares, components, work).
  • Matrix arithmetic (especially multiplication) lays groundwork for solving systems, transformations and later eigenvalues.
  • Upcoming classes will delve deeper into projections’ algebraic formula, conditions for expressing vectors as combinations, and broader linear algebra concepts.