





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The document introduces linear algebra by starting with the study of linear systems of equations. It explains how to solve these systems using two operations and how to view them geometrically. The second part of the document focuses on linear maps and transformations, providing examples and visualizations. useful as study notes or lecture notes for a linear algebra course.
Typology: Lecture notes
1 / 9
This page cannot be seen from the preview
Don't miss anything!






Linear algebra begins with the study of linear systems of equations. A single linear equation takes a form we are used to โ like
2 x โ y + 3z = 3;
it defines a plane in 3-space. A system of linear equations is a collection of more than one of these, such as
x + 2y + 3z = 4 2 x + y + 3z = 5 x โ y + z = 2.
You may be familiar with how to solve these from your high school algebra classes. We are allowed to: I: Add or subtract any two of these equations from each other; for instance, I may subtract the third equation from the first one, leaving me with
3 y + 2z = 2 2 x + y + 3z = 5 x โ y + z = 2.
II: we can scale any one of the rows by a nonzero constant. So this system of equations is equivalent to, for instance,
3 y + 2z = 2 2 x + y + 3z = 5 2 x โ 2 y + 2z = 4.
Every linear system of equations can be solved (meaning, simplified as much as possible) using only these two operations. For the sake of space, I wonโt pro- ceed to do so with this system; but applying these operations five or six more
times, one finds that this system has the unique solution (x, y, z) = (1, 0 , 1).
One can proceed in an ad hoc way to solve these systems like we did above, but a more systematic approach was needed, especially for systems with many variables (oftentimes in machine learning or economics youโll have thousands of variables). This systematization is what became linear algebra.
Before moving on, let me point out how one can view these geometrically. In the above case, we had three equations. Each equation represented a plane in space. To demand that all three equations hold means that we are looking for the intersection of all three of these planes โ the set of points where all of their defining equations are true. In the above case, the intersection was just a point. We can visualize this situation as being similar to the case of the right-most configuration here:
In the first configuration and both bottom configurations, we would find that we actually have no solutions to the system of equations (there are no points lying in all three planes at once). In the top-right configuration, we would have a line of solutions.
The first step to working systematically with systems of equations is realizing whatโs special about them. In the first section, we saw that given any system of equations, we can add two of the equations together or scale the equations without changing the solution set, just like we can add or scale vectors. This ends up being the property we need to focus on.
Proof. I will explain why this is true in the case of R^3 ; nothing changes in the general case.
Given a linear function L : R^3 โ R, write
L(1, 0 , 0) = a L(0, 1 , 0) = b L(0, 0 , 1) = c.
Now we can write ใx, y, zใ as a combination of these vectors หi, หj, หk; in fact,
ใx, y, zใ = xใ 1 , 0 , 0 ใ + yใ 0 , 1 , ใ + zใ 0 , 0 , 1 ใ.
By definition of linear function, we have
L(x, y, z) = xL(1, 0 , 0) + yL(0, 1 , 0) + zL(0, 0 , 1),
because we can pull out scalars and separate addition for linear functions. But that just means that L(x, y, z) = ax + by + cz,
because those constants are just the names for L(1, 0 , 0), L(0, 1 , 0), and L(0, 0 , 1).
Linear functions, then, are reasonably simple, and you know them well. (Theyโre exactly the kind of things we talked about in the linear systems sec- tion.) More precisely, every linear equation takes the form
ax + by + cz = d
for some constants a, b, c, d. Then there is a corresponding linear function
L(x, y, z) = ax + by + cz;
solutions to the linear equation are those vectors ~v = ใx, y, zใ with L(~v) = d.
Another way to say this is that solutions to linear equations are the level sets of linear functions; another way yet is that the level sets of linear functions are all parallel planes.
To go from linear equations to linear systems, we introduce the following.
Definition 2. A linear map or linear transformation is a map A : Rn^ โ Rm satisfying
A(c~v) = cA(~v) A(~v + w~) = A(~v) + A( w~).
These are the same requirements as for a linear function; the only difference is that we allow the target (codomain) of A to be some higher-dimensional space Rm. In some sense, these are just as simple as linear functions (more on that next week); in another sense, we get more exotic examples.
Example 3. The transformation of the plane A : R^2 โ R^2 given by
A(x, y) = (x + y, y)
is called a shearing map. We can visualize it as follows:
The purple lines are the images of the lines y = 0, y = 1, etc; because A(x, 0) = (x, 0), we see that A fixes the x-axis, and because A(x, c) = (x + c, c), we see that it takes the line y = c and shifts points on it c units to the right.
The green lines are the images of the lines x = 0, x = 1, etc. Because A(0, y) = (y, y), we see that the y-axis is sent to the line x = y, as shown in the image.
The dotted portions are the image of the vectors ใ 1 , 0 ใ and ใ 0 , 1 ใ.
Essentially, this transformation is what you apply when you want to take a letter (like b) and make it italic (like b).
Example 4. The dot product ~v ยท w~ is not linear, but it is linear in each coordinate
Here we give a picture of the above linear transformation A and b = (5, 1). Again, the purple lines are the images of the lines y = โ 1 , 0 , 1 ,, and so on (the images of the horizontal lines), while the green lines are the images of x = โ 1 , 0 , 1 , and so on (the images of the vertical lines). The picture makes clear that A(2, 1) = (5, 1), so (x, y) = (2, 1) is the unique solution to the above system of equations.
In general, a linear system with n variables and m equations gives a linear transformation A : Rn^ โ Rm. There is a ~b โ Rm^ so that the solutions to the linear system are vectors ~v โ Rn^ solving the equation A(~v) = ~b. For instance, the system
x + y + z = 3 x โ z = 0
defines a linear map A : R^3 โ R^2 , explicitly A(x, y, z) = (x + y + z, x โ z); and solutions are vectors ~v with A(~v) = (3, 0). In this specific case, that turns out to define a line in 3-space.
As another example, the system
x โ y = 3 x + y = 1 2 x + y = 2
defines a linear map A : R^2 โ R^3 , given by A(x, y) = (x โ y, x + y, 2 x + y); solutions to the system of linear equations are vectors ~v = ใx, yใ with A(~v) = (3, 1 , 2). In this case there are no solutions.
Solution sets to systems of linear equations will always look like this; they will be empty, points, lines, or planes.
Determine whether or not the following functions are linear. If they are linear, show it by definition: that is, show that L(c~v) = cL(~v) for all c and ~v, and that L(~v + w~) = L(~v) + L( w~) for all ~v, ~w. If they are not linear, show it by example (find vectors ~v, ~w so that L(~v + w~) 6 = L(~v) + L( w~), or c, ~v so that L(c~v) 6 = cL(~v).
(^4) +y 4 x^2 +y^2.
x + y + z = 0 x + 2z = 0 y โ z = 0.
If it is a line, write it in parametric form.
9.Find the solution set to
x + y + z = 1 x + 2z = 3 y โ z = โ 2.
If it is a line, write it in parametric form. How does it relate to the solution set from #8?