Linear system/Examples/Introduction/Section

From Wikiversity
Jump to navigation Jump to search

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


Example

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

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 form a vector space 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

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

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


Example

Two planes in space, intersecting in a line.

Suppose that two planes are given in ,[2]

Failed to parse (syntax error): {\displaystyle {{}} E = { \left\{ (x,y,z) \in \R^3 \mid 4x-2y-3z <table class="metadata plainlinks ambox ambox-notice" style=""> <tr> <td class="mbox-image"><div style="width: 52px;"> [[File:Wikiversity logo 2017.svg|50px|link=]]</div></td> <td class="mbox-text" style=""> '''[[m:Soft redirect|Soft redirect]]'''<br />This page can be found at <span id="SoftRedirect">[[mw:Help:Magic words#Other]]</span>. </td> </tr> </table>[[Category:Wikiversity soft redirects|Linear system/Examples/Introduction/Section]] __NOINDEX__ 5 \right\} } \, }

and

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://localhost:6011/en.wikiversity.org/v1/":): {\displaystyle {{}} F = { \left\{ (x,y,z) \in \R^3 \mid 3x-5y+2z <table class="metadata plainlinks ambox ambox-notice" style=""> <tr> <td class="mbox-image"><div style="width: 52px;"> [[File:Wikiversity logo 2017.svg|50px|link=]]</div></td> <td class="mbox-text" style=""> '''[[m:Soft redirect|Soft redirect]]'''<br />This page can be found at <span id="SoftRedirect">[[mw:Help:Magic words#Other]]</span>. </td> </tr> </table>[[Category:Wikiversity soft redirects|Linear system/Examples/Introduction/Section]] __NOINDEX__ 1 \right\} } \, . }

How can we describe the intersecting line ? A point belongs to the intersection line if and only if it satisfies both plane equations. Therefore, both equations,

Failed to parse (syntax error): {\displaystyle 4x-2y-3z <table class="metadata plainlinks ambox ambox-notice" style=""> <tr> <td class="mbox-image"><div style="width: 52px;"> [[File:Wikiversity logo 2017.svg|50px|link=]]</div></td> <td class="mbox-text" style=""> '''[[m:Soft redirect|Soft redirect]]'''<br />This page can be found at <span id="SoftRedirect">[[mw:Help:Magic words#Other]]</span>. </td> </tr> </table>[[Category:Wikiversity soft redirects|Linear system/Examples/Introduction/Section]] __NOINDEX__ 5 \, \, \text{ and } \, \, 3x-5y+2z <table class="metadata plainlinks ambox ambox-notice" style=""> <tr> <td class="mbox-image"><div style="width: 52px;"> [[File:Wikiversity logo 2017.svg|50px|link=]]</div></td> <td class="mbox-text" style=""> '''[[m:Soft redirect|Soft redirect]]'''<br />This page can be found at <span id="SoftRedirect">[[mw:Help:Magic words#Other]]</span>. </td> </tr> </table>[[Category:Wikiversity soft redirects|Linear system/Examples/Introduction/Section]] __NOINDEX__ 1 , }

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

If we set , then and must hold. This means that the point belongs to . In the same way, setting , we find the point . Therefore, the intersecting line is the line connecting these points, so


Example

An electrical network consists of several connected wires, which we call the edges of the network in this context. In every edge , there is a certain (depending on the material and the length of the edge) resistance . The points , 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 . 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, their sum must be . In an edge , there is a voltage drop , determined by Ohm's law to be

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

We list these Kirchhoff's laws again.

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

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 (with the resistances ) are directed from left to right, and that the connecting edge from to (where the voltage is applied) is directed upwards. The four vertices and the three meshes and yield the system of linear equations

Here the and are given numbers, and the 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.


Definition  

Let denote a field, and let for and . We call

a (homogeneous) system of linear equations in the variables . A tuple is called a solution of the linear system, if Failed to parse (syntax error): {\displaystyle {{}} \sum_{j <table class="metadata plainlinks ambox ambox-notice" style=""> <tr> <td class="mbox-image"><div style="width: 52px;"> [[File:Wikiversity logo 2017.svg|50px|link=]]</div></td> <td class="mbox-text" style=""> '''[[m:Soft redirect|Soft redirect]]'''<br />This page can be found at <span id="SoftRedirect">[[mw:Help:Magic words#Other]]</span>. </td> </tr> </table>[[Category:Wikiversity soft redirects|Linear system/Examples/Introduction/Section]] __NOINDEX__ 1}^n a_{ij } \xi_j = 0} holds for all .

If is given,[3] then

is called an inhomogeneous system of linear equations. A tuple is called a solution to the inhomogeneous linear system, if Failed to parse (syntax error): {\displaystyle {{}} \sum_{j <table class="metadata plainlinks ambox ambox-notice" style=""> <tr> <td class="mbox-image"><div style="width: 52px;"> [[File:Wikiversity logo 2017.svg|50px|link=]]</div></td> <td class="mbox-text" style=""> '''[[m:Soft redirect|Soft redirect]]'''<br />This page can be found at <span id="SoftRedirect">[[mw:Help:Magic words#Other]]</span>. </td> </tr> </table>[[Category:Wikiversity soft redirects|Linear system/Examples/Introduction/Section]] __NOINDEX__ 1}^n a_{ij} \zeta_j = c_i}

holds for all .

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

a vector space.

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

The following situation describes a more abstract version of example.


Example

Let denote a field and . Suppose that in , there are vectors (or -tuples)

given. Let

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

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

  1. In this example, only positive numbers have a practical interpretation. In linear algebra, everything is over a field, so we allow also 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.