Differential Equations for EngineersXYZ Homework Edition

⇩ Download ▾

A.1 Vectors, Mappings, and Matrices

In real life, there is most often more than one variable. We wish to organize dealing with multiple variables in a consistent manner, and in particular organize dealing with linear equations and linear mappings, as those are both rather useful and rather easy to handle. Mathematicians joke that And well, they (the engineers) are not wrong. Quite often, solving an engineering problem is figuring out the right finite-dimensional linear problem to solve, which is then solved with some matrix manipulation. Most importantly, linear problems are the ones that we know how to solve, and we have many tools to solve them. For engineers, mathematicians, physicists, and anybody else in a technical field, it is absolutely vital to learn linear algebra.

As motivation, suppose we wish to solve

xy=2,2x+y=4,\begin{align}\begin{aligned} & x-y = 2, \\ & 2x+y = 4, \end{aligned}\end{align} \nonumber

for xx and yy. That is, we desire numbers xx and yy such that the two equations are satisfied. Let us perhaps start by adding the equations together to find

x+2xy+y=2+4,or3x=6.x+2x-y+y = 2+4, \qquad \text{or} \qquad 3x = 6. \nonumber

Interactive figureThe lines x − y = 2 and kx + y = 4Drag the Coefficient of x in the second equation slider from -4 to 4.
Two straight lines cross at a single point: a solid one rising to the right and a dashed one falling to the right, meeting on the horizontal axis. Dragging the coefficient pivots the dashed line about its fixed intercept on the vertical axis, sliding the crossing point along the solid line. At one setting the dashed line's slope matches the solid one exactly, the two run parallel across the whole frame and never meet at all — the system with no solution. Adjustable parameter: Coefficient of x in the second equation (k) = 2. Viewing window: x from -5.91 to 7.91, y from -4.27 to 4.27.
XYZ Graph · viewer build 5edf91b
The section's own system drawn as two lines: y = x − 2 (that is x − y = 2, solid) and y = 4 − kx (dashed). At the printed k = 2 they cross at (2, 0) — the same x = 2, y = 0 the text reaches by adding the equations to get 3x = 6. Drag k and the crossing slides along; at k = −1 the slopes match, the lines run parallel and never meet, and the system has no solution. This section does not take that case up — A.3 and A.6 do, with elimination and the determinant — but it is what makes a systematic method worth having.

In other words, x=2x=2. Once we have that, we plug x=2x=2 into the first equation to find 2y=22-y=2, so y=0y=0. OK, that was easy. What is all this fuss about linear equations. Well, try doing this if you have 50005000 unknowns1. Also, we may have such equations not just of numbers, but of functions and derivatives of functions in differential equations. Clearly we need a systematic way of doing things. A nice consequence of making things systematic and simpler to write down is that it becomes easier to have computers do the work for us. Computers are rather stupid, they do not think, but are very good at doing lots of repetitive tasks precisely, as long as we figure out a systematic way for them to perform the tasks.

Vectors and operations on Vectors

Consider nn real numbers as an nn-tuple:

(x1,x2,,xn).(x_1,x_2,\ldots,x_n). \nonumber

The set of such nn-tuples is the so-called nn-dimensional space, often denoted by Rn{\mathbb R}^n. Sometimes we call this the nn-dimensional euclidean space2. In two dimensions, R2{\mathbb R}^2 is called the cartesian plane3. Each such nn-tuple represents a point in the nn-dimensional space. For example, the point (1,2)(1,2) in the plane R2{\mathbb R}^2 is one unit to the right and two units up from the origin.

When we do algebra with these nn-tuples of numbers we call them vectors4. Mathematicians are keen on separating what is a vector and what is a point of the space or in the plane, and it turns out to be an important distinction, however, for the purposes of linear algebra we can think of everything being represented by a vector. A way to think of a vector, which is especially useful in calculus and differential equations, is an arrow. It is an object that has a direction and a magnitude. For instance, the vector (1,2)(1,2) is the arrow from the origin to the point (1,2)(1,2) in the plane. The magnitude is the length of the arrow. See Figure 1\PageIndex{1}. If we think of vectors as arrows, the arrow doesn’t always have to start at the origin. If we do move it around, however, it should always keep the same direction and the same magnitude.

The vector (1,2) drawn as an arrow from the origin to the point (1,2).
Figure 1\PageIndex{1}: The vector (1,2)(1,2) drawn as an arrow from the origin to the point (1,2)(1,2).

