fcla / src / section-WILA.xml

<?xml version="1.0" encoding="UTF-8" ?>
<section acro="WILA">
<title>What is Linear Algebra?</title>

<!-- %%%%%%%%%% -->
<!-- % -->
<!-- %  Section WILA -->
<!-- %  What is Linear Algebra? -->
<!-- % -->
<!-- %%%%%%%%%% -->
<introduction>
<p>We begin our study of linear algebra with an introduction and a motivational example.</p>

</introduction>

<subsection acro="LA">
<title>Linear + Algebra</title>

<p>The subject of linear algebra can be partially explained by the meaning of the two terms comprising the title.  <q>Linear</q> is a term you will appreciate better at the end of this course, and indeed, attaining this appreciation could be taken as one of the primary goals of this course.  However for now, you can understand it to mean anything that is <q>straight</q> or <q>flat.</q>  For example in the $xy$-plane you might be accustomed to describing straight lines (is there any other kind?) as the set of solutions to an equation of the form $y = mx + b$, where the slope $m$ and the $y$-intercept $b$ are constants that together describe the line.  In multivariate calculus, you may have discussed planes.  Living in three dimensions, with coordinates described by triples $(x,\,y,\,z)$, they can be described as the set of solutions to equations of the form $ax+by+cz=d$, where $a,\,b,\,c,\,d$ are constants that together determine the plane.  While we might describe planes as <q>flat,</q> lines in three dimensions might be described as <q>straight.</q>   From a multivariate calculus course you will recall that lines are sets of points described by equations such as $x=3t-4$, $y=-7t+2$, $z=9t$, where $t$ is a parameter that can take on any value.</p>

<p>Another view of this notion of <q>flatness</q> is to recognize that the sets of points just described are solutions to equations of a relatively simple form.  These equations involve addition and multiplication only.  We will have a need for subtraction, and occasionally we will divide, but mostly you can describe <q>linear</q> equations as involving only addition and multiplication.  Here are some examples of typical equations we will see in the next few sections:
<alignmath>
<![CDATA[2x+3y-4z&=13]]>
<![CDATA[&]]>
<![CDATA[4x_1+5x_2-x_3+x_4+x_5&=0]]>
<![CDATA[&]]>
<![CDATA[9a-2b+7c+2d&=-7]]>
</alignmath></p>

<p>What we will not see are equations like:
<alignmath>
<![CDATA[xy + 5yz&=13]]>
<![CDATA[&]]>
<![CDATA[x_1 + x_2^3/x_4 - x_3x_4x_5^2&=0]]>
<![CDATA[&]]>
<![CDATA[\tan(ab)+\log(c-d)&=-7]]>
</alignmath>
The exception will be that we will on occasion need to take a square root.</p>

<p>You have probably heard the word <q>algebra</q> frequently in your mathematical preparation for this course.  Most likely, you have spent a good ten to fifteen years learning the algebra of the real numbers, along with some introduction to the very similar algebra of complex numbers (see <acroref type="section" acro="CNO" />).  However, there are many new algebras to learn and use, and likely linear algebra will be your second algebra.  Like learning a second language, the necessary adjustments can be challenging at times, but the rewards are many.  And it will make learning your third and fourth algebras even easier.  Perhaps you have heard of <q>groups</q> and <q>rings</q> (or maybe you have studied them already), which are excellent examples of other algebras with very interesting properties and applications.  In any event, prepare yourself to learn a new algebra and realize that some of the old rules you used for the real numbers may no longer apply to this <em>new</em> algebra you will be learning!</p>

<p>The brief discussion above about lines and planes suggests that linear algebra has an inherently geometric nature, and this is true.  Examples in two and three dimensions can be used to provide valuable insight into important concepts of this course.  However, much of the power of linear algebra will be the ability to work with <q>flat</q> or <q>straight</q> objects in higher dimensions, without concerning ourselves with visualizing the situation.  While much of our intuition will come from examples in two and three dimensions, we will maintain an <em>algebraic</em> approach to the subject, with the geometry being secondary.  Others may wish to switch this emphasis around, and that can lead to a very fruitful and beneficial course, but here and now we are laying our bias bare.</p>

</subsection>

<subsection acro="AA">
<title>An Application</title>

