Draft:Linear algebra/Introduction

From testwiki
Revision as of 15:18, 13 January 2024 by imported>Guy vandegrift
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Linear algebra

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

Error creating thumbnail:
An example of a vector in 'arrow form'

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. (12), 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 (00)) 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 (10) and (01), respectively. Again, everything else, like (32) can be written as 3(10)+2(01).

3d case

In the 3d case, there are three basis vectors, i hat, j hat and k hat, written as (100), (010) and (001), respectively. As with the other two cases, everything else, like (345) can be written as 3(100)+4(010)+5(001).

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 (1234). (1234) means that i-hat (that's (10), in case you weren't paying attention) turns into (13) and j-hat (that's (01) btw) turns into (24). 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 (56) into our vector changing machine (a matrix). We write it like this: (1234)(56). Now what would the machine actually do? Well, let's think about it. Well, recall that my matrix means that i-hat turns into (13) and j-hat turns into (24). Now (56) means 5*i-hat+6*j-hat. We can just replace i-hat and j-hat into what they turn into! So (1234)(56)=5(13)+6(24). Now notice that 5(13)=(515) and 6(24)=(1224). Now when we add them up, we get: (1739). And there's our answer!

Matrix Multiplication

But I want to make a matrix out of spare parts! Well, here's how!