YouTube2Text

3.1 Systems of Linear Equations — Transcript

by KAUST Academy · 2,155 words · 299 segments · language en · Watch on YouTube

Full transcript

  1. 0:02All right, welcome again. Now we are
  2. 0:04going to move to module number three,
  3. 0:06which is a system of linear equations,
  4. 0:08and we are going to see how to solve a
  5. 0:11system of linear equations.
  6. 0:13What is exactly a linear equation? A
  7. 0:16linear equation in n variables x1 up to
  8. 0:20xn is an equation of the following form.
  9. 0:23So, the form is a1x1 all the way up to
  10. 0:26anxn is equal to b. So, the only
  11. 0:29operations that I'm allowed I'm allowed
  12. 0:31to do is
  13. 0:33a multiplication by a non-zero constant
  14. 0:36or a zero constant, then a an addition
  15. 0:39of the terms. So, what I'm not allowed
  16. 0:42to do, I'm not allowed, for example, to
  17. 0:44raise the variable to a certain power,
  18. 0:46to take the absolute of absolute value
  19. 0:49of the variable. Let's look at the
  20. 0:51examples below. The Those are linear
  21. 0:53equations because the only operation
  22. 0:55that I was allowed to do is multiplying
  23. 0:58x1 and x2 by constants, which are two
  24. 1:01and three. 2x1 + 3x2 is equal to five,
  25. 1:04and I'm taking the combination of this
  26. 1:07scalar multiplication. The second
  27. 1:10equation would be x1 - 4x2 + x3 is zero.
  28. 1:14The same thing, the only operation that
  29. 1:16I was allowed to do is multiplying by a
  30. 1:18scalar multiplication, and then the
  31. 1:21addition adding all these terms
  32. 1:23together.
  33. 1:24Uh non-linear equations, those are
  34. 1:26example of non-linear equations. The
  35. 1:28first one is x1 squared + x2 is equal to
  36. 1:31five. So, squaring the variable is not
  37. 1:34allowed. Multiply to multiplying two
  38. 1:37variables x1 x2 together is not allowed.
  39. 1:40x1 x2 is equal to three. Taking the sign
  40. 1:43of x1 + x2 is equal to one is also not
  41. 1:46allowed.
  42. 1:48Now, we're moving on to a system of
  43. 1:50linear equations. What is a system of
  44. 1:52linear equations?
  45. 1:53>> [gasps]
  46. 1:53>> So, a system of n linear equations in n
  47. 1:57variables is a collection of equations
  48. 2:00of the following form. So, if I have the
  49. 2:03first equation is multiplying all these
  50. 2:08variables by constant and adding all the
  51. 2:11terms together, this is equal to B1. If
  52. 2:13you looked at If you look again at the
  53. 2:16coefficients, it reminds you of
  54. 2:18something, right? It reminds you of the
  55. 2:21entries of a matrix. So, A11, A12, all
  56. 2:26the way up to A1N And what do you
  57. 2:28notice? You have indices Aij's. So,
  58. 2:32these I and J's, I is standing for the
  59. 2:36equation, the ith equation, and J is
  60. 2:40standing for the variable Xj. So, this
  61. 2:44is the coefficient of the variable Xj.
  62. 2:47So, if we're looking at the coefficients
  63. 2:49of the first equation, A11X1 + A12X2 all
  64. 2:54the way up to A1NXN,
  65. 2:56the first index is fixed and is equal to
  66. 3:001 to tell us that all these
  67. 3:02coefficients, they live in the first
  68. 3:04equation.
  69. 3:05The same thing happens for the second
  70. 3:07one all the way up to M equations
  71. 3:11because I have AM1X1 + AM2X2 all the way
  72. 3:15up to AMNXN is equal to BM, that would
  73. 3:18be my last equation.
  74. 3:21Example, a system of two equations and
  75. 3:23two variables in the following example.
  76. 3:26So, I have two equations with two
  77. 3:28variables. If I'm looking at A11, what
  78. 3:31do you think A11 would be? First
  79. 3:33equation and the coefficient of the
  80. 3:35first variable, this is two. What about
  81. 3:38A21? This gives me the second equation
  82. 3:42and the coefficient of the first
  83. 3:43variable, which is one because it's just
  84. 3:47the coefficient of X1.
  85. 3:51A system of linear equations can be
  86. 3:54expressed very compactly as Ax = b. We
  87. 3:57have seen that in module number two.
  88. 4:00So, if we have two equations with two
  89. 4:03unknowns, I can record the coefficients
  90. 4:06of my system into a matrix. So,
  91. 4:10recording the coefficients in this case
  92. 4:13is recording -1, -1, and 2 in the first
  93. 4:16row, recording 2, 1, and 3 in the second
  94. 4:19row, and multiplying by the column
  95. 4:21vector X1, X2, X3 is equal to 1, 1,
  96. 4:25which is the other side. And this means
  97. 4:28that we are performing a dot product of
  98. 4:31the first row with the column X1, X2, X3
  99. 4:34to obtain the left-hand side of my first
  100. 4:36equation. The same thing happens to the
  101. 4:39second row dotted with X1, X2, X3. We
  102. 4:43are going to obtain the
  103. 4:46the the second part of the the second
  104. 4:49equation, the left-hand side part of the
  105. 4:51second equation, which is equal to 1, 1.
  106. 4:55And as we mentioned that we can write as
  107. 4:59well as AX as a linear combination
  108. 5:03of the column vectors of the matrix. So,
  109. 5:07X1 always multiplies the first column,
  110. 5:10X2 the second column, and then finally
  111. 5:12X3 multiplies the last column.
  112. 5:16Depending on the coefficients
  113. 5:20of A and B, the system will have no
  114. 5:24solution,
  115. 5:25one solution, or infinitely many
  116. 5:28solutions.
  117. 5:29So, there is a terminologies that I'm
  118. 5:32going to be using often from now until
  119. 5:35the end of the course is about
  120. 5:36consistency or inconsistency of systems.
  121. 5:40So, a system is said to be consistent if
  122. 5:43it has at least one solution. What do I
  123. 5:46mean by that? It's either a unique
  124. 5:48solution or infinitely many solution. We
  125. 5:51say that the system is consistent.
  126. 5:54Otherwise, we say the system is
  127. 5:56inconsistent. It means that the system
  128. 5:59does not have a solution, and we can do
  129. 6:02so much in this case. We are going to
  130. 6:04see in our last module what we can do
  131. 6:07with an inconsistent system.
  132. 6:11Let's look at some examples. So, the
  133. 6:13system X2 + X1 is equal to 1, X1 is -1,
  134. 6:18X1 - X2 is equal to 0 is written as AX =
  135. 6:23B with what is A? So, I'm just going to
  136. 6:26write down X1 + X2 is equal to 1. I'm
  137. 6:30going to write it in a system in order
  138. 6:33to make it simpler to move on in the
  139. 6:36rotation notation of matrices. X1 - X2
  140. 6:40is 0. So, how can I write it down as AX
  141. 6:44= B? I record the coefficients of every
  142. 6:48single
  143. 6:50equation in the matrix. I have three
  144. 6:52equations, so I will have three rows.
  145. 6:55How do How many variables do I have? Two
  146. 6:58of them. So, my matrix is a 3 by 2. So,
  147. 7:02in the first row, I will record the
  148. 7:04coefficients of the left-hand side
  149. 7:06expression, which is 1 and 1, and then 1
  150. 7:100 for my second equation, 1 and -1 for
  151. 7:14the third one, and I'm multiplying it by
  152. 7:17X1 X2. Remember, this is based on the
  153. 7:21dot product. And which we this dot
  154. 7:25product, remember, we're doing RI dot
  155. 7:28with X. We are denoting it by RI
  156. 7:32transpose multiply by X. So, I'm taking
  157. 7:35the transpose of 1 1 and I'm multiplying
  158. 7:38it by X1 X2 and so on. So, this is equal
  159. 7:42to the other side of the equation, which
  160. 7:44is 1, -1, and 0.
  161. 7:47All right. And the system has no
  162. 7:50solution. Why it doesn't have a
  163. 7:52solution? Because if I'm solving, I have
  164. 7:55X1 is equal to -1. That is my second
  165. 7:59equation. And we are going to see in a
  166. 8:00moment how we are going to solve uh this
  167. 8:03system of linear equations. But this one
  168. 8:06is an easy system because I already have
  169. 8:08a value for X1,
  170. 8:10but I want to make sure that X2 will
  171. 8:13have the same value in both of these
  172. 8:15equations. So, X2 in my first equation,
  173. 8:19X1 + X2 is equal to 1. This gives me if
  174. 8:23X1 is -1, then X2 will be equal to 2.
  175. 8:27And then, on in my last equation, X1 -
  176. 8:31X2 is equal to 0. So, -1 - X2 will be
  177. 8:36+1, then X2 is -1. And these two
  178. 8:40solutions do not match.
  179. 8:43So, I do not have a solution. This is we
  180. 8:47call this system uh is an inconsistent
  181. 8:50system, but actually it is an
  182. 8:52overdetermined system. What do I mean by
  183. 8:55overdetermined? I have more equations
  184. 8:58than I need. I have two unknowns, but I
  185. 9:00have three equations. The number of
  186. 9:02equation is much larger than the number
  187. 9:05of unknowns. So, this is a tall matrix.
  188. 9:07In general, tall matrices are inconsi-
  189. 9:10tall matrices are
  190. 9:13um have uh systems that are
  191. 9:15inconsistent.
  192. 9:18All right, let's move on to the next
  193. 9:20example. This example has two equations,
  194. 9:23X1 + X2 = 1, X2 + X3 is equal to 2.
  195. 9:28So, let me just write down the equations
  196. 9:31over here. X1 + X2 is equal to 1, and
  197. 9:34then
  198. 9:35X2 + X3 is equal to 2. So, these are two
  199. 9:40equations, but with three unknowns. And
  200. 9:42the coefficient of X3 is 0 in the first
  201. 9:44equation, the coefficient of X1 is 0 in
  202. 9:47the second equation. So, we're going to
  203. 9:49represent this system as AX equals to B
  204. 9:52in the following way. So, the matrix A
  205. 9:56will have size, since we have two
  206. 9:58equations, 2 by 3, because 3 is standing
  207. 10:02for the number of unknowns.
  208. 10:04And the column vector is X1, X2, X3. The
  209. 10:08other side is 1 and two. So, let's let's
  210. 10:11try to figure out what A is. We are
  211. 10:14looking at the first row. The first row
  212. 10:18will
  213. 10:19contain the coefficients of the first
  214. 10:21equation, which is 1 1 0. Then, the
  215. 10:26second row will contain the coefficients
  216. 10:28of the second equations, which are 0 1
  217. 10:31and 1.
  218. 10:33So, how do we find the solution? The to
  219. 10:36find the solution, we are going to fix
  220. 10:39one of the variable, which is X3. X3
  221. 10:42belongs to R. If we're looking at the
  222. 10:45second equation, we will have X2 is
  223. 10:49equal to 2 - X3. Then, if we're looking
  224. 10:53at the first equation, X1 will be equal
  225. 10:56to 1 - X2.
  226. 10:58And we can go back and replace X2 by its
  227. 11:02value, which is 1 - 2 - X3, and this is
  228. 11:07equal to -1 + X3.
  229. 11:11So, X3 is a parameter. It's a real
  230. 11:14number, and X1 and X2 are a function of
  231. 11:17X3. You may be wondering why I fixed X3.
  232. 11:22Actually, you will see in in later on in
  233. 11:24this module
  234. 11:26the reason why I would be fixing X3. But
  235. 11:29you could in this case have fixed
  236. 11:31another variable. You could have fixed
  237. 11:32X2.
  238. 11:33And in this case, X2 can be a real
  239. 11:35number. X3 can be obtained from X2 in
  240. 11:38the second equation, and X1 can be
  241. 11:41obtained from X2 from first equation.
  242. 11:44But our matrix, the matrix that we have
  243. 11:48in here,
  244. 11:49will guide me in what variable I would
  245. 11:53be fixing. And this is what we are going
  246. 11:55to see later on.
  247. 11:58All right, more examples. Let's look at
  248. 12:01those examples, and we have some
  249. 12:03geometric representation for these
  250. 12:05lines. So, let's look at the first
  251. 12:08example, which is on the left-hand side.
  252. 12:10X - Y is 0. X + y is equal to 1. So,
  253. 12:15these are the equation of two lines and
  254. 12:17they do intersect at one point. And
  255. 12:21let's see what is this point. So, if you
  256. 12:23add both equations, 2x would be equal to
  257. 12:271, then x is 1/2 and y would be 1/2.
  258. 12:31So, in my x - y = 0 and x + y = 0 = 1,
  259. 12:38if you add those equations, you're going
  260. 12:40to get 2x is equal to 1, x will be equal
  261. 12:43to 1/2. You are looking at x = y, then y
  262. 12:48is equal to 1/2. So, 1/2 1/2 is this
  263. 12:52point of intersection. So, this point of
  264. 12:55intersection is the 1/2 1/2 and look how
  265. 12:58nice it is. I can write down
  266. 13:01this system as 1 - 1 1 1 * x and y is
  267. 13:07equal to 0 1. x is 1/2, y is 1/2. So, I
  268. 13:12will take I can write it as we mentioned
  269. 13:15before. x always multiplies the first
  270. 13:18column,
  271. 13:20y always multiplies the second column.
  272. 13:23So, x is 1/2, y is 1/2 is the solution.
  273. 13:27So, I can write down at the
  274. 13:300 1 as a linear combination of the
  275. 13:33column vectors of the matrix.
  276. 13:36So, if x is 1/2, this first 1/2
  277. 13:39multiplies 1 1, the second 1/2
  278. 13:42multiplies -1 1 and all of the answer
  279. 13:46would be equal to 0 1. So, this is just
  280. 13:48an application on how to write
  281. 13:51vector as a linear combination of the
  282. 13:53column vectors of A.
  283. 13:56If we're looking at this so the second
  284. 13:59system, the second system, the equations
  285. 14:01are just identical. If you take the
  286. 14:04second equation, you divide by two, you
  287. 14:06obtain the first equation. So, we have
  288. 14:09infinitely many solutions. You fix one
  289. 14:11of the variables and the infinitely many
  290. 14:14solutions, both lines are just the same.
  291. 14:18They are on top of each other.
  292. 14:21If you're looking at the third system, x
  293. 14:24minus y is equal to negative one, x
  294. 14:26minus y is equal to zero. They both the
  295. 14:29left hand sides are the same, but the
  296. 14:30right hand side
  297. 14:32are different. So these are two parallel
  298. 14:34lines. They can never intersect, so
  299. 14:36there's no solution.

About this transcript

This page contains the full transcript of 3.1 Systems of Linear Equations by KAUST Academy, generated from the public captions YouTube serves with the video. The transcript has 2,155 words across 299 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.