Jump to content

Mathematics for Applied Sciences (Osnabrück 2023-2024)/Part I/Lecture 21/refcontrol

From Wikiversity

The lectures of the next weeks deal with linear algebra. We fix a field K, and one might think of the real numbers . But since we are first concerned only with algebraic properties of , one might also think of the rational numbers. Starting with the theory of eigenspaces, also analytic properties like the existence of roots will be important.



Systems of linear equations

In the context of polynomial interpolation, we have already encountered systems of linear equations.

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.


== Example Example 21.1

change==

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)34x2y3z=5}

and

F={(x,y,z)33x5y+2z=1}.

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

4x2y3z=5 and 3x5y+2z=1,

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

14y17z=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=RjIj.

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+I1I3=0I3+I4+I5=0I0+I2I4=0I1I2I5=0R1I1+R3I3R5I5=0R2I2R4I4+R5I5=0R1I1+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,MDLD/field and let aijK for 1im and 1jn. We call

a11x1+a12x2++a1nxn=0a21x1+a22x2++a2nxn=0am1x1+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=c2am1x1+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 22.14 , 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 21.1 .


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

v1=(a11a21am1),v2=(a12a22am2),,vn=(a1na2namn)

given. Let

w=(c1c2cm)

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

s1(a11a21am1)+s2(a12a22am2)++sn(a1na2namn)=(c1c2cm)

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

a11s1+a12s2++a1nsn=c1a21s1+a22s2++a2nsn=c2am1s1+am2s2++amnsn=cm.



Solving linear systems

Systems of linear equations are best solved by the elimination method, where successively a variable gets eliminated, and in the end we get an equivalent simple system which can be solved directly (or read of that there is no solution). For small systems, also the substitution methodMDLD/substitution method or the equating methodMDLD/equating method are useful.


Let K denote a field,MDLD/field and let two (inhomogeneous) systems of linear equations,MDLD/systems of linear equations

with respect to the same set of variables, be given. The systems are called equivalent, if their solution sets are identical.

LemmaLemma 21.7 change

Let K be a field,MDLD/field and let

a11x1+a12x2++a1nxn=c1a21x1+a22x2++a2nxn=c2am1x1+am2x2++amnxn=cm

be an inhomogeneous system of linear equationsMDLD/inhomogeneous system of linear equations over K. Then the following manipulations on this system yield an equivalent system.MDLD/equivalent system (linear)

  1. Swapping two equations.
  2. The multiplication of an equation by a scalar s0.
  3. The omitting of an equation, if it occurs twice.
  4. The duplication of an equation (in the sense to write down the equation again).
  5. The omitting or adding of a zero row (zero equation).
  6. The replacement of an equation H by the equation that arises if we add to H another equation G of the system.

Proof  

Most statements are immediately clear. (2) follows from the fact that if

i=1naiξi=c

holds, then also

i=1n(sai)ξi=sc

holds for every sK. If s0, then this implication can be reversed by multiplication with s1.

(6). Let G be the equation

i=1naixi=c,

and H be the equation

i=1nbixi=d.

If a tuple (ξ1,,ξn)Kn satisfies both equations, then it also satisfies the equation H=G+H. And if the tuple satisfies the equations G and H, then it also satisfies the equation G and H=HG.


For finding the solution of a linear system, the manipulations (2) and (6) are most important, where in general these two steps are combined, and the equation H is replaced by an equation of the form H+λG (with GH). Here, λK has to be chosen is such a way that the new equation contains one variable less than the old equation. This process is called elimination of a Variable. This elimination is not only applied to one equation, but for all equations except one (suitable chosen) "working row“ G, and with a fixed "working variable“. The following elimination lemma describes this step.


LemmaCreate referencenumber

Let K denote a field,MDLD/field and let S denote an (inhomogeneous) system of linear equations over K in the variables x1,,xn. Suppose that x is a variable which occurs in at least one equation G with a coefficient a0. Then every equation H, different from G,[4] can be replaced by an equation H, in which x does not occur any more, and such that the new system of equations S that consists of G and the equations H, is equivalentMDLD/equivalent (lse) to the system S.

Proof  

Changing the numbering, we may assume x=x1. Let G be the equation

ax1+i=2naixi=b

(with a0), and let H be the equation

cx1+i=2ncixi=d.

Then the equation

H=HcaG

