3.2 The Idea of Elimination and Back Substitution — Transcript
Full transcript
- 0:00How do we solve a system of linear
- 0:02equations?
- 0:03So, given a system, this is a system of
- 0:06three equations with three unknowns. I'm
- 0:08going to represent it as AX = B
- 0:12or AX = Y, and I would like to solve the
- 0:16system. So, A is the coefficient matrix
- 0:19that represent all the coefficients of
- 0:22my following system.
- 0:24And since I have three equations and
- 0:27three unknowns, my matrix A is a square
- 0:29matrix. It would be a 3 by 3 matrix. So,
- 0:32how do we solve?
- 0:34The whole idea is to transform A into an
- 0:38upper triangular matrix U.
- 0:42So, we need to see two things.
- 0:46Why is it important to transform it into
- 0:50U? So, transforming A into U, why it's
- 0:53important, and how do we do that?
- 0:57So, in order to do that, we do it by
- 0:59elimination. And we are going to see
- 1:01that in a moment.
- 1:03Then, once it's transformed to U, after
- 1:07elimination,
- 1:08you are going to proceed by back
- 1:10substitution to find the solution.
- 1:14So, we are going to go over this example
- 1:16and see how we can find the solution if
- 1:21we are transforming A to U, and how to
- 1:25transform A to U. So, two steps.
- 1:28The first step,
- 1:30if I'm given already an upper triangular
- 1:32matrix, how can I find the solution by
- 1:36proceeding with back substitution? So,
- 1:39you start with your third equation, and
- 1:42you get X3 is equal to
- 1:46-4. That's my last equation.
- 1:49The one before it is going to give me
- 1:52-X2 -X3 is equal to one. And then you
- 1:57are back substituting X3 by its value in
- 2:01order to get to X2.
- 2:03So, I'm going to substitute - X2 - X3
- 2:08where X3 is -4, so - -4 is going to give
- 2:12me +4 and this would be equal to 1. So,
- 2:16my X2 would be equal to 1 - 4 which is
- 2:19-3 and X2 is equal to 3.
- 2:24Then, I will back substitute again in
- 2:27the first equation X1
- 2:30+ 2 X2 + X3 is equal to 2. And now, what
- 2:36do I have? I have the values of X2 and
- 2:39the values of X3. I'm back substituting
- 2:43into the first equation to get the value
- 2:45of X1.
- 2:46So, my X2 is equal to 3.
- 2:49My X3 is equal to -4 and then I will do
- 2:53the math
- 2:55to be able to get to X1. So, X1 + 6 - 4
- 3:00is going to give me X1 + 2 is 2, then my
- 3:04X1 is just 0.
- 3:06And I have my solution.
- 3:11Okay, now that we have seen why getting
- 3:15an upper triangular matrix is important,
- 3:17let's see how.
- 3:19So, one way of doing this is by
- 3:22performing
- 3:23Gaussian elimination. So, Gaussian
- 3:26elimination is a sequence of elementary
- 3:29row operations that transform a matrix A
- 3:33into an upper triangular matrix U. So,
- 3:35I'm doing some row operations.
- 3:38And these operations, they have to be
- 3:40performed on the other side of the
- 3:42matrix, which is the other side of the
- 3:44equation, which is B as well.
- 3:47So, we put the matrix in what's so
- 3:49called an augmented matrix and we are
- 3:51going to see that in an example.
- 3:54Number one, what are the elementary row
- 3:56operations? So, the elementary row
- 3:58operations, they consist of three
- 4:01operations, either
- 4:03multiplying
- 4:05one row by a nonzero constant.
- 4:09That's the first one, or
- 4:11adding a multiple of one row to another,
- 4:16or changing the row order. So, I can
- 4:19interchange row one with row two, row
- 4:22one with row three, it doesn't really
- 4:24matter.
- 4:25So, what do I need to do? I need to
- 4:28record my system in what's so-called an
- 4:31augmented matrix. What do I mean by an
- 4:34augmented matrix? It's going to be the
- 4:36coefficient matrix augmented by the
- 4:38second side of the equation, which is B.
- 4:41And then I'm going to perform one of
- 4:44those elementary row operations in order
- 4:47for me to transform my matrix A into the
- 4:52upper triangular matrix U.
- 4:55Once I do that, I know how to find the
- 4:57solution, because this is what we have
- 5:00seen in the previous slide. So, you are
- 5:02proceeding by back substitution to find
- 5:05the solution.
- 5:06Uh let's look at an example. How can I
- 5:09transform
- 5:11an augmented matrix into a n upper
- 5:14triangular matrix augmented by another
- 5:17side after Gaussian elimination.
- 5:20Uh
- 5:21my system, my original system, is
- 5:24represented in the following augmented
- 5:26matrix. So, I have three equations with
- 5:29three unknowns, and I have the other
- 5:32side of the equation. Let me just first
- 5:35of all write down the first equation, so
- 5:37you will have a feel of what does an
- 5:39augmented matrix mean. So, you have X1 +
- 5:432 X2 + X3 is equal to 2. So, the second
- 5:49side of the equation will also be
- 5:52recorded in the augmented matrix. But,
- 5:55why? Because when you're performing a
- 5:57row operations, those elementary row
- 5:59operations, the second side of the
- 6:00equation will be affected.
- 6:03So, if I'm looking at the second
- 6:04equation, this is 2 x 1 + 3 x 2 + x 3 is
- 6:10equal to 5. And then finally, 6 x 1 + 4
- 6:14x 2 + x 3 is 8. So, that's my original
- 6:17system. I recorded it with what's so
- 6:20called an augmented matrix. The
- 6:22augmented matrix has two parts. The
- 6:26coefficient matrix, so this is the
- 6:28matrix of coefficients as we see here,
- 6:30and the augmented column vector which
- 6:33represent the second side of my
- 6:35equation.
- 6:36And as I'm mentioning before, we need to
- 6:39perform elementary row operations. The
- 6:42most important row operation is adding a
- 6:45multiple of one row to another. Multiple
- 6:49of one row
- 6:52to another.
- 6:54Okay? You can also interchange rows,
- 6:57interchange rows,
- 7:00or you can multiply a row by a non-zero
- 7:03constant. I'm just writing them on the
- 7:05side so we can we don't forget. Multiply
- 7:09one row by a non-zero constant. A
- 7:13non-zero constant. Okay, so how do we do
- 7:17that? So, I'm going to move on to this
- 7:18example and I'm going to try to reduce
- 7:23this into an upper triangular matrix.
- 7:27So, I'm going to fix the first equation.
- 7:28You always fix one of the equations. You
- 7:32don't have to fix the first one, you can
- 7:33fix any of the equations because you can
- 7:35always interchange rows.
- 7:37So, I'm going to fix the first equation
- 7:39and I'm going to use what's so called
- 7:42this non-zero entry, it's called the
- 7:44pivot. So, I'm going to use the pivot.
- 7:48The pivot is just a first non-zero entry
- 7:52in a row.
- 7:53And I'm going to use this pivot in order
- 7:55to make zeros underneath it.
- 7:59Once I'm here, I'm going to fix another
- 8:01pivot and I'm going to make again zeros
- 8:05underneath it. So, let's see how we are
- 8:07going to do that.
- 8:09So, in order to make the zero underneath
- 8:11the pivot,
- 8:13we need to perform one of those row
- 8:16operations. So, we need to perform one
- 8:18of those row operations, adding a
- 8:20multiple of one row to another.
- 8:23So, I'm going to use this pivot one to
- 8:25get rid of the number two. How do I do
- 8:28that? I multiply row one, all of row one
- 8:32by -2, and then I add it to row two. So,
- 8:37I'm going to record the operation here.
- 8:39-2, I'm going to multiply row one by -2,
- 8:43and I'm going to add it to row two.
- 8:46So, let's do that. Let's multiply
- 8:49the row one by -2. -2 + 2, this is just
- 8:52a zero.
- 8:54-2 * 2 is -4 + 3, I'm going to obtain a
- 8:59-1.
- 9:00-2 * 1 is -2
- 9:04+ 1 is also a -1.
- 9:07-2
- 9:10* 2 is -4 + 5 is 1. And there you go.
- 9:15Look at this. You're obtaining the
- 9:18second row of the
- 9:21uh upper triangular matrix.
- 9:23Let's do the same for the third row. I
- 9:26want to get rid of the six.
- 9:28In order to get rid of the six, I'm
- 9:30going to use this one.
- 9:32So, how do I do that? I multiply the
- 9:35first row by -6,
- 9:39and then I'm going to add it to row
- 9:40three.
- 9:43So, -6 row one added to row three will
- 9:45get rid of the six, and I'm going to
- 9:48obtain a zero. -6 + 6 is just a a zero.
- 9:53-6 * 2 is -12
- 9:57+ 4 is going to give me a -8.
- 10:02-6 * 1 is -6
- 10:06+
- 10:091 is going to give me a -5.
- 10:12-6 * 2 I'm here. So, this is going to be
- 10:16a -12
- 10:19+ 8 is going to give me a -4.
- 10:23And now I'm almost halfway. What do What
- 10:26else do I still need? I still need to
- 10:29locate the pivot in the second row. What
- 10:31is exactly a pivot? Is the first
- 10:33non-zero
- 10:35entry in that row.
- 10:37So, going in this row, I'm going to
- 10:39locate the first non-zero entry, which
- 10:42I'm going to use to get rid of the -8 in
- 10:46the third row.
- 10:48So,
- 10:491 2 1 2
- 10:530 -1 -1 1
- 10:57And what kind of operation I'm going to
- 11:00use? I'm going to just take -8 row two.
- 11:04I am going to add it to row three. And
- 11:07I'm going to obtain a zero
- 11:100 -8
- 11:138
- 11:15* -1 is going to give me 8 - 5 is a 3.
- 11:19-8
- 11:21-4 is -12.
- 11:24And now what I can do also more
- 11:27simplification in order for me to get to
- 11:30the upper triangular matrix. Look at the
- 11:33last row. The last row is just a
- 11:36multiple of my answer.
- 11:39So, what I can do, I can multiply the
- 11:43whole row by a non-zero constant. It
- 11:46means I'm multiplying by 1/3 and I would
- 11:50get to the above answer. So, I'm going
- 11:53to get 1/3 row three, right? So, this is
- 11:58going to be 1 2 1 2 0 -1 -1 1 then 0 0 1
- 12:07-4. And I'm done.
- 12:09So, don't worry too much
- 12:12reducing to Gaussian elimination. What
- 12:14we are going to do in this class, we are
- 12:16going to do some simple examples.
- 12:18In this example, I wanted to involve two
- 12:21of the operations, which are adding a
- 12:24multiple of one row to another, and this
- 12:26is what we use very often, and then
- 12:29I involved also multiplication of one
- 12:31row by a non-zero constant. But, we are
- 12:34not going to get complicated
- 12:36Gaussian elimination.
- 12:38We're not going to get complicated ones,
- 12:403 by 3 or 2 by 2 or 3 by 2. So,
- 12:44something simple just to have a feel of
- 12:46how to solve a system of linear
- 12:48equations.
About this transcript
This page contains the full transcript of 3.2 The Idea of Elimination and Back Substitution by KAUST Academy, generated from the public captions YouTube serves with the video. The transcript has 1,778 words across 265 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.