Documentation:CHBE Exam Wiki/Solving Sets of Linear Equations

From UBC Wiki

Learning Objectives

By the end of this section you should be able to:

  1. Solve a linear system using the substitution method.
  2. Solve a linear system using the row reduction method.

Introduction

Being able to solve sets of linear equations is very important to a chemical engineer. There will be times where you have over 10 unknown variables and need to solve for them. This can be done by hand and can also be solved using a computer, more specifically, a programming language, such as python.

Substitution Method for Solving Linear Systems

One of the simplest methods to solve a system of linear equations is the substitution method. The substitution method functions by substituting one of the variables for another. Here is an example:

We can now substitute the y in the first equation into the second equation and solve.

Finally, we can solve for y using x.

Row Reduction Method for Solving Linear Systems

A more complicated but more practical method, for large systems, to solve large matrices is row reduction. Row reduction is done through matrix manipulation. There are four main rules of matrix manipulation:

1. Multiply a row by a non-zero constant. 2. Add one row to another. 3. Interchange between rows. 4. Add a multiple of one row to another.

We will be using these rules to help us solve a system of linear equations.

In this example, we must first convert the system of linear equations into a matrix. Then, we must row reduce the matrix until we get ones along the diagonal of the matrix and a lower triangle of zeros. Here is the system of equations:

We must convert this system into an augmented matrix.

Now we shall row reduce the augmented matrix using the previous rules stated. First, we will

Second, we will

Next, we will

After this, we will

Finally we will

Since now we know we can solve for y which is and finally solve for x which is