Jump to content

Linear algebra (Osnabrück 2024-2025)/Part I/Lecture 4

In linear algebra, everything is worked out over a field K, and the reader might think about the real numbers ℝ. But, at the moment, only the algebraic properties of ℝ are relevant, so instead one can think about the rational numbers ℚ. Starting with the theory of eigenvalues, also more specific properties of the field (like the existence of roots) are important.

The "mother of all systems of linear equations“ is just one linear equation in one variable of the form

ax=b,

with given elements a,b from a field K and wanted x. We have three possibilities how the solution behavior might look like. For a≠0, we can multiply the equation with the inverse a−1 of a, yielding the unique solution

x=ba−1=ba.

Computationally, one can find the solution, as long as one can find the inverse element and can perform the multiplication in the field. For a=0, the solution behavior depends on b. If b=0, then every x∈K is a solution; if b≠0, then there is no solution.



Linear systems

Firstly, we give three further introductory examples, one from every day's life, one from geometry, and one from physics. They all lead to systems of linear equations.


At a booth on the Christmas market, there are three different pots of mulled wine. All three contain the ingredients cinnamon, cloves, red wine, and sugar, but the compositions differ. The mixtures of the mulled wines are

G1=(12112),G2=(22123),G3=(31207).

Every mulled wine is represented by a four-tuple, where the entries represent the respective shares of the ingredients. The set of all (possible) mulled wines forms a vector space  (we will introduce this concept in the next lecture) and the three concrete mulled wines are vectors in this space.

Now suppose that none of the three mulled wines meets exactly our taste; in fact, the wanted mulled wine has the mixture

W=(12205).

Is there a possibility to get the wanted mulled wine by pouring together the given mulled wines in some way? Are there numbers[1] a,b,c∈ℚ such that

a(12112)+b(22123)+c(31207)=(12205)

holds? This vector equation can be expressed by four equations in the "variables“ a,b,c, where the equations come from the rows. When does there exist a solution, when none, when many? These are typical questions of linear algebra.


Two planes in space intersecting in a line.

Suppose that two planes are given in ℝ3,[2]

E={(x,y,z)∈ℝ3∣4x−2y−3z=5}

and

F={(x,y,z)∈ℝ3∣3x−5y+2z=1}.

How can we describe the intersecting line G=E∩F? A point P=(x,y,z) belongs to the intersection line if and only if it satisfies both plane equations. Therefore, both equations,

4x−2y−3z=5 and 3x−5y+2z=1,

must hold. We multiply the first equation by 3, and subtract from that four times the second equation, and get

14y−17z=11.

If we set y=0, then z=−1117 and x=1317 must hold. This means that the point P=(1317,0,−1117) belongs to G. In the same way, setting z=0, we find the point Q=(2314,1114,0). Therefore, the intersecting line is the line connecting these points, so

G={(1317,0,−1117)+t(209238,1114,1117)∣t∈ℝ}.

An electrical network consists of several connected wires, which we call the edges of the network in this context. In every edge Kj, there is a certain (depending on the material and the length of the edge) resistance Rj. The points Pn, where the edges meet, are called the vertices of the network. If we put to some edges of the network a certain electric tension (voltage), then we will have in every edge a certain current Ij. The goal is to determine the currents from the data of the network and the voltages.

It is helpful to assign to each edge a fixed direction in order to distinguish the direction of the current in this edge (if the current is in the opposite direction, it gets a minus sign). We call these directed edges. In every vertex of the network, the currents of the adjacent edges come together; therefore, their sum must be 0. In an edge Kj, there is a voltage drop Uj, determined by Ohm's law to be

Uj=Rj⋅Ij.

We call a closed, directed alignment of edges in a network a mesh. For such a mesh, the sum of voltages is 0, unless a certain voltage is enforced from "outside“.

We list these Kirchhoff's laws again.

  1. In every vertex, the sum of the currents equals 0.
  2. In every mesh, the sum of the voltages equals 0.
  3. If in a mesh, a voltage V is enforced, then the sum of the voltages equals V.

Due to "physical reasons“, we expect that, given voltages in every edge, there should be a well-defined current in every edge. In fact, these currents can be computed if we translate the stated laws into a system of linear equations and solve this system.