has the form

i=2n(cicaai)xi=dcab,

and x1 does not occur in it. Because of H=H+caG, the systems are equivalent.MDLD/equivalent (lse)



TheoremTheorem 21.9 change

Every (inhomogeneous) system of linear equations over a field K can be transformed, by the manipulations described in Lemma 21.7 , to an equivalent linear systemMDLD/equivalent linear system of the form

b1s1xs1+b1s1+1xs1+1+b1nxn=d100b2s2xs2+b2nxn=d2=00bmsmxsm+bmnxn=dm(00=dm+1),

where in each row, the first coefficient b1s1,b2s2,,bmsm is different from 0. Here, either dm+1=0, and the last row can be omitted, or dm+1=0,

and then the system has no solution at all.

Proof  

This follows directly from the elimination lemma, by eliminating successively variables. Elimination is applied firstly to the first variable (in the given ordering), say xs1, which occurs in at least one equation with a coefficient 0 (if it only occurs in one equation, then this elimination step is already done). This elimination process is applied as long as the new subsystem (without the working equation used in the elimination step before) has at least one equation with a coefficient for one variable different from 0. After this, we have in the end only equations without variables, and they are either only zero equations, or there is no solution.



LemmaCreate referencenumber

Let an inhomogeneous system of linear equations in triangular form

a11x1+a12x2+a1mxm+a1nxn=c10a22x2+a2nxn=c2=00ammxm+amnxn=cm

with mn over a field K be given, where the diagonal elements are all not 0. Then the solutions (x1,,xm,xm+1,,xn) are in bijection with the tuples (xm+1,,xn)Knm.

The nm entries xm+1,,xn can be chosen arbitrarily, and they determine a unique solution, and every solution is of this form.

Proof  

This is clear, as when the tuple (xm+1,,xn) is given, the rows determine successively the other variables from bottom to top.


For m=n, there are no free variables, and the linear system has exactly one solution.


== Example Example 21.11

change==

We want to solve the inhomogeneous linear system

2x+5y+2zv=33x4y+u+2v=14x2z+2u=7

over (or over ). Firstly, we eliminate x by keeping the first row I, replacing the second row II by II32I, and replacing the third row III by III2I. This yields

2x+5y+2zv=3232y3z+u+72v=7210y6z+2u+2v=1.

Now, we can eliminate y from the (new) third row, with the help of the second row. Because of the fractions, we rather eliminate z (which eliminates also u). We leave the first and the second row as they are, and we replace the third row III by III2II. This yields the system, in a new ordering of the variables,[5]

2x+2z+5yv=33z+u232y+72v=7213y5v=8.

Now we can choose an arbitrary (free) value for v. The third row determines y uniquely, we must have

y=813+513v.

In the second equation, we can choose u arbitrarily, this determines z via

z=13(72u72v+232(813+513v))=13(72u72v+9213+11526v)=13(9326u+1213v)=3126+13u413v.

The first row determines x, namely

x=12(32z5y+v)=12(32(3126+13u413v)5(813+513v)+v)=12(301323u413v)=151313u213v.

Hence, the solution set is

{(151313u213v,813+513v,3126+13u413v,u,v)u,v}.

A particularly simple solution is obtained by equating the free variables u and v with 0. This yields the special solution

(x,y,z,u,v)=(1513,813,3126,0,0).

The general solution set can also be written as

{(1513,813,3126,0,0)+u(13,0,13,1,0)+v(213,513,413,0,1)u,v}.

Here,

{u(13,0,13,1,0)+v(213,513,413,0,1)u,v}

is a description of the general solution of the corresponding homogeneous linear system.


A system of linear inequalities over the rational numbers or over the real numbers is a system of the form

a11x1+a12x2++a1nxnc1a21x1+a22x2++a2nxnc2am1x1+am2x2++amnxncm,

where might be or . It is considerably more difficult to find the solution set of such a system than in the case of equations. In general, it is not possible to eliminate the variables.



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.
  4. It is enough that these equations have a different index in the system.
  5. Such a reordering is safe as long as we keep the names of the variables. But if we write down the system in matrix notation without the variables, then one has to be careful and remember the reordering of the columns.


<< | Mathematics for Applied Sciences (Osnabrück 2023-2024)/Part I | >>
PDF-version of this lecture
Exercise sheet for this lecture (PDF)