Beruflich Dokumente
Kultur Dokumente
1
2
Chapter 1
c1 x1 + c2 x2 + c3 x3 + ... + cn xn = b
All of the following are examples of linear equations;
3x + 2y = 4
2x1 + 5x2 − 4x3 = 15
2k1 + 3 = 0
4q1 − 6q2 + 7q3 − q4 + q5 = 3
The goal in most of linear algebra is to solve for the unknown variables x1 , x2 , x3 .... A group of equations
is also called a system of equations. This is an example of a system of equations,
(
10x1 + 2x2 = 4
x1 − x2 =5
In order for the system to have a unique solution (one solution) you must have the same number of
unknowns as there are equations.
1.0.2 Matrices
To organize system of equations better, we use matrices. A matrix looks like this,
10 2 4
1 −1 5
The first column corresponds to the coefficients of the first variable, the second column corresponds to
the second variable and the last column is the right side of the equation, after the = sign. The rows represent
each equation. For example, if we want to write the system,
4x1 + 3x2 + 2x3 = 6
x1 − x2 + x3 = −3
x1 + 2x2 + 3x3 =6
3
4 3 2 6
1 −1 1 −3
1 2 3 6
If in one equation we have say, 2 unknowns, but in the other we only have 1 unknown, then we assume
that the coefficient of the missing variable in the second equation to be 0. That means if we have something
like,
(
2x1 + x2 = 6
x1 = −3
Then we write it’s matrix like,
2 1 6
1 0 −3
2 1 2 R10 = R1 + R2
(2 + 4) (1 + (−1)) (2 + 6) 6 0 8
= =
4 −1 6 4 −1 6 4 −1 6
Let’s look at multiplying a row by a scalar (constant). It’s much like addition, you write the row oper-
ation next to the row you’re changing and then do it. To multiply a row by a constant you multiply every
number in that row by your constant. If we want to multiply the first row by 2 then this is how it happens.
2 R10 = 2R1
2 1
4 −1 6
Multiply the row by 2.
4
(2)2 (2)1 (2)2 4 2 4
=
4 −1 6 4 −1 6
Pretty simple eh? Finally we’ll look at row exchanges. Next to either of the two rows you want to
exchange write Rn ⇔ Rm . And then just switch one row with the other. If we wanted to switch row 1 by
row 2 we do as follows.