Skip to main content

PrefaceOverview

The Subject of This Textbook

Before starting with the content of the text, we first ask the basic question: what is linear algebra?

  • Linear: having to do with lines, planes, etc.
  • Algebra: solving equations involving unknowns.

The name of the textbook highlights an important theme: the synthesis between algebra and geometry. It will be very important to us to understand systems of linear equations both algebraically (writing equations for their solutions) and geometrically (drawing pictures and visualizing).

At the simplest level, solving a system of linear equations is not very hard. You probably learned in high school how to solve a system like

A x + 3 y z = 42 x y + 3 z = 17 y 4 z = 3.

However, in real life one usually has to be more clever.

  • Engineers need to solve many, many equations in many, many variables. Here is a tiny example:
    BEDEC 3 x 1 + 4 x 2 + 10 x 3 + 19 x 4 2 x 5 3 x 6 = 1417 x 1 + 2 x 2 13 x 3 7 x 4 + 21 x 5 + 8 x 6 = 2567 x 1 + 9 x 2 + 3 2 x 3 + x 4 + 14 x 5 + 27 x 6 = 26 1 2 x 1 + 4 x 2 + 10 x 3 + 11 x 4 + 2 x 5 + x 6 = 15.
  • Often it is enough to know some information about the set of solutions, without having to solve the equations in the first place. For instance, does there exist a solution? What does the solution set look like geometrically? Is there still a solution if we change the 26 to a 27?
  • Sometimes the coefficients also contain parameters, like the eigenvalue equation
    A ( 7 λ ) x + y + 3 z = 0 3 x +( 2 λ ) y 3 z = 0 3 x 2 y +( 1 λ ) z = 0.
  • In data modeling, a system of equations generally does not actually have a solution. In that case, what is the best approximate solution?

Accordingly, this text is organized into three main sections.

  1. Solve the matrix equation Ax = b (chapters 2–4).

    • Solve systems of linear equations using matrices, row reduction, and inverses.
    • Analyze systems of linear equations geometrically using the geometry of solution sets and linear transformations.
  2. Solve the matrix equation Ax = λ x (chapters 5–6).

    • Solve eigenvalue problems using the characteristic polynomial.
    • Understand the geometry of matrices using similarity, eigenvalues, diagonalization, and complex numbers.
  3. Approximately solve the matrix equation Ax = b (chapter 7).

    • Find best-fit solutions to systems of linear equations that have no actual solution using least-squares approximations.
    • Study the geometry of closest vectors and orthogonal projections.

This text is roughly half computational and half conceptual in nature. The main goal is to present a library of linear algebra tools, and more importantly, to teach a conceptual framework for understanding which tools should be applied in a given context.

If Matlab can find the answer faster than you can, then your question is just an algorithm: this is not real problem solving.

The subtle part of the subject lies in understanding what computation to ask the computer to do for you—it is far less important to know how to perform computations that a computer can do better than you anyway.

Uses of Linear Algebra in Engineering

The vast majority of undergraduates at Georgia Tech have to take a course in linear algebra. There is a reason for this:

Most engineering problems, no matter how complicated, can be reduced to linear algebra:

Ax = b or Ax = λ x or Ax b .

Here we present some sample problems in science and engineering that require linear algebra to solve.

Example(Civil Engineering)

The following diagram represents traffic flow around the town square. The streets are all one way, and the numbers and arrows indicate the number of cars per hour flowing along each street, as measured by sensors underneath the roads.

TrafBcDow(cars / hr) x y z w 120 250 70 120 530 390 175 115

There are no sensors underneath some of the streets, so we do not know how much traffic is flowing around the square itself. What are the values of x , y , z , w ? Since the number of cars entering each intersection has to equal the number of cars leaving that intersection, we obtain a system of linear equations:

BEDEC w + 120 = x + 250 x + 120 = y + 70 y + 530 = z + 390 z + 115 = w + 175.
Example(Chemical Engineering)

A certain chemical reaction (burning) takes ethane and oxygen, and produces carbon dioxide and water:

x C 2 H 6 + y O 2 z CO 2 + w H 2 O

What ratio of the molecules is needed to sustain the reaction? The following three equations come from the fact that the number of atoms of carbon, hydrogen, and oxygen on the left side has to equal the number of atoms on the right, respectively:

2 x = z 6 x = 2 w 2 y = 2 z + w .
Example(Biology)

In a population of rabbits,

  1. half of the newborn rabbits survive their first year;
  2. of those, half survive their second year;
  3. the maximum life span is three years;
  4. rabbits produce 0, 6, 8 baby rabbits in their first, second, and third years, respectively.