As vectors are arrows, when we want to give a name to a vector, we draw a little arrow above it:

x\vec{x} \nonumber

Another popular notation is 𝐱\mathbf{x}, although we will use the little arrows. It may be easy to write a bold letter in a book, but it is not so easy to write it by hand on paper or on the board. Mathematicians often don’t even write the arrows. A mathematician would write xx and just remember that xx is a vector and not a number. Just like you remember that Jose is your uncle, and you don’t have to keep repeating and you can just say In this book, however, we will call Jose and write vectors with the little arrows.

The magnitude can be computed using the Pythagorean theorem. The vector (1,2)(1,2) drawn in the figure has magnitude 12+22=5\sqrt{1^2+2^2} = \sqrt{5}. The magnitude is denoted by x\lVert \vec{x} \rVert, and, in any number of dimensions, it can be computed in the same way:

x=(x1,x2,,xn)=x12+x22++xn2.\lVert \vec{x} \rVert = \lVert (x_1,x_2,\ldots,x_n) \rVert = \sqrt{x_1^2+x_2^2+\cdots+x_n^2}. \nonumber

For reasons that will become clear in the next section, we often write vectors as so-called column vectors:

x=[x1x2xn].\vec{x} = \begin{bmatrix} x_{1} \\ x_2 \\ \vdots \\ x_n \end{bmatrix}. \nonumber

Don’t worry. It is just a different way of writing the same thing, and it will be useful later. For example, the vector (1,2)(1,2) can be written as

[12].\begin{bmatrix} 1 \\ 2 \end{bmatrix}. \nonumber

The fact that we write arrows above vectors allows us to write several vectors x1\vec{x}_1, x2\vec{x}_2, etc., without confusing these with the components of some other vector x\vec{x}.

So where is the algebra from linear algebra? Well, arrows can be added, subtracted, and multiplied by numbers. First we consider addition. If we have two arrows, we simply move along one, and then along the other. See Figure 2\PageIndex{2}.

Adding the vectors (1,2), drawn dotted, and (2,-3), drawn dashed. The result, (3,-1), is drawn as a solid arrow.
Figure 2\PageIndex{2}: Adding the vectors (1,2)(1,2), drawn dotted, and (2,3)(2,-3), drawn dashed. The result, (3,1)(3,-1), is drawn as a solid arrow.

It is rather easy to see what it does to the numbers that represent the vectors. Suppose we want to add (1,2)(1,2) to (2,3)(2,-3) as in the figure. We travel along (1,2)(1,2) and then we travel along (2,3)(2,-3). What we did was travel one unit right, two units up, and then we travelled two units right, and three units down (the negative three). That means that we ended up at (1+2,2+(3))=(3,1)\bigl(1+2,2+(-3)\bigr) = (3,-1). And that’s how addition always works:

[x1x2xn]+[y1y2yn]=[x1+y1x2+y2xn+yn].\begin{bmatrix} x_{1} \\ x_2 \\ \vdots \\ x_n \end{bmatrix} + \begin{bmatrix} y_{1} \\ y_2 \\ \vdots \\ y_n \end{bmatrix} = \begin{bmatrix} x_1 + y_{1} \\ x_2+ y_2 \\ \vdots \\ x_n + y_n \end{bmatrix}. \nonumber

Subtracting is similar. What xy\vec{x}- \vec{y} means visually is that we first travel along x\vec{x}, and then we travel backwards along y\vec{y}. See Figure 3\PageIndex{3}. It is like adding x+(y)\vec{x}+ (- \vec{y}) where y-\vec{y} is the arrow we obtain by erasing the arrow head from one side and drawing it on the other side, that is, we reverse the direction. In terms of the numbers, we simply go backwards both horizontally and vertically, so we negate both numbers. For instance, if y\vec{y} is (2,1)(-2,1), then y-\vec{y} is (2,1)(2,-1).

Subtraction, the vector (1,2), drawn dotted, minus (-2,1), drawn dashed. The result, (3,1), is drawn as a solid arrow.
Figure 3\PageIndex{3}: Subtraction, the vector (1,2)(1,2), drawn dotted, minus (2,1)(-2,1), drawn dashed. The result, (3,1)(3,1), is drawn as a solid arrow.