<p>We conclude this section with a rather involved example that will highlight some of the power and techniques of linear algebra.  Work through all of the details with pencil and paper, until you believe all the assertions made.  However, in this introductory example, do not concern yourself with how some of the results are obtained or how you might be expected to solve a similar problem.  We will come back to this example later and expose some of the techniques used and properties exploited.  For now, use your background in mathematics to convince yourself that everything said here really is correct.</p>

<example acro="TMP" index="trail mix">
<title>Trail Mix Packaging</title>

<p>Suppose you are the production manager at a food-packaging plant and one of your product lines is trail mix, a healthy snack popular with hikers and backpackers, containing raisins, peanuts and hard-shelled chocolate pieces.  By adjusting the mix of these three ingredients, you are able to sell three varieties of this item.  The fancy version is sold in half-kilogram packages at outdoor supply stores and has more chocolate and fewer raisins, thus commanding a higher price.  The standard version is sold in one kilogram packages in grocery stores and gas station mini-markets.  Since the standard version has roughly equal amounts of each ingredient, it is not as expensive as the fancy version.  Finally, a bulk version is sold in bins at grocery stores for consumers to load into plastic bags in amounts of their choosing.  To appeal to the shoppers that like bulk items for their economy and healthfulness, this mix has many more raisins (at the expense of chocolate) and therefore sells for less.</p>

<p>Your production facilities have limited storage space and early each morning you are able to receive and store 380 kilograms of raisins, 500 kilograms of peanuts and 620 kilograms of chocolate pieces.  As production manager, one of your most important duties is to decide how much of each version of trail mix to make every day.  Clearly, you can have up to 1500 kilograms of raw ingredients available each day, so to be the most productive you will likely produce 1500 kilograms of trail mix each day.  Also, you would prefer not to have any ingredients leftover each day, so that your final product is as fresh as possible and so that you can receive the maximum delivery the next morning.  But how should these ingredients be allocated to the mixing of the bulk, standard and fancy versions?
First, we need a little more information about the mixes.  Workers mix the ingredients in 15 kilogram batches, and each row of the table below gives a recipe for a 15 kilogram batch.  There is some additional information on the costs of the ingredients and the price the manufacturer can charge for the different versions of the trail mix.

<table>
<latex>\begin{tabular}{l*5{|c}}
<![CDATA[&Raisins&Peanuts&Chocolate&Cost&Sale Price\\]]>
<![CDATA[&(kg/batch)&(kg/batch)&(kg/batch)&(\$/kg)&(\$/kg)\\\hline\hline]]>
<![CDATA[Bulk&7&6&2&3.69&4.99\\\hline]]>
<![CDATA[Standard&6&4&5&3.86&5.50\\\hline]]>
<![CDATA[Fancy&2&5&8&4.45&6.50\\\hline\hline]]>
<![CDATA[Storage (kg)&380&500&620&&\\\hline]]>
<![CDATA[Cost (\$/kg)&2.55&4.65&4.80&&]]>
\end{tabular}</latex>
<html>
<![CDATA[<table border="1" cellpadding="2" style="margin:auto;">
  <tr><td></td><td>Raisins   </td><td>Peanuts   </td><td>Chocolate </td><td>Cost</td><td>Sale Price</td></tr>
  <tr><td></td><td>(kg/batch)</td><td>(kg/batch)</td><td>(kg/batch)</td><td>$/kg</td><td>$/kg      </td></tr>
  <!--    -->
  <tr><td>Bulk    </td><td>7</td><td>6</td><td>2</td><td>3.69</td><td>4.99</td></tr>
  <tr><td>Standard</td><td>6</td><td>4</td><td>5</td><td>3.86</td><td>5.50</td></tr>
  <tr><td>Fancy   </td><td>2</td><td>5</td><td>8</td><td>4.45</td><td>6.50</td></tr>
  <!--    -->
  <tr><td>Storage (kg)</td><td> 380</td><td> 500</td><td> 620</td><td></td><td></td></tr>
  <tr><td>Cost ($/kg) </td><td>2.55</td><td>4.65</td><td>4.80</td><td></td><td></td></tr>
</table>]]>
</html>
</table>


</p>

