Draft:Linear algebra/Introduction
Linear algebra is a branch of mathematics that studies objects called vectors, vector spaces, linear equations, linear maps, and matrices. It also studies how these objects all interact with each other.
Vectors
A vector is a way to represent co-ordinates. The top number is its x coordinate, the number below that is the y coordinate, then the z co-ordinate, and so on, until the vector stops. , for example, is a point in which, if you start at the origin, then walk one step to the right (to the right because it's positive), then two steps forward (forward because it's positive), you will get there. There is also another representation, which is an arrow from the origin (the point in which the red lines intersect, or ) to the point that is mentioned. For the rest of this, the arrow will be used.
Basis vectors
The basis vectors are a set of vectors that every other vector is written as a sum of. There are a set of basis vectors, depending on the dimension you're working with.
1d case
In the 1d case, the basis vector is the one with the x-coordinate set as 1 (i.e. (1); termed 'i hat'). Everything else, like (-5) can be written as -5(1)
2d case
In the 2d case, there are two basis vectors, i hat and j hat, written as and , respectively. Again, everything else, like can be written as .
3d case
In the 3d case, there are three basis vectors, i hat, j hat and k hat, written as , and , respectively. As with the other two cases, everything else, like can be written as .
Higher dimensional cases
There is an obvious pattern here. Any n-dimensional vector requires n basis vectors. Similarly, the basis vectors have a one in one of the entries and 0's on all of the others.
Matrices
A matrix is a thing that turns vectors into other vectors. Lets use an example, like . means that i-hat (that's , in case you weren't paying attention) turns into and j-hat (that's btw) turns into . Now, let's say that we want to create a vector changing machine using that matrix. Well, that leads us to the next subsection!
Matrix-Vector multiplication
Say we want to put a vector, say into our vector changing machine (a matrix). We write it like this: . Now what would the machine actually do? Well, let's think about it. Well, recall that my matrix means that i-hat turns into and j-hat turns into . Now means 5*i-hat+6*j-hat. We can just replace i-hat and j-hat into what they turn into! So . Now notice that and . Now when we add them up, we get: . And there's our answer!
Matrix Multiplication
But I want to make a matrix out of spare parts! Well, here's how!