Another intuitive thing to do to a vector is to scale it. We represent this by multiplication of a number with a vector. Because of this, when we wish to distinguish between vectors and numbers, we call the numbers scalars. For example, suppose we want to travel three times further. If the vector is (1,2)(1,2), traveling 3 times further means going 3 units to the right and 6 units up, so we get the vector (3,6)(3,6). We just multiply each number in the vector by 3. If α\alpha is a number, then

α[x1x2xn]=[αx1αx2αxn].\alpha \begin{bmatrix} x_{1} \\ x_2 \\ \vdots \\ x_n \end{bmatrix} = \begin{bmatrix} \alpha x_{1} \\ \alpha x_2 \\ \vdots \\ \alpha x_n \end{bmatrix}. \nonumber

Scaling (by a positive number) multiplies the magnitude and leaves direction untouched. The magnitude of (1,2)(1,2) is 5\sqrt{5}. The magnitude of 3 times (1,2)(1,2), that is, (3,6)(3,6), is 353\sqrt{5}.

When the scalar is negative, then when we multiply a vector by it, the vector is not only scaled, but it also switches direction. Multiplying (1,2)(1,2) by 3-3 means we should go 3 times further but in the opposite direction, so 3 units to the left and 6 units down, or in other words, (3,6)(-3,-6). As we mentioned above, y-\vec{y} is a reverse of y\vec{y}, and this is the same as (1)y(-1)\vec{y}.

In Figure 4\PageIndex{4}, you can see a couple of examples of what scaling a vector means visually.

A vector x, the vector 2x (same direction, double |x|), and the vector -1.5x (opposite direction, 1.5 |x|).
Figure 4\PageIndex{4}: A vector x\vec{x}, the vector 2x2\vec{x} (same direction, double the magnitude), and the vector 1.5x-1.5\vec{x} (opposite direction, 1.51.5 times the magnitude).

We put all of these operations together to work out more complicated expressions. Let us compute a small example:

3[12]+2[41]3[22]=[3(1)+2(4)3(2)3(2)+2(1)3(2)]=[12].3 \begin{bmatrix} 1 \\ 2 \end{bmatrix} + 2 \begin{bmatrix} -4 \\ -1 \end{bmatrix} - 3 \begin{bmatrix} -2 \\ 2 \end{bmatrix} = \begin{bmatrix} 3(1)+2(-4)-3(-2) \\ 3(2)+2(-1)-3(2) \end{bmatrix} = \begin{bmatrix} 1 \\ -2 \end{bmatrix}. \nonumber

As we said a vector is a direction and a magnitude. Magnitude is easy to represent, it is just a number. The direction is usually given by a vector with magnitude one. We call such a vector a unit vector. That is, u\vec{u} is a unit vector when u=1\lVert \vec{u} \rVert = 1. For instance, the vectors (1,0)(1,0), (12,12)(\frac{1}{\sqrt{2}},\frac{1}{\sqrt{2}}), and (0,1)(0,-1) are all unit vectors.

To represent the direction of a vector x\vec{x}, we need to find the unit vector in the same direction. To do so, we simply rescale x\vec{x} by the reciprocal of the magnitude, that is 1xx\frac{1}{\lVert \vec{x} \rVert} \vec{x}, or more concisely xx\frac{\vec{x}}{\lVert \vec{x} \rVert}.

As an example, the unit vector in the direction of (1,2)(1,2) is the vector

112+22(1,2)=(15,25).\frac{1}{\sqrt{1^2+2^2}} (1,2) = \left( \frac{1}{\sqrt{5}}, \frac{2}{\sqrt{5}} \right). \nonumber

Linear Mappings and Matrices

A vector-valued function FF is a rule that takes a vector x\vec{x} and returns another vector y\vec{y}. For example, FF could be a scaling that doubles the size of vectors:

F(x)=2x.F(\vec{x}) = 2 \vec{x}. \nonumber

Applied to say (1,3)(1,3) we get

F([13])=2[13]=[26].F \left( \begin{bmatrix} 1 \\ 3 \end{bmatrix} \right) = 2 \begin{bmatrix} 1 \\ 3 \end{bmatrix} = \begin{bmatrix} 2 \\ 6 \end{bmatrix}. \nonumber

If FF is a mapping that takes vectors in R2{\mathbb R}^2 to R2{\mathbb R}^2 (such as the above), we write

F:R2R2.F \colon {\mathbb R}^2 \to {\mathbb R}^2. \nonumber

The words function and mapping are used rather interchangeably, although more often than not, mapping is used when talking about a vector-valued function, and the word function is often used when the function is scalar-valued.

