3.1 Systems of Linear Equations — Transcript
Full transcript
- 0:02All right, welcome again. Now we are
- 0:04going to move to module number three,
- 0:06which is a system of linear equations,
- 0:08and we are going to see how to solve a
- 0:11system of linear equations.
- 0:13What is exactly a linear equation? A
- 0:16linear equation in n variables x1 up to
- 0:20xn is an equation of the following form.
- 0:23So, the form is a1x1 all the way up to
- 0:26anxn is equal to b. So, the only
- 0:29operations that I'm allowed I'm allowed
- 0:31to do is
- 0:33a multiplication by a non-zero constant
- 0:36or a zero constant, then a an addition
- 0:39of the terms. So, what I'm not allowed
- 0:42to do, I'm not allowed, for example, to
- 0:44raise the variable to a certain power,
- 0:46to take the absolute of absolute value
- 0:49of the variable. Let's look at the
- 0:51examples below. The Those are linear
- 0:53equations because the only operation
- 0:55that I was allowed to do is multiplying
- 0:58x1 and x2 by constants, which are two
- 1:01and three. 2x1 + 3x2 is equal to five,
- 1:04and I'm taking the combination of this
- 1:07scalar multiplication. The second
- 1:10equation would be x1 - 4x2 + x3 is zero.
- 1:14The same thing, the only operation that
- 1:16I was allowed to do is multiplying by a
- 1:18scalar multiplication, and then the
- 1:21addition adding all these terms
- 1:23together.
- 1:24Uh non-linear equations, those are
- 1:26example of non-linear equations. The
- 1:28first one is x1 squared + x2 is equal to
- 1:31five. So, squaring the variable is not
- 1:34allowed. Multiply to multiplying two
- 1:37variables x1 x2 together is not allowed.
- 1:40x1 x2 is equal to three. Taking the sign
- 1:43of x1 + x2 is equal to one is also not
- 1:46allowed.
- 1:48Now, we're moving on to a system of
- 1:50linear equations. What is a system of
- 1:52linear equations?
- 1:53>> [gasps]
- 1:53>> So, a system of n linear equations in n
- 1:57variables is a collection of equations
- 2:00of the following form. So, if I have the
- 2:03first equation is multiplying all these
- 2:08variables by constant and adding all the
- 2:11terms together, this is equal to B1. If
- 2:13you looked at If you look again at the
- 2:16coefficients, it reminds you of
- 2:18something, right? It reminds you of the
- 2:21entries of a matrix. So, A11, A12, all
- 2:26the way up to A1N And what do you
- 2:28notice? You have indices Aij's. So,
- 2:32these I and J's, I is standing for the
- 2:36equation, the ith equation, and J is
- 2:40standing for the variable Xj. So, this
- 2:44is the coefficient of the variable Xj.
- 2:47So, if we're looking at the coefficients
- 2:49of the first equation, A11X1 + A12X2 all
- 2:54the way up to A1NXN,
- 2:56the first index is fixed and is equal to
- 3:001 to tell us that all these
- 3:02coefficients, they live in the first
- 3:04equation.
- 3:05The same thing happens for the second
- 3:07one all the way up to M equations
- 3:11because I have AM1X1 + AM2X2 all the way
- 3:15up to AMNXN is equal to BM, that would
- 3:18be my last equation.
- 3:21Example, a system of two equations and
- 3:23two variables in the following example.
- 3:26So, I have two equations with two
- 3:28variables. If I'm looking at A11, what
- 3:31do you think A11 would be? First
- 3:33equation and the coefficient of the
- 3:35first variable, this is two. What about
- 3:38A21? This gives me the second equation
- 3:42and the coefficient of the first
- 3:43variable, which is one because it's just
- 3:47the coefficient of X1.
- 3:51A system of linear equations can be
- 3:54expressed very compactly as Ax = b. We
- 3:57have seen that in module number two.
- 4:00So, if we have two equations with two
- 4:03unknowns, I can record the coefficients
- 4:06of my system into a matrix. So,
- 4:10recording the coefficients in this case
- 4:13is recording -1, -1, and 2 in the first
- 4:16row, recording 2, 1, and 3 in the second
- 4:19row, and multiplying by the column
- 4:21vector X1, X2, X3 is equal to 1, 1,
- 4:25which is the other side. And this means
- 4:28that we are performing a dot product of
- 4:31the first row with the column X1, X2, X3
- 4:34to obtain the left-hand side of my first
- 4:36equation. The same thing happens to the
- 4:39second row dotted with X1, X2, X3. We
- 4:43are going to obtain the
- 4:46the the second part of the the second
- 4:49equation, the left-hand side part of the
- 4:51second equation, which is equal to 1, 1.
- 4:55And as we mentioned that we can write as
- 4:59well as AX as a linear combination
- 5:03of the column vectors of the matrix. So,
- 5:07X1 always multiplies the first column,
- 5:10X2 the second column, and then finally
- 5:12X3 multiplies the last column.
- 5:16Depending on the coefficients
- 5:20of A and B, the system will have no
- 5:24solution,
- 5:25one solution, or infinitely many
- 5:28solutions.
- 5:29So, there is a terminologies that I'm
- 5:32going to be using often from now until
- 5:35the end of the course is about
- 5:36consistency or inconsistency of systems.
- 5:40So, a system is said to be consistent if
- 5:43it has at least one solution. What do I
- 5:46mean by that? It's either a unique
- 5:48solution or infinitely many solution. We
- 5:51say that the system is consistent.
- 5:54Otherwise, we say the system is
- 5:56inconsistent. It means that the system
- 5:59does not have a solution, and we can do
- 6:02so much in this case. We are going to
- 6:04see in our last module what we can do
- 6:07with an inconsistent system.
- 6:11Let's look at some examples. So, the
- 6:13system X2 + X1 is equal to 1, X1 is -1,
- 6:18X1 - X2 is equal to 0 is written as AX =
- 6:23B with what is A? So, I'm just going to
- 6:26write down X1 + X2 is equal to 1. I'm
- 6:30going to write it in a system in order
- 6:33to make it simpler to move on in the
- 6:36rotation notation of matrices. X1 - X2
- 6:40is 0. So, how can I write it down as AX
- 6:44= B? I record the coefficients of every
- 6:48single
- 6:50equation in the matrix. I have three
- 6:52equations, so I will have three rows.
- 6:55How do How many variables do I have? Two
- 6:58of them. So, my matrix is a 3 by 2. So,
- 7:02in the first row, I will record the
- 7:04coefficients of the left-hand side
- 7:06expression, which is 1 and 1, and then 1
- 7:100 for my second equation, 1 and -1 for
- 7:14the third one, and I'm multiplying it by
- 7:17X1 X2. Remember, this is based on the
- 7:21dot product. And which we this dot
- 7:25product, remember, we're doing RI dot
- 7:28with X. We are denoting it by RI
- 7:32transpose multiply by X. So, I'm taking
- 7:35the transpose of 1 1 and I'm multiplying
- 7:38it by X1 X2 and so on. So, this is equal
- 7:42to the other side of the equation, which
- 7:44is 1, -1, and 0.
- 7:47All right. And the system has no
- 7:50solution. Why it doesn't have a
- 7:52solution? Because if I'm solving, I have
- 7:55X1 is equal to -1. That is my second
- 7:59equation. And we are going to see in a
- 8:00moment how we are going to solve uh this
- 8:03system of linear equations. But this one
- 8:06is an easy system because I already have
- 8:08a value for X1,
- 8:10but I want to make sure that X2 will
- 8:13have the same value in both of these
- 8:15equations. So, X2 in my first equation,
- 8:19X1 + X2 is equal to 1. This gives me if
- 8:23X1 is -1, then X2 will be equal to 2.
- 8:27And then, on in my last equation, X1 -
- 8:31X2 is equal to 0. So, -1 - X2 will be
- 8:36+1, then X2 is -1. And these two
- 8:40solutions do not match.
- 8:43So, I do not have a solution. This is we
- 8:47call this system uh is an inconsistent
- 8:50system, but actually it is an
- 8:52overdetermined system. What do I mean by
- 8:55overdetermined? I have more equations
- 8:58than I need. I have two unknowns, but I
- 9:00have three equations. The number of
- 9:02equation is much larger than the number
- 9:05of unknowns. So, this is a tall matrix.
- 9:07In general, tall matrices are inconsi-
- 9:10tall matrices are
- 9:13um have uh systems that are
- 9:15inconsistent.
- 9:18All right, let's move on to the next
- 9:20example. This example has two equations,
- 9:23X1 + X2 = 1, X2 + X3 is equal to 2.
- 9:28So, let me just write down the equations
- 9:31over here. X1 + X2 is equal to 1, and
- 9:34then
- 9:35X2 + X3 is equal to 2. So, these are two
- 9:40equations, but with three unknowns. And
- 9:42the coefficient of X3 is 0 in the first
- 9:44equation, the coefficient of X1 is 0 in
- 9:47the second equation. So, we're going to
- 9:49represent this system as AX equals to B
- 9:52in the following way. So, the matrix A
- 9:56will have size, since we have two
- 9:58equations, 2 by 3, because 3 is standing
- 10:02for the number of unknowns.
- 10:04And the column vector is X1, X2, X3. The
- 10:08other side is 1 and two. So, let's let's
- 10:11try to figure out what A is. We are
- 10:14looking at the first row. The first row
- 10:18will
- 10:19contain the coefficients of the first
- 10:21equation, which is 1 1 0. Then, the
- 10:26second row will contain the coefficients
- 10:28of the second equations, which are 0 1
- 10:31and 1.
- 10:33So, how do we find the solution? The to
- 10:36find the solution, we are going to fix
- 10:39one of the variable, which is X3. X3
- 10:42belongs to R. If we're looking at the
- 10:45second equation, we will have X2 is
- 10:49equal to 2 - X3. Then, if we're looking
- 10:53at the first equation, X1 will be equal
- 10:56to 1 - X2.
- 10:58And we can go back and replace X2 by its
- 11:02value, which is 1 - 2 - X3, and this is
- 11:07equal to -1 + X3.
- 11:11So, X3 is a parameter. It's a real
- 11:14number, and X1 and X2 are a function of
- 11:17X3. You may be wondering why I fixed X3.
- 11:22Actually, you will see in in later on in
- 11:24this module
- 11:26the reason why I would be fixing X3. But
- 11:29you could in this case have fixed
- 11:31another variable. You could have fixed
- 11:32X2.
- 11:33And in this case, X2 can be a real
- 11:35number. X3 can be obtained from X2 in
- 11:38the second equation, and X1 can be
- 11:41obtained from X2 from first equation.
- 11:44But our matrix, the matrix that we have
- 11:48in here,
- 11:49will guide me in what variable I would
- 11:53be fixing. And this is what we are going
- 11:55to see later on.
- 11:58All right, more examples. Let's look at
- 12:01those examples, and we have some
- 12:03geometric representation for these
- 12:05lines. So, let's look at the first
- 12:08example, which is on the left-hand side.
- 12:10X - Y is 0. X + y is equal to 1. So,
- 12:15these are the equation of two lines and
- 12:17they do intersect at one point. And
- 12:21let's see what is this point. So, if you
- 12:23add both equations, 2x would be equal to
- 12:271, then x is 1/2 and y would be 1/2.
- 12:31So, in my x - y = 0 and x + y = 0 = 1,
- 12:38if you add those equations, you're going
- 12:40to get 2x is equal to 1, x will be equal
- 12:43to 1/2. You are looking at x = y, then y
- 12:48is equal to 1/2. So, 1/2 1/2 is this
- 12:52point of intersection. So, this point of
- 12:55intersection is the 1/2 1/2 and look how
- 12:58nice it is. I can write down
- 13:01this system as 1 - 1 1 1 * x and y is
- 13:07equal to 0 1. x is 1/2, y is 1/2. So, I
- 13:12will take I can write it as we mentioned
- 13:15before. x always multiplies the first
- 13:18column,
- 13:20y always multiplies the second column.
- 13:23So, x is 1/2, y is 1/2 is the solution.
- 13:27So, I can write down at the
- 13:300 1 as a linear combination of the
- 13:33column vectors of the matrix.
- 13:36So, if x is 1/2, this first 1/2
- 13:39multiplies 1 1, the second 1/2
- 13:42multiplies -1 1 and all of the answer
- 13:46would be equal to 0 1. So, this is just
- 13:48an application on how to write
- 13:51vector as a linear combination of the
- 13:53column vectors of A.
- 13:56If we're looking at this so the second
- 13:59system, the second system, the equations
- 14:01are just identical. If you take the
- 14:04second equation, you divide by two, you
- 14:06obtain the first equation. So, we have
- 14:09infinitely many solutions. You fix one
- 14:11of the variables and the infinitely many
- 14:14solutions, both lines are just the same.
- 14:18They are on top of each other.
- 14:21If you're looking at the third system, x
- 14:24minus y is equal to negative one, x
- 14:26minus y is equal to zero. They both the
- 14:29left hand sides are the same, but the
- 14:30right hand side
- 14:32are different. So these are two parallel
- 14:34lines. They can never intersect, so
- 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.