If you know the rabbit population in 2016 (in terms of the number of first, second, and third year rabbits), then what is the population in 2017? The rules for reproduction lead to the following system of equations, where x , y , z represent the number of newborn, first-year, and second-year rabbits, respectively:

BDC 6 y 2016 + 8 z 2016 = x 20171 2 x 2016 = y 20171 2 y 2016 = z 2017 .

A common question is: what is the asymptotic behavior of this system? What will the rabbit population look like in 100 years? This turns out to be an eigenvalue problem.

Figure7Left: the population of rabbits in a given year. Right: the proportions of rabbits in that year. Choose any values you like for the starting population, and click “Advance 1 year” several times. What do you notice about the long-term behavior of the ratios? This phenomenon turns out to be due to eigenvectors.
Example(Astronomy)

An asteroid has been observed at the following locations:

( 0,2 ) , ( 2,1 ) , ( 1, 1 ) , ( 1, 2 ) , ( 3,1 ) , ( 1, 1 ) .

Its orbit around the sun is elliptical; it is described by an equation of the form

x 2 + By 2 + Cxy + Dx + Ey + F = 0.

What is the most likely orbit of the asteroid, given that there was some significant error in measuring its position? Substituting the data points into the above equation yields the system

( 0 ) 2 + B ( 2 ) 2 + C ( 0 )( 2 )+ D ( 0 )+ E ( 2 )+ F = 0 ( 2 ) 2 + B ( 1 ) 2 + C ( 2 )( 1 )+ D ( 2 )+ E ( 1 )+ F = 0 ( 1 ) 2 + B ( 1 ) 2 + C ( 1 )( 1 )+ D ( 1 )+ E ( 1 )+ F = 0 ( 1 ) 2 + B ( 2 ) 2 + C ( 1 )( 2 )+ D ( 1 )+ E ( 2 )+ F = 0 ( 3 ) 2 + B ( 1 ) 2 + C ( 3 )( 1 )+ D ( 3 )+ E ( 1 )+ F = 0 ( 1 ) 2 + B ( 1 ) 2 + C ( 1 )( 1 )+ D ( 1 )+ E ( 1 )+ F = 0.

There is no actual solution to this system due to measurement error, but here is the best-fitting ellipse:

( 0,2 ) ( 2,1 ) ( 1, 1 ) ( 1, 2 ) ( 3,1 ) ( 1,1 ) 266 x 2 + 405 y 2 178 xy + 402 x 123 y 1374 = 0
Example(Computer Science)

Each web page has some measure of importance, which it shares via outgoing links to other pages. This leads to zillions of equations in zillions of variables. Larry Page and Sergei Brin realized that this is a linear algebra problem at its core, and used the insight to found Google. We will discuss this example in detail in Section 6.7.

How to Use This Textbook

There are a number of different categories of ideas that are contained in most sections. They are listed at the top of the section, under Objectives, for easy review. We classify them as follows.

  • Recipes: these are algorithms that are generally straightforward (if sometimes tedious), and are usually done by computer in real life. They are nonetheless important to learn and to practise.
  • Vocabulary: forming a conceptual understanding of the subject of linear algebra means being able to communicate much more precisely than in ordinary speech. The vocabulary have precise definitions, which must be learned and used correctly.
  • Essential Vocabulary: these vocabulary are essential in that they form the essence of the subject of linear algebra. For instance, if you do not know the definition of an eigenvector, then by definition you cannot claim to understand linear algebra.
  • Theorems: these describe in a precise way how the objects of interest relate to each other. Knowing which recipe to use in a given situation generally means recognizing which vocabulary to use to describe the situation, and understanding which theorems apply to that problem.
  • Pictures: visualizing the geometry underlying the algebra means interpreting and drawing pictures of the objects involved. The pictures are meant to be a core part of the material in the text: they are not just a pretty add-on.

This textbook is exclusively targeted at Math 1553 at Georgia Tech. As such, it contains exactly the material that is taught in that class; no more, and no less: students in Math 1553 are responsible for understanding all visible content. In the online version some extra material (most examples and proofs, for instance) is hidden, in that one needs to click on a link to reveal it, like this:

Finally, we remark that there are over 140 interactive demos contained in the text, which were created to illustrate the geometry of the topic. Click the “view in a new window” link, and play around with them! You will need a modern browser. Internet Explorer is not a modern browser; try Safari, Chrome, or Firefox. Here is a demo from Section 7.5:

Figure11Click and drag the points on the grid on the right.
Feedback

Every page of the online version has a link on the bottom for providing feedback. This will take you to the GitHub Issues page for this book. It requires a Georgia Tech login to access.