A beginning student of mathematics (and many a seasoned mathematician), that sees an expression such as

f(3x+8y)f(3x+8y) \nonumber

yearns to write

3f(x)+8f(y).3f(x)+8f(y). \nonumber

After all, who hasn’t wanted to write x+y=x+y\sqrt{x+y} = \sqrt{x} + \sqrt{y} or something like that at some point in their mathematical lives. Wouldn’t life be simple if we could do that? Of course we can’t always do that (for example, not with the square roots!) But there are many other functions where we can do exactly the above. Such functions are called linear.

A mapping F:RnRmF \colon {\mathbb R}^n \to {\mathbb R}^m is called linear if

F(x+y)=F(x)+F(y),F(\vec{x}+\vec{y}) = F(\vec{x})+F(\vec{y}), \nonumber

for any vectors x\vec{x} and y\vec{y}, and also

F(αx)=αF(x),F(\alpha \vec{x}) = \alpha F(\vec{x}), \nonumber

for any scalar α\alpha. The FF we defined above that doubles the size of all vectors is linear. Let us check:

F(x+y)=2(x+y)=2x+2y=F(x)+F(y),F(\vec{x}+\vec{y}) = 2(\vec{x}+\vec{y}) = 2\vec{x}+2\vec{y} = F(\vec{x})+F(\vec{y}), \nonumber

and also

F(αx)=2αx=α2x=αF(x).F(\alpha \vec{x}) = 2 \alpha \vec{x} = \alpha 2 \vec{x} = \alpha F(\vec{x}). \nonumber

We also call a linear function a linear transformation. If you want to be really fancy and impress your friends, you can call it a linear operator. When a mapping is linear we often do not write the parentheses. We write simply

FxF \vec{x} \nonumber

instead of F(x)F(\vec{x}). We do this because linearity means that the mapping FF behaves like multiplying x\vec{x} by That something is a matrix.

A matrix is an m×nm \times n array of numbers (mm rows and nn columns). A 3×53 \times 5 matrix is

A=[a11a12a13a14a15a21a22a23a24a25a31a32a33a34a35].A = \begin{bmatrix} a_{11} & a_{12} & a_{13} & a_{14} & a_{15} \\ a_{21} & a_{22} & a_{23} & a_{24} & a_{25} \\ a_{31} & a_{32} & a_{33} & a_{34} & a_{35} \end{bmatrix}. \nonumber

The numbers aija_{ij} are called elements or entries.

A column vector is simply an m×1m \times 1 matrix. Similarly to a column vector there is also a row vector, which is a 1×n1 \times n matrix. If we have an n×nn \times n matrix, then we say that it is a square matrix.

Now how does a matrix AA relate to a linear mapping? Well a matrix tells you where certain special vectors go. Let’s give a name to those certain vectors. The standard basis of vectors of Rn{\mathbb R}^n are

e1=[1000],e2=[0100],e3=[0010],,en=[0001].\vec{e}_1 = \begin{bmatrix} 1 \\ 0 \\ 0 \\ \vdots \\ 0 \end{bmatrix}, \qquad \vec{e}_2 = \begin{bmatrix} 0 \\ 1 \\ 0 \\ \vdots \\ 0 \end{bmatrix}, \qquad \vec{e}_3 = \begin{bmatrix} 0 \\ 0 \\ 1 \\ \vdots \\ 0 \end{bmatrix}, \qquad \cdots, \qquad \vec{e}_n = \begin{bmatrix} 0 \\ 0 \\ 0 \\ \vdots \\ 1 \end{bmatrix}. \nonumber

In R3{\mathbb R}^3 these vectors are

e1=[100],e2=[010],e3=[001].\vec{e}_1 = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}, \qquad \vec{e}_2 = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}, \qquad \vec{e}_3 = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}. \nonumber

You may recall from calculus of several variables that these are sometimes called ı\vec{\imath}, ȷ\vec{\jmath}, k\vec{k}.

The reason these are called a basis is that every other vector can be written as a linear combination of them. For example, in R3{\mathbb R}^3 the vector (4,5,6)(4,5,6) can be written as

4e1+5e2+6e3=4[100]+5[010]+6[001]=[456].4 \vec{e}_1 + 5 \vec{e}_2 + 6 \vec{e}_3 = 4 \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix} + 5 \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix} + 6 \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix} = \begin{bmatrix} 4 \\ 5 \\ 6 \end{bmatrix}. \nonumber

So how does a matrix represent a linear mapping? Well, the columns of the matrix are the vectors where AA as a linear mapping takes e1\vec{e}_1, e2\vec{e}_2, etc. For instance, consider

M=[1234].M = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}. \nonumber

As a linear mapping M:R2R2M \colon {\mathbb R}^2 \to {\mathbb R}^2 takes e1=[10]\vec{e}_1 = \left[ \begin{smallmatrix} 1 \\ 0 \end{smallmatrix} \right] to [13]\left[ \begin{smallmatrix} 1 \\ 3 \end{smallmatrix} \right] and e2=[01]\vec{e}_2 = \left[ \begin{smallmatrix} 0 \\ 1 \end{smallmatrix} \right] to [24]\left[ \begin{smallmatrix} 2 \\ 4 \end{smallmatrix} \right]. In other words,

Me1=[1234][10]=[13],andMe2=[1234][01]=[24].M \vec{e}_1 = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 1 \\ 0 \end{bmatrix} = \begin{bmatrix} 1 \\ 3 \end{bmatrix}, \qquad \text{and} \qquad M \vec{e}_2 = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 0 \\ 1 \end{bmatrix} = \begin{bmatrix} 2 \\ 4 \end{bmatrix}. \nonumber

More generally, if we have an n×mn \times m matrix AA, that is, we have nn rows and mm columns, then the mapping A:RmRnA \colon {\mathbb R}^m \to {\mathbb R}^n takes ej\vec{e}_j to the jthj^{\text{th}} column of AA. For example,

A=[a11a12a13a14a15a21a22a23a24a25a31a32a33a34a35]A = \begin{bmatrix} a_{11} & a_{12} & a_{13} & a_{14} & a_{15} \\ a_{21} & a_{22} & a_{23} & a_{24} & a_{25} \\ a_{31} & a_{32} & a_{33} & a_{34} & a_{35} \end{bmatrix} \nonumber

represents a mapping from R5{\mathbb R}^5 to R3{\mathbb R}^3 that does

Ae1=[a11a21a31],Ae2=[a12a22a32],Ae3=[a13a23a33],Ae4=[a14a24a34],Ae5=[a15a25a35].A \vec{e}_1 = \begin{bmatrix} a_{11} \\ a_{21} \\ a_{31} \end{bmatrix}, \qquad A \vec{e}_2 = \begin{bmatrix} a_{12} \\ a_{22} \\ a_{32} \end{bmatrix}, \qquad A \vec{e}_3 = \begin{bmatrix} a_{13} \\ a_{23} \\ a_{33} \end{bmatrix}, \qquad A \vec{e}_4 = \begin{bmatrix} a_{14} \\ a_{24} \\ a_{34} \end{bmatrix}, \qquad A \vec{e}_5 = \begin{bmatrix} a_{15} \\ a_{25} \\ a_{35} \end{bmatrix}. \nonumber

What about another vector x\vec{x}, which isn’t in the standard basis? Where does it go? We use linearity. First, we write the vector as a linear combination of the standard basis vectors:

x=[x1x2x3x4x5]=x1[10000]+x2[01000]+x3[00100]+x4[00010]+x5[00001]=x1e1+x2e2+x3e3+x4e4+x5e5.\vec{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \end{bmatrix} = x_1 \begin{bmatrix} 1 \\ 0 \\ 0 \\ 0 \\ 0 \end{bmatrix} + x_2 \begin{bmatrix} 0 \\ 1 \\ 0 \\ 0 \\ 0 \end{bmatrix} + x_3 \begin{bmatrix} 0 \\ 0 \\ 1 \\ 0 \\ 0 \end{bmatrix} + x_4 \begin{bmatrix} 0 \\ 0 \\ 0 \\ 1 \\ 0 \end{bmatrix} + x_5 \begin{bmatrix} 0 \\ 0 \\ 0 \\ 0 \\ 1 \end{bmatrix} = x_1 \vec{e}_1 + x_2 \vec{e}_2 + x_3 \vec{e}_3 + x_4 \vec{e}_4 + x_5 \vec{e}_5. \nonumber

Then

Ax=A(x1e1+x2e2+x3e3+x4e4+x5e5)=x1Ae1+x2Ae2+x3Ae3+x4Ae4+x5Ae5.A \vec{x} = A ( x_1 \vec{e}_1 + x_2 \vec{e}_2 + x_3 \vec{e}_3 + x_4 \vec{e}_4 + x_5 \vec{e}_5 ) = x_1 A\vec{e}_1 + x_2 A\vec{e}_2 + x_3 A\vec{e}_3 + x_4 A\vec{e}_4 + x_5 A\vec{e}_5. \nonumber

If we know where AA takes all the basis vectors, we know where it takes all vectors.

Suppose MM is the 2×22 \times 2 matrix from above, then

M[20.1]=[1234][20.1]=2[13]+0.1[24]=[1.85.6].M \begin{bmatrix} -2 \\ 0.1 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} -2 \\ 0.1 \end{bmatrix} = -2 \begin{bmatrix} 1 \\ 3 \end{bmatrix} + 0.1 \begin{bmatrix} 2 \\ 4 \end{bmatrix} = \begin{bmatrix} -1.8 \\ -5.6 \end{bmatrix}. \nonumber

Every linear mapping from Rm{\mathbb R}^m to Rn{\mathbb R}^n can be represented by an n×mn \times m matrix. You just figure out where it takes the standard basis vectors. Conversely, every n×mn \times m matrix represents a linear mapping. Hence, we may think of matrices being linear mappings, and linear mappings being matrices.

Or can we? In this book we study mostly linear differential operators, and linear differential operators are linear mappings, although they are not acting on Rn{\mathbb R}^n, but on an infinite-dimensional space of functions:

Lf=g.L f = g. \nonumber

For a function ff we get a function gg, and LL is linear in the sense that

L(f+h)=Lf+Lh,andL(αf)=αLf.L ( f + h) = Lf + Lh, \qquad \text{and} \qquad L (\alpha f) = \alpha Lf. \nonumber

for any number (scalar) α\alpha and all functions ff and hh.

So the answer is not really. But if we consider vectors in finite-dimensional spaces Rn{\mathbb R}^n then yes, every linear mapping is a matrix. We have mentioned at the beginning of this section, that we can That’s not strictly true, but it is true approximately. Those spaces of functions can be approximated by a finite-dimensional space, and then linear operators are just matrices. So approximately, this is true. And as far as actual computations that we can do on a computer, we can work only with finitely many dimensions anyway. If you ask a computer or your calculator to plot a function, it samples the function at finitely many points and then connects the dots5. It does not actually give you infinitely many values. The way that you have been using the computer or your calculator so far has already been a certain approximation of the space of functions by a finite-dimensional space.

To end the section, we notice how AxA \vec{x} can be written more succintly. Suppose

A=[a11a12a13a21a22a23]andx=[x1x2x3].A = \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \end{bmatrix} \qquad \text{and} \qquad \vec{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix}. \nonumber

Then

Ax=[a11a12a13a21a22a23][x1x2x3]=[a11x1+a12x2+a13x3a21x1+a22x2+a23x3].A \vec{x} = \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} a_{11} x_1 + a_{12} x_2 + a_{13} x_3 \\ a_{21} x_1 + a_{22} x_2 + a_{23} x_3 \end{bmatrix}. \nonumber

For example,

[1234][21]=[1·2+2·(1)3·2+4·(1)]=[02].\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 2 \\ -1 \end{bmatrix} = \begin{bmatrix} 1 \cdot 2 + 2 \cdot (-1) \\ 3 \cdot 2 + 4 \cdot (-1) \end{bmatrix} = \begin{bmatrix} 0 \\ 2 \end{bmatrix}. \nonumber

That is, you take the entries in a row of the matrix, you multiply them by the entries in your vector, you add things up, and that’s the corresponding entry in the resulting vector.

Footnotes

[1] One of the downsides of making everything look like a linear problem is that the number of variables tends to become huge.

[2] Named after the ancient Greek mathematician Euclid of Alexandria (around 300 BC), possibly the most famous of mathematicians; even small towns often have Euclid Street or Euclid Avenue.

[3] Named after the French mathematician René Descartes (1596–1650). It is as his name in Latin is Renatus Cartesius.

[4] A common notation to distinguish vectors from points is to write (1,2)(1,2) for the point and 1,2\langle 1,2 \rangle for the vector. We write both as (1,2)(1,2).

[5] If you have ever used Matlab, you may have noticed that to plot a function, we take a vector of inputs, ask Matlab to compute the corresponding vector of values of the function, and then we ask it to plot the result.

Adapted from Differential Equations for Engineers by Jiří Lebl (https://www.jirka.org/diffyqs/), © Jiří Lebl, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.