<p>As production manager, it is important to realize that you only have three decisions to make <mdash /> the amount of bulk mix to make, the amount of standard mix to make and the amount of fancy mix to make.  Everything else is beyond your control or is handled by another department within the company.  Principally, you are also limited by the amount of raw ingredients you can store each day.  Let us denote the amount of each mix to produce each day, measured in kilograms, by the variable quantities $b$, $s$ and $f$.  Your production schedule can be described as values of $b$, $s$ and $f$ that do several things.  First, we cannot make negative quantities of each mix, so
<alignmath>
<![CDATA[b&\geq 0  &  s&\geq 0  &  f&\geq 0]]>
</alignmath></p>

<p>Second, if we want to consume all of our ingredients each day, the storage capacities lead to three (linear) equations, one for each ingredient,
<alignmath>
<![CDATA[\frac{7}{15}b+\frac{6}{15}s+\frac{2}{15}f&=380&&\text{(raisins)}\\]]>
<![CDATA[\frac{6}{15}b+\frac{4}{15}s+\frac{5}{15}f&=500&&\text{(peanuts)}\\]]>
<![CDATA[\frac{2}{15}b+\frac{5}{15}s+\frac{8}{15}f&=620&&\text{(chocolate)}]]>
</alignmath>
</p>

<p>It happens that this system of three equations has just one solution.  In other words, as production manager, your job is easy, since there is but one way to use up all of your raw ingredients making trail mix.  This single solution is
<alignmath>
<![CDATA[b&=300\text{ kg}]]>
<![CDATA[&]]>
<![CDATA[s&=300\text{ kg}]]>
<![CDATA[&]]>
<![CDATA[f&=900\text{ kg}.]]>
</alignmath>
</p>

<p>We do not yet have the tools to explain why this solution is the only one, but it should be simple for you to verify that this is indeed a solution.  (Go ahead, we will wait.)  Determining solutions such as this, and establishing that they are unique, will be the main motivation for our initial study of linear algebra.</p>

<p>So we have solved the problem of making sure that we make the best use of our limited storage space, and each day use up all of the raw ingredients that are shipped to us.  Additionally, as production manager, you must report weekly to the CEO of the company, and you know he will be more interested in the profit derived from your decisions than in the actual production levels.  So you compute,
<alignmath>
<![CDATA[300(4.99-3.69)+300(5.50-3.86)+900(6.50-4.45)&=2727.00]]>
</alignmath>
for a daily profit of \$2,727 from this production schedule. The computation of the daily profit is also beyond our control, though it is definitely of interest, and it too looks like a <q>linear</q> computation.</p>

<p>As often happens, things do not stay the same for long, and now the marketing department has suggested that your company's trail mix products standardize on every mix being one-third peanuts.  Adjusting the peanut portion of each recipe by also adjusting the chocolate portion leads to revised recipes, and slightly different costs for the bulk and standard mixes, as given in the following table.

<table>
<latex>\begin{tabular}{l*5{|c}}
<![CDATA[&Raisins&Peanuts&Chocolate&Cost&Sale Price\\]]>
<![CDATA[&(kg/batch)&(kg/batch)&(kg/batch)&(\$/kg)&(\$/kg)\\\hline\hline]]>
<![CDATA[Bulk&7&5&3&3.70&4.99\\\hline]]>
<![CDATA[Standard&6&5&4&3.85&5.50\\\hline]]>
<![CDATA[Fancy&2&5&8&4.45&6.50\\\hline\hline]]>
<![CDATA[Storage (kg)&380&500&620&&\\\hline]]>
<![CDATA[Cost (\$/kg)&2.55&4.65&4.80&&]]>
\end{tabular}</latex>
<html>
<![CDATA[<table border="1" cellpadding="2" style="margin:auto;">
  <tr><td></td><td>Raisins   </td><td>Peanuts   </td><td>Chocolate </td><td>Cost</td><td>Sale Price</td></tr>
  <tr><td></td><td>(kg/batch)</td><td>(kg/batch)</td><td>(kg/batch)</td><td>$/kg</td><td>$/kg      </td></tr>
  <!--    -->
  <tr><td>Bulk    </td><td>7</td><td>5</td><td>3</td><td>3.70</td><td>4.99</td></tr>
  <tr><td>Standard</td><td>6</td><td>5</td><td>4</td><td>3.85</td><td>5.50</td></tr>
  <tr><td>Fancy   </td><td>2</td><td>5</td><td>8</td><td>4.45</td><td>6.50</td></tr>
  <!--    -->
  <tr><td>Storage (kg)</td><td> 380</td><td> 500</td><td> 620</td><td></td><td></td></tr>
  <tr><td>Cost ($/kg) </td><td>2.55</td><td>4.65</td><td>4.80</td><td></td><td></td></tr>
</table>]]>
</html>
</table>


