Lesson #5Views are counted together with the original Chinese articleImages are preserved from the source page
Behind every operation rule lies meaning: addition represents composition, scalar multiplication represents scaling, the dot product measures similarity, and matrix multiplication composes relationships.
I always verify dimensions first—and then interpret the meaning of the result. Just because an operation is computable doesn’t mean its interpretation is correct.
In the previous article, we explored the definitions and representations of vectors and matrices. This article focuses on fundamental operations involving vectors and matrices—helping you better understand how to apply these mathematical tools to real-world problems.
Review of Basic Concepts: Vectors and Matrices
Before diving into operations, let’s briefly revisit the core concepts.
Vector: A vector is an ordered collection of numbers, typically represented as an n×1 column matrix. For example, v=123 is a three-dimensional vector.
Matrix: A matrix is a two-dimensional array of numerical values. An m×n matrix is written as
Vectors support several key operations—the most common being vector addition, scalar multiplication, and the dot (inner) product.
Vector Addition
Given two vectors u=u1u2⋮un and v=v1v2⋮vn, their sum u+v yields a new vector w:
w=u+v=u1+v1u2+v2⋮un+vn
Example
Let u=[13] and v=[42]:
w=u+v=[1+43+2]=[55]
Scalar Multiplication of Vectors
Given a scalar k and a vector v=v1v2⋮vn, scalar multiplication yields:
kv=kv1kv2⋮kvn
Example
Let k=3 and v=[24]:
kv=3[24]=[3⋅23⋅4]=[612]
Dot Product (Inner Product) of Vectors
The dot product is a fundamental operation. For vectors u and v, it is defined as:
u⋅v=u1v1+u2v2+…+unvn
Example
Let u=13−5 and v=4−2−1:
u⋅v=1⋅4+3⋅(−2)+(−5)⋅(−1)=4−6+5=3
Matrix Operations
Matrix operations include matrix addition, scalar multiplication, and matrix multiplication. Below, we cover addition and scalar multiplication in detail.
When performing vector or matrix operations, always first confirm: dimensions, orientation, output shape, and contextual meaning. Dimensional compatibility is only the first step—semantic alignment is the key.
Matrix Addition
For two matrices A and B of identical dimensions, their sum C=A+B is computed element-wise:
Given a scalar k and a matrix A=[aij], scalar multiplication is defined as:
Before reading “Vector and Matrix Operations”, preview the visual path from problem → computation → result shown in this diagram. After reading, revisit the text to verify whether you can reproduce each step.
kA=ka11ka21⋮ka12ka22⋮……⋱
Example
Let k=2 and A=[1324]. Then:
kA=2A=[2⋅12⋅32⋅22⋅4]=[2648]
Matrix Multiplication
Matrix multiplication combines rows of the first matrix with columns of the second. If A is m×n and B is n×p, then the product AB is an m×p matrix.
Example
Let
A=[1324],B=[2102].
Then:
AB=[1⋅2+2⋅13⋅2+4⋅11⋅0+2⋅23⋅0+4⋅2]=[41048]
When reviewing “Vector and Matrix Operations”, place key concepts, procedural steps, and observable outcomes on the same page for efficient recall.
When practicing “Vector and Matrix Operations”, write down input conditions, computational actions, and resulting outputs together—making future review and verification straightforward.
Summary
Vector and matrix operations are not isolated formulas. Vector addition and scalar multiplication help us reason about direction and scaling; the dot product quantifies similarity; and matrix multiplication composes multiple linear relationships. In practice, always begin by verifying dimensional compatibility, and then interpret the business or geometric meaning of the computed result.