Section 3.2 Examples
In this section.
Subsection 3.2.1 A simple example
Some of the first recorded uses of systems of equations in human history (without all the modern algebraic symbolism, of course) were applications to agriculture and commerce.Problem 3.2.1. Nutrient profiles in horse feed.
You have determined from recommendations in reputable reference sources that your large working horse requires 1150 g of protein, 36 g of calcium, and 25 g of phosphorous daily. You have had samples of your hay, grain, and pasture analyzed and have determine their nutritional components as percentages by mass.
Hay | Grain | Pasture | |
Protein | 8.2 | 13.9 | 4.1 |
Calcium | 0.46 | 0.06 | 0.15 |
Phosphorous | 0.21 | 0.45 | 0.07 |
How much of each feed type should your horse consume daily?
Let \(H,G,P\) represent the amount in kilograms of the three types of feed that the horse will be fed. Then each nutritional requirement leads to an equation.
Multiplying each equation by \(10^4\) to clear all decimals, we obtain an augmented matrix for the system,
If one were to solve this system, it would be revealed that the horse needs to eat close to 18 kg of pasture and be fed about 1.7 kg of hay and close to 2 kg of grain daily.
Subsection 3.2.2 Flow in networks
In a traffic network, fluid network, communications network, etc., matter cannot be created or destroyed. So at each node we can always apply some sort of law of conservation: the number of units entering the node (whether cars, litres of fluid, data packets, etc.) must be equal to the number of units exiting the node. Let's apply this to the network in Discovery 3.1, starting at the top node and working clockwise to form flow-in-equals-flow-out equations.Subsection 3.2.3 Balancing chemical equations
Similarly to network analysis, there is a law of conservation at play in a chemical reaction since atoms are not created, destroyed, or changed to other kinds of atoms. So all of the atoms that make up the reactant particles must also be present in the product particles. Let's apply this to the chemical reaction in Discovery 3.2, analyzing each atom in turn to balance the number of that atom in the reactant particles with the number of that atom in the product particles.Subsection 3.2.4 Polynomial interpolation
It is a fundamental principle in plane geometry that given two distinct points there is one unique line that passes through those points. And this principle continues to higher degree polynomials. For three points in the plane with disinct x-values there exists one unique parabola that passes through those points (where we consider a line as a degenerate form of parabola in the case that the three points are collinear). For four points with distinct x-values, there exists a unique cubic polynomial whose graph passes through all four points. And so on. It may seem that this is not a linear problem, since polynomial functions involve powers of the variable x. But x is not the variable here — the unknown coefficients that define the particular polynomial function are what we are trying to solve for. To illustrate how linear algebra can solve this problem, let's work through the associated discovery activities from Discovery guide 3.1.Example 3.2.2. Linear interpolation.
In Discovery 3.3, we would like to determine the line y=mx+b that passes through the points (−3,4) and (2,−1). A point in the plane is on a particular line precisely when its coordinates satisfy the equation that defines the line. Requiring this gives us two equations, one for each point:
We already have the variables to one side, so we will just flip the equations around. However, we have chosen to put the variables in the order b,m to emphasize a pattern that will become evident as we do more examples.
Solving this system would lead to one unique solution, as expected.
Example 3.2.3. Quadratic interpolation.
In Discovery 3.4, we would like to determine the parabola y=ax2+bx+c that passes through the points (−1,−4), (1,0), and (2,5). Again, each point leads to an equation by requiring that the point's coordinates satisfy the parabola's defining equation.
Again, we will reverse the order of the variables to highlight the patterns.
And again, solving this system would lead to one unique solution, as expected.