# Linear Algebra

## Vectors

A vector defines both a direction and magnitude. The coordinates of a vector are a pair of numbers that basically give instructions for how to get from the tail of that vector at the origin, to its tip.

<figure><img src="https://1983523492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0nwEx8a60yETwfNYnenT%2Fuploads%2FRKKRcaBtHdpPAGmmVkxp%2Fimage.png?alt=media&#x26;token=74769dfa-45d5-4a86-b628-a6f4cb8d0153" alt=""><figcaption></figcaption></figure>

* Two vectors are the same if they have the same magnitude and direction.
* The [zero vector](https://mathinsight.org/zero_vector), denoted by a boldface $$0$$, is the vector of zero length. Since it has no length, it is not pointing in any particular direction. There is only one vector of zero length, so we can speak of the zero vector.

To distinguish vectors from points, the convention is to write this pair of numbers vertically with square brackets around them.



### Vector Addition

Given two vectors $$a$$ and $$b$$, we form their sum $$a+b$$, as follows. We translate the vector $$b$$ until its tail coincides with the head of $$a$$. (Recall such translation does not change a vector.) Then, the directed line segment from the tail of $$a$$ to the head of $$b$$ is the vector $$a+b$$.

<figure><img src="https://1983523492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0nwEx8a60yETwfNYnenT%2Fuploads%2FuVp7RT0kRu3ZYlrabTQe%2Fimage.png?alt=media&#x26;token=3232a5f4-5bc9-45e4-814e-23462951a494" alt=""><figcaption></figcaption></figure>

* Commutative: order does not matter -> `a+b = b+a`
* Associative: `(a+b)+c = a+(b+c)`

### Scalar multiplication

<figure><img src="https://1983523492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0nwEx8a60yETwfNYnenT%2Fuploads%2FOG5LX4xoNl5gwtmY0utv%2Fimage.png?alt=media&#x26;token=47acbaca-db1a-4628-be50-c13ccd46a965" alt=""><figcaption></figcaption></figure>

Scalar multiplications satisfies many of the same properties as the usual multiplication.

1. $$s(a+b)=sa+sb$$ (distributive law, form 1)
2. $$(s+t)a=sa+ta$$ (distributive law, form 2)
3. $$1a=a$$1
4. $$(−1)a=−a$$(−1)
5. $$0a=0$$

In the last formula, the zero on the left is the number 0, while the zero on the right is the vector $$0$$0, which is the unique vector whose length is zero.

If $$a=λb$$�=�� for some scalar $$λ$$�, then we say that the vectors $$a$$� and $$b$$� are parallel. If $$λ$$� is negative, some people say that $$a$$� and $$b$$� are anti-parallel, but we will not use that language.\