</p>

<p>In a similar fashion as before, we desire values of $b$, $s$ and $f$ so that
<alignmath>
<![CDATA[b&\geq 0  &  s&\geq 0  &  f&\geq 0]]>
</alignmath>
and
<alignmath>
<![CDATA[\frac{7}{15}b+\frac{6}{15}s+\frac{2}{15}f&=380&&\text{(raisins)}\\]]>
<![CDATA[\frac{5}{15}b+\frac{5}{15}s+\frac{5}{15}f&=500&&\text{(peanuts)}\\]]>
<![CDATA[\frac{3}{15}b+\frac{4}{15}s+\frac{8}{15}f&=620&&\text{(chocolate)}]]>
</alignmath>
</p>

<p>It now happens that this system of equations has <em>infinitely</em> many solutions, as we will now demonstrate.  Let $f$ remain a variable quantity.  Then if we make $f$ kilograms of the fancy mix, we will make $4f-3300$ kilograms of the bulk mix and $-5f+4800$ kilograms of the standard mix.  Let us now verify that, for any choice of $f$, the values of $b=4f-3300$ and $s=-5f+4800$ will yield a production schedule that exhausts all of the day's supply of raw ingredients (right now, do not be concerned about how you might derive expressions like these for $b$ and $s$).  Grab your pencil and paper and play along.
<alignmath>
<![CDATA[\frac{7}{15}(4f-3300)+\frac{6}{15}(-5f+4800)+\frac{2}{15}f&=0f+\frac{5700}{15}=380\\]]>
<![CDATA[\frac{5}{15}(4f-3300)+\frac{5}{15}(-5f+4800)+\frac{5}{15}f&=0f+\frac{7500}{15}=500\\]]>
<![CDATA[\frac{3}{15}(4f-3300)+\frac{4}{15}(-5f+4800)+\frac{8}{15}f&=0f+\frac{9300}{15}=620]]>
</alignmath></p>

<p>Convince yourself that these expressions for $b$ and $s$ allow us to vary $f$ and obtain an infinite number of possibilities for solutions to the three equations that describe our storage capacities.  As a practical matter, there really are not an infinite number of solutions, since we are unlikely to want to end the day with a fractional number of bags of fancy mix, so our allowable values of $f$ should probably be integers.  More importantly, we need to remember that we cannot make negative amounts of each mix!  Where does this lead us?   Positive quantities of the bulk mix requires that
<alignmath>
b\geq 0
<![CDATA[&\quad\Rightarrow\quad 4f-3300\geq 0]]>
\quad\Rightarrow\quad f\geq 825
</alignmath></p>

<p>Similarly for the standard mix,
<alignmath>
s\geq 0
<![CDATA[&\quad\Rightarrow\quad -5f+4800\geq 0]]>
\quad\Rightarrow\quad f\leq 960
</alignmath></p>

<p>So, as production manager, you really have to choose a value of $f$ from the finite set <alignmath>
\set{825,\,826,\,\ldots,\,960}
</alignmath>
leaving you with 136 choices, each of which will exhaust the day's supply of raw ingredients.  Pause now and think about which <em>you</em> would choose.</p>

<p>Recalling your weekly meeting with the CEO suggests that you might want to choose a production schedule that yields the biggest possible profit for the company.  So you compute an expression for the profit based on your as yet undetermined decision for the value of $f$,
<alignmath>
<![CDATA[&(4f-3300)(4.99-3.70)+(-5f+4800)(5.50-3.85)+(f)(6.50-4.45)\\]]>
<![CDATA[&\quad\quad=-1.04f + 3663]]>
</alignmath>
</p>

<p>Since $f$ has a negative coefficient it would appear that mixing fancy mix is detrimental to your profit and should be avoided.  So you will make the decision to set daily fancy mix production at $f=825$.  This has the effect of setting $b=4(825)-3300=0$ and we stop producing bulk mix entirely.  So the remainder of your daily production is standard mix at the level of $s=-5(825)+4800=675$ kilograms and the resulting daily profit is $(-1.04)(825)+3663=2805$.  It is a pleasant surprise that daily profit has risen to \$2,805, but this is not the most important part of the story.  What is important here is that there are a large number of ways to produce trail mix that use all of the day's worth of raw ingredients <em>and</em> you were able to easily choose the one that netted the largest profit.  Notice too how all of the above computations look <q>linear.</q></p>

<p>In the food industry, things do not stay the same for long, and now the sales department says that increased competition has led to the decision to stay competitive and charge just \$5.25 for a kilogram of the standard mix, rather than the previous \$5.50 per kilogram.  This decision has no effect on the possibilities for the production schedule, but will affect the decision based on profit considerations.  So you revisit just the profit computation, suitably adjusted for the new selling price of standard mix,
<alignmath>
<![CDATA[&(4f-3300)(4.99-3.70)+(-5f+4800)(5.25-3.85)+(f)(6.50-4.45)\\]]>
<![CDATA[&\quad\quad=0.21f+2463]]>
</alignmath>
</p>

<p>Now it would appear that fancy mix is beneficial to the company's profit since the value of $f$ has a positive coefficient.  So you take the decision to make as much fancy mix as possible, setting $f=960$.  This leads to $s=-5(960)+4800=0$ and the increased competition has driven you out of the standard mix market all together.  The remainder of production is therefore bulk mix at a daily level of $b=4(960)-3300=540$ kilograms and the resulting daily profit is $0.21(960)+2463=2664.60$.  A daily profit of \$2,664.60 is less than it used to be, but as production manager, you have made the best of a difficult situation and shown the sales department that the best course is to pull out of the highly competitive standard mix market completely.</p>

</example>

<p>This example is taken from a field of mathematics variously known by names such as operations research, systems science, or management science.  More specifically, this is a perfect example of problems that are solved by the techniques of <q>linear programming.</q></p>

<p>There is a lot going on under the hood in this example.  The heart of the matter is the solution to systems of linear equations, which is the topic of the next few sections, and a recurrent theme throughout this course.  We will return to this example on several occasions to reveal some of the reasons for its behavior.</p>

</subsection>

<!--   End  wila.tex -->
<readingquestions>
<ol>
<li>Is the equation $x^2 + xy +\tan(y^3)=0$ linear or not?  Why or why not?
</li>
<li>Find all solutions to the system of two linear equations $2x+3y=-8$, $x-y=6$.
</li>
<li>Describe how the production manager might explain the importance of the procedures described in the trail mix application (<acroref type="subsection" acro="WILA.AA" />).
</li></ol>
</readingquestions>

<exercisesubsection>

<exercise type="C" number="10" rough="Re-compute costs of mixed batches">
<problem contributor="robertbeezer">In <acroref type="example" acro="TMP" /> the first table lists the cost (per kilogram) to manufacture each of the three varieties of trail mix (bulk, standard, fancy).  For example, it costs \$3.69 to make one kilogram of the bulk variety.  Re-compute each of these three costs and notice that the computations are linear in character.
</problem>
</exercise>

<exercise type="M" number="70" rough="Price point on packaging mix">
<problem contributor="robertbeezer">In <acroref type="example" acro="TMP" /> two different prices were considered for marketing standard mix with the revised recipes (one-third peanuts in each recipe).  Selling standard mix at \$5.50 resulted in selling the minimum amount of the fancy mix and no bulk mix.  At \$5.25 it was best for profits to sell the maximum amount of fancy mix and then sell no standard mix.  Determine a selling price for standard mix that allows for maximum profits while still selling some of each type of mix.
</problem>
<solution contributor="robertbeezer">If the price of standard mix is set at \$5.292, then the profit function has a zero coefficient on the variable quantity $f$.  So, we can set $f$ to be any integer quantity in $\set{825,\,826,\,\ldots,\,960}$.  All but the extreme values ($f=825$, $f=960$) will result in production levels where some of every mix is manufactured.  No matter what value of $f$ is chosen, the resulting profit will be the same, at \$2,664.60.
</solution>
</exercise>

</exercisesubsection>

</section>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.