![]()
MATH347 L1: Linear combinations
|
Lesson concepts:
Vectors
Vector operations
Linear combinations
Matrix vector multiplication
![]()
Vectors
|
Some quantities arising in applications can be expressed as single numbers, called “scalars”
Speed of a car on a highway mph
A person's height cm
Many other quantitites require more than one number:
Position in a city: “Intersection of 86 St and 3 Av”
Position in 3D space:
Velocity in 3D space:
![]()
Vector definition
|
Definition. A vector is a grouping of scalars
The scalars usually are naturals (), integers (), rationals (), reals (), or complex numbers ()
We often denote the dimension and set of scalars as , e.g.
Sets of vectors are denoted as
(1) |
A vector can also be interpreted as a function from a subset of to
![]()
Vector operations
|
Vector addition. Consider two vectors . We define the sum of the two vectors as the vector containing the sum of the components
>> |
u=[1 2 3]; v=[-2 1 2]; u+v |
Scalar multiplication. Consider , . We define the multiplication of vector by scalar as the vector containing the product of each component of with the scalar
![]()
Linear combinations
|
Linear combination. Let , . Define a linear combination of two vectors by
Linear combination of vectors
![]()
Uses of linear combinations
|
"Start at the center of town. Go east 3 blocks and north 2 blocks. What is your final position?"
Linear combinations allow us to express a position in space using a standard set of directions. Questions:
How many standard directions are needed?
Can any position be specified as a linear combination?
How to find the scalars needed to express a position as a linear combination?
![]()
Matrices
|
Seek a more compact notation for the linear combination
Group the vectors together to form a “matrix”
Group the scalars together to form a vector
![]()
Matrix-vector multiplication = linear combination
|
Define matrix-vector multiplication
In general
![]()
Examples: linear combination
|
Construct linear combination of vectors , scaled by and , respectively
>> |
u=[1 -1 2]; v=[2 1 -1]; alpha=2; beta=3; |
>> |
alpha*u+beta*v |
Construct linear combination of vectors , scaled by and , respectively
>> |
u=[1; -1; 2]; v=[2; 1; -1]; alpha*u+beta*v |
>> |
![]()
Examples: linear combination by matrix-vector combination
|
Construct linear combination of vectors , scaled by and , respectively
>> |
u=[1; -1; 2]; v=[2; 1; -1]; alpha=2; beta=3; |
>> |
A=[u v]; x=[alpha; beta]; A*x |
>> |