YouTube2Text

3.2 The Idea of Elimination and Back Substitution — Transcript

by KAUST Academy · 1,778 words · 265 segments · language en · Watch on YouTube

Full transcript

  1. 0:00How do we solve a system of linear
  2. 0:02equations?
  3. 0:03So, given a system, this is a system of
  4. 0:06three equations with three unknowns. I'm
  5. 0:08going to represent it as AX = B
  6. 0:12or AX = Y, and I would like to solve the
  7. 0:16system. So, A is the coefficient matrix
  8. 0:19that represent all the coefficients of
  9. 0:22my following system.
  10. 0:24And since I have three equations and
  11. 0:27three unknowns, my matrix A is a square
  12. 0:29matrix. It would be a 3 by 3 matrix. So,
  13. 0:32how do we solve?
  14. 0:34The whole idea is to transform A into an
  15. 0:38upper triangular matrix U.
  16. 0:42So, we need to see two things.
  17. 0:46Why is it important to transform it into
  18. 0:50U? So, transforming A into U, why it's
  19. 0:53important, and how do we do that?
  20. 0:57So, in order to do that, we do it by
  21. 0:59elimination. And we are going to see
  22. 1:01that in a moment.
  23. 1:03Then, once it's transformed to U, after
  24. 1:07elimination,
  25. 1:08you are going to proceed by back
  26. 1:10substitution to find the solution.
  27. 1:14So, we are going to go over this example
  28. 1:16and see how we can find the solution if
  29. 1:21we are transforming A to U, and how to
  30. 1:25transform A to U. So, two steps.
  31. 1:28The first step,
  32. 1:30if I'm given already an upper triangular
  33. 1:32matrix, how can I find the solution by
  34. 1:36proceeding with back substitution? So,
  35. 1:39you start with your third equation, and
  36. 1:42you get X3 is equal to
  37. 1:46-4. That's my last equation.
  38. 1:49The one before it is going to give me
  39. 1:52-X2 -X3 is equal to one. And then you
  40. 1:57are back substituting X3 by its value in
  41. 2:01order to get to X2.
  42. 2:03So, I'm going to substitute - X2 - X3
  43. 2:08where X3 is -4, so - -4 is going to give
  44. 2:12me +4 and this would be equal to 1. So,
  45. 2:16my X2 would be equal to 1 - 4 which is
  46. 2:19-3 and X2 is equal to 3.
  47. 2:24Then, I will back substitute again in
  48. 2:27the first equation X1
  49. 2:30+ 2 X2 + X3 is equal to 2. And now, what
  50. 2:36do I have? I have the values of X2 and
  51. 2:39the values of X3. I'm back substituting
  52. 2:43into the first equation to get the value
  53. 2:45of X1.
  54. 2:46So, my X2 is equal to 3.
  55. 2:49My X3 is equal to -4 and then I will do
  56. 2:53the math
  57. 2:55to be able to get to X1. So, X1 + 6 - 4
  58. 3:00is going to give me X1 + 2 is 2, then my
  59. 3:04X1 is just 0.
  60. 3:06And I have my solution.
  61. 3:11Okay, now that we have seen why getting
  62. 3:15an upper triangular matrix is important,
  63. 3:17let's see how.
  64. 3:19So, one way of doing this is by
  65. 3:22performing
  66. 3:23Gaussian elimination. So, Gaussian
  67. 3:26elimination is a sequence of elementary
  68. 3:29row operations that transform a matrix A
  69. 3:33into an upper triangular matrix U. So,
  70. 3:35I'm doing some row operations.
  71. 3:38And these operations, they have to be
  72. 3:40performed on the other side of the
  73. 3:42matrix, which is the other side of the
  74. 3:44equation, which is B as well.
  75. 3:47So, we put the matrix in what's so
  76. 3:49called an augmented matrix and we are
  77. 3:51going to see that in an example.
  78. 3:54Number one, what are the elementary row
  79. 3:56operations? So, the elementary row
  80. 3:58operations, they consist of three
  81. 4:01operations, either
  82. 4:03multiplying
  83. 4:05one row by a nonzero constant.
  84. 4:09That's the first one, or
  85. 4:11adding a multiple of one row to another,
  86. 4:16or changing the row order. So, I can
  87. 4:19interchange row one with row two, row
  88. 4:22one with row three, it doesn't really
  89. 4:24matter.
  90. 4:25So, what do I need to do? I need to
  91. 4:28record my system in what's so-called an
  92. 4:31augmented matrix. What do I mean by an
  93. 4:34augmented matrix? It's going to be the
  94. 4:36coefficient matrix augmented by the
  95. 4:38second side of the equation, which is B.
  96. 4:41And then I'm going to perform one of
  97. 4:44those elementary row operations in order
  98. 4:47for me to transform my matrix A into the
  99. 4:52upper triangular matrix U.
  100. 4:55Once I do that, I know how to find the
  101. 4:57solution, because this is what we have
  102. 5:00seen in the previous slide. So, you are
  103. 5:02proceeding by back substitution to find
  104. 5:05the solution.
  105. 5:06Uh let's look at an example. How can I
  106. 5:09transform
  107. 5:11an augmented matrix into a n upper
  108. 5:14triangular matrix augmented by another
  109. 5:17side after Gaussian elimination.
  110. 5:20Uh
  111. 5:21my system, my original system, is
  112. 5:24represented in the following augmented
  113. 5:26matrix. So, I have three equations with
  114. 5:29three unknowns, and I have the other
  115. 5:32side of the equation. Let me just first
  116. 5:35of all write down the first equation, so
  117. 5:37you will have a feel of what does an
  118. 5:39augmented matrix mean. So, you have X1 +
  119. 5:432 X2 + X3 is equal to 2. So, the second
  120. 5:49side of the equation will also be
  121. 5:52recorded in the augmented matrix. But,
  122. 5:55why? Because when you're performing a
  123. 5:57row operations, those elementary row
  124. 5:59operations, the second side of the
  125. 6:00equation will be affected.
  126. 6:03So, if I'm looking at the second
  127. 6:04equation, this is 2 x 1 + 3 x 2 + x 3 is
  128. 6:10equal to 5. And then finally, 6 x 1 + 4
  129. 6:14x 2 + x 3 is 8. So, that's my original
  130. 6:17system. I recorded it with what's so
  131. 6:20called an augmented matrix. The
  132. 6:22augmented matrix has two parts. The
  133. 6:26coefficient matrix, so this is the
  134. 6:28matrix of coefficients as we see here,
  135. 6:30and the augmented column vector which
  136. 6:33represent the second side of my
  137. 6:35equation.
  138. 6:36And as I'm mentioning before, we need to
  139. 6:39perform elementary row operations. The
  140. 6:42most important row operation is adding a
  141. 6:45multiple of one row to another. Multiple
  142. 6:49of one row
  143. 6:52to another.
  144. 6:54Okay? You can also interchange rows,
  145. 6:57interchange rows,
  146. 7:00or you can multiply a row by a non-zero
  147. 7:03constant. I'm just writing them on the
  148. 7:05side so we can we don't forget. Multiply
  149. 7:09one row by a non-zero constant. A
  150. 7:13non-zero constant. Okay, so how do we do
  151. 7:17that? So, I'm going to move on to this
  152. 7:18example and I'm going to try to reduce
  153. 7:23this into an upper triangular matrix.
  154. 7:27So, I'm going to fix the first equation.
  155. 7:28You always fix one of the equations. You
  156. 7:32don't have to fix the first one, you can
  157. 7:33fix any of the equations because you can
  158. 7:35always interchange rows.
  159. 7:37So, I'm going to fix the first equation
  160. 7:39and I'm going to use what's so called
  161. 7:42this non-zero entry, it's called the
  162. 7:44pivot. So, I'm going to use the pivot.
  163. 7:48The pivot is just a first non-zero entry
  164. 7:52in a row.
  165. 7:53And I'm going to use this pivot in order
  166. 7:55to make zeros underneath it.
  167. 7:59Once I'm here, I'm going to fix another
  168. 8:01pivot and I'm going to make again zeros
  169. 8:05underneath it. So, let's see how we are
  170. 8:07going to do that.
  171. 8:09So, in order to make the zero underneath
  172. 8:11the pivot,
  173. 8:13we need to perform one of those row
  174. 8:16operations. So, we need to perform one
  175. 8:18of those row operations, adding a
  176. 8:20multiple of one row to another.
  177. 8:23So, I'm going to use this pivot one to
  178. 8:25get rid of the number two. How do I do
  179. 8:28that? I multiply row one, all of row one
  180. 8:32by -2, and then I add it to row two. So,
  181. 8:37I'm going to record the operation here.
  182. 8:39-2, I'm going to multiply row one by -2,
  183. 8:43and I'm going to add it to row two.
  184. 8:46So, let's do that. Let's multiply
  185. 8:49the row one by -2. -2 + 2, this is just
  186. 8:52a zero.
  187. 8:54-2 * 2 is -4 + 3, I'm going to obtain a
  188. 8:59-1.
  189. 9:00-2 * 1 is -2
  190. 9:04+ 1 is also a -1.
  191. 9:07-2
  192. 9:10* 2 is -4 + 5 is 1. And there you go.
  193. 9:15Look at this. You're obtaining the
  194. 9:18second row of the
  195. 9:21uh upper triangular matrix.
  196. 9:23Let's do the same for the third row. I
  197. 9:26want to get rid of the six.
  198. 9:28In order to get rid of the six, I'm
  199. 9:30going to use this one.
  200. 9:32So, how do I do that? I multiply the
  201. 9:35first row by -6,
  202. 9:39and then I'm going to add it to row
  203. 9:40three.
  204. 9:43So, -6 row one added to row three will
  205. 9:45get rid of the six, and I'm going to
  206. 9:48obtain a zero. -6 + 6 is just a a zero.
  207. 9:53-6 * 2 is -12
  208. 9:57+ 4 is going to give me a -8.
  209. 10:02-6 * 1 is -6
  210. 10:06+
  211. 10:091 is going to give me a -5.
  212. 10:12-6 * 2 I'm here. So, this is going to be
  213. 10:16a -12
  214. 10:19+ 8 is going to give me a -4.
  215. 10:23And now I'm almost halfway. What do What
  216. 10:26else do I still need? I still need to
  217. 10:29locate the pivot in the second row. What
  218. 10:31is exactly a pivot? Is the first
  219. 10:33non-zero
  220. 10:35entry in that row.
  221. 10:37So, going in this row, I'm going to
  222. 10:39locate the first non-zero entry, which
  223. 10:42I'm going to use to get rid of the -8 in
  224. 10:46the third row.
  225. 10:48So,
  226. 10:491 2 1 2
  227. 10:530 -1 -1 1
  228. 10:57And what kind of operation I'm going to
  229. 11:00use? I'm going to just take -8 row two.
  230. 11:04I am going to add it to row three. And
  231. 11:07I'm going to obtain a zero
  232. 11:100 -8
  233. 11:138
  234. 11:15* -1 is going to give me 8 - 5 is a 3.
  235. 11:19-8
  236. 11:21-4 is -12.
  237. 11:24And now what I can do also more
  238. 11:27simplification in order for me to get to
  239. 11:30the upper triangular matrix. Look at the
  240. 11:33last row. The last row is just a
  241. 11:36multiple of my answer.
  242. 11:39So, what I can do, I can multiply the
  243. 11:43whole row by a non-zero constant. It
  244. 11:46means I'm multiplying by 1/3 and I would
  245. 11:50get to the above answer. So, I'm going
  246. 11:53to get 1/3 row three, right? So, this is
  247. 11:58going to be 1 2 1 2 0 -1 -1 1 then 0 0 1
  248. 12:07-4. And I'm done.
  249. 12:09So, don't worry too much
  250. 12:12reducing to Gaussian elimination. What
  251. 12:14we are going to do in this class, we are
  252. 12:16going to do some simple examples.
  253. 12:18In this example, I wanted to involve two
  254. 12:21of the operations, which are adding a
  255. 12:24multiple of one row to another, and this
  256. 12:26is what we use very often, and then
  257. 12:29I involved also multiplication of one
  258. 12:31row by a non-zero constant. But, we are
  259. 12:34not going to get complicated
  260. 12:36Gaussian elimination.
  261. 12:38We're not going to get complicated ones,
  262. 12:403 by 3 or 2 by 2 or 3 by 2. So,
  263. 12:44something simple just to have a feel of
  264. 12:46how to solve a system of linear
  265. 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.