In the example given by the picture, suppose that the edges K1,…,K5 (with the resistances R1,…,R5) are directed from left to right and that the connecting edge K0 from A to C (where the voltage V is applied) is directed upwards. The four vertices and the three meshes (A,D,B),(D,B,C) and (A,D,C) yield the system of linear equations

I0+I1−I3=0I3+I4+I5=0−I0+I2−I4=0−I1−I2−I5=0R1I1+R3I3−R5I5=0−R2I2−R4I4+R5I5=0−R1I1+R2I2=−V.

Here the Rj and V are given numbers, and the Ij are the unknowns we are looking for.

We give now the definition of a homogeneous and of an inhomogeneous system of linear equations over a field for a given set of variables.


Let K denote a field, and let aij∈K for 1≤i≤m and 1≤j≤n. We call

a11x1+a12x2+⋯+a1nxn=0a21x1+a22x2+⋯+a2nxn=0⋮⋮⋮am1x1+am2x2+⋯+amnxn=0

a (homogeneous) system of linear equations in the variables x1,…,xn. A tuple (ξ1,…,ξn)∈Kn is called a solution of the linear system if ∑j=1naijξj=0 holds for all i=1,…,m.

If (c1,…,cm)∈Km is given,[3] then

a11x1+a12x2+⋯+a1nxn=c1a21x1+a22x2+⋯+a2nxn=c2⋮⋮⋮am1x1+am2x2+⋯+amnxn=cm

is called an inhomogeneous system of linear equations. A tuple (ζ1,…,ζn)∈Kn is called a solution to the inhomogeneous linear system if ∑j=1naijζj=ci

holds for all i.


The set of all solutions of the system is called the solution set. In the homogeneous case, this is also called the solution space, as it is indeed, by Lemma 6.11 , a vector space.

A homogeneous system of linear equations always has the so-called trivial solution 0=(0,…,0). An inhomogeneous system does not necessarily have a solution. For a given inhomogeneous linear system of equations, the homogeneous system that arises when we replace the tuple on the right-hand side by the null vector 0 is called the corresponding homogeneous system.

The following situation describes a more abstract version of Example 4.1 .


Let K denote a field, and m∈ℕ. Suppose that in Km, there are n vectors (or m-tuples)

v1=(a11a21⋮am1),v2=(a12a22⋮am2),…,vn=(a1na2n⋮amn)

given. Let

w=(c1c2⋮cm)

be another vector. We want to know whether w can be written as a linear combination of the vj. Thus, we are dealing with the question whether there are n elements s1,…,sn∈K such that

s1(a11a21⋮am1)+s2(a12a22⋮am2)+⋯+sn(a1na2n⋮amn)=(c1c2⋮cm)

holds. This equality of vectors means identity in every component, so that this condition yields a system of linear equations

a11s1+a12s2+⋯+a1nsn=c1a21s1+a22s2+⋯+a2nsn=c2⋮⋮⋮am1s1+am2s2+⋯+amnsn=cm.

It might happen that a system of linear equations is given in such a way that there are variables on both sides of the equations, like in

3x−4+5y=8z+7x,
2−4x+z=2y+3x+6,
4z−3x+2x+3=5x−11y+2z−8.

In this case, one first transforms this system to the standard form by simple additions and processing the coefficients in each equation.



Matrices

A system of linear equations can easily be written with a matrix. This allows us to make the manipulations that lead to the solution of such a system without writing down the variables. Matrices are quite simple objects; however, they can represent quite different mathematical objects (e.g., a family of column vectors, a family of row vectors, a linear mapping, a table of physical interactions, a relation, a linear vector field, etc.), which one has to keep in mind in order to prevent wrong conclusions.


Let K denote a field, and let I and J denote index sets. An I×J-matrix is a mapping

I×J⟶K,(i,j)⟼aij.

If I={1,…,m} and J={1,…,n}, then we talk about an m×n-matrix. In this case, the matrix is usually written as

(a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn).

We will usually restrict to this last situation.


For every i∈I, the family aij , j∈J, is called the i-th row of the matrix, which is usually written as a row tuple (or row vector)

(ai1,ai2,…,ain).

For every j∈J, the family aij , i∈I, is called the j-th column of the matrix, usually written as a column tuple (or column vector)

(a1ja2j⋮amj).

The elements aij are called the entries of the matrix. For aij, the number i is called the row index, and j is called the column index of the entry. The position of the entry aij is where the i-th row meets the j-th column. A matrix with m=n is called a square matrix. An m×1-matrix is simply a column tuple (or column vector) of length m, and an 1×n-matrix is simply a row tuple (or row vector) of length n. The set of all matrices with m rows and n columns (and with entries in K) is denoted by Matm×n(K); in case m=n we also write Matn(K).


Two matrices A,B∈Matm×n(K) are added by adding corresponding entries. The multiplication of a matrix A with an element r∈K (a scalar) is also defined entrywise, so

(a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn)+(b11b12…b1nb21b22…b2n⋮⋮⋱⋮bm1bm2…bmn)=(a11+b11a12+b12…a1n+b1na21+b21a22+b22…a2n+b2n⋮⋮⋱⋮am1+bm1am2+bm2…amn+bmn)

and

r(a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn)=(ra11ra12…ra1nra21ra22…ra2n⋮⋮⋱⋮ram1ram2…ramn).

The multiplication of matrices is defined in the following way:


Let K denote a field, and let A denote an m×n-matrix and B an n×p-matrix over K. Then the matrix product

AB

is the m×p-matrix, whose entries are given by

cik=∑j=1naijbjk.


A matrix multiplication is only possible when the number of columns of the left-hand matrix equals the number of rows of the right-hand matrix. Just think of the scheme

(ROWROW)(COLUMN)=(RC+O2+WL+RU+OM+WN),

the result is an 1×1-Matrix. In particular, one can multiply an m×n-matrix A with a column vector of length n (the vector on the right), and the result is a column vector of length m. The two matrices can also be multiplied with roles interchanged,

(COLUMN)(ROWROW)=(CRCOCWCRCOCWORO2OWORO2OWLRLOLWLRLOLWURUOUWURUOUWMRMOMWMRMOMWNRNONWNRNONW).

The n×n-matrix

En:=(10⋯⋯0010⋯0⋮⋱⋱⋱⋮0⋯0100⋯⋯01)
is called identity matrix.

The identity matrix En has the property EnM=M=MEn, for an arbitrary n×n-matrix M. Hence, the identity matrix is the neutral element with respect to matrix multiplication.


If we multiply an m×n-matrix A=(aij)ij with a column vector x=(x1x2⋮xn), then we get

Ax=(a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn)(x1x2⋮xn)=(a11x1+a12x2+⋯+a1nxna21x1+a22x2+⋯+a2nxn⋮am1x1+am2x2+⋯+amnxn).

Hence, an inhomogeneous system of linear equations with disturbance vector (c1c2⋮cm) can be written briefly as

Ax=c.

Then, the manipulations on the equations that do not change the solution set, can be replaced by corresponding manipulations on the rows of the matrix. It is not necessary to write down the variables.


An n×n-matrix of the form

(d110⋯⋯00d220⋯0⋮⋱⋱⋱⋮0⋯0dn−1n−100⋯⋯0dnn)
is called a diagonal matrix.

Let K be a field, and let M=(aij)ij be an m×n-matrix over K. Then the n×m-matrix

Mtr=(bij)ij with bij:=aji
is called the transposed matrix of M.

The transposed matrix arises by interchanging the roles of the rows and the columns. For example, we have

(tnodrssxapey)tr=(transposedxy).



Footnotes
  1. ↑ In this example, only positive numbers have a practical interpretation. In linear algebra, everything is over a field, so we also allow negative numbers.
  2. ↑ Right here, we do not discuss that such equations define a plane. The solution sets are "shifted linear subspaces of dimension two“.
  3. ↑ Such a vector is sometimes called a disturbance vector of the system.


<< | Linear algebra (Osnabrück 2024-2025)/Part I | >>
PDF-version of this lecture
Exercise sheet for this lecture (PDF)