+ All Categories
Home > Documents > Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf ·...

Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf ·...

Date post: 25-Jun-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
175
Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes Second Edition Cover Art by Stephanie Oxenford Additional Editing by John Gambino 1
Transcript
Page 1: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Finite Mathematics :A Business Approach

Dr. Brian Traversand

Prof. James Lampes

Second Edition

Cover Art by Stephanie Oxenford

Additional Editing by John Gambino

1

Page 2: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2

Page 3: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Contents

1 What You Should Already Know 71.1 Fractions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

1.1.1 Reducing Fractions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101.1.2 Adding and Subtracting Fractions . . . . . . . . . . . . . . . . . . . . . . . . . . . 101.1.3 Multiplying and Dividing Fractions . . . . . . . . . . . . . . . . . . . . . . . . . . 12

1.2 Decimals and Percents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131.2.1 Decimals and Fractions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131.2.2 Decimals and Percents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

1.3 Exponents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151.3.1 The Product Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151.3.2 The Quotient Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161.3.3 The Power Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

1.4 Functions and Function Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191.4.1 Set Builder Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191.4.2 y = f (x) Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201.4.3 Evaluating the Function y = f (x) . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

1.5 Factoring and FOILing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221.5.1 Factoring Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221.5.2 Factoring Variable Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241.5.3 Factoring Quadratic Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241.5.4 Multiplying Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

2 Linear Functions 292.1 Linear Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

2.1.1 Slope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312.1.2 Special Cases for Slope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322.1.3 The Slope-Intercept Form of a Linear Function . . . . . . . . . . . . . . . . . . . . 322.1.4 Intercepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342.1.5 Parallel and Perpendicular Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352.1.6 Standard Form ax+by = c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372.1.7 Is the point on the line? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382.1.8 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

2.2 Graphing Linear Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402.2.1 Plotting Using a t-chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402.2.2 Plotting Using Slope-Intercept Form . . . . . . . . . . . . . . . . . . . . . . . . . . 42

3

Page 4: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.2.3 Using the TI-Series Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432.2.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

2.3 Finding the Intersection Point of Linear Functions . . . . . . . . . . . . . . . . . . . . . . . 462.3.1 How to Find the Intersection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462.3.2 Do We Have to Have an Intersection? . . . . . . . . . . . . . . . . . . . . . . . . . 492.3.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

2.4 Graphing Inequalities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512.4.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

2.5 Justification of Slopes of Perpendicular Lines . . . . . . . . . . . . . . . . . . . . . . . . . 57

3 Applications of Linear Functions 593.1 Linear Programming: The Set-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

3.1.1 What Is Linear Programming? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613.1.2 What Are We Looking For? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613.1.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

3.2 Linear Programming: Maximization and Minimization . . . . . . . . . . . . . . . . . . . . 673.2.1 Optimizing Given Lines and Points . . . . . . . . . . . . . . . . . . . . . . . . . . 673.2.2 Why the Vertices Are the Only Points We Care About . . . . . . . . . . . . . . . . 693.2.3 More Involved Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 703.2.4 Word Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 723.2.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76

3.3 Linear Programming on the TI-84 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

4 Matrices 834.1 Matrices and Elementary Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

4.1.1 Elementary Row Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 854.1.2 Row Reduction and Pivots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 864.1.3 The Identity Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 884.1.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

4.2 Solving Systems of Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 914.2.1 Inverses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 914.2.2 Matrices on the Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 924.2.3 Solving Systems of Equations with Inverses . . . . . . . . . . . . . . . . . . . . . . 934.2.4 Reduced Row Echelon Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 964.2.5 Solving Systems of Equations with Row Operations . . . . . . . . . . . . . . . . . 964.2.6 Row Operations on the Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . . 984.2.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

4.3 The Simplex Method: Standard Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1044.3.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

4.4 The Simplex Method: Nonstandard Form . . . . . . . . . . . . . . . . . . . . . . . . . . . 1144.4.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

5 Statistics 1235.1 An Introduction to Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

5.1.1 Calculating Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1255.1.2 Standard Deviation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

4

Page 5: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.1.3 The 5-Number Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1285.1.4 Box Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1305.1.5 Histograms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1335.1.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136

5.2 Normal Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1375.2.1 What do the probabilities mean? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1405.2.2 Probabilities with Populations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1405.2.3 The Central Limit Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1425.2.4 The Standard Normal Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . 1435.2.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144

5.3 Scatterplots and Linear Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1465.3.1 Scatterplots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1465.3.2 The Correlation Coefficient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1475.3.3 Points of Clarification for Correlation Coefficients . . . . . . . . . . . . . . . . . . 1505.3.4 Linear Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1505.3.5 Important things to note about regression lines . . . . . . . . . . . . . . . . . . . . 1535.3.6 What good is having this regression line? . . . . . . . . . . . . . . . . . . . . . . . 1535.3.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156

Solutions to Exercises 158

5

Page 6: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

6

Page 7: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Chapter 1

What You Should Already Know

7

Page 8: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

8

Page 9: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

1.1 Fractions

The importance of fractions is known by most students. You can’t solve many real-life problems with onlyintegers, so fractions, decimals and percents are necessary in working on such problems. Fractions can beas simple as making a problem a little more difficult to solve or can stop a student dead in their tracks.However, they do not need to make things harder or be a cause for stress. You just need to remember whatwe talk about here and before you know it, fractions will simply be something you use to solve problemsand not something to be afraid of.

There are three types of fractions with which we may need to work. They are :

1. proper fractions : fractions where the denominator is larger than the numerator.For example, 2

5 is a proper fraction.

2. improper fractions : fractions where the denominator is smaller than the numerator.For example, 12

5 is an improper fraction.

3. mixed numbers : fractions that consist of a whole number part and a proper fraction.For example, 2 2

5 is a mixed number.

We may need to convert back and forth between mixed number and improper fractions. If we have animproper fraction, we need to figure out how many times the denominator goes into the numerator evenly toget the equivalent mixed number. The remainder becomes the fractional part.

Example 1.1.1 Convert 317 into a mixed number.

Solution If we find 31÷7 , we get 4 with a remainder of 3. So, the mixed number equivalent to 317 is 4 3

7 .

Conversely, we may want to convert from a mixed number into an improper fraction. In fact, we prefer im-proper fractions for our applications. When we are working with linear expressions, it is easier for us to dealwith slopes as improper fractions. When we are dealing with matrices, it can be confusing and appear asmultiple entries if we express the value as a mixed number. So, this skill is an important one for our purposes.

To convert a mixed number to an improper fraction, we need to change the whole number part into a fractionand then add the whole part to the fractional part. We will use the following example to illustrate how to dothis.

9

Page 10: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 1.1.2 Convert 3 45 into an improper fraction.

Solution The question we need to ask ourselves is “How many fifths are there in 3 wholes?” In practice,what we want to do is multiply the denominator by the whole number and add this to the numerator. Intheory what we are doing is writing 3 as an equivalent fraction with the same denominator as the fractionalpart of the mixed number and then adding the two fractions. So, for this problem we get

345=

5×3+45

=195

1.1.1 Reducing Fractions

Often, it is useful for us to write fractions in simplest form. This means that we express the fraction so thatthere are no common factors in the numerator and denominator. To write a fraction in simplest form, weneed to determine if there is a number that divides both the numerator and denominator evenly and if so,divide both to arrive at an equivalent fraction with no commonality.

Example 1.1.3 Write 2156 in simplest form.

Solution 21 = 3×7 and 56 = 8×7 . So, they both are divisible by 7. Therefore, we get

2156

=3×78×7

=38

1.1.2 Adding and Subtracting Fractions

If we want to add or subtract fractions, they must have a common denominator. The smallest such denomi-nator is called the least common denominator, or LCD. It is the smallest number which both denominatorsevenly divide. As long as the denominator is the same for both fractions, it does not have to be the LCD.However, if we do not have the LCD then the answer we get will be in a different form. This is not wrong,though, and both fractions will reduce to the same value.

Example 1.1.4 Find 18 +

58 .

Solution Both fractions have the same denominator, so all we have to do is add the numerators and keep thecommon denominator.

18+

58=

68

The least common multiple of the numerator and denominator is not 1, so this fraction can be reduced.

68=

2×32×4

=34

If the denominators are the same then it does not matter if we are adding or subtracting; the process is thesame other than the operation in question.

Example 1.1.5 Find 18 −

58 .

10

Page 11: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Solution Since the denominators are the same, we simply subtract the numerators and keep the commondenominator. Then, reduce if necessary.

18− 5

8=−4

8=−1

2

The following example will illustrate how to add and subtract fractions when the denominators are not thesame.

Example 1.1.6 Find 16 +

58 .

Solution Since the denominators are different, we need to determine a common denominator. We willsolve this in two different ways to show that we get the same answer whether we find the least commondenominator or just any common denominator once we reduce the fractions.

Method 1 : Least common denominatorThe least common denominator for these fractions is the least common multiple of 6 and 8. The ques-tion we need to ask ourselves here is “What is the smallest number that 6 and 8 both divide evenly?”The number we are looking for is 24. We now need to write both fractions with a denominator of 24.

16× 4

4=

424

58× 3

3=

1524

Now that we have the common denominators, we simply add and reduce (if necessary) as we didbefore.

424

+1524

=1924

Method 2 : Any common denominatorOften, it is easier to find any common denominator when combining fractions. We very well mayneed to reduce the sum or difference regardless of the denominator we use, so we may not want totake the time to find the LCD. One easy way to find a common denominator is to multiply the twodenominators together. This will give us at worst a common denominator that results in a fraction thatprobably needs to be reduced. Here, this denominator will be 48.

16× 8

8=

848

58× 6

6=

3048

So, when we add these fractions and reduce, we get the same sum as before.

848

+3048

=3848

=1924

As before, if we want to subtract two fractions that have different denominators, we find the common de-nominator using either method from above and then subtract (and reduce if necessary) the resulting fractions.

If the fractions we want to combine are mixed numbers, we want to first write them as improper fractionsand then add or subtract the resulting values.

11

Page 12: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 1.1.7 Find 2 12 −1 3

5 .

Solution First, convert the mixed numbers to improper fractions.

212=

52

135=

85

Now we find a common denominator.

52× 5

5=

2510

85× 2

2=

1610

Now, we subtract as we did before.2510− 16

10=

910

If we wanted to find this difference without using improper fractions, we can combine the whole numbersand then combine the fractions separately and combine the two resulting values. We will get the same result,but it will require more work to get the answer.

1.1.3 Multiplying and Dividing Fractions

We actually already multiplied fractions when we were finding common denominators. To multiply frac-tions, all we need to do is multiply straight across; that is, multiply the numerators together and make it thenumerator of the product and then multiply the denominators together and make this product the denomina-tor of the answer. Notice that we may still need to reduce the result that we get.

Example 1.1.8 Find 712 ×

35 .

Solution When we multiply straight across, we get (don’t forget to reduce)

712× 3

5=

2160

=3×7

3×20=

720

We could also “cross-cancel” the fractions before we multiply. 3 and 12 share the common factor of 3,so we can reduce these values before we multiply because one is in the numerator and the other is in thedenominator.

712× 3

5=

74× 1

5=

720

When dividing fractions, we are really multiplying by the reciprocal of the second fraction. The familiarphrase that we use to remind us of how to do this is “flip-and-multiply”.

Example 1.1.9 Find 58 ÷

34

Solution We take the reciprocal of the second fraction and then revert to the multiplication rules.

58÷ 3

4=

58× 4

3=

52× 1

3=

56

Note that if the quotient we obtained was not in simplified form, we would want to reduce the fraction.

12

Page 13: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

1.2 Decimals and Percents

1.2.1 Decimals and Fractions

The only difference between decimals and fractions is the form in which we are writing the value. Dependingon the situation with which we are working, however, we may need the number expressed in one form oranother. So, we need to make sure we can convert back and forth. Before we look at conversions, let’s makesure we remember the names of the place values.

Example 1.2.1 Write .4 as a fraction.

Solution Since there is only one decimal place, write the number we are given as the numerator (without thedecimal point) and make the denominator a 10.

.4 =410

=25

In general, we make the number we are given the numerator (after removing the decimal point) and makethe denominator a 1 followed by a 0 for each decimal place.

Example 1.2.2 Write .456 as a fraction

Solution Since there are 3 decimal places, we need a denominator of 1000. This would give us the following:

.456 =4561000

Notice that the resulting fraction is not in simplified form, but we will not worry about that in this section.

When converting a fraction into a decimal, the quickest way to do so is to divide the denominator into thenumerator. We can also write the fraction so that the denominator is a power of 10 and then move thedecimal point to find the equivalent decimal. This second method can only be done, however, when thefactors of the denominator are only powers of 2 and 5. The next two examples will illustrate when we canand cannot use this second method.

Example 1.2.3 Write 38 as a decimal.

Solution The denominator is 8, which is equal to 2× 2× 2. If we multiply this by 5× 5× 5, then wewill have 10× 10× 10 = 1000 in the denominator. In order to change the denominator, we also need tochange the numerator by multiplying that by the same value, for otherwise we change the value. We onlywant to change the form and to do so we multiply by “1”, just like we did when we were finding commondenominators in the last section.

38× 125

125=

3751000

= .375

If we would have divided 8 into 3 we would have gotten the exact same answer.

13

Page 14: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 1.2.4 Write 27 as a decimal.

Solution The denominator has a factor besides 2 or 5, so it cannot be written as a fraction like we did above.The only way for us to write as a decimal is to divide. When we do, we get .285714 . . .

How do we know how many decimal places to round to? When dealing with money problems, always roundto 2 decimal places. If it not a money problem, using two more decimal places than what we are performingthe operations with is sufficient, 3-4 is better as the more decimal places you use, the more accurate yourapproximation will be.

1.2.2 Decimals and Percents

Similar to the relationship between decimals and fractions, decimals and percents also represent the samenumber. The conversion between the two is done by moving the decimal point. If we want to convert froma decimal to a percent, we move the decimal 2 places to the right. If we want to convert from a percent to adecimal, we move the decimal point 2 places to the left.

Example 1.2.5 Write 3.421 as a percent.

Solution Percent means ‘per 100”. When we are given a decimal, we can set up a proportion to find thepercent representation, but we will see that this reduces to moving the decimal point.

3.4211

=p

100

(3.421)(100) = (1)(p)

342.1 = p

So, we get that 3.421 = 342.1%. And this could have been done by moving the decimal point two places tothe right.

Example 1.2.6 Write 23.21% as a decimal.

Solution Since percent means “per 100”, we divide a percent by 100 to get the decimal representation. Sincethis is the same as moving the decimal places two places to the left, we here get 23.21% = .2321.

14

Page 15: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

1.3 Exponents

We use exponents to represent a shortcut for repeated multiplication. For example, suppose we wanted tomultiply the number x by itself 10 times. We could write x · x · x · x · x · x · x · x · x · x. This could get quitetedious quickly, so we want a short hand way to write this. The way we can do this is to use exponents. Thiswould equivalently be written as x10.

Before we go too far, we have to make sure we remember the terminology of exponential expressions.

Example 1.3.1 Simplify 3x2 +4x2

Solution We get 3x2 +4x2 = 7x2. Notice the exponents do not change during addition and subtraction, butthe coefficients are combined using the given operation. In order for the addition to be possible, the termsmust be “like terms” which means they must have the same variable and exponent.

Example 1.3.2 Simplify 3x2 +4x4

Solution These terms cannot be added or subtracted as they do not have the same exponent, even thoughthey have the same base. Both conditions must be met in order for addition or subtraction to be possible.

The following shortcuts are categorized by properties or rules that when committed to memory can makethese problems much easier to work with because they are used to simplify problems.

1.3.1 The Product Rule

Suppose that you want to multiply x2 · x4 . This problem is telling you “multiply x times itself and thenmultiply the result by x four more times”. That would make your answer x6. In other words the exponentstold us that we have multiplied the base x times itself a total of 6 times.

It is hopefully becoming obvious that when multiplying exponential expressions with the same base, youadd the exponents. This is the Product Rule.

Example 1.3.3 Simplify x2 · x4 · x7

Solution By adding the exponents we get x2 · x4 · x7 = x2+4+7 = x13.

Now let’s throw some coefficients into the mix. Suppose that we want to simplify 3x2 ·4x4. The base is x inboth terms so the exponents of the variables must be added but the coefficients are multiplied unless we wantto first do an extra step and find the prime factorization of each of the coefficients and then add exponents.But we would ultimately need to multiply the different factors anyway, so this extra step is unnecessary inmost cases. Here we get 3x2 ·4x4 = 12x6.

If the bases are integers rather than variables we employ all the same properties of the Product Rule, as wesee in the next example.

15

Page 16: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 1.3.4 Express 42 ·44 ·4 as 4 written to a power.

Solution Since the bases are the same and we are multiplying, we use the Product Rule and add the expo-nents. DO NOT MULTIPLY THE BASES.

42 ·44 ·41 = 42+4+1 = 47

The verification of the short cut known as the Product Rule can be seen in the following example.

Example 1.3.5 Show that 42 ·44 ·4 is the same as 47

1 Solution 42 = 16, 44 = 256, 41 = 4 and 16 ·256 ·4 = 16384. If we plug 47 into the calculator, we also get16384. Obviously the latter is the simplest way of computing the answer, but we must know how the ruleworks without a calculator.

1.3.2 The Quotient Rule

When we have the need to divide exponential expressions, we can use the appropriately named QuotientRule which relates to the Product Rule in the same manner as multiplication and division relate to eachother. When dividing any algebraic expressions if the bases are the same, we subtract the exponents asfollows.

Example 1.3.6 Simplify x6y7z14

x3y5z4

Solution Subtracting each of the exponents of the like variables gives

x6y7z14

x3y5z4 = x3y2z10

The thing to notice here is that the power is greater in the numerator for each of the terms with the samebase. If the larger exponent is in the denominator of the rational expression, subtract the smaller power fromthe larger one and leave it in the original location. This, as it does with other rules for exponents, still mustbe for like terms.

Example 1.3.7 Simplify x3y7z4

x6y5z14

Solution This time, some of the larger numbers are in the bottom (denominator), and the exponents of theterms in the top (numerator) must be subtracted from those in the denominator. But when the power in thenumerator is larger, for those terms we do as we did before.

x3y7z4

x6y5z14 =y7−5

x6−3z14−4 =y2

x3z10

Example 1.3.8 Simplify 6x6+10x3

3x4

Solution First, we split the fraction into two separate fractions and then simplify them separately.

6x6 +10x3

3x4 =6x6

3x4 +10x3

3x4 = 2x2 +103x

16

Page 17: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Notice that the coefficients did not divide evenly in the second rational expression; when this happens, leavethe undivided whole numbers in the fraction as we did above. Another extremely important thing to noteis that we split the numerator but we cannot do the same thing when there are sums and differences in thedenominator. So, if this is something like

3x2

2x3 +2WE CANNOT SPLIT THIS INTO 2 RATIONAL EXPRESSIONS the same way we did when the sum wasin the numerator. This is the most simplified answer we could give for this expression.

The following chart summarizes the qualities of the two rules above.

Product Rule Quotient RuleBases Must be the same Must be the same

Exponents Add them Subtract themCoefficients Multiply them Divide them

Example 2x5 ·31x4 = 62x9 2x5÷31x4 = 2x31

1.3.3 The Power Rule

The Power Rule is used any time we are raising a power to a greater power. An example of this is (2x5y4)2 .The powers in parentheses are going to be themselves being raised to a higher power. What is in parenthesesnow becomes the base and is what we are multiplying twice. Thus the Power Rule tells us to multiply theexponents of any variable inside the parentheses. Don’t forget that anything with the unseen exponent of 1(like the 2 in this example) term must also be multiplied by the outside number. When we do this, we get

(2x5y4)(2x5y4) = 22(x5)2(y4)2 = 4x10y8

Very important to note: If we had an expression inside the parentheses that had a sum or difference andthen a power on the outside of the parentheses, WE CANNOT DISTRIBUTE THE POWER the way we didabove. We will deal with this in a later section.

A special case when dealing with exponents is the “0” power. Anything raised to the ”0” power (besides 0)is 1, regardless of what we are raising to the power. For example, 20 = 1, x0 = 1, (2x4y5)0 = 1 , etc. Butwhy is this true? We can see this using the quotient rule. Consider an exponential expression where the baseand exponent are the same in the numerator and denominator. Watch what happens when we simplify.

43

43 = 43−3 = 40

But, the numerator and denominator are the identical, so we could have divided them out in the first place.

43

43 = 1

Since both of these are equal to the same expression, it must be so that 40 = 1. And, since the choice of 4for a base is arbitrary, this is true for any base except for the base of 0 since 00 is undefined.

Be careful with examples like the next one.

17

Page 18: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 1.3.9 Find −22 and (−2)2. Are they equal?

Solution The parentheses make all the difference in the world here. When working with expressions, weneed to remember the order of operations. They are

ParenthesesExponentsMultiplication (left to right)Division (left to right)Addition (left to right)Subtraction (left to right)

By the order of operations, we need to take care of the exponent first, and then the negative. This gives−22 = −(22) = −(4) = −4. For the second expression, we have to take care of the multiplication bythe negative first and then the exponent. This gives (−2)2 = (−2)(−2) = 4. So, we get different valuesdepending on whether or not there are parentheses.

Negative Exponents

When you see an expression with a negative exponent, some changes are in order. Even though it is math-ematically valid to have negative exponents, they can be unwieldy to work with and it is sloppy to leavenegative exponents in expressions (other than when using scientific notation). The negative exponent sim-ply equates to the reciprocal of the same number with a positive exponent. In general, negative exponentsare not used very often in expressing the answer to a problem, but often arise in the steps along the way.

Example 1.3.10 x−1 = 1x

Example 1.3.11 3−2 = (32)−1 = 132 =

19

Example 1.3.12 2x−3 = 2x3

Remember the order of operations! We have to consider exponents before multiplication. In the last exam-ple, only x is raised to the power and not the 2. So we only take the reciprocal of the variable part and thenmultiply by the constant 2. If we wanted the entire expression to be in the denominator, we would need tohave parentheses in the expression because parentheses come before exponents in the order of operations.

Example 1.3.13 (3y)−4 = 1(3y)4 =

134y4 =

181y4

Example 1.3.14 Simplify(3

4

)−2

Solution The negative tells us to take the reciprocal of the term raised to the power. So before we worryabout the square, we want to take care of the negative. Essentially we are applying the power rule.(

34

)−2

=

((34

)−1)2

=

(43

)2

Now that we have gotten rid of the negative exponent, we can square the fraction to arrive at the mostsimplified answer we can. (

43

)2

=169

18

Page 19: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

1.4 Functions and Function Notation

Formally speaking, a function is a correspondence between a set of input values, called the domain, andthe set of output values, called the range, such that each element of the domain correspond to exactly oneelement of the range. This can seem confusing, but it doesn’t have to be so bad. In simple English, a functioncan be thought of like a “machine” that takes in one set of values and produces an output of another set ofvalues. This “machine”, or has the special property that for each input, the output is unique.

A function could also be thought of as a rule that assigns a unique output value to each member of the inputset.

There are a many different ways for us to express functions. We will talk about two of these ways.

1.4.1 Set Builder Notation

We often denote functions by describing the elements in the set. This can be done by using set buildernotation. The general format for this is

A = {x|properties}

which, in English, says “A is the set of all x such that x has the listed properties”.

Example 1.4.1 Using set builder notation, describe the set of all even numbers.

Solution We can use any capital letter to name the set. We often use a letter that makes some kind of logicalsense in the context of the problem. So we could write E = {x|x is an even number}.This would be far from a technical definition but it is a way to express the set. The following is a more“mathematical” way to describe a set of numbers.

Example 1.4.2 Using set builder notation, describe the set of all odd numbers.

Solution O = {x|x = 2n+1 where n is an integer}.

19

Page 20: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

1.4.2 y = f (x) Notation

When describing sets, we often use set builder notation, but when describing mathematical functions, weuse f (x) to denote a function where x is the variable. The letter “ f ” is often used simply because the wordfunction begins with f but we can actually use any letter we choose. When working on word problems weoften choose a letter that makes sense in the context of the problem. Similarly, we use the letter “x” for thevariable much of the time but we can choose any letter we’d like here also.

Example 1.4.3 Write the function describing the area of a square with side of length s inches.

Solution Since we are talking about area, we will use “a” for the function name and “s” for the variable.This would give us a(s) = s2.

When talking about the kinds of functions that we graph, we often use “y =”. This is actually the same asusing “ f (x) =”, except for the fact that we are specifying that x is the variable in the second notation. Forexample, if we are given the function y = 2x+1, we are describing the line with y-intercept (0,1) and slopem= 2. For each x we choose, we get a distinct y value. If we change the y to f (x), we get f (x) = 2x+1. Thisgives is a linear function with the same y-intercept and slope as the other function. There is no differencebesides the way we are expressing the function.

1.4.3 Evaluating the Function y = f (x)

Suppose we wanted to find the value of the function f (x) = 2x+ 1 at the point where x = 4. We do so bysubstituting into the expression on the right and we denote it by replacing the x with 4 on the left. That is,f (4) is the value of the function f when x = 4.

f (4) = 2(4)+1 = 9

We can also express the answer as the ordered pair (4,9).

Example 1.4.4 Suppose that the distance a falling object has travelled after t seconds is given by d(t) =16t2 feet. What is the distance travelled of the object after 10 seconds? After 20 seconds? How long wouldit take for the object to fall 14400 feet?

Solution Notice that we used d as the function name, since we are talking about the distance the objecthas travelled, and that we used t for the variable, since we are concerned with the distance travelled after tseconds.

At t = 10 seconds, we have d(10) = 16(10)2 = 1600 feet.

At t = 20 seconds, we have d(20) = 16(20)2 = 6400 feet.

For the final part of the question, we are looking for the value of t so that d(t) = 14400. Since we have anexpression for d in terms of t, we can replace d(t) with what it equals. This will give us an equation we cansolve.

16t2 = 14400

t2 = 900

t = 30 seconds

20

Page 21: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

When we take the square root of a real number, we have to take the positive and negative root, since thesquare of both will equal the same number. That is, 32 = (−3)2 = 9. In the case of our word problem,however, it makes no sense to talk about negative time, so we only consider the positive square root. Thisroot is called the principle square root.

21

Page 22: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

1.5 Factoring and FOILing

In many situations, we need to rewrite a number or variable expression in a different form in order to solve aproblem. Often, we rewrite the expression in an equivalent form by factoring. Here we will review factoringfor integers, variable expressions and some polynomials.

1.5.1 Factoring Integers

A factor is a number that divides another number evenly. For example, the number 10 has four factors; theyare 1,2,5,10. For any number, 1 and the number itself are always factors. If those are the only two factors,then we say that the number integer is a prime number. If the integer has more than two distinct factors, wesay the number is composite. We would therefore classify 10 as a composite number.

When we factor a number, we are breaking the number down into its prime factorization. That is, we arewriting the number as the unique product of primes. The way that may be most familiar to do this is using afactor tree.

Example 1.5.1 Find the prime factorization of 100.

Solution We will solve this using a factor tree.

Now, we count how many of each prime number there are and use exponents to express the factorization.Here, we get 100 = 22×52.

Example 1.5.2 Find the prime factorization of 248

Solution We will again use a tree diagram. We will do this in two ways, however, to show that there is aunique prime factorization.

22

Page 23: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Either way, we get the same prime factorization of 23×31.

One application of prime factorizations is finding the least common denominator of fractions that we wantto add or subtract. We will illustrate how to do this with the following example.

Example 1.5.3 Find 112 +

118

Solution Like we say before, we need to find a common denominator to add these fractions. Consider theprime factorization for the two denominators.

12 = 22×3

18 = 2×32

The common denominator has to be evenly divisible by all of the factors of 12 and 18. We know that 22

has to be a factor of the LCD and 32 has to be a factor of the LCD. So, the product of these two has to be afactor of the LCD. In fact, the product of the two numbers is the LCD. So, the common denominator we arelooking for is 22×32 = 36. So, the sum of these two fractions is

112× 3

3=

336

118× 2

2=

236

336

+2

36=

536

Notice that the prime factorization of this LCD is the product of each factor of the denominators and thepower we select is the larger one. This is not an accident. In general, the least common multiple of twonumbers is the product of all of the factors when we take the largest of the powers. Consider the nextexample to see this.

Example 1.5.4 Find the least common multiple of 20 and 30

Solution First we find the prime factorization for each.

20 = 22×5

30 = 2×3×5

So, the least common multiple of 20 and 30 is 22×3×5 = 60.

23

Page 24: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

We can also use this idea of prime factorization to find the greatest common factor of two numbers. Anycommon factor between two numbers must contain only factors of each of the numbers individually. Con-sider the last example. We found the prime factorization for each. Any common factor could contain a 2but could not contain 22 because there is only one 2 as a factor of 30. The number 5 could be a factor ofa common factor, but 3 couldn’t be because 20 does not have 3 as a factor. So, the greatest common factorwill be the product of all common factors of the numbers in question. In the case of 20 and 30, the greatestcommon factor, or GCF is 2×5 = 10. Notice that each of the primes here is a factor of both numbers andwhen there is choice, we use the smaller power.

1.5.2 Factoring Variable Expressions

When we factor variable expressions, we are looking for what is common between each of the terms. Whatwe are really doing is finding the greatest common factor between the terms. The only difference betweenwhat we did before and dealing with variable expressions is that we have to use our knowledge of exponents.

Example 1.5.5 Factor 2x2 +4x completely.

Solution If we consider the coefficients, we see that they are both divisible by 2. If we consider the variables,we see that they are both divisible by x. So, the greatest common factor of 2x2 and 4x is 2x. This gives2x2 +4x = 2x(x+2).

Example 1.5.6 Factor 13a3−26a2 completely.

Solution Since 13 is a factor of both coefficients and a2 is a factor of both variable parts, we get13a3−26a2 = 13a2(a−2) .

1.5.3 Factoring Quadratic Expressions

A quadratic expression is a variable expression where the highest power of any of the variables is 2. Thegeneral form of a quadratic expression is ax2 +bx+ c , where a 6= 0. We call ax2 the quadratic term, bx thelinear term and c the constant term.

If b 6= 0 but c = 0 then we can factor as before. An example of a quadratic of this type is x2 +2x = x(x+2).

If c 6= 0 but b = 0, we can factor the expression when c is negative.

Example 1.5.7 Factor x2−4 completely.

Solution This is commonly called the “difference of two squares”. Factoring gives x2−4 = (x+2)(x−2).We will show how to multiply out expressions of this type later in this section.

We can generalize this for any negative constant; the constant term does to be a perfect square. In general,x2− c2 = (x+ c)(x− c).

Example 1.5.8 Factor x2−5 completely.

24

Page 25: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Solution Even though 5 is not a perfect square, we can still factor this expression in this same way to getx2−5 = (x+

√5)(x−

√5).

If c is positive then the factored form of the expression contains imaginary terms. We will not be consideringimaginary numbers in this class.

When all three of the coefficients are not zero, we get a trinomial. There are two methods that we willdiscuss here that can be used to factor trinomials. If there is a certain relationship between the coefficients,we can factor directly. If the desired relationship does not exist, we can use the quadratic formula.

There are only 4 possibilities when factoring directly. In each case, what we are looking to do is the same.We want to come up with two numbers that multiply to the constant term and add or subtract to the linearcoefficient (disregard signs right now). Then, by where there are positives and negatives, we can put theappropriate signs in. If we cannot find numbers that multiply to the constant term and add or subtract to thelinear term, we have to use the quadratic formula. Here is an example of each type.

Example 1.5.9 Factor x2 +5x+6.

Solution

1. Break the problem into two sets of parentheses.

(x )(x )

2. Find two numbers that multiply to 6 and add or subtract to 5.

(x 3)(x 2)

3. Since the second sign is positive, both signs are whatever the first sign is.

(x+3)(x+2)

Example 1.5.10 Factor x2−5x+6.

Solution

1. Break the problem into two sets of parentheses.

(x )(x )

2. Find two numbers that multiply to 6 and add or subtract to 5.

(x 3)(x 2)

3. Since the second sign is positive, both signs are whatever the first sign is.

(x−3)(x−2)

25

Page 26: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 1.5.11 Factor x2 + x−6.

Solution

1. Break the problem into two sets of parentheses.

(x )(x )

2. Find two numbers that multiply to 6 and add or subtract to 1.

(x 3)(x 2)

3. Since the second sign is negative, the signs must be different. The larger number gets the first sign.

(x+3)(x−2)

Example 1.5.12 Factor x2− x−6.

Solution

1. Break the problem into two sets of parentheses.

(x )(x )

2. Find two numbers that multiply to 6 and add or subtract to 1.

(x 3)(x 2)

3. Since the second sign is negative, the signs must be different. The larger number gets the first sign.

(x−3)(x+2)

Unfortunately, these four possibilities are not the only types of trinomials. If we cannot find numbers thatmultiply to the constant term and add or subtract to the linear coefficient, we use the quadratic formula.

The Quadratic Formula is x = −b±√

b2−4ac2a

.We can use the quadratic formula to find the roots of the quadratic expression and then use the generalfactored form x2 + bx + c = (x + r1)(x− r2), where r1 and r2 are the values we get from applying thequadratic formula.

Example 1.5.13 Factor x2− x−6 using the quadratic formula.

Solution We could factor this expression as we did before, but we will apply the quadratic formula witha = 1, b =−1 and c =−6 to show that we get the same answer.

x =−(−1)±

√(−1)2−4(1)(−6)2(1)

=1±√

252

=1±5

2

26

Page 27: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

This gives that

x =1+5

2=

62= 3

andx =

1−52

=−42

=−2

.Notice that x2− x− 6 = (x− (−2))(x− 3) = (x+ 2)(x− 3), or the same answer we got using the othermethod.

As we can see, it is much more time consuming to use the quadratic formula then it is to factor directly. Soyou may be asking yourself, “Why would I need to ever use something that is this much more complicated?”The quadratic formula will always give us the roots of the expression whereas direct factoring only workseasily when the roots are integers. We can use the first method even when the roots are fractions or whenthe lead coefficient is not 1, but it is harder in many cases to not use the quadratic formula other than thosecases that were laid out earlier.

1.5.4 Multiplying Expressions

When we have products of singletons with expressions, we distribute and then use the rules we discussedearlier in this chapter.

Example 1.5.14 Multiply 2x2(x−3).

Solution 2x2(x−3) = 2x2 · x−2x2 ·3 = 2x3−6x2

This is really no different than we have done, but when there are two binomials, we have to use a differentprocess that you may remember by its acronym. FOILing is the process that is used to multiply binomials.FOIL stands for

FirstOutsideInsideL

This reminds us to multiply all possible pairs.

Example 1.5.15 Multiply (x−2)(x+4)

Solution Using the FOIL method, we need to multiply the first terms ((x)(x) = x2), the outside terms((x)(4) = 4x), the inside terms ((x)(−2) = −2x) and the last terms ((−2)(4) = −8). When we combinelike terms, this gives (x−2)(x+4) = x2 +2x−8.

Example 1.5.16 Multiply (2x+2)(x2−1)

Solution Nothing says we can’t use this when there are higher powers than just 1, but we can only use thiswhen we have binomials.

(2x+2)(x2−1) = 2x · x2 +2x · (−1)+2 · x2 +2 ·1 = 2x3 +2x2−2x−2

When we have larger expression than binomials, we are basically doing the same thing but we don’t havean acronym to remind us of all the products we need to include.

27

Page 28: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 1.5.17 Multiply (x2−2x+1)(x2 +3x+3).

Solution We need to be sure to multiply each terms from the first polynomials by each term from the secondpolynomial. And, when there are more terms as in an example like this, it is sometimes easier to lineup common factors. My suggestion is to multiply the first term form the first expression by all in thesecond, then move onto the second term, and continue until all of the terms in the first expression have beenexhausted.

x2 · x2 +x2 ·3x +x2 ·3−2x · x2 −2x ·3x −2x ·3

+ 1 · x2 +1 ·3x +1 ·3x4 +3x3 3x2

−2x3 −6x2 −6x+ x2 +3x +3

x4 +x3 −2x2 −3x +3

That is, (x2−2x+1)(x2 +3x+3) = x4 + x3−2x2−3x+3.

28

Page 29: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Chapter 2

Linear Functions

29

Page 30: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

30

Page 31: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.1 Linear Functions

A linear function is simply a straight line. In this section, we will discuss how to find the equation of alinear function.

Definition 2.1.1 A linear function is an equation of the form y = mx+b where m represents the slope of theline and b represents the y-intercept. Linear equations are an example of what is known as a 2-parameterfamily because there are two values that determine the orientation of the line.

2.1.1 Slope

Definition 2.1.2 The slope of a linear function tells us how steep the line is and whether it is increasing ordecreasing. You might hear the phrase “rise over run” when slope is discussed. This refers to the change inthe y value with respect to the change in the x value.

When we want to find the slope, we need two points to determine this value. The formula we use is

slope = m =riserun

=∆ y∆ x

=y2− y1

x2− x1

Example 2.1.3 Find the slope of the line containing the points (3,2) and (−3,12).

Solution It does not matter which point you consider point 1 and which you consider point 2 as long as youare consistent; that is, as long as x1 and y1 come from the same ordered pair, you can choose either point asyour first point. So without loss of generality, consider (3,2) to be point 1.

m =y2− y1

x2− x1=

12−2−3−3

=12−6

=−53

So, the slope of the line containing these two points is −53 . Notice however, that we did not make it into

a mixed number. For the purpose of plotting linear functions, it is better to leave the slope as an improperfraction. But what would have happened if we chose (-3,12) as point 1?

m =y2− y1

x2− x1=

2−123− (−3)

=−10

6=−5

3

We again get −53 for the slope of the line. So, we can see here that it does not matter which ordered pair we

choose as point 1 as long as we are consistent.

Example 2.1.4 Find the slope of the line passing through the points (−2,−1) and (4,2).

Solution Without loss of generality, we choose (−2,−1) as point 1.

m =y2− y1

x2− x1=

2− (−1)4− (−2)

=36=

12

31

Page 32: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.1.2 Special Cases for Slope

Example 2.1.5 Find the slope of the line containing the points (−2,3) and (4,3).

Solution Without loss of generality, choose (−2,3) as point 1.

m =y2− y1

x2− x1=

3−34− (−2)

=06= 0

Notice here that the y-coordinates for the two points are both 3. Because of this, it doesn’t matter what thex-values are as long as they are not the same too (or it is the same point); for any x-values, we get a rise of0. When this occurs, we get horizontal line. A horizontal line has a slope of 0 and has as its equation y = b,where b is the common y-value.

Example 2.1.6 Find the slope of the line passing through the points (2,2) and (2,−1).

Solution loss of generality, choose (2,2) as point 1.

m =y2− y1

x2− x1=−1−22−2)

=−30

= unde f ined

Here, the denominator is 0. This is saying that there is no “run” for this line. When we get a 0 in thedenominator, we have a vertical line. The line is still straight, but the slope is undefined. Lines of this typeare given by the equation x = a where a is the common x value of the two points.

For linear equations that have a slope that is defined and not equal to 0, there are two possibilities; the slopecan be positive or negative. But what does knowing the sign of the slope tell us? From this we know whetherthe function will be increasing or decreasing. That is, we will know whether the function will rise or fall aswe go from left to right.

Example 2.1.7 Describe the orientation of the linear function y =−3x+1.

Solution Since the slope is negative, the line will fall to the right.

2.1.3 The Slope-Intercept Form of a Linear Function

Now that we know how to find the slope of a line, we want to be able to find the equation of a line passingthrough some given points. One way to accomplish this is to use the slope-intercept equation, y = mx+b.The important aspect of this equation is that we can graph the line directly from this equation (we will getto that later in the chapter). The two pieces that we need to find to express a line in this form are the slope,m, and the y-intercept, b. The y-intercept is the point at which the line crosses the y-axis. It is given by theordered pair (0,b). If we know the slope and one point the line passes through, we can find the value of b.

32

Page 33: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 2.1.8 Find the y-intercept of the line with slope m = 3 that passes through the point (−3,9).

Solution The given point, as all ordered pairs are, is in the form (x,y). Using this point and the given slope,we know three of the four unknown values of the equation y = mx+b. We know m = 3, x =−3 and y = 9.We have left to find the value b so that we have the y-intercept, (0,b), for our equation.

y = mx+b

9 = 3(−3)+b

9 =−9+b

b = 18

That is, the y-intercept of this line is (0,18). This means that the linear function in question crosses they-axis this point.

Example 2.1.9 Find the y-intercept of the line passing through the points (3,2) and (6,−4).

Solution We are not given the slope here as we were in the last example. However, we know how to find theslope of a line given two points.

y2− y1

x2− x1=−4−26−3

=−63

=−2

Now that we have the slope, we can choose either point to find the y-intercept. Here we will choose (6,−4).

y = mx+b

−4 =−2(6)+b

−4 =−12+b

b = 8

If we would have chosen the other point, we will end up with the same y-intercept because the two pointsare on the same line.

y = mx+b

2 =−2(3)+b

2 =−6+b

b = 8

So, the y-intercept is the point (0,8).

What we have done in these examples is show how to find the respective pieces of a linear function. Whenwe put these all together, we have the equation of a linear function.

Example 2.1.10 Find the equation of the linear function passing through the points (−3,5) and (2,3).

Solution We first need to find the slope of the line.

5−3−3−2

=2−5

=−25

33

Page 34: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Now we can find the y-intercept. We can choose either point as the one we want to use to solve for b. Herewe will choose the point (2,3).

y = mx+b

3 =−25(2)+b

3 =−45

+b

55(3) =−4

5+b

155

=−45+b

195

= b

Why did we multiply by 55 in the 4th step above? The reason is that we have to find a common denominator

in order to add 3 and 45 . The least common denominator is 5. We need to make the left hand side have the

same denominator as the right hand side but do not want to change the relationship we have in the equation.So, we multiply by “1”, or in this case 5

5 to accomplish this task.

Now that we have all of the pieces we need, we can write the equation in slope-intercept form.

y = mx+b→ y =−25

x+195

2.1.4 Intercepts

While on the subject of intercepts, sometimes it is important for us to be able to find not only where afunction crosses the y-axis, but the x-axis as well. We will see why a little later when we get to graphinglinear equations, but for the time being we want to make sure we can find them.

• To find the y-intercept, set x = 0 in the equation and solve for y. If we solve and get y = b then they-intercept is (0,b).

• To find the x-intercept, set y = 0 in the equation and solve for x. If we solve and get x = a then thex-intercept is (a,0).

Example 2.1.11 Find the x and y intercept of y =−2x−3.

Solution When in slope-intercept form, we can just get the value of b from the given equation. But when instandard form, we need to either write the equation in slope-intercept form or do what is explained above.

x-intercept:

0 =−2x−3→ 2x =−3→ x =−32

So, the x-intercept is (−32 ,0).

y-intercept:y =−2(0)−3→ y =−3

So, the y-intercept is (0,−3).

34

Page 35: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.1.5 Parallel and Perpendicular Lines

Sometimes, it is valuable for us to be able to find a line that is either parallel or perpendicular to a givenline. The important thing to note in each of these cases is the relationship between the slopes of the two lines.

Parallel lines have the property that they lie in the same plane but never touch or meet. Lines that areparallel necessarily have the same slope but a different y-intercept, since if the y-intercept was the same thenwould be the same line. By knowing two lines are parallel, we additionally only need one point that thesecond line passes through for us to be able to find the equation of the new line.

Example 2.1.12 Find the equation of the line parallel to y = 2x+1 that passes through the point (−1,−4).

Solution We are looking for the equation of the line that is parallel to y = 2x+1. So, we are roughly lookingfor the following line.

As we can see from the picture, any line parallel to the line y = 2x+1 must have the same slope. What weneed is the specific line that has the right y-intercept so that it will pass through the point (−1,−4).

y = mx+b

−4 = 2(−1)+b

−4 =−2+b

b =−2

So, taking the y-intercept to be (0,−2) gives the particular parallel line we are looking for, namely y= 2x−2.

From a given line, we can also find the equation of the line that is perpendicular to a given line. Perpen-dicular lines are those in that intersect at right (90o) angles. The slopes will not be the same here, however.Instead we need the slopes to be “opposites” of each other; that is, we need the slopes to be negative recip-rocals of each other. (For justification, see the section at the end of the chapter.)

35

Page 36: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 2.1.13 Find the equation of the line perpendicular to y =−3x+1 and passing through the point(3,−1).

Solution We are looking for the equation of the line that passes through y = −3x+ 1 that passes through(3,−1) and intersects the original line at a right angle.

Since the line we are looking for is perpendicular to our original line, we know that the slope has to be thenegative reciprocal of the slope of the given line. So, since the slope of the given line is −3, the slope of thenew line will be 1

3 . Knowing this, we can use our slope-intercept form of a line and the given point to findthe y-intercept and ultimately the equation of the line we want.

y = mx+b

−1 =13(3)+b

−1 = 1+b

b =−2

So, y-intercept is −2 and the equation we are looking for is y = 13 x−2.

If we wanted to plot these together, we could do so by hand or we could use the TI-series graphing calculator.

This would give us the pair of lines.

36

Page 37: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

When plotting these equations in the calculator, this is what we get. Notice that the two lines do not lookperpendicular even though the equations put in the calculator are supposed to be. This is because of the viewon the calculator screen. You have to be careful with perceptions when using the calculator. In order to geta more accurate view on the calculator screen, we can use the ZSquare option. Once the graph is on thescreen, press ZOOM and then select ZSquare.

Now the lines look perpendicular.

2.1.6 Standard Form ax+by = c

We are not always given the equation in slope-intercept form. Earlier it was mentioned that we want it inthis form because we can graph the line directly from the equation. The other way that we can express thesame line is in standard form. The equation is essentially the same, but some algebra is required to convertfrom one form to the other and we want no fractions in this form.

Example 2.1.14 Convert the equation y =−45 x+ 19

5 into standard form.

Solution We need to put the equation into standard form ax+by = c. To do this, we will first get rid of thefractions by multiplying by a common denominator and then rewriting by moving the terms to the correctsides.

y =−45

x+195

5y = 5(−45

x)+5(195)

5y =−4x+19

4x+5y = 19

Example 2.1.15 Convert the equation 2x+3y = 5 into slope-intercept form.

Solution We want our solution in the form y = mx+b. So we will use some algebraic steps to accomplishour goal.

2x+3y = 5

3y =−2x+5

y =−23

x+53

37

Page 38: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.1.7 Is the point on the line?

If we are given a linear function, then all points that satisfy that equation are said to be on the line. A line isa series of points that all have the relationship that the slope between any two points on the line is the same.If we want to see if a point is on a line, we need to substitute the x value into the equation and see if theanswer we obtain is the y value from the ordered pair. If it is the same then the point is on the line. If it isnot the same then it is not a point on the line.

Example 2.1.16 Determine if the point (3,12) is on the line y = 3x+4.

Solution If we substitute x = 3 into y = 3x+4, we get y = 3(3)+4 = 13 which is not equal to 12. Therefore,the point (3,12) is not on the line y = 3x+4.

Example 2.1.17 Determine if the point (4,−7) is on the line y =−2x+1.

Solution If we substitute x = 4 in to y = −2x+ 1, we get y = −2(4)+ 1 = −7. So, the point (4,−7) is onthe line y =−2x+1.

38

Page 39: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.1.8 Exercises

1. Put y = 25 x+1 into standard form.

2. Put y =−x+3 into standard form.

3. Put 17x+13y = 11 into slope-intercept form.

4. Put x− y−5 = 0 into slope-intercept form.

5. Find the x and y intercept of x− y = 3.

6. Find the x and y intercept of y =−23 x+6.

7. Find the x and y intercept of y =−6x.

8. Find the x and y intercept of x+5 = 0.

9. Determine if (1,1) is on the line 3x+5y = 15.

10. Determine if (−1,2) is on the line 2y+3x = 1.

11. Determine if (5,3) is on the line 13 x− 1

5 y =−1.

12. Determine if (4,6) is on the line y = 34 x+3.

13. The slope of a vertical line is .

14. The slope of a horizontal line is .

39

Page 40: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.2 Graphing Linear Functions

Now that we know how to obtain the equation of a linear function, there are many things we could do withthe function. We could determine if points are on the line. We could use the line to solve a word problem.Here we will concern ourselves with plotting linear functions. There will be three methods illustrated in thissection.

Note: If you are going to plot any line by hand, it is highly recommended that you use graph paper and aruler to make the lines straight and the points in the correct positions.

2.2.1 Plotting Using a t-chart

The first method for plotting a function is by finding some points that satisfy the equation and using thosepoints to determine the shape of the curve. In order to do so, we need to select some x values and determinethe corresponding y values. The common way to keep track of these points is by using a t-chart.

Example 2.2.1 Plot the linear function y = 2x+3.

Solution The first thing we need to do is set up a t-chart.

x y = 2x+3−3−2−1

0123

Now we need to find the value of the function at each of the points in the chart. We do so by substitutingeach of the x-values into the original equation.

x =−3 : y = 2(−3)+3 =−3

x =−2 : y = 2(−2)+3 =−1

x =−1 : y = 2(−1)+3 = 1

If we continue in this manner then the chart will give us seven points that are on the line y = 2x+3.

x y = 2x+3−3 −3−2 −1−1 1

0 31 52 73 9

Once we have these points, we can plot them

40

Page 41: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

and then draw the straight line that passes through the points.

Do we really need this many points to plot a linear function? To answer this, we need to ask ourselves howmany points are necessary to determine a straight line. The answer is two.

Example 2.2.2 Plot the linear function 2x−3y =−1.

Since this equation is in standard form, it will be easier for us if we convert it to slope-intercept form. Wedo not have to do this, since we could substitute x values into the equation in standard from, but then we willhave to perform a series of algebraic steps to solve for the y value. For convenience sake, we will write theequation first in slope-intercept form.

Solution We put the equation into slope-intercept form by using algebra, as we did in the last section.

2x−3y =−1

−3y =−2x−1

y =−2−3

x− 1−3

y =23

x+13

Now we find the value of the function for at least two x values. We will do so for x = 1 and x =−1.

x y = 23 x+ 1

3−1 −1

31 1

Now we plot the points as before and then draw a straight line through the points.

41

Page 42: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

When we are trying to plot whole numbers, we can get a pretty accurate graph. But when we are forced toplot fractions, we have to estimate where the points should be, even when we are using graph paper, and thiscan give us a representation that is not accurate. We have to keep this in mind when drawing graphs so thatwhen we are making the graphs to help us solve a problem, we do not rely solely on the picture.

2.2.2 Plotting Using Slope-Intercept Form

Another way we can plot a linear function is to use the values from the slope-intercept form and directlyplot the function. We know two important things when the function is in the form; we know the slope andthe y-intercept. This method has three steps.

1. Plot the y-intercept (0,b).

2. Plot a second point using the slope and thinking of it as riserun . We will, as a matter of convention,

always consider a negative in the slope to be part of the numerator. This means that a negative slopewill have a “downward rise”. The run will always be to the right.

3. Draw a straight line that passes through these two points.

Example 2.2.3 Graph the linear function y = 2x+3.

Solution We know from having the equation in slope intercept form that the y-intercept is the point (0,3)and the slope is m = 2.

1. Plot the y-intercept (0,3).

42

Page 43: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2. Plot a second point by using the slope but think of it as a “rise of 2” and a “run of 1”.

3. Draw a straight line passing through the two points.

Example 2.2.4 Graph the linear function −x−2y = 4.

Solution We first put the equation in slope-intercept form and then we can graph the line as we did in thelast example.

−x−2y = 4

−2y = x+4

y =−12

x−2

Now we can plot the point (0,−2)and then “rise −1” and “run 2” to the right.

2.2.3 Using the TI-Series Calculator

We can also use the calculator to graph out linear functions. To do this, we first press the Y= key. This isfound on the top right of the calculator, right below the screen. Then, on the line Y1, type the function, beingsure to use standard order of operations when applicable. Once that is done, press the GRAPH key and yourline will appear on the screen.

43

Page 44: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 2.2.5 Graph the linear function y =−23 x+ 4

5 .

Solution The following keystrokes on the calculator will produce the graph of our function.

Notice the parentheses around the minus sign. This is not the subtraction key, but instead the negative keyfound in the bottom row of the calculator.

We can also use linear functions to model some real life situations.

Example 2.2.6 Suppose that you buy a new car for $20,000. If the car depreciates at a rate of $3,500 peryear, write a linear equation that represents this situation and use its graph to help interpret the x-intercept.

Solution : If we let t represent the time in years then the car will be new at time t = 0. The price hereis $20,000, so the y-intercept of this function is (0,20000). Since the car depreciates at a rate of $3,500per year, the slope is m = −3500. So, the linear function that governs this situation would therefore beV =−3500t +20000, where V is the value of the car in dollars after t years. If we plot this linear function,we get

We can see here that the line crosses the t-axis somewhere close to 6 years. If we solve this algebraically,we can see almost exactly where it crosses the axis.

0 =−3500t +20000

3500t = 20000

t =200003500

≈ 5.71

So, the t-intercept is (5.71,0). The amount of time it takes for the car to have no value is approximately5.71 years.

44

Page 45: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.2.4 Exercises

1. Plot y =−2x+1 using a t-chart.

2. Plot y = 3x−2 using a t-chart.

3. Plot y = 12 x+2 using a t-chart.

4. Plot y =−x−1 using a t-chart.

5. Plot y =−3x−4 by using the slope and y-intercept.

6. Plot −3y = x by using the slope and y-intercept.

7. Plot y = 52 x+ 5

2 by using the slope and y-intercept.

8. Plot y =−2 by using the slope and y-intercept.

9. Plot y =−29 x+ 11

13 using the calculator.

10. Plot y =−x+ 3750 using the calculator.

11. Plot y = .27x− .527 using the calculator.

12. Plot y = .2079− .11x using the calculator.

45

Page 46: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.3 Finding the Intersection Point of Linear Functions

Now that we know how to find the equation of and how to graph a linear function, what are we to use thisfor? Our immediate reason is to solve problems using the method of linear programming. But before wecan do that, we need to learn how to find the intersection of a pair of lines.

2.3.1 How to Find the Intersection

The essential question here is this: if we have a pair of linear functions, how can we find the intersectionpoint. First note that there is only one point at which a pair of non-identical lines can intersect because thelines are straight. So we are looking for a point that is common to both lines.

Example 2.3.1 Find the intersection point of the linear functions y =−x+4 and y = 3x−8.

Solution If we graph the two functions together, we can get an idea of what the intersection point will be.To graph two functions together, we use any of the processes discussed earlier in this chapter for the firstequation and then repeat the process for the second equation and graph both lines on the same set of axes.When plotting them, we should get

Using the graph, we can approximate the point at which the lines intersect. In a case such as this when thex and y values are both integers we can get a pretty good estimate of the point, which is (3,1). But if thispoint does not have integer values, then estimating will not give us a good enough answer. Especially whenwe are dealing with real-life applications, approximations are not good enough. We need to get as close aswe can to the exact value. To do this we solve by setting the lines equal to each other.

Why does this work? If we want to find the intersection point of two lines, the point necessarily will be theonly ordered pair that both lines share. In other words, the x and y values will have to be the same at thatpoint and that point only. So, if the equations are y = m1x+b1 and y = m2x+b2, then we can find what weare looking for by solving for x algebraically in the equation m1x+b1 = m2x+b2.

Note: If the given lines are in standard form and we want to solve using this method, we first have to solvefor one of the variables. Where it is not wrong to write the equations in the form x = and solve, it is morecustomary to write the equations in the form y = to solve. The reason is because the equations will be inslope-intercept form so that we have them in a convenient way to plot them.

46

Page 47: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Here, we have y =−x+4 and y = 3x−8 so we want to know when −x+4 = 3x−8.

−x+4 = 3x−8

4x+4 =−8

4x = 12

x = 3

As we expected, we got the same x = 3. But now we need to find the corresponding y value. It does notmatter which equation we use since the y value will be the same for both.

y =−x+4

y =−3+4

y = 1

Again, as we expected, we got the y value we were looking for and an intersection point of (3,1).

Another way we can ask this same question is by asking for the solution to a system of equations. A systemof equations is simply multiple equations for which we want to find common points between the lines inquestion. This common point will be called a solution.

Example 2.3.2 Find a solution to the given system of equations.{y = 3x+2y =−2x+1

Solution The solution to this system is found by setting the equations equal to each other, as we did before.

3x+2 =−2x+1

5x+2 =−1

5x =−1

x =−15

Now we need to find the corresponding y value.

y = 2x+1

y =−2(−1

5

)+1

y =25+1

We need a common denominator, so ...

y =25+

55

y =75

The solution to this system is the point (−15 ,

75)

47

Page 48: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 2.3.3 Supply and Demand

When discussing supply and demand curves, we will use p for the y value and q for the x value. The p willrepresent price and q will represent quantity.

A supply curve is the equation that relates the price p that the manufacturer will sell the product for atquantity q. The greater the supply, the higher overall the price must be since it will cost the manufacturermore to make more items. The demand curve is the equation that relates the price p that the manufacturermust charge for a product when there are q units available. The greater the quantity the lower the price mustbe for the consumers to buy it. It is desirable for manufacturers to know what the “market price” is. Thatis, they want to know how much to charge per item and what quantity to produce so that they will exactlycover production costs. Companies use this information, along with other factors, to determine how manyitems to produce to maximize profit or to minimize costs. We will add in more parameters in Chapter 3, butfor now we will focus only on this break even point.

Suppose the supply curve for a particular product is given as p = .002q+1, where q is in dollars. For thissame product, the demand curve is given as p =−.001q+4. We want to find what the market price shouldbe.

Solution The solution is found by solving the system of equations{p = .002q+1p =−.001q+4

To solve this, we do as we did in the previous examples and set the equations equal to each other.

.002q+1 =−.001q+4

.003q+1 = 4

.003q = 3

q = 1000

So, for this product, the quantity at which the supply and demand curves meet is 1000 units. To determinehow much it will cost per item, we substitute this quantity into either curve.

p = .002q+1

p = .002(1000)+1

p = 2+1 = 3

To produce 1000 items, the cost per item will be $3.

48

Page 49: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.3.2 Do We Have to Have an Intersection?

It was stated earlier that if distinct lines intersect, they will do so at exactly one point. But this is not theonly thing that can happen, as we will see in the next two examples.

Example 2.3.4 Find a solution to the given system of equations.{y = 3x+1y = 3x+2

Solution When we set these two equations equal to each other, we get

3x+1 = 3x+2

1 6= 2

This is certainly impossible and what it really means is that the two lines do not intersect, which in turnmeans that the lines are parallel. Notice that they have the same slope but a different y-intercept. Youranswer here would be that there was no solution.

Example 2.3.5 Find a solution to the given system of equations.{y = 3x+12y = 6x+2

Solution When we divide each term of the second equation by 2 so that we have slope-intercept form, wesee that the two lines are identical. This means that any point on one line will be on the other line, and sincea line is comprised of an infinite number of points, we have an infinite number of solutions.

49

Page 50: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.3.3 Exercises

For each of the exercises below, find the point of intersection of the sets of lines, if one exists.

1. y = 2x+1 and y =−x+10

2. y =−3x+2 and y =−x+1

3. y = x+1 and y = x+2

4. y = 12 x+1 and y =−3

2 x+3

5. y = .3x+1.2 and y =−.2x+3.7

6. y = 12 x and y = 2

3 x

7. y = 23 x+1 and y = 3

5 x−2

8. x+ y = 2 and x+2y = 2

9. x−2y =−6 and −12 x+ y = 3

10. −2x+ y = 23 and −11x+ y = 27

50

Page 51: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.4 Graphing Inequalities

A linear inequality is similar to a linear function in that we plot the lines in the exact same manner. Thedifference is that instead of the line being the solution, the solution is the line and the region of the planethat satisfies the inequality. To see how this works, consider the inequality y≤ 2x+1. We graph the line inthe usual manner.

The difference comes in because of the inequality sign. We do not only want all points that satisfy y= 2x+1,but also all points that are less and or equal to 2x+1. That is, if we choose a point, say (3,1), does the pointsatisfy the inequality? To see, we substitute into the inequality and see if it is true.

y≤ 2x+1

1≤ 2(3)+1

1≤ 7

This is certainly true, so the point (3,1) is also part of the solution along with the line y = 2x+1.

If we want all of the solution points, it would be impossible to do this for all possible points that wouldsatisfy the equation. But all points that satisfy the inequality will be on the same side of the line as thepoint (3,1). Now, in many texts, you are instructed to shade the side of the line that is the solution of theinequality. Here, however, we will shade the side of the plane that is not the solution. The reason is thatwhen we are looking for the solution set for a number of inequalities, it is sometimes too difficult to see whatthe solution is because we would need to look at the intersection of all of the shadings. With the calculator,this can be produced without confusion but on paper it is extremely difficult. So, we will shade the oppositeside, as in the graph below.

51

Page 52: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 2.4.1 Graph the inequality y≥−x+3.

Solution We first plot the line y =−x+3.

Then we want to shade the side that is not part of the solution. In order to determine which side of the line toshade, we can use a “test point”; that is, we can pick any point we want and see if it satisfies the inequality.If the point makes the inequality false then shade that side. If the point makes the inequality true then weknow not to shade the side that the point is on. The only problem with this method is if the point we chooseis on the line. The inequality will be true, but we still will not know which side to shade. An easy point touse to test is the origin (0,0) as long as this is not the y-intercept. (If it is then select another point - I suggest(0,1) or (1,0)).

y≥−x+3

0≥−(0)+3

0≥ 3

This is clearly not true, so we know the side to shade is the side containing the origin because we are shadingthe side that is not true for our purposes.

Example 2.4.2 Graph the system of linear inequalities.{y≥ 3x−1y≤ x+2

52

Page 53: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Solution First we graph the two lines as before.

Now we need to decide which side to shade. Since the origin is not on either of the lines, we can use that asour test point for both of them.

y≤ x+2→ 0≤ 0+2→ 0≤ 2

y≥ 3x−1→ 0≥ 3(0)−1→ 0≥−1

Both of these are true. So, in both cases, we will shade the region that does not contain the origin. In thecase of y≥ 3x−1, we shade below the line.

In the case of y≤ x+2, we shade above the line.

The solution to the system of inequalities is therefore the region that is not shaded. This is the region thatsimultaneously satisfies both of the inequalities. We call this set of points that satisfies all of the inequalitiesat the same time the feasible set.

Example 2.4.3 Graph the system of linear inequalities.2x+ y≥ 4x+ y≥ 2x+4y≥ 4x≥ 0,y≥ 0

53

Page 54: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Solution Notice two things that are different in this example than before. First, the inequalities are instandard form. Before we can plot the lines, we need to put each of the first three into slope-intercept form.The second thing that is different is the last two constraints. In practical applications, it is not realistic tohave negative quantities or prices, so we often restrict our x and y values to be nonnegative.

2x+ y≥ 4x+ y≥ 2 ⇒x+4y≥ 4x≥ 0,y≥ 0

y≥−2x+4y≥−x+2y≥−1

4 x+1x≥ 0,y≥ 0

Now we want to plot the three linear functions associated with the linear inequalities, as before.

Now we use a test point to see which side of the lines to shade. Since the origin is not on any of the lines,we can use the point (0,0) as the test point.

0≥−2(0)+4→ 0≥ 4

0≥−(0)+2→ 0≥ 2

0≥−14(0)+1→ 0≥ 1

Since these are all false, we shade the region that includes the point (0,0).

Notice that we didn’t “plot” x≥ 0 and y≥ 0. We included this in the solution, however, as if x and y cannotbe negative, we are in the first quadrant and our graph reflects this.

Example 2.4.4 Graph the system of linear inequalities.−3x+ y≤ 02x+ y≤ 5x+ y≤ 3x≥ 0,y≥ 0

54

Page 55: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Solution Just like before, we need to start by putting the inequalities in slope-intercept form.

−3x+ y≤ 02x+ y≤ 5 ⇒x+ y≤ 3x≥ 0,y≥ 0

y≤ 3xy≤−2x+5y≤−x+3x≥ 0,y≥ 0

Now we plot the linear equations related to these linear inequalities. Notice again that we are restricted tothe first quadrant since both x and y are nonnegative.

Now we use a test point to see which side of each line we need to shade. First we will check the second andthird inequalities using the point (0,0).

0≤−2(0)+5→ 0≤ 5

0≤−(0)+3→ 0≤ 3

So, in both cases we shade the region that does not include the origin since both are true and we want toshade the part of the plane that does not satisfy the inequality.

We cannot use the origin to test the other inequality, however, because the line y = 3x passes through theorigin. We can use any point that is not on the line y = 3x. Since we want to use an “easy” point, we willuse (1,0).

y≤ 3x→ 0≤ 3(1)→ 0≤ 3

To finish off the problem we shade the side of the line y = 3x that does not contain the point (1,0).

55

Page 56: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.4.1 Exercises

1. Graph y≤ 3x+2.

2. Graph 12 x− 1

5 y≤ 1.

3. Graph x≤ 2y.

4. Graph x≥−3.

5. Graph the feasible set for y≤ 3x−6.

6. Graph the feasible set for {x+2y≥ 122x+ y≥ 3

7. Graph the feasible set for x+ y≥ 4x+2y≥ 6x≥ 1

8. Graph the feasible set for x+6y≤ 12x+ y≤ 9x≥ 0,y≥ 0

9. Determine if (2,4) is above or below y = 3x+7.

10. Determine if (7,1) is above or below x = 5y+3.

11. Determine if (3,2) is above or below 5x−7y = 3.

12. Determine if (−2,3) is above or below 10+3x+4y = 1.

13. What is meant by the term “feasible set”?

56

Page 57: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.5 Justification of Slopes of Perpendicular Lines

We know that the slopes of perpendicular lines are negative reciprocals. But why is this so? Suppose wehave two perpendicular lines that intersect at the origin.

At the point where x = 1, each line has risen (or fallen) exactly the value of the slope. So, at x = 1, they-coordinate of l1 is m1 and the y-coordinate of l2 is m2, where m1 and m2 are the slopes of lines l1 and l2,respectively.

These two lines are only perpendicular if the triangle above satisfies the Pythagorean theorem, which saysthat in any right triangle the sum of the squares of the legs is equal to the square of the hypotenuse. Wegenerally express this as a2 +b2 = c2.

In order to apply this, we need to find the distance between the vertices of the triangle and then substitutethose values into the relation above.

Distance between (0,0) and (1,m1): a2 =(√

(1−0)2 +(m1−0)2)2

= 1+m21

Distance between (0,0) and (1,m2): b2 =(√

(1−0)2 +(m2−0)2)2

= 1+m22

Distance between (1,m2) and (1,m1): c2 =(√

(1−1)2 +(m2−m1)2)2

= (m2−m1)2

This gives the following :

a2 +b2 = c2

1+m21 +1+m2

2 = (m2−m1)2

2+m21 +m2

2 = m22−2m1m2 +m2

1

2 =−2m1m2

− 1m1

= m2

That is, the slopes are negative reciprocals of each other.

57

Page 58: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

58

Page 59: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Chapter 3

Applications of Linear Functions

59

Page 60: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

60

Page 61: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

3.1 Linear Programming: The Set-up

3.1.1 What Is Linear Programming?

When we are faced with real life problems, we can use the method of linear programming to find the mini-mal cost or maximal output. Simply put, linear programming is a method of problem solving. We will solveword problems with two variables graphically using linear programming and in the next chapter we willdiscuss how to use linear programming to solve problems with more than two variables.

We will begin in this section by learning how to extract the information we need from the word problem andtake the problem through to the graph. In the next section, we will look at how to take the problem from thebeginning through the graph to the optimal solution.

3.1.2 What Are We Looking For?

When reading a problem, we are looking for information that gives us restrictions on such things as time,hours and the amount of raw materials we have at our disposal. We are also looking for the object function;that is, the expression that we want to optimize. The wording of the problem will tell us if we are looking tomaximize or minimize the object function. Let’s begin with a word problem. While doing this problem, wewill number all of the steps we need to solve the problem. Remember, though, that we will just be settingup the problem here.

Example 3.1.1 The most popular candy bar sold by the Lampes Candy Company combines peanuts andalmonds. For a given month, at least 20 tons of nuts are needed to make enough candy bars to fill all of theorders. The company is tinkering with the formula, but they know that they want to have at least twice asmany almonds as peanuts. Peanuts cost $225 per ton and almonds cost $325 per ton. How much of eachshould be used to minimize cost?

Solution We will set this problem up in steps.

1. Make sure you know what you are looking for.We are looking to minimize the cost.

2. Define the variables.

Let x = the amount of peanuts.

Let y = the amount of almonds.

3. Write out all constraints.The amount of nuts we need is at least 20 tons, and we know we want at least twice as many almondsas peanuts (by weight), so we have

x+ y≥ 20

y≥ 2x

We also have the constraints that we cannot have a negative amount of either type of nut, so we knowthat x≥ 0 and y≥ 0.

61

Page 62: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4. Write out the object function; that is, the function to be optimized.We want to minimize cost and we are given the cost of the nuts per ton, so we have C = 225x+325y.This equation is separate from the constraints, so it will not be graphed with the others. It might be agood idea to isolate it by boxing it or putting a star next to it.

5. Put all of the constraint equations in slope-intercept form.

x+ y≥ 20y≥ 2x =⇒x≥ 0,y≥ 0

y≥−x+20y≥ 2xx≥ 0,y≥ 0

6. Graph the system of inequalities.

Example 3.1.2 The Lampes Candy Company has two providers for the cocoa plant, one foreign and onedomestic. In order to keep the factory in operation, at least 4 tons of cocoa plant must be processed perweek. The foreign plants cost $200 per ton to process and the domestic plants cost $120 per ton to process.Costs must be kept below $960 per week. The FDA requires that the amount of domestic plants processedcannot exceed twice the amount of foreign plants. If the foreign cocoa plants yield 25 lbs of chocolate perton and the domestic plants yield 30 pounds of chocolate per ton, how many tons of cocoa plants from eachsource should be processed each week in order to maximize the chocolate produced?

Solution We will follow the same steps as in the last example.

1. Make sure you know what you are looking for.We are looking to maximize the amount of chocolate produced.

2. Define the variables.

Let x = the number of tons of foreign cocoa plants.

Let y = number of tons of domestic cocoa plants.

3. Write out all constraints.The factory must process at least 4 tons of cocoa plants per week, so we have x+y≥ 4. The total costmust be kept below $960, so 200x+120y≤ 960. We also have a restriction on the amounts of foreignand domestic plants in relation to each other. This gives us the constraint y ≤ 2x. We also have theconstraints that we cannot have a negative amount of either type of plant, so we know that x ≥ 0 andy≥ 0.

62

Page 63: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4. Write out the object function; that is, the function to be optimized.We want to maximize the amount of chocolate produced, so the function we want to optimize isP = 25x+30y.

5. Put all of the constraint equations in slope-intercept form.

x+ y≥ 4200x+120≤ 960 =⇒y≤ 2xx≥ 0,y≥ 0

y≥−x+4y≤−5

3 x+8y≤ 2xx≥ 0,y≥ 0

6. Graph the system of inequalities.

Example 3.1.3 A farmer has 12 acres on which to plant corn and wheat. He knows he wants to plant atleast 8 acres of land but he has only $2700 to spend and it costs $200 per acre to plant corn and $300 peracre to plant wheat. Plus, he only has 15 hours to get all of the planting done and it takes twice as long toplant corn as it does wheat. If he makes a profit of $400 per acre of corn and $250 per acre of wheat, howmany acres of each should he plant in order to maximize profit?

Solution Once again, we will follow the same steps.

1. Make sure you know what you are looking for.We are looking to maximize profit.

2. Define the variables.

Let x = the acres of corn.

Let y = the acres of wheat.

3. Write out all constraints.The farmer has to plant at least 8 acres of land but he only has 12 acres on which to plant, so

x+ y≥ 8

x+ y≤ 12

63

Page 64: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

There is also a time constraint; he has only 15 hours to plant all of the crops and we know it takestwice as long to plant corn. This gives 2x+ y ≤ 15. Finally, there is a cost associated with plantingeach type of crop but there is a limit on the money available to plant. So, 200x+ 300y ≤ 2700. Wealso have the constraints that we cannot have a negative amount of either type of crop, so we knowthat x≥ 0 and y≥ 0.

4. Write out the object function; that is, the function to be optimized.We want to maximize profit, so the object function is P = 400x+250y.

5. Put all of the constraint equations in slope-intercept form.

x+ y≥ 8x+ y≤ 122x+ y≤ 15 =⇒200x+300y≤ 2700x≥ 0,y≥ 0

y≥−x+8y≤−x+12y≤−2x+15y≤−2

3 x+9x≥ 0,y≥ 0

6. Graph the system of inequalities.

64

Page 65: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

3.1.3 Exercises

For problems 1-4, graph the system of inequalities to find the feasible set.

1. x+ y≤ 44x+2y≤ 12x≥ 0,y≥ 0

2. 32 x+ 1

2 y≥ 24x+6y≥ 10x≥ 0,y≥ 0

3. x+ y≥ 12x+3y≤ 6x≥ 0,y≥ 0

4. 2x+2y≤ 203x+3y≥ 122x+4y≤ 24x≥ 0,y≥ 0

5. Explain why the given system has no solution.2x+4y≤ 24y≥ 7x≥ 0,y≥ 0

6. The Lampes Shipping Company has two different sizes and weights for its shipping crates. Each crateof type 1 is 100 cubic feet and weighs 400 pounds, and each crate of type 2 is 20 cubic feet and weighs720 pounds. The Lampes Shipping Company charges $75 per crate of type 1 and $100 per crate fortype 2. The crates will be shipped by truck and each truck has a maximum load of 14,400 pounds and2000 cubic feet.

(a) Fill in the accompanying chart.

Type 1 Type 2 Truck CapacityVolumeWeightCharge

(b) Let x be the number of crates of type 1 and let y be the number of crates of type 2 being shippedin one truck. Use the table to write the constraint equations and also any other constraints thatthere are.

(c) Write the object function for this problem.

(d) Graph the feasible set for this problem.

65

Page 66: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

7. The Providence Grays Vintage Base Ball Club makes two kinds of bats: the Burlingame and theHickory. They can turn up to 400 Burlingames and 500 Hickorys per year, but can only make 650bats total per year. It takes 20 man hours to produce a Burlingame and 40 man hours to produce aHickory and the team has 22,000 man hours per year to make bats. The profit on the bats is $40 for aBurlingame and $60 for a Hickory.

(a) Write constraint equations for this problem, letting x represent the number of Burlingames andy represent the number of Hickorys.

(b) the profit function in terms of x and y.

(c) Graph the feasible set.

66

Page 67: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

3.2 Linear Programming: Maximization and Minimization

We will approach this section by progressively adding more steps to the problem until we can start with aword problem and end with the quantities that optimize the situation. Last section we learned how to beginthe problem but we stopped after the graphing of the feasible set. We next need to figure out what to dowith the feasible set to get the x and y values to optimize the situation. We will first learn what to do withthe points we obtain from the feasible set, then take a step back and learn how to find those points, and thenfinally we will put this section together with the last one to see how to solve a problem from the beginning.

3.2.1 Optimizing Given Lines and Points

Example 3.2.1 Use the given feasible set to maximize the object function 2x+3y.

Solution The way we determine which x and y values maximize (or minimize) an object function is bysubstituting the values into the object function and see which values give us the largest or smallest value, asthe case may be. Here we are looking to maximize 2x+3y, so we are looking for which ordered pair makesthis expression the largest. One way we can organize this is to make a table.

Point 2x+3y Value(0,9) 2(0)+3(9) 27(2,7) 2(2)+3(7) 25(4,4) 2(4)+3(4) 20(5,0) 2(5)+3(0) 10

Since 27 is the largest value in the rightmost column, the ordered pair (0,9) maximizes the expression2x+3y.

Where did these points come from? When we are dealing with a word problem, we are not going to be giventhe points. Rather, we will need to find them from the equations we will be working with. The next exampleshows us how to do this by using the concept of the intersection of a pair of lines that we learned about inchapter 1.

67

Page 68: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 3.2.2 Minimize the object function 5x+ y using the information obtained from the given feasibleset.

Solution We need to find the points at the corners of the feasible set so that we can substitute them into theobject function as we did in Example 1. To do so, we find where the appropriate lines intersect; that is, wefind where the lines intersect that make a corner of the feasible set. If the intersection does not occur inthe feasible set, we do not care about that point because it cannot possibly provide the optimal point for thegiven situation. (The reason why the expression is optimized at a corner of the feasible set will be explainedshortly.)

To find the values, we consider the equations associated with the inequalities above. For each pair of linesthat intersect to make a corner of the feasible set, set the lines equal to each other to find the x-coordinate.Once we have the x-value, we can find the associated y-value by substituting the value we just found intoeither of the linear functions. We have four points to identify for this feasible set; there are two pairs of linesthat intersect, one x-intercept and one y-intercept.

Point 1 is the y-intercept of y =−2x+10. This point is (0,10).

Point 2 is the x-intercept of y =−12 +4. This is the point where y = 0.

y =−12+4

0 =−12+4

12

x = 4

x = 8

So, this vertex of the feasible set is (8,0).

68

Page 69: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Point 3 is the intersection of the lines y =−2x+10 and y =−x+7.

−2x+10 =−x+7

−x+10 = 7

−x =−3

x = 3

By substituting this into either equation we get y = 4, giving the vertex of the feasible set as (3,4).

Point 4 is the intersection of the lines y =−x+7 and y =−12 x+4.

−x+7 =−12

x+4

−12

x+7 = 4

=12

x =−3

x = 6

By substituting this into either of these equations we get y = 1, giving the vertex of the feasible set as(6,1).

Now that we have the vertices of the feasible set, we can set up a chart to determine which point minimizesthe object function.

Point 5x+ y Value(0,10) 5(0)+10 10(8,0) 5(8)+0 40(3,4) 5(3)+4 19(6,1) 5(6)+1 31

Since the minimum value is 10, the point that minimizes 5x+ y is (0,10).

3.2.2 Why the Vertices Are the Only Points We Care About

Let’s say we want to optimize the expression ax+ by and the feasible set is given below. (Whether we areminimizing or maximizing, the explanation is the same.) Let us call the value that optimizes the expressionM. If we put into slope intercept form, we get M = ax+by.

y =−ab

x+Mb

Notice that no matter what the optimizing value is, the slope of the object function is always the same.

69

Page 70: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

The only thing that changes is the value of M because the slope is always the same. In order to find whatvalue optimizes the situation, we “slide” the object function to the feasible set until they intersect.

The value of M that gives the y-intercept of the line that intersects the feasible set is the optimizing value.The first place that the object line touches the feasible set is at a corner. Consequently, the only points weconsider when optimizing are the corners of the feasible set.

3.2.3 More Involved Examples

Example 3.2.3 Maximize 3x+ y subject to the constraintsy≤−x+3y≤−2x+5x≥ 0,y≥ 0

Solution Since all of the inequalities are in slope-intercept form, we can go right to the plot so that we canfind the vertices of the feasible set.

There are three corners to this feasible set.

Point 1 is the y-intercept of y =−x+3, which is (0,3).

Point 2 is the x-intercept of y =−2x+5, which is (52 ,0).

Point 3 is the intersection of y =−x+3 and y =−2x+5.

−x+3 =−2z+5

x+3 = 5

x = 2

Substituting this into either equation gives the point (2,1).

70

Page 71: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Testing these points gives

Point 3x+ y Value(0,3) 3(0)+3 3(2,1) 3(2)+1 7(5

2 ,0) 3(52)+0 15

2

The expression 3x+ y attains it’s maximum value of 152 at the point (5

2 ,0).

Example 3.2.4 Minimize 2x+3y subject to the constraintsx+4y≥ 122x+ y≥ 10y≤ 2xx≥ 0,y≥ 0

Solution We first need to put these inequalities in slope-intercept form so that we can plot the feasible set.

x+4y≥ 122x+ y≥ 10 =⇒y≤ 2xx≥ 0,y≥ 0

y≥−1

4 x+3y≥−2x+10y≤ 2xx≥ 0,y≥ 0

Now that we have the inequalities in the correct form, we can plot them to see what the feasible set lookslike.

There are three corners for this feasible set; there are two intersections of lines and one x-intercept. Noticehere that the y-intercepts of each of the three lines lie outside the feasible set and therefore are not considered.

Point 1 is the x-intercept of y =−14 x+3. This intercept is the point (12,0).

Point 2 is the intersection of y =−14 x+3 and y =−2x+10.

−14

x+3 =−2x+10

74

x+3 = 10

74

x = 7

x = 4

Substituting this value into either of the associated equations gives the point (4,2).

71

Page 72: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Point 3 is the intersection of the lines y = 2x and y =−2x+10.

2x =−2x+10

4x = 10

x =52

Substituting this into either of the equations gives the point (52 ,5).

Now that we have the corners of the feasible set we need to test the points to see at which point we attainthe minimum value.

Point 2x+3y Value(12,0) 2(12)+3(0) 24(5

2 ,5) 2(52)+3(5) 20

(4,2) 2(4)+3(2) 14

The minimum value of 14 is attained at the point (4,2).

3.2.4 Word Problems

Example 3.2.5 The Providence Grays Vintage Base Ball Club makes two different types of baseballs. Oneball has a figure eight cover and the other has a tulip stitch cover. The figure eight ball requires 1 hour tocut the leather, 2 hours to wind the ball and 2 hours to stitch on the cover. The tulip stitch ball requires 1hour to cut the leather, 3 hours to wind the ball and 1 hour to stitch on the cover. The figure eight ball sellsfor $20 each and the tulip stitch ball sells for $18. The Grays have a maximum of 70 hours per month tospend on cutting leather, 180 hours to spend on winding and 120 hours to spend on covering the baseballs.If the cost of the materials is the same for each type of balls, how many of each type of ball should be madeeach month to maximize revenue?

Solution In order to organize the data we have, it is sometimes helpful to create a table.

Cutting Winding Covering PriceFigure Eight 1 2 2 20Tulip Stitch 1 3 1 18

Hours/Month 70 180 120

Now, we need to assign variables to each of the baseballs. Although we could use any letter we want torepresent them, for simplicity’s sake, let x represent the number of figure eight baseballs and let y representthe number of tulip stitch baseballs. From the table, we can now write out constraint inequalities and ourobject function.

Our task is to find the amount of each type of ball we want to produce to maximize revenue and we knowhow much each ball sells for. This gives us an object function of P = 20x+18y. We have that it takes 1 hourto cut the leather for each type of ball and a maximum of 70 hours to spend on this task, so we get x+y≤ 70.It takes 2 hours to wind the figure eight ball and 3 to wind the tulip stitch ball and we have a maximum of180 hours allotted for winding, so we get 2x+ 3y ≤ 180. Finally, it takes 2 hours to cover the figure eightball and only 1 hour to cover the tulip stitch ball and we have 120 hours for this task, so our third constraintinequality is 2x+ y ≤ 120. Since we are talking about a real-life situation, it is not reasonable to consider

72

Page 73: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

a negative number of either type of ball being produced, so we additionally have the constraints x ≥ 0 andy≥ 0.

We now need these inequalities to be written in slope-intercept form so that we can plot them to determinethe feasible set.

x+ y≤ 702x+3y≤ 180 =⇒2x+ y≤ 120x≥ 0,y≥ 0

y≤−x+70y≤−2

3 x+60y≤−2x+120x≥ 0,y≥ 0

Plotting these and shading appropriately gives us the following feasible set.

There are four corners to this feasible set.

Point 1 is the y-intercept of y =−23 x+60, which is (0,60).

Point 2 is the x-intercept of y =−2x+120, which is (60,0).

Point 3 is the intersection of y =−23 x+60 and y =−x+70.

−23

x+60 =−x+70

13

x+60 = 70

13

x = 10

x = 30

Substituting this into either equation yields the point (30,40).

Point 4 is the intersection of y =−x+70 and y =−2x+120.

−x+70 =−2x+120

x+70 = 120

x = 50

When we substitute this x-value into either equation, we get the ordered pair (50,20).

73

Page 74: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Now that we have all of the corners of the feasible set, we need to test the points to see which one maximizesthe revenue.

Point 20x+18y Value(0,60) 20(0)+18(60) 1080(60,0) 20(60)+18(0) 1320(30,40) 20(30)+18(40) 1360(50,20) 20(50)+18(20) 1200

So, the maximum revenue of $1360 is attained when 50 figure eight baseballs and 20 tulip stitch balls areproduced and sold.

Example 3.2.6 The Grassy Knoll Lawnmower Company makes two kinds of lawnmowers, the “Mulcher”and the “Bagger”, in two production plants. The Boston plant produces 32 Mulchers and 40 Baggers in oneweek, while the Newport plant produces 24 Mulchers and 40 Baggers per week. An order is received for192 Mulchers and 280 Baggers. It costs $2000 per week to operate the Boston factory and $1600 per weekto operate the Newport factory. How many weeks should the manufacturer operate each factory to fill theorder at minimum cost?

Solution Like the last problem, we will begin with a chart to organize the data we are given in the problem.

Boston Newport OrderMulcher 32 24 192Bagger 40 40 280

Cost/Week $2000 $1600

We will label the number of weeks that the Boston factory is open as x and use y for the number of weeks thatthe Newport factory will be open. This gives us the object function C = 2000x+1600y. We have followingconstraints:

32x+24y≥ 19240x+40y≥ 280x≥ 0,y≥ 0

As before, we need to write these in slope-intercept form.32x+24y≥ 19240x+40y≥ 280 =⇒x≥ 0,y≥ 0

y≥−4

3 x+8y≥−x+7x≥ 0,y≥ 0

Now we plot our constraints so that we can find the corners of our feasible set.

74

Page 75: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

As we can see from the figure, there are three corners to the feasible set.

Point 1 is the y-intercept of the line y =−43 x+8, which is the point (0,8).

Point 2 is the x-intercept of the line y =−x+7, which is the point (7,0).

Point 3 is the intersection of y =−43 x+8 and y =−x+7.

−43

x+8 =−x+7

8 =13

x+7

1 =13

x

3 = x

Substituting this into either equation gives the point (3,4).

Now we test these points to see which minimizes our cost function.

Point 2000x+1600y Value(0,8) 2000(0)+1600(8) 12800(3,4) 2000(3)+1600(4) 12400(7,0) 2000(7)+1600(0) 14000

This gives a minimum cost of $12,400 when the Boston factory is operated for 3 weeks and the Newportfactory is operated for 4 weeks.

75

Page 76: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

3.2.5 Exercises

For problems 1-3, graph the system of inequalities and find the corners of the feasible set. You are not givenan object function here, so you are not trying to optimize here.

1.

x+ y≤ 102x+ y≤ 82x+2y≥ 4x≥ 0,y≥ 0

2.

x+ y≤ 202x+ y≤ 25x≤ 10x≥ 0,y≥ 0

3.

3x+2y≤ 722x+4y≤ 80x≤ 20x≥ 0,y≥ 0

4. Minimize 2x+5y subject to the constraints4x+2y≤ 2412 x+ 1

2 y≤ 52x+2y≥ 8x≥ 0,y≥ 0

5. Maximize 3x+5y subject to the constraints4x+ y≤ 123x+3y≥ 6y≤ 8x≥ 0,y≥ 0

6. Minimize 3x+5y subject to the constraints4x+ y≤ 123x+3y≥ 6y≤ 8x≥ 0,y≥ 0

7. Maximize 2x+3y subject to the constraintsx+ y≥ 102x+4y≤ 244x+2y≤ 24x≥ 0,y≥ 0

8. The Lampes Watch Company makes two stopwatches, one regular and one specifically for runners.There are 12 hours available per day on the assembly line and 18 hours available per day at thepackaging center. Each regular watch takes 2 hours of assembly and 2 hours to package. Eachrunner’s watch takes 1 hour to assembly but 3 hours to package. If the profit from each runner’s watchis $70 and is $60 from each regular watch, how many of each should be made to maximize profit?

9. A new diet fad requires at least 90 units of protein, no more than 180 units of sodium and no morethan 120 units of sugars. From each serving of the energy bar, the consumer gets 45 units of protein,45 units of sodium and 15 units of sugars. From each serving of the energy drink, the consumer gets30 units of protein, 30 units of sodium and 30 units of sugars. If the energy bar costs $2.00 and theenergy drink costs $1.80, how many of each can you buy while keeping the cost at a minimum?

76

Page 77: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

10. The Bailey Cat Food Company makes its food out of lamb and rice. Lamb has 10g of protein and 5gof fat per ounce. Rice has 2g of protein and 2g of fat per ounce. A bag of cat food must contain atleast 200g of protein and 150g of fat. If lamb costs $0.10 per ounce and rice costs $0.01 per ounce,how many ounces of each should be used in each bag of cat food in order to minimize cost?

77

Page 78: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

3.3 Linear Programming on the TI-84

If you have a TI-84, you can minimize or maximize using the Inequalz application. We still have to set theproblem up in the same manner as before, but once we reach the point where we have the constraints inslope-intercept form and are ready to graph, we can do the rest on the calculator. The procedure will be thesame for any of the problems we do. So, to show you that we will get the same solution using this method,we will illustrate this by solving an example from the previous section.

Example 3.3.1 Minimize 2x+3y subject to the constraintsx+4y≥ 122x+ y≥ 10y≤ 2xx≥ 0,y≥ 0

Solution We first need to put these inequalities in slope-intercept form so that we can plot the feasible set.

x+4y≥ 122x+ y≥ 10 =⇒y≤ 2xx≥ 0,y≥ 0

y≥−1

4 x+3y≥−2x+10y≤ 2xx≥ 0,y≥ 0

Now, press the APPS key, then scroll down to Inequalz and press Enter. The screen should look like this:

When you press a key, the screen looks similar to the way it does when you press Y=, but it has the optionsabout inequalities versus equality on the screen when you put the cursor on the equals sign.

Now we can input the functions just as we would if we were graphing the equation, but we can include theinequality too. In order to activate the inequalities, press the ALPHA key and then the appropriate key inthe top row.

For our example, we can begin by putting in the linear functions that pertain to the inequalities we will beusing (just as we would have in the regular graphical mode). We want to include the constraint. We cando this by putting a “0” for equation Y4. After you finish with the linear equations, put the cursor over theequals sign on the Y1 line. The screen should look like this:

78

Page 79: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

We now include the inequality symbols using the ALPHA key and then the appropriate other key. Forexample, for the first equation, we use the keys ALPHA then GRAPH to get the correct inequality. Whenwe do so for all four of them, the screen should now look like this:

Notice now that there is a “X=” in the upper right corner of the screen on which you input the functions.

Move the cursor to here and press ENTER. The screen will look like this:

This is where we can put in our x constraints. We only have the one in this case, so when that is put in, thescreen will look like

Once we have all of the constraints in, we now want to look at the plot of these inequalities. Before doingso, however, we need to make sure the window is of the correct restrictions to show what we want it to. Forthis example, try the following values (you can edit them by pressing the WINDOW key).

79

Page 80: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

This will give the following plot:

This doesn’t appear to be all that helpful. However, by using the Shades command (on the screen) we canmake this feasible set much easier to see. To use this, press ALPHA then WINDOW. This brings up a newmenu.

The option we want here is the intersection of the inequalities, so press the 1 key. This will only give uswhere all of the inequalities coincide; that is, it will give us the feasible set.

If the only thing we could do with this was to get a clear picture of the feasible set, then it would beworthwhile, but there is more that we can do to help us solve the problem more quickly. We can usethe calculator to find the corners of the feasible set and also to evaluate those points with respect to theobject function. To find the vertices of the feasible set, we use the PoI-Trace function. To activate this, pressALPHA then ZOOM. One of the points of intersection (corners of the feasible set) will now have a blinkingx and a little circle over it. Save this point to lists called INEQX and INEQY by pressing the STO key. Thescreen will look like this when it is confirmed:

80

Page 81: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Repeat this process for the other two corners of the feasible set by using the arrows to maneuver to the otherdesired points and then press the STO key. Once done, press the STAT key and select EDIT. The followingspreadsheet will appear:

In the two columns are the three corners from the feasible set that you collected. Now press the 2nd thenMODE key to clear the screen.

On this blank screen, input the object function (remember for this example, the object function was 2x+3y).When you input it, however, use INEQX instead of x and INEQY instead of y. To find these variables (INEQXand INEQY) press the keys 2nd and STAT. These will be in the list. When done, the screen should look as:

When you press ENTER, you get the following to appear on the screen:

We can see that the minimum value is 14, but not which point corresponds to that value. We can alsocalculate these values in the spreadsheet so that we can see which point corresponds to which value. To dothis, press STAT and 1 to get the spreadsheet on the screen. Then use the arrows to place the cursor in thelabel box in the column next to the INEQY column. In this place, name the column anything you want. Ichose “MIN” since we are looking for the minimum value here.

81

Page 82: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

If you again use the arrows to scroll to this cell, it will have an equals sign after the “MIN”. Here, you caninput the object function just as you did on the blank screen earlier by using the INEQX and INEQY insteadof x and y, respectively. Be sure to put the expression in quotation marks also, as this will make the listbehave like a spreadsheet. The keystrokes that will input the function are the following:

Note : the INEQX and INEQY are in the same location as before, so if they were not commands 7 and 8 inthe LIST menu then use what you did in the prior step to get them.

When you press ENTER, the formula will automatically be copied to the cells below the “MIN” headingand the values are automatically calculated.

Here we can see that, as before, the minimum value of 14 is attained at the point (4,2).

82

Page 83: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Chapter 4

Matrices

83

Page 84: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

84

Page 85: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.1 Matrices and Elementary Operations

In chapter 3, we learned how to solve linear programming problems when there were 2 variables by usinga geometric method. If there are more than 2 variables, however, we cannot solve the problems in the samemanner because we cannot graph more than 2 variables in the same way. An alternative way to solve prob-lems like those is to use matrices and a process called the Simplex Method. We will talk about how and whythe method works later in the chapter. For now, we need to figure out what we are allowed to do when itcomes to matrix operations and manipulations. So let’s start with the obvious.

Definition 4.1.1 A matrix is an n×m array of (for our purposes) real numbers, where n is the number ofrows and m is the number of columns. We use a capital letter to denote a matrix.

Example 4.1.2 A 3×4 matrix

A =

2 1 3 25 1 1 62 1 2 7

We indicate the entries in the matrix by ai, j where i is the row the element appears in and j is the columnthe element appears in. We also may refer to the i, jth element of the matrix. So, the 7 above is in the 3,4position of the matrix and there is a 5 in the 2,1 position.

For our purposes, a matrix will be used to represent a system of linear equations. We will learn how to setthese matrices up in the coming sections, but for now we will just learn how to work with them so that oncewe set them up, we can get the answers we need.

4.1.1 Elementary Row Operations

When working with matrices, we often need to manipulate them so that we can find the solution we arelooking for. But, there are only three things that we are allowed to do that will not change the relationshipbetween the rows. Lets look at each of them individually first, and then we will talk about why we want orneed to use them.

The first elementary row operation we are allowed to perform is the multiplication of a row by a non-zeroconstant.

Example 4.1.3 Given the 2×4 matrix B, multiply the second row by 4.

B =

[1 3 −2 1−2 2 −3 −2

]Solution The way we will denote what operation we are performing is by shorthand notation next to the rowbeing acted upon. So, since we want to multiply the second row by a constant, we will indicate this by

[1 3 −2 1−2 2 −3 −2

]∼

R2→ 4R2

[1 3 −2 1−8 8 −12 −8

]85

Page 86: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

The ∼ symbol between the matrices indicates that the two matrices are similar. We did not change therelationship between the elements in the row; we only changed the way the row looks. But notice that wedid multiply every single element of the chosen row by the same constant. Whatever we do to one elementin the row we have to do to all elements in the row. I cannot stress this enough - we cannot just act on oneelement in a row. Ever.

The second elementary row operation we are allowed to perform is the interchange of two rows.

Example 4.1.4 Interchange the first and third rows of the given matrix C.

C =

2 −2 1−2 −1 0−3 1 −4

Solution We will again use similar shorthand notation to indicate what we are doing.

2 −2 1−2 −1 0−3 1 −4

∼ R1↔ R3−3 1 −4−2 −1 02 −2 1

The third elementary row operation we are allowed to perform is to add a constant multiple of one row toanother row.

Example 4.1.5 For the given matrix D, add 1/2 row 2 to row 3.1 2 3 42 4 8 101 −2 2 −1

Solution We will again use similar notation to indicate what we are doing.

1 2 3 42 4 8 101 −2 2 −1

∼12 R2 +R3→ R3

1 2 3 42 4 8 102 0 6 4

Notice here that we did not change the second row. When using this operation, it is important to only changethe one row; otherwise we need to then multiply the first row by the reciprocal of the constant. Why wedon’t keep the multiplication will become clearer once we put all of the operations together and use them toaccomplish a task.

4.1.2 Row Reduction and Pivots

We will be using these elementary operations in order to reduce matrices; that is, to change the representationof the matrix to help us solve the system of equations. The way we will do this is by choosing a pivotelement and then using the operations to change the element to a “1” and then everything else in the columnto a “0”. This may not seem very clear, so let’s do an example so that we can see what this means in practice.

86

Page 87: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 4.1.6 Pivot around the 2,2 entry in the given matrix E.−4 −2 54 2 −23 1 1

Solution As indicated above, we first need to change the pivot element into a “1”. To do this, we need tomultiply the second row by 1/2. This value we choose as a multiplier will always be the reciprocal of thevalue we want to change to a 1.−4 −2 5

4 2 −23 1 1

∼ 12 R2→ R2

−4 −2 52 1 −13 1 1

Next, we want to make the 1,2 and 3,2 entries into ”0”s. First let’s look at the first row. There is a −2 in the1,2 position so we need to add 2 times row 2 to row 1 to get what we want.−4 −2 5

2 1 −13 1 1

∼ 2R2 +R1→ R10 0 3

2 1 −13 1 1

Notice that the value we multiplied by (the 2) is the negative of the value we wanted to “get rid of”. This isnot an accident - this is the way we can always figure out what to use when trying to make 0s appear in ourmatrices.

Now we need to take care of the third row. To do so, we will add the negative of row 2 to row 3. That is, wewant to change the 1 in the 3,2 position to a zero, so we are going to use the negative of 1 as the multiplier.0 0 3

2 1 −13 1 1

−R2 +R3→ R3

0 0 32 1 −11 0 2

Now we have the second column with only a 1 in the 2,2 position and 0s everywhere else. 0 0 3

2 1 −11 0 2

Example 4.1.7 Pivot around the 1,2 entry in the given matrix F.−1 2 4 −2 0

3 2 −2 1 −3−1 −1 0 2 −3

Solution We will proceed by first making the 1,2 entry a 1 by multiplying the first row by the reciprocal ofthe 1,2 entry. Then we will make the rest of the second column have 0s in the positions by adding a constantmultiple of row 1 to the respective rows by using as a multiplier the negative of the value we want to “getrid of”. −1 2 4 −2 0

3 2 −2 1 −3−1 −1 0 2 −3

∼ 12 R1→ R1

−12 1 2 −1 0

3 2 −2 1 −3−1 −1 0 2 −3

87

Page 88: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

∼ −2R1 +R2→ R2

−12 1 2 −1 0

4 0 −6 3 −3−1 −1 0 2 −3

R1 +R3→ R3

−12 1 2 −1 0

4 0 −6 3 −332 0 2 1 −3

And, we have reached the matrix we wanted where the pivot position is a 1 and the rest of the pivot columnis all 0s. −1

2 1 2 −1 04 0 −6 3 −332 0 2 1 −3

4.1.3 The Identity Matrix

Definition 4.1.8 The identity matrix is the n×n array where the main diagonal is all 1s and all other valuesof the matrix are 0s.

Example 4.1.9 The 3×3 identity matrix. 1 0 00 1 00 0 1

The reason that we need identity matrices is to solve systems of equations. We will use row operations tochange a matrix into an equivalent matrix that contains the appropriately sized identity matrix so that we candetermine what values simultaneously satisfy each of the equations. We will see how to do this in the nextsection. Notice, however, that all of the boxed columns in the examples are columns of the identity matrix.

88

Page 89: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.1.4 Exercises

For the first 2 problems determine the dimensions of the matrix.1.

1 2 2−1 0 22 −1 −42 11 3−2 1 0

2. 3 −1−2 32 −4

3. What is the 2,3 entry in the matrix from exercise 1?

4. What is the 3,1 entry in the matrix from exercise 1?

5. Determine what operation(s) were used to go from the first matrix to the second one.1 2 34 5 67 8 9

∼ 1 2 3

7 8 9−4 −5 −6

6. Determine what operation(s) were used to go from the first matrix to the second one.1 −1

2 23 −2

∼1 −1

3 13 −2

7. Determine what operation(s) were used to go from the first matrix to the second one.−1 −2 −3

1 0 12 1 1

∼1 −2 −1

1 0 13 1 2

8. Determine what operation(s) were used to go from the first matrix to the second one.[

1 00 1

]∼[

2 04 1

]9. Pivot about the indicated position. 1 3 2

−1 2 1−2 −4 2

10. Pivot about the indicated position.

−1 2 −13 1 1−3 −2 −12 2 1

89

Page 90: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

11. Pivot about the 2,1 entry. 2 1 13 3 62 5 −2

12. Pivot about the 1,2 entry. −2 1 −4 3

4 −2 8 −61 −3 −3 8

90

Page 91: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.2 Solving Systems of Equations

In section 4.1, we learned how to perform row operations. In this section, we will learn how to solve systemsof equations using two different techniques : using inverses and using row operations.

4.2.1 Inverses

If you were given the equation 2x = 4, how would you solve it? You would probably divide both sides by2 to get x = 2. You would get the same result, however, if you multiplied both sides by the multiplicativeinverse of 2, which is 1

2 . If you remember back to row operations in the last section, we cannot divide butwe can multiply. In general what we are saying is that if we want to solve ax+ b for x, where a and b areany real numbers, then we could do so with the equation x = a−1b, where a−1is the multiplicative inverse ofa.

Wouldn’t it be convenient if we could solve systems of equations in this way? Well, we can. If A and B arematrices and if X is a vector for the variables (a vector here is an n× 1 matrix - basically a column) thenX = A−1B. Here, A−1 is the inverse of the matrix A. What this means is that when we multiply the matrix Aby the matrix A−1, we get the identity matrix of the appropriate size. Necessarily, A−1 and A must be of thesame dimensions and therefore the identity matrix will also be of this common size.

We will start with an example when the inverse exists and then find the inverse of a 2× 2 matrix. Thenwe will talk about how to write a system of equations in matrix form and how to solve the system. Wewill concern ourselves only with 2× 2 matrices here, but we can use this for any matrix that is invertible(invertible means the inverse exists). The process laid out in the next example can only be used for 2× 2matrices, and unfortunately, we don’t have a quick algorithm like this for larger matrices. But, necessarily,any invertible matrix must be square, which means that the number of rows is the same as the number ofcolumns. This is not a sufficient condition, however, as not all square matrices are invertible.

Example 4.2.1 Find the inverse of A =[

2 13 −1

], if it exists.

Solution To check to see if the matrix is invertible, we have to find the determinant. If the matrix has theform A =

[a bc d

]then the determinant is det(A) = ad−bc. If this value is not zero then the inverse exists. If

the determinant is zero then the matrix is not invertible.

In our example, the determinant is 2(−1)−3(1) =−5 6= 0. So, the inverse exists. Now we just need to findthe inverse of our matrix. If the matrix is in the form of the one above then the inverse will be

A−1 =1

det(A)

[d −b−c a

](In order to multiply a number by a matrix we multiply each element in the matrix by that value, as we willsee shortly.)

In our example, we have already found that the determinant is −5, so the inverse is

A−1 =1−5

[−1 −1−3 2

]=

[15

15

35 −2

5

]91

Page 92: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Remember, the product of a matrix and it’s inverse is the identity matrix of the same dimensions. We couldverify that these are inverses by finding the product AA−1. We will not concern ourselves here with findingthese products by hand but rather will show how to use the calculator to verify this property. It should benoted, however, that finding the determinant of each and multiplying those values together is not enough toprove that the two matrices are inverses because the value of the determinant is not unique; that is, morethan one matrix can have the same determinant. The best doing this could do is to show us that two matricescannot be inverses if the product of their determinants is not 1.

4.2.2 Matrices on the Calculator

First, we need to get the matrices into the calculator. To do so, press 2nd and then x−1 to get to the matrixmenu. Then scroll over to the EDIT submenu.

While EDIT is highlighted, select the matrix you want to use by pressing the associated number. For thisexample, [A] will be selected here by pressing the 1 key. Once you do, you should have

The circled numbers are the dimensions of the matrix. When you change these values, the calculator willautomatically format the matrix to the correct size. We want them to each be 2 here. Then, scroll throughwith the arrows to each location and input the appropriate value. Be sure to press ENTER after each entryso that calculator stores it.

Repeat this process for the other matrix, and here we will put the matrix under [B]. Note that when youput in a fraction, the calculator will convert the value into decimal form. When you have them both in thecalculator, you should have

In order to multiply them we use the regular screen. We first need to exit to the main screen. Then open theMATRIX menu again and this time stay on the NAMES submenu.

92

Page 93: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Press 1 to use the matrix A, then press the × key. Now go back into the MATRIX menu and under NAMES,press 2 to use matrix B. Finally press the ENTER key.

You now will have the product of the two matrices. Notice that here we have the 2×2 identity matrix, whichshows that the two matrices we have are indeed inverses.

This verifies that the matrices are indeed inverses.

We also can use the calculator to find the determinant of the matrix. Once we have the matrix in thecalculator, we can find the determinant command in the MATH submenu in the MATRIX menu.

Select the det command and then, using the NAMES submenu as before, input the matrix A. After pressingENTER we get what we want.

4.2.3 Solving Systems of Equations with Inverses

In order to solve a system of equations by using inverses, we have to first write the system in terms of thethree matrices A, B and X . A is the coefficients matrix for the equations, X is the variables (as a columnvector) and B is the answers in the system (also as a column vector).

93

Page 94: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 4.2.2 Solve the system of equations {2x+ y = 43x+ y = 5

Solution First we have to write the system in terms of the matrices. When we do we get

A =

[2 13 1

], X =

[xy

], B =

[45

]When we calculate the determinant of A, we see that det(A) = 2(1)−3(1) =−1 6= 0. Since this is nonzero,we know that the inverse exists, and one of the properties of an invertible matrix is that it gives rise to aunique solution for the associated system of equations. What we want is X = A−1B, so we need to find theinverse of the matrix A. Using our formula, we get that the inverse is

A−1 =1−1

[1 −1−3 2

]=

[−1 13 −2

]Now, input both the inverse matrix (under [A]) and the matrix B (under [B] into the calculator. Then wemultiply them together. It is VERY important that you multiply them in the correct order A−1B because ofthe algebra of matrices. If you try to multiply them in the other order, you will get an error.

This gives us that A−1B =

[12

], which is to say that X =

[xy

]=

[12

]. So, the solution to the system is

(x,y) = (1,2).

We don’t need to use the calculator to do this multiplication, and the reality is that for small matrices such asthese, we would want to multiply them by hand since it would probably take longer to input the matrices inthe calculator then it would to simply do out the product. To multiply matrices, we use dot products. Thisbasically means that we multiply each row by the column.

We will only worry about multiplying matrices like in the last example where we deal with a 2× 2 matrixtimes a 2×1 matrix. In general, we are looking at[

a bc d

][xy

]=

[ax+bycx+dy

]From the previous example, we have[

−1 13 −2

][45

]=

[−1(4)+1(5)

3(4)+(−2)(5)

]=

[12

]94

Page 95: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

This is the same answer we got using the calculator.

For the rest of this section, we will multiply out problems this way rather than by using the calculator.

Example 4.2.3 Solve the system of equations{x+ y = 12x+2y = 2

Solution First thing we do is write the system in terms of the two equations and then find the determinant ofthe coefficients matrix.

A =

[1 12 2

], X =

[xy

], B =

[12

]When we calculate the determinant of the matrix A we get det(A) = 1(2)−2(1) = 0. This means that thereis no inverse to A and also there is no unique solution. Notice here that the second equation is a multiple ofthe first one. When this happens, there is an infinite number of points common to both lines and thereforean infinite number of solutions.

Example 4.2.4 Find the solution to the system of equations{−x+ y = 42x− y =−3

Solution We begin again with rewriting the problem in terms of the matrices.[−1 12 −1

] [xy

]=

[4−3

]The determinant of A is det(A) =−1(−1)−2(1) =−1 6= 0 , so we proceed with the problem. We next needto find the inverse of the coefficients matrix.

A−1 =1−1

[−1 −1−2 −1

]=

[1 12 1

]So, when we multiply we get

X = A−1B =

[1 12 1

][4−3

]=

[1(4)+1(−3)2(4)+1(−3)

]=

[15

]That gives us that the solution to the system of equations is the point (1,5).

We can use this approach to solve larger systems of equations, but there is no “formula” for finding theinverse of an n× n matrix for n ≥ 3. If we wanted to use this approach, we need to find the inverse in adifferent way. The calculator can do this for us, though. If we use the inverse key, we can instantly get theinverse of a matrix that we have entered in the calculator. For example, in the last example we can solvethe system once the matrices A and B are in the calculator in one step (The exponent of −1 is obtained bypressing the x−1 key).

95

Page 96: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.2.4 Reduced Row Echelon Form

We can solve systems of equations by putting an augmented matrix into reduced row echelon form(RREF). The process with which we do this is called Gauss-Jordan elimination. What this means is that ifwe write the matrix so that the coefficients and answers are together in one matrix and then we perform rowoperations until the matrix is properly reduced, we can read the solution from the final matrix. This soundsmore confusing than it really is, so let’s look at an example to see what we are talking about. But before wedo, let’s make sure we understand what RREF looks like.

Matrices in reduced row echelon form have a column on the right which represents the answers and it hasmultiple columns on the left that represents the coefficients. Ideally, in each column on the left there willbe one “1” and everywhere else “0”s, resembling the identity matrix. If this happens then we have a uniquesolution. If there is a contradiction then there is no solution and a row of all zeros indicates that there is aninfinite number of solutions. We will concern ourselves with those systems that have a unique solution. Inthese cases, the matrix in RREF form will look like

This tells us that our solution occurs at x = a, y = b and z = c. But how do we get to this point? Now we areready for an example.

4.2.5 Solving Systems of Equations with Row Operations

Example 4.2.5 Solve the following system of equations by using Gauss-Jordan elimination.x−2y+3z = 9x−3y = 44x−10y+10z = 34

Solution Since there are 3 variables, we would have a coefficient matrix that would have 3 columns and 3rows. We could not find the inverse using our formula, so we would need to use another method. So, wewill create the coefficient matrix as before, but we will leave an extra open column on the right. This is whatmakes the matrix augmented. Also note that we need to put a “0” in the 2,3 position because that represents

96

Page 97: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

the coefficient of the “z” term in the second equation. Since there is no z in x−3y = 4, this means that thereare “0” zs. So, we need to represent this in the matrix. 1 −2 3 −

1 −3 0 −4 −10 10 −

The extra column will be used for the answers to the linear equations we had in the original problem. 1 −2 3 9

1 −3 0 44 −10 10 34

Now we can use the elementary row operations we learned in the last section to find the solution to thissystem.

Notice first that the 1,1 position is a “1”. We would next need to make all other values in that column intozeros. Then we repeat this process for the 2,2 and 3,3 positions.

1 −2 3 91 −3 0 44 −10 10 34

∼ −R1 +R2→ R2

1 −2 3 90 −1 −3 −54 −10 10 34

−4R1 +R3→ R3

1 −2 3 90 −1 −3 −50 −2 −2 −2

∼ −R2→ R2

1 −2 3 90 1 3 50 −2 −2 −2

∼ 2R2 +R1→ R1

1 0 9 190 1 3 50 −2 −2 −2

2R2 +R3→ R3

1 0 9 190 1 3 50 0 4 8

∼14 R3→ R3

1 0 9 190 1 3 50 0 1 2

∼ −9R3 +R1→ R1 1 0 0 1

0 1 3 50 0 1 2

97

Page 98: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

∼ −3R3 +R2→ R2

1 0 0 10 1 0 −10 0 1 2

So, we see that the solution to this system is x = 1, y = −1, z = 2. We can check this by substituting thevalues we just found into the three equations to make sure they are true.

1−2(−1)+3(2) = 9

1−3(−1) = 4

4(1)−10(−1)+10(2) = 34

4.2.6 Row Operations on the Calculator

This is a long process to get the solution, but we cannot do it graphically the way we did in the last sectionbecause there are three variables. We can, however, solve this system relatively quickly if we use the calcu-lator. To illustrate this, we will solve the system of equations from the last example. We input the augmentedmatrix in the same manner we input matrices earlier in this section.

Once the matrix is in the calculator, we go to MATH in the MATRIX menu.

The rref command is the one we want. We find it by using the arrows to scroll to it, or by pressing ALPHAand then APPS. This will give the following screen:

We now, as before, use the NAMES menu to get matrix A and then press ENTER to get the matrix we want.

98

Page 99: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

We get the exact same solution as before.

Another alternative would be to use the calculator and manually input the row operations. In order to do this,the matrix must be entered as matrix A. We will perform the exact same row operations as we did earlier,but the calculator will do all of the arithmetic for us. Note that all of the commands are found on the MATHscreen in the MATRIX menu and can be reached by scrolling with the arrows.

Command Screenshot

−R1 +R2→ R2

−4R1 +R3→ R3

Notice that for the first command, we performed the operation on the matrix A and in the second commandwe performed the operation on Ans (this is found by pressing 2nd and (-)). This is because the matrix Aremains unchanged regardless of the operations we perform and what we need to continue to work with isthe resulting matrix from each of the operations we perform. The calculator keeps the last answer in memoryfor us to work with.

−R2→ R2

2R2 +R1→ R1

2R2 +R3→ R3

99

Page 100: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

14 R3→ R3

−9R3 +R1→ R1

−3R3 +R2→ R2

We indeed arrive at the same solution as we expected.

There are two different commands we are using here, *row and *row+. The first is used to multiply a rowby a non-zero constant and the latter is used to add a constant multiple of one row to another.

Although this second calculator method requires much more work than using the RREF command, we willneed these commands to use the method of linear programming discussed in the next section.

100

Page 101: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

We did not interchange rows while solving any of the systems of equations in this section. We are allowedto, but since the calculator was doing all of the arithmetic, we did not worry about switching rows for thesake of simplifying the problem. Since this is a valid operation for solving systems of equations, however,we will show here how to use the calculator to swap rows. This way, if you decide to use this operation, youwill have the ability to do so using the technology.

To switch rows, all we need to know is which matrix and which rows are to be switched. For example,suppose we are trying to solve the system of equations represented in the matrix below. 2 1 3 −2

1 3 −11 3−3 1 1 2

As we know, we need to make the 1,1 entry a “1” and then change the rest of the elements in the first columninto “0”s. We have two options; the first would be to multiply the first row by 1

2 . The second option wouldbe to switch the first two rows, since the 2,1 entry is already a “1”. The advantage to this would be that wewould not be working with fractions at all. Any time we can work with integers, it makes the calculationswe are doing much easier for us to perform.

Once the matrix is in the calculator, we can swap rows with a command in the MATH submenu under theMATRIX menu.

So, if this is the matrix we are working on, then by pressing 2nd and x−1, we get to the MATRIX menu. Usethe arrows to scroll to MATH and then use the arrows to scroll to the rowSwap command.

Press ENTER and the operation will appear on the screen. The input that you need is (Name of Matrix, firstrow, second row). It does not matter which row you list first since we are simply interchanging them. Thecommand for this particular operation will appear as follows on the screen.

101

Page 102: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

When we press ENTER, we see that the rows are now interchanged.

102

Page 103: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.2.7 Exercises

For exercises 1-4, , find the inverse of the matrix, if it exists.

1.[

3 2−1 2

]2.

[1 00 1

]3.

[2 14 2

]4.

[13 1112 10

]For exercises 5-8, solve the given system of equations using inverses, if a solution exists.

5.{

x+2y = 0x+ y = 6

6.{

2x+4y = 144x+2y = 16

7.{

2x+ y = 4−2x− y =−4

8.{−x+ y = 1−x+ y = 2

For problems 9-12, solve the given system using row reduction (either by hand or by manually entering thecommands on the calculator) and then use the rref command to check your answers.

9.

2x+2y+2z = 03x−6y+6z = 124x+8y−4z = 8

10.

x+ y+2z = 8−x−2y+3z = 13x−7y+4z = 10

11.

3x+2y−4z = 32x+3y+3z = 155x−3y+ z = 14

12.

2x1 +4x2 +6x3 = 6−3x1 + x2 +5x3 =−22x1 +4x2− x3 =−1

103

Page 104: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.3 The Simplex Method: Standard Form

In the last chapter, we learned the graphical method of linear programming. The problem with that methodis that we can only solve problems that have up to two variables. But what if we were presented with aproblem of that type that had more than two variables? We would need another method to solve problemslike these. They are still linear programming problems because all of the variables are of first degree, butwe cannot graph equations with three variables in two dimensions to find the intersections. The alternativewould be to use matrices to solve the system of equations. This method is called the Simplex method.

Notice above it says that we are solving a system of equations. The linear programming problems we weresolving before were inequalities. This is not a mistake; the first step in solving a system using the Simplexmethod is to write the inequalities as equalities by introducing slack variables. Think about it like this:what does it mean when we say x≤ 2? Of course we know what this is saying, but what does it really mean?It means that x could be equal to 2, but if not then there is some quantitative amount that we could add to xto make it equal to 2. That is, if x ≤ 2 then there is some value u such that x+u = 2, where u ≥ 0. It is inthis way that we will change the linear inequalities into linear equations so that we can solve them using theSimplex method.

Example 4.3.1 Rewrite the given system of linear inequalities as a system of equalities by using slackvariables.

2x+3y+4z≤ 5x+ y+ z≤ 12z+2y+2z≤ 4

Solution We need a different slack variable for each inequality since we the amount needed to make eachexpression into an equality is most likely different. When we introduce these variables, we get

2x+3y+4z+u = 5x+ y+ z+ v = 12z+2y+2z+w = 4

where u,v,w≥ 0.

We generally use a “u” for the first slack variable, a “v” for the second, and a “w” for the third. The variablesare just letters, however, and we could use any letters we wanted. Just be sure to stay clear of those used inthe statement of the problem.

Notice in the example above that we did not write the expressions in slope-intercept form. There are tworeasons for this. First, there is no slope-intercept form for more than two variables. Second, we do not needto write the expression in another form. In the last section when we were working with matrices, we left theexpressions in standard form. Here we are still working with matrices, so standard form is the way we wantto go.

Let us turn our attention to an example to see how this method works. In this section we will look atproblems in standard form; that is, maximization problems for which all of the linear inequalities are lessthan or equal to some nonnegative value. In the next section we will discuss how to approach problems thatare not in standard form.

104

Page 105: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 4.3.2 Maximize 3x+ y subject to the constraintsx+ y≤ 32x+ y≤ 5x≥ 0,y≥ 0

Solution This problem has only two variables, so it could be solved using the graphical method of before(actually, we did this example in the last chapter) but we will use this example to illustrate the process.

Step 1: Introduce the slack variables. x+ y+u = 32x+ y+ v = 5x≥ 0,y≥ 0

where u,v≥ 0.

Step 2: Rewrite the object function.

We are trying to maximize the expression 3x+ y . We do not know what this maximum value is, sowe will just say that it is M. We want to rewrite this expression in the form of the other equations, sowhat we would get is

M = 3x+ y⇒−3x− y+M = 0

Step 3: Write the matrix. 1 1 1 0 0 32 1 0 1 0 5−3 −1 0 0 1 0

Note that the bottom function (the one below the horizontal line) is the object function. From left toright, the columns are x, y, u, v, M and the answer column. As a matter of convention, we always setthe columns as first the variables from the problem, then the slack variables, then M and then on theother side of the vertical line we put the answers.

We will be using the same elementary row operations as before, the question is, in what way do weuse them? The approach here centers around removing all negatives from the bottom row. Once we doso, the value in the bottom right hand corner will be the maximum that we are looking for. The valuesof the variables are obtained from the matrix by finding the columns that make up the appropriatelysized identity matrix (here, 3× 3 ). Each operation we perform will have this identity matrix; forexample, at this point, the example we are working on contains the identity matrix in the third, fourthand fifth columns. 1 1 1 0 0 3

2 1 0 1 0 5−3 −1 0 0 1 0

The way we would read this tableau is that the solution pertaining to this matrix is determined fromthese columns and we set all other variables equal to zero. This indicates that we get a maximum ofM = 0 when u = 3 and v = 5. By default, we set x = 0 and y = 0.

Clearly, the maximum value is not M = 0. How can we manipulate the matrix to efficiently find thetrue maximum based on these constraints?

105

Page 106: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Step 4: Identify the pivot element.

First, choose any negative value in the bottom row of the matrix (which one does not matter). Withoutloss of generality, we will choose the first column. 1 1 1 0 0 3

2 1 0 1 0 5−3 −1 0 0 1 0

We now take the ratio of each value in the answer column with the value in the chosen column. Whatwe are looking for is the smallest positive value. When we take the ratios, we get 3

1 and 52 , with 5

2clearly being smaller. 1 1 1 0 0 3

2 1 0 1 0 5−3 −1 0 0 1 0

Note that we did not take the ratio in the bottom row. This is the row that corresponds to the objectfunction and is not in consideration when we decide which element is the pivot. So, the smallestpositive ratio occurs in the first column and second row and therefore the pivot element is in the 2,1position.

Step 5: Pivot about the identified element.

As we did in the last section, we will make the pivot element a “1” and then use the appropriate rowoperations to make the other elements in the first column “0”s.

1 1 1 0 0 32 1 0 1 0 5−3 −1 0 0 1 0

∼ 12 R2→ R2

1 1 1 0 0 31 1

2 0 12 0 5

2−3 −1 0 0 1 0

∼ −R2 +R1→ R1

0 12 1 −1

2 0 12

1 12 0 1

2 0 52

−3 −1 0 0 1 0

3R2 +R3→ R3

0 12 1 −1

2 0 12

1 12 0 1

2 0 52

0 12 0 3

2 1 152

If there was another negative element in the bottom row, we would repeat this process by using ratios tochoose another pivot element and then pivoting about that selected element. Since there are no negativeelements in the bottom row, however, we have reached our final answer. Although they are not in order, thethree columns that make up the identity matrix are present. One of them will always correspond to the “M”column and the others could be any of the other columns. 0 1

2 1 −12 0 1

21 1

2 0 12 0 5

20 1

2 0 32 1 15

2

106

Page 107: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

The way we read the solution is that the columns that are boxed each correspond to one of the values in theanswer column and the other variables are set to 0. So here we have that x = 5

2 and u = 12 with M = 15

2 . Bydefault, we set y = 0 and v = 0. When we express the solution, however, we omit the slack variables andonly give the solution in terms of the variables that are in the original problem. In this case we have that theobject function of 3x+y has a maximum value of 15

2 at the point (52 ,0). This is the same answer we obtained

previously using the graphical method.

Example 4.3.3 Maximize 20x−50y+10z+30 subject to the constraintsx+ y+ z≤ 250x+2z≤ 1252y+3z≤ 100x≥ 0,y≥ 0,z≥ 0

Solution We have three variables here and consequently cannot use the graphical method of linear program-ming. We will solve this by using the Simplex method. We first rewrite the inequalities with slack variables.

x+ y+ z+u = 250x+2z+ v = 1252y+3z+w = 100x≥ 0,y≥ 0,z≥ 0u≥ 0,v≥ 0,w≥ 0

We also need to rewrite our object function of M = 20x− 50y+ 10z+ 30 and when we do we get −20x+50y− 10z+M = 30. We have 3 constraint equations and an object function, so we will have four rows inour matrix. We have 3 variables, three slack variables and one maximum, so we will need 8 columns in ourmatrix.

1 1 1 1 0 0 0 2501 0 2 0 1 0 0 1250 2 3 0 0 1 0 100−20 50 −10 0 0 0 1 30

We have two negatives in the bottom row to contend with, so without loss of generality we will use columnone to calculate the ratios to find the smallest positive one.

1 1 1 1 0 0 0 2501 0 2 0 1 0 0 1250 2 3 0 0 1 0 100−20 50 −10 0 0 0 1 30

250

1 = 250125

1 = 125100

0 =undefined

125 is less than 250 so the pivot element is in the 2,1 position. Conveniently in this problem, it is already a1 and so we just need to make the rest of the column all zeros.

1 1 1 1 0 0 0 2501 0 2 0 1 0 0 1250 2 3 0 0 1 0 100−20 50 −10 0 0 0 1 30

∼−R2 +R1→ R1

0 1 −1 1 −1 0 0 1251 0 2 0 1 0 0 1250 2 3 0 0 1 0 100−20 50 −10 0 0 0 1 30

107

Page 108: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

20R2 +R4→ R4

0 1 −1 1 −1 0 0 1251 0 2 0 1 0 0 1250 2 3 0 0 1 0 1000 50 30 0 20 0 1 2530

We have no negative elements in the bottom row, so we are done. We now need to identify which are thecolumns that correspond to the identity matrix. These would be the first, fourth, sixth and seventh.

0 1 −1 1 −1 0 0 1251 0 2 0 1 0 0 1250 2 3 0 0 1 0 1000 50 30 0 20 0 1 2530

Reading this table gives us the values x = 125, u = 125 and w = 100, and all the rest are set to zero. Butsince we only give the solution in terms of the variables from the original problem, we would say that thissystem of inequalities is maximized at the point (125,0,0) and the maximum value is 2530.

Example 4.3.4 Maximize 3x+2y+5z subject to the constraints4x−7z≤ 40x+ y+6z≤ 80x≥ 0,y≥ 0,z≥ 0

Solution Notice first that this problem is in standard form since each inequality is of the form of “less than anonnegative constant” and also it is a maximization problem. So we begin by rewriting with slack variables.

4x−7z+u = 40x+ y+6z+ v = 80x≥ 0,y≥ 0,z≥ 0u≥ 0,v≥ 0

We also rewrite the object function as −3x− 2y− 5z+M = 0. Now we can write the equations in matrixform. 4 0 −7 1 0 0 40

1 1 6 0 1 0 80−3 −2 −5 0 0 1 0

We now must identify the pivot element. Since there are three negative elements in the bottom row, we havethree columns from which to choose. Without loss of generality, we will select the first column. When wetake the ratios, we see that the appropriate pivot element is in the 1,1 position. 4 0 −7 1 0 0 40

1 1 6 0 1 0 80−3 −2 −5 0 0 1 0

404 = 10

801 = 80

Now we need to take care of the column. We first multiply the first row by 14 . 4 0 −7 1 0 0 40

1 1 6 0 1 0 80−3 −2 −5 0 0 1 0

∼14 R1→ R1

1 0 −74

14 0 0 10

1 1 6 0 1 0 80−3 −2 −5 0 0 1 0

108

Page 109: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Then we need to take care of the rest of the column.

∼ −R1 +R2→ R2

1 0 −74

14 0 0 10

0 1 314

14 1 0 70

−3 −2 −5 0 0 1 0

3R1 +R3→ R3

1 0 −74

14 0 0 10

0 1 314

14 1 0 70

0 −2 −414

34 0 1 30

But there are still negatives in the bottom row. We therefore have to repeat this process again. We couldchoose the second or third columns, but it is easier to choose the second column. If we chose the thirdcolumn then we would have to deal with fractions whereas with the second column we only have integerswith which to contend. Sometimes fractions cannot be avoided, but if they can then why not make it easieron ourselves? And, only the 2,2 element gives us a nonnegative ratio, so by choosing the second column,there is only one choice for the pivot element. 1 0 −7

414 0 0 10

0 1 314

14 1 0 70

0 −2 −414

34 0 1 30

Since the pivot element is a 1 already, we need only use it to take care of the third row. 1 0 −7

414 0 0 10

0 1 314

14 1 0 70

0 −2 −414

34 0 1 30

∼2R2 +R3→ R3

1 0 −74

14 0 0 10

0 1 314

14 1 0 70

0 0 214

54 2 1 170

We now have no negatives remaining in the bottom row, so we are done and can now get out answer fromthe tableau. 1 0 −7

414 0 0 10

0 1 314

14 1 0 70

0 0 214

54 2 1 170

From the table, we get that x = 10, y = 70 and M = 170. Setting all other variables equal to 0 gives us amaximum of 170 at the point (10,70,0).

Example 4.3.5 The AutoWatch Company makes three types of stopwatches, the DX, LX and EX. Each DXrequires 4 hours on the assembly line, each LX requires 5 hours and each EX also requires 5 hours andthere are 1000 man-hours available each week on the assembly line. The DX, LX and EX respectivelyrequire 2 hours, 2 hours and 3 hours to package and there are 500 weekly hours available in the packagingdepartment. The company makes a profit of $50 on the DX model, $60 on the LX model and $100 on the EXmodel. How many of each type of watch should be produced in order to maximize profit?

Solution We first need to set up our constraint inequalities and object function. Since there are three vari-ables here (the three types of watches) we cannot solve this graphically and must do so with the Simplexmethod.

109

Page 110: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

We are trying to maximize profit, so we can begin with the object function. Without loss of generality, wewill use “x” to represent the DX model, “y” to represent the LX model and “z” to represent the EX model.This gives a profit function to be maximized of M = 50x+ 60y+ 100z. Rewriting this so that it is in theform we will need gives us −50x−60y−100z+M = 0.

We also must write the constraint inequalities and then introduce the slack variables so that we have equali-ties. The considerations we must make are for time on the assembly line and also in the packaging depart-ment. With the time considerations we are given on the assembly line, we have 4x+5y+5z≤ 1000. Also,the situation in the packaging department gives 2x+2y+3z≤ 500. When we introduce the slack variables,we have

4x+5y+5z+u = 10002x+2y+3z+ v = 500x≥ 0,y≥ 0,z≥ 0u≥ 0,v≥ 0

Notice that the variables are all implied to be nonnegative; this is because it would not make sense forAutoWatch to produce a negative number of each type of stopwatch. This situation therefore satisfies ourcriterion for being in standard form and we can proceed to the matrix. 4 5 5 1 0 0 1000

2 2 3 0 1 0 500−50 −60 −100 0 0 1 0

We have three columns from which we can choose since there are three negatives in the bottom row. Sincewe have chosen the first column in each example so far, we will use the second column here. Note: it doesnot matter which column we choose, but if we happen to choose a “better” column than another then it mayrequire less steps to complete the problem. Unfortunately there is no concrete rule as to which would be thebest column to choose in terms of efficiency.

4 5 5 1 0 0 10002 2 3 0 1 0 500−50 −60 −100 0 0 1 0

10005 = 200

5002 = 250

When we take the ratios, the smallest positive one is taken from the 1,2 entry. So, we perform the followingoperations: 4 5 5 1 0 0 1000

2 2 3 0 1 0 500−50 −60 −100 0 0 1 0

∼ 15 R1→ R1

45 1 1 1

5 0 0 2002 2 3 0 1 0 500−50 −60 −100 0 0 1 0

∼ −2R1 +R2→ R2

45 1 1 1

5 0 0 20025 0 1 −2

5 1 0 100−50 −60 −100 0 0 1 0

60R1 +R3→ R3

45 1 1 1

5 0 0 20025 0 1 −2

5 1 0 100−2 0 −40 12 0 1 12000

110

Page 111: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

We still have negative values in the last row, so we need to repeat this process again of identifying a pivotelement and then performing the correct row operations. We again have multiple choices, but choosingthe first column will force us to deal with fractions and the third column will not, so we will select theappropriate pivot element from the third column. 4

5 1 1 15 0 0 200

25 0 1 −2

5 1 0 100−2 0 −40 12 0 1 12000

2001 = 200

1001 = 100

When we check the ratios to determine the pivot element we see that the element we should be choosing topivot about is in the 2,3 position. Conveniently it is already a 1, so we just need to perform the necessaryoperations to take care of the other two elements in the third column.

∼ −2R2 +R1→ R1 2

5 1 0 35 −1 0 100

25 0 1 −2

5 1 0 100−2 0 −40 12 0 1 12000

40R2 +R3→ R3

25 1 0 3

5 −1 0 10025 0 1 −2

5 1 0 10014 0 0 −4 40 1 16000

We still have another negative in the bottom row, so we need one more iteration of this process. Notice thatonly one of the ratios will be positive, so we know the pivot element must be in the 1,4 position. Performingthe appropriate operations would give us

∼53 R1→ R1

23

53 0 1 −5

3 0 5003

25 0 1 −2

5 1 0 10014 0 0 −4 40 1 16000

∼ 25 R1 +R2→ R2

23

53 0 1 −5

3 0 5003

25

23 1 0 1

3 0 5003

14 0 0 −4 40 1 16000

4R1 +R3→ R3

23

53 0 1 −5

3 0 5003

25

23 1 0 1

3 0 5003

503

203 0 0 100

3 1 500003

Now that we have no negative elements in the bottom row, we are done and now just need to identify thevalues for the variables. 2

353 0 1 −5

3 0 5003

25

23 1 0 1

3 0 5003

503

203 0 0 100

3 1 500003

From this we see that z = 500

3 , u = 5003 and M = 50000

3 . It does not make logical sense to make a fraction ofa watch, so we round down and see that the maximum profit of $16,600 is obtained when we make no DXs,no LXs and 166 EXs.

111

Page 112: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Note: When working with the simplex algorithm, it is a little misleading that you can choose any pivot col-umn. While technically correct, it often leads to much more difficult calculations or more steps if you do notchoose the largest negative in the bottom row when choosing the pivot column. So, the way to simplify theproblems is to always use the largest negative value when selecting the pivot column. This usually providesthe least number of steps in solving the problem.

Notice that some of the examples in this section are done without choosing the largest negative in the bottomcolumn. This is to show you that the problem can still be solved if you only use the rule of “smallest positiveratio”, but it may not be the most efficient way to solve the problem.

112

Page 113: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.3.1 Exercises

1. Use the simplex method to maximize 5x+3y subject to the constraintsx+3y≤ 6x+ y≤ 4y≤ 2x≥ 0,y≥ 0

2. Use the simplex method to maximize 5x+3y subject to the constraints2x+ y≤ 40x+2y≤ 50x≥ 0,y≥ 0

3. Use the simplex method to maximize 5x+7y subject to the constraints4x+8y≤ 200x+ y≤ 30x≥ 0,y≥ 0

4. Use the simplex method to maximize x+2y− z subject to the constraints4x+2y+2z≤ 2812x+6y+9z≤ 8480x+20y+20z≤ 120x≥ 0,y≥ 0,z≥ 0

5. Stephanie is in charge of all of the visual displays for a department store. The displays for the frontwindows take 2 hours to design, 2 hours to set-up the display and one hour to photograph the display.The aisle displays take 1 hour to design, 4 hours to set-up and 1 hour to photograph. The end caps take1 hour to design, 2 hours to set-up and a 1

2 hour to photograph. The store determined that it makesa profit of $1500 for each window display, $1250 for each aisle display and $500 for each end capdisplay. If Stephanie has 16 hours for design, 32 hours for set-up and 10 hours for photography, howmany of each type of display should be designed to maximize profit?

113

Page 114: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.4 The Simplex Method: Nonstandard Form

In the last section, we learned how to solve linear programming problems using the Simplex method pro-vided that the problems were in standard form. Those things we needed to have in order for the problem tobe in standard form were:

1. All variables must be nonnegative.

2. All constraints were such that the linear expression was less than or equal to a nonnegative constant.

3. We were to maximize the object function.

But what if we relaxed these conditions? We will look at what happens when we consider alternatives to thesecond and third conditions.

Consider the second condition. For the standard problems, we have to have the inequality being less than orequal to a nonnegative constant. But it is not realistic to think that all constraints would be of that form. Itcould just as easily be the case that the constraint will be of the greater than or equal to form. The way wehandle this is to multiply both sides of the inequality by −1. Then the constraint will be less than or equalto, allowing us to introduce a slack variable like before, but there will also be a negative in the rightmostcolumn. At this point we will remove the negative by pivoting. Let’s look at an example so that we can seehow to deal with one of these situations.

Example 4.4.1 Maximize 10x+8y subject to the following constraints2x+3y≤ 10x+ y≥ 1x≥ 0,y≥ 0

Solution We begin by noticing that the second inequality is of the wrong form. We must make this a“less than or equal to” inequality, so to do so we multiply both sides by −1. When we do, the system ofinequalities becomes

2x+3y≤ 10−x− y≤−1x≥ 0,y≥ 0

Remember when we multiply both sides by −1, it will switch the inequality around the other way. This isthe important step here. Now that it is of the right form, we can introduce the slack variables and set up thematrix as before. For the time being, do not worry about the negative in the upper part of the right column.We will take care of that shortly.

2x+3y+u = 10−x− y+ v =−1x≥ 0,y≥ 0u≥ 0,v≥ 0

We need to rewrite the object function, giving −10x−8y+M = 0. 2 3 1 0 0 10−1 −1 0 1 0 −1−10 −8 0 0 1 0

114

Page 115: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Now that we have the matrix, we see that there is a negative value in the 2,6 position. If the negative wereanywhere but the upper part of the rightmost column then we could proceed as before. Because of this,however, we need to add some steps to the beginning of our optimization process. To take care of thisproblem, we are going to pivot as before. The way we choose the pivot element is to choose any columnthat has a negative value on the upper left portion of the matrix and then check for the smallest positive ratioas we did before. Without loss of generality, we will choose the first column to find the pivot element. 2 3 1 0 0 10

−1 −1 0 1 0 −1−10 −8 0 0 1 0

102 = 5−1−1 = 1

When we check for the smallest positive ratio, we see that the element in the 2,1 position will be the pivotelement. So, as before, we pivot about that entry. 2 3 1 0 0 10

−1 −1 0 1 0 −1−10 −8 0 0 1 0

∼ −R2→ R2

2 3 1 0 0 101 1 0 −1 0 1−10 −8 0 0 1 0

∼ −2R2 +R1→ R1 0 1 1 2 0 8

1 1 0 −1 0 1−10 −8 0 0 1 0

10R2 +R3→ R3

0 1 1 2 0 81 1 0 −1 0 10 2 0 −10 1 10

There are no longer any negatives in the upper part of the rightmost column. We now are left with a problemthat is similar to what we dealt with last section. We need to take care of the negative in the bottom row. Wehave to use the 4th column as the pivot column and we do not have a choice for the pivot element since onlyone of the ratios will be positive. So, we will pivot about the 1,4 entry. 0 1 1 2 0 8

1 1 0 −1 0 10 2 0 −10 1 10

∼12 R1→ R1

0 12

12 1 0 4

1 1 0 −1 0 10 2 0 −10 1 10

∼ R1 +R2→ R2

0 12

12 1 0 4

1 32

12 0 0 5

0 2 0 −10 1 10

10R1 +R3→ R3

0 12

12 1 0 4

1 32

12 0 0 5

0 7 5 0 1 50

As we can see, there are no more negatives in the bottom row. So, we can read the answer from the matrix. 0 1

212 1 0 4

1 32

12 0 0 5

0 7 5 0 1 50

115

Page 116: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Here we get that x = 5 and v = 4and we set y and u equal to zero. But since the only variables from theoriginal problem are x and y, we get that a maximum of 50 is obtained at the point (5,0).

The other new situation we need to be concerned with is when we have a minimization problem. Supposethat in a given scenario, we want to minimize the object function m = ax+ by. Minimizing a function isthe same as maximizing the negative of the function, so by multiplying just the right hand side of the objectfunction will give the function to be maximized. Think of it like this: the value that minimizes in a givensituation will be the same in magnitude but the opposite sign of the value that maximizes given the sameconstraints. So, if m = ax+ by is the function we want to minimize then M = −ax− by is the equivalentfunction to be maximized. It may be easier to see this in an example, so let us do one that satisfies the othertwo conditions for standard form (all constraints are of the form “less than or equal to” and the variables areall nonnegative).

Example 4.4.2 Minimize −x+2y subject to the following constraints.2x+3y≤ 62x+ y≤ 14x≥ 0,y≥ 0

Solution We begin by introducing the slack variables to change the inequalities into a system of equalities.2x+3y+u = 62x+ y+ v = 14x≥ 0,y≥ 0u≥ 0,v≥ 0

The object function, m = −x+ 2y, is to be minimized. In order to use the Simplex method, we need tochange this to a maximization problem.

m =−x+2y→M = x−2yRewriting this so that all variables are on the same side of the equation, as before, gives us−x+2y+M = 0.We can now write our matrix and determine our next step.

2 3 1 0 0 62 1 0 1 0 14−1 2 0 0 1 0

62 = 3142 = 7

We have no negative entries in the upper part of the last column, so we can proceed to the set of steps fromlast section. We have only one negative on the left side of the bottom row at this point so we have no choicebut to use the first column to find the pivot element. When we check the ratios, we see that the 1,1 entry isthe correct pivot element.

2 3 1 0 0 62 1 0 1 0 14−1 2 0 0 1 0

∼ 12 R1→ R1

1 32

12 0 0 3

2 1 0 1 0 14−1 2 0 0 1 0

∼ −2R1 +R2→ R2

1 32

12 0 0 3

0 −2 −1 1 0 8−1 2 0 0 1 0

116

Page 117: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

R1 +R3→ R3

1 32

12 0 0 3

0 −2 −1 −1 0 80 7

212 0 1 3

Now that we have no more negatives in the last row we can obtain our answer from the matrix. The variableswill be read as before from the matrix, but the value in the bottom right corner is the maximum and not theminimum we want. We will need to consider this when expressing the answer. 1 3

212 0 0 3

0 −2 −1 −1 0 80 7

212 0 1 3

Reading the matrix as before, we see that x = 3 and y = 0 (note that we only give values to the variablesthat were in the original problem. We also see that the maximum here is 3. But we had to multiply theright side of our minimizing function by −1 in order to convert the problem to a maximization one so thatwe could use the method. To remedy this, we multiply the maximizing value by −1 to get the minimizingvalue. Putting this together gives us a minimum value of m =−3 at the point (3,0).

Now we will do an example where we have to worry about both of these situations; that is, a minimizationproblem where not all of the inequalities are in standard form.

Example 4.4.3 Minimize 3x+4y subject to the following constraints.2x+2y≤ 104x+6y≥ 2x≥ 0,y≥ 0

Solution We first begin by noticing that the second inequality is of the wrong form. In order to take care ofthis, we multiply that inequality by −1 and in doing so, change the inequality to ”less than or equal to”.

2x+2y≤ 10−4x−6y≤−2x≥ 0,y≥ 0

Now that both of the inequalities are in the correct from, we can introduce the slack variables.2x+2y+u = 10−4x−6y+ v =−2x≥ 0,y≥ 0u≥ 0,v≥ 0

We want to minimize the function m = 3x + 4y, which means we want to maximize the function M =−3x− 4y. Rewriting this we get 3x+ 4y+M = 0. We can now write our equations in matrix form anddecide from there what is the next step.

We have no negatives on the left side of the bottom row, but we do have a negative in the upper portion ofthe last column. Therefore we are not done with the problem. We have the choice of the first or secondcolumn, so without loss of generality we will use the first column.

117

Page 118: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2 2 1 0 0 10−4 −6 0 1 0 −23 4 0 0 1 0

102 = 5−2−4 = 1

2

When we check the ratios, we see that the 2,1 element gives us a smaller positive ratio and therefore is ourpivot element.

2 2 1 0 0 10−4 −6 0 1 0 −23 4 0 0 1 0

∼ 14 R2→ R2

2 2 1 0 0 101 3

2 0 −14 0 1

23 4 0 0 1 0

∼ −2R2 +R1→ R1 0 −1 1 1

2 0 91 3

2 0 −14 0 1

23 4 0 0 1 0

−3R2 +R3→ R3

0 −1 1 12 0 9

1 32 0 −1

4 0 12

0 −12 0 3

4 1 −32

We have taken care of the negative in the upper part of the rightmost column, which we always do first, sowe turn our attention to the bottom row. There is a negative in the left part of the row, so our next task isto take care of that situation. We have only one negative there so we have no choice but to use the secondcolumn as the pivot column. We do not have a choice of which element is the pivot either since only the 2,2entry will give us a positive ratio. 0 −1 1 1

2 0 91 3

2 0 −14 0 1

20 −1

2 0 34 1 −3

2

So we now pivot about this element.

0 −1 1 12 0 9

1 32 0 −1

4 0 12

0 −12 0 3

4 1 −32

∼ 23 R2→ R2

0 −1 1 12 0 9

23 1 0 −1

6 0 13

0 −12 0 3

4 1 −32

∼ R2 +R1→ R1 2

3 0 1 13 0 28

323 1 0 −1

6 0 13

0 −12 0 3

4 1 −32

∼12 R2 +R3→ R3

23 0 1 1

3 0 283

23 1 0 −1

6 0 13

13 0 0 2

3 1 −43

118

Page 119: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

From this matrix we see that the object function has a maximum value of M =−43 when y = 1

3 and u = 283

and the other variables equal zero. 23 0 1 1

3 0 283

23 1 0 −1

6 0 13

13 0 0 2

3 1 −43

But because we want the minimum for this set of constraints, we get that m = 3x+4y has a minimum valueof 4

3 at (0, 13) .

Example 4.4.4 The Bear Electronics Company makes three different models of MP3 players, the S, the Aand the O models, in two different plants, Philadelphia and Boston. The Philadelphia plant has a productioncapacity of 20 S models, 20 A models and 10 O models per day and maintains a daily operations budget of$1500. The Boston plant has a daily production capacity of 10 S models, 30 A models and 10 O models andmaintains daily operating costs in the amount of $1000. An order is made for 300 S models, 500 A modelsand 200 O models. How many days should each plant be open in order to fill the order for the minimumcost?

Solution We first organize the data in a table so that we can write the constraint inequalities.

Philadelphia Boston OrderS 20 10 300A 20 30 500O 10 10 200

Budget $1500 $1000

We will assign the Philadelphia plant to be x and the Boston plant to be y. This gives us that we want tominimize m = 1500x+1000y subject to the constraints

20x+10y≥ 30020x+30y≥ 50010x+10y≥ 200x≥ 0,y≥ 0

Notice that the inequalities must be greater than or equal to because we need at least 300, 500 and 200 ofthe respective styles of MP3 players to fill the order. Since each of these inequalities is not in standard from,we need to rewrite them as before.

−20x−10y≤−300−20x−30y≤−500−10x−10y≤−200x≥ 0,y≥ 0

We can now introduce the slack variables to make this into a system of equations.−20x−10y+u =−300−20x−30y+ v =−500−10x−10y+w =−200x≥ 0,y≥ 0u≥ 0,v≥ 0,w≥ 0

119

Page 120: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Since we are minimizing m = 1500x + 1000y, we want to rewrite this so that we are maximizing M =−1500x− 1000y. Writing this in the correct form for our purposes gives 1500x+ 1000y+M = 0. Puttingthis together in a matrix would give us the following:

−20 −10 1 0 0 0 −300−20 −30 0 1 0 0 −500−10 −10 0 0 1 0 −2001500 1000 0 0 0 1 0

We have negative values in the upper part of the rightmost column, so we need to take care of those firstbefore even considering the bottom row. Without loss of generality, we will use the first column to find thepivot element.

−20 −10 1 0 0 0 −300−20 −30 0 1 0 0 −500−10 −10 0 0 1 0 −2001500 1000 0 0 0 1 0

−300−20 = 15−500−20 = 250−200−10 = 20

When we check the ratios, the 1,1 entry is the pivot element.

−20 −10 1 0 0 0 −300−20 −30 0 1 0 0 −500−10 −10 0 0 1 0 −2001500 1000 0 0 0 1 0

∼ −120 R1→ R1

1 1

2 − 120 0 0 0 15

−20 −30 0 1 0 0 −500−10 −10 0 0 1 0 −2001500 1000 0 0 0 1 0

∼ 20R1 +R2→ R2

1 1

2 − 120 0 0 0 15

0 −20 0−1 1 0 0 −200−10 −10 0 0 1 0 −2001500 1000 0 0 0 1 0

∼10R1 +R3→ R3

1 1

2 − 120 0 0 0 15

0 −20 0−1 1 0 0 −2000 −5 −1

2 0 1 0 −501500 1000 0 0 0 1 0

−1500R1 +R4→ R4

1 1

2 − 120 0 0 0 15

0 −20 −1 1 0 0 −2000 −5 −1

2 0 1 0 −500 250 75 0 0 1 −2250

We still have negative elements in the upper part of the rightmost column, so we need to repeat this sameprocess again and keep doing so until all of the negatives in that upper part of the column are taken care of.We have two choices for columns and without loss of generality, we will use the second one.

1 1

2 − 120 0 0 0 15

0 −20 −1 1 0 0 −2000 −5 −1

2 0 1 0 −500 250 75 0 0 1 −2250

15

1/2 = 30−200−20 = 10−50−5 = 10

120

Page 121: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

When we take the ratios, we see that two of them give a ratio of 10. Since it is the same, we can chooseeither. Here we chose to use the 2,2 element as the pivot.

1 1

2 − 120 0 0 0 15

0 −20 −1 1 0 0 −2000 −5 −1

2 0 1 0 −500 250 75 0 0 1 −2250

∼ − 120 R2→ R2

1 1

2 − 120 0 0 0 15

0 1 120 − 1

20 0 0 100 −5 −1

2 0 1 0 −500 250 75 0 0 1 −2250

∼−1

2 R2 +R1→ R1

1 0 − 3

20120 0 0 10

0 1 120 − 1

20 0 0 100 −5 −1

2 0 1 0 −500 250 75 0 0 1 −2250

∼−5R2 +R3→ R3

1 0 − 3

20120 0 0 10

0 1 120 − 1

20 0 0 100 0 −1

4 −14 1 0 0

0 250 75 0 0 1 −2250

250R2 +R4→ R4

1 0 − 3

20120 0 0 10

0 1 120 − 1

20 0 0 100 0 −1

4 −14 1 0 0

0 0 1252

252 0 1 −25000

We now have no negative values in the upper part of the rightmost column and, conveniently enough, haveno negative values in the left part of the bottom row. We have therefore reached our optimal solution to theMP3 problem.

1 0 − 320

120 0 0 10

0 1 120 − 1

20 0 0 100 0 −1

4 −14 1 0 0

0 0 1252

252 0 1 −25000

From this matrix, we see that each plant should be operated for 10 days and the minimal cost to produce theMP3 order is $25000. (Remember we are maximizing here, so the maximum of -$25000 corresponds tothe minimum of $25000).

121

Page 122: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.4.1 Exercises

1. Use the Simplex method to minimize 4x+6y subject to the constraints2x+2y≤ 203x+6y≥ 362x+ y≥ 12x≥ 0,y≥ 0

2. Use the Simplex method to minimize 3x+2y subject to the constraints2x+ y≥ 6x+ y≥ 4x≥ 0,y≥ 0

3. Use the Simplex method to minimize x+ 32 y+2z subject to the constraints2x+ y+ 1

2 z≤ 102x+2y−2z≥ 10x≥ 0,y≥ 0,z≥ 0

4. Use the Simplex method to minimize 2x+10y+8z subject to the constraintsx+ y+ z≥ 6y+2z≥ 8−x+2y+2z≥ 4x≥ 0,y≥ 0,z≥ 0

5. The SAO Manufacturing Company makes two different models of teddy bears, the Springtime Bearand the Summer Bear, in two different factories, one in Salem and one in Boston. The Salem factoryproduces 80 Springtime Bears and 100 Summer Bears per day while the Boston factory produces 60Springtime Bears and 100 Summer Bears per day. It costs $2000 per day to operate the Salem factoryand $1600 per day to operate the Boston factory. An order for 480 Springtime Bears and 700 SummerBears was placed by the Ox Toy Company. How many days should each factory be open to fill thisorder for the minimum cost? What is the minimum cost?

122

Page 123: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Chapter 5

Statistics

123

Page 124: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

124

Page 125: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.1 An Introduction to Statistics

Let’s begin with the obvious question what is statistics? Statistics is the study of data. We can analyze datato decide how much of a product to make or how much to charge for an item. We calculate statistics usingempirical data, which is data that is collected experimentally. In this section we will discuss some of thestatistics we can calculate and some of the ways we can represent data.

5.1.1 Calculating Statistics

Two of the most calculated and most useful statistics are the mean and the median. The mean (x) is theaverage of the values and the median (M) is the central value of the set of data when the values are put inorder. We will learn how to calculate both of these and when each is best used.

Example 5.1.1 Calculate the mean and median of the following set of data.21,24,25,26,29,32,35

Solution The mean is the arithmetic average, so to find this we add the values together and divide by 7, sincethere are seven values.

x =21+24+25+26+9+32+5

7=

1927≈ 27.43

The median is the central value when the data is listed in increasing order, so it is truly the middle valuein this case since there are an odd number of elements. In general, if we are not sure which element is themedian and there are an odd number of elements, we can find it by counting in from either side to the n+1

2element, where n is the number of elements in the list. In this case, n = 7 and 7+1

2 = 4,so the median M = 26,the 4th element in the list.

What if there are an even number of elements in the list? The mean will be found the same way but themedian will no longer be the exact center since the center of the list is between two of the values. The nextexample will show how to take care of this situation.

Example 5.1.2 Find the median of the following set of data.21,24,25,26,29,32,35,37

Solution To find the median when there is an even number of elements, we need to identify the two elementsthat surround the center of the data.

21 24 25 26 29 32 35 37

M

We can count in from both endpoints to find the central elements. These will be the n2 and n+1

2 elements.

21 24 25 [26 29] 32 35 37n2

n+12

In our situation here, n2 = 4 and n+1

2 = 5 so the median is between the 4th and 5th elements in the set. To findthe actual value of the median, we take the mean of these two elements. Thus, the median of this set of datais

M =26+29

2=

552

= 27.5

125

Page 126: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Which is better to use in what situation? The mean is an arithmetic average, so if there are any values thatare not consistent with the rest of the data, they can skew the mean. In our first example, we had a mean near27 and all of the data is between 21 and 35. If we added one more value to the set that was not in that samerange, like 125, the mean would be 39.625. This mean is affected by what we call an outlier. An outlier isa value that is not consistent with the rest of the data. (There is a quantitative way to determine if elementsare outliers and this will be discussed shortly.) The median, on the other hand would be exactly the same ifwe had used 125 for the 8th element instead 37. Median is not affected by outliers like the mean is. Becauseof this we say that the median is resistant.

We also need to consider the general pattern of the data when deciding which is better to use. We call thisgeneral pattern the distribution of the data. In real life, many data sets are roughly symmetric, which wouldlook roughly like the picture below.

Notice that the data looks to be spread out evenly on both sides of the middle. This is a characteristicof a roughly symmetric distribution. In a roughly symmetric distribution, the median and mean will beapproximately equal. Alternately, we could have skewed data or data that contains strong outliers. Anexample of a distribution of this type would be

Notice that the tail extends to the right. We would say that this distribution is skewed to the right. Also no-tice that when the data is skewed, the median will be closer to the peak than the mean. If we were extendedthe other way, we would say that the distribution is skewed to the left.

When we consider these factors, the mean is best used when the data is roughly symmetric and has nostrong outliers. The median is better to use when we do not have symmetric data but it could be used ineither situation.

5.1.2 Standard Deviation

When working with the mean, it is often useful to consider the standard deviation of the sample. Thestandard deviation is a measure of the average distance of the observations from the mean of the sample.This gives us an idea of how spread out the data is the larger the standard deviation, the further from themean the average observation is. That is, the standard deviation gives us insight into the dispersion of thedata.

It should be noted that the square of the standard deviation, denoted s2, is called the variance. It is anotherway to measure the spread of the data. We will not worry about the variance here.

126

Page 127: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

To calculate the standard deviation, we first need to find the mean of the observations in the sample. Thenwe need to find the square of the difference between each observation and the mean and add these valuestogether. Then we divide by the number of elements (minus 1) and then take the square root. In formulaform, this is

s =

√∑(x− xk)2

n−1

where xk is the value of the kth observation. Here, you have seen all of the symbols besides maybe ∑. Thisis the capital Greek letter sigma and means summation. What it is telling us to do is add all of the squares.We normally write lower and upper limits with sigma notation, like

n

∑k=1

where n is the number of observations and k is the index, but it would have looked too smashed together inthe above formula. This is really is not as hard as it seems. Before we get to an example, however, we needto look at why we use squares and square roots.

If we wanted to find the total distance that all of the observations have from the mean, we could just addtogether the differences between the observations and the mean. Problem here is that some of them will bepositive and some will be negative. When the sum of these differences is taken, we would get 0. This is notvery useful.

Another way we could go is to use absolute values. There actually is a measure called absolute deviationwhich uses the absolute value instead of the square of the differences. The reason we more commonly usestandard deviation, however, is because absolute values are unwieldy to work with for calculations. So, inorder to guarantee that the distances will all be positive, we take the square of the difference in each case.Then we divide to take the mean of these distances. Finally, the square root is to “undo” the squaring of thedistances.

Example 5.1.3 Find the standard deviation of the following set of data.21,24,25,26,29,32,35

Solution First, we need the mean of the set. We calculated this in the first example and found it to bex≈ 27.43. Next we will set up a table to organize the many parts of the calculation of the standard deviation.

xk xk− x (x− xk)2

21 21−27.43 =−6.43 41.344924 24−27.43 =−3.43 11.764925 25−27.43 =−2.43 5.904926 26−27.43 =−1.43 2.044929 29−27.43 = 1.57 2.464932 32−27.43 = 4.57 20.884935 35−27.43 = 7.57 57.3049

Sum 141.7143

127

Page 128: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Now that we have the sum, we divide by n−1= 6 and then take the square root to get the standard deviation.

s =

√141.7143

6≈ 4.8599

So, the average distance from the mean of the set of data is a little under 4.9 units.

5.1.3 The 5-Number Summary

When dealing with the median, we often calculate a group of values to help with the analysis. These valuesare known as the 5-number summary, which consists of the median, maximum, minimum, first quartileand third quartile. We know what the median is and the maximum and minimum are self explanatory. Thequartiles are the median of half of the data; that is, the first quartile is the median of the elements thatare smaller than the median and the third quartile is the median of the elements that are larger than themedian. We will do two examples to show how to find the 5-number summary, one each with an even andodd number of elements.

Example 5.1.4 Find the 5-number summary for the following set of data.7,15,34,24,20,25,22,28,23

Solution The first thing we need to do is put the elements in numerical order. This gives us7,15,20,22,23,24,25,28,34

Since there is 9 elements, the median is the 5th element in the list. So, M = 23. Since the elements are inorder, it is clear that the minimum is 7 and the maximum is 34. We have left only to find the quartiles.

For the first quartile, denoted Q1, we consider the values that are smaller than the median only, so we arelooking for the median of 7,15,20,22. Since we have an even number of elements here, the median willbe the mean of the two central elements, 15 and 20. Their mean is 17.5 and so we say that Q1 = 17.5.Similarly, we consider only values greater than the median to find Q3, so we are looking at 24,25,28,34.There again are an even number of elements (there will always be the same number of elements to considerwhen finding the quartiles) so will be the mean of the two central elements of this set, 25 and 28. This givesthat Q3 = 26.5.

Example 5.1.5 Find the 5-number summary for the following set of data.1,4,8,9,27,42

Solution These elements are already in order, so we can obtain the maximum of 42 and minimum of 1 rightaway. Since there is an even number of elements, the median of the set will be the mean of the two centralelements. In this case we are looking for the mean of 8 and 9, which is 8.5. For the first quartile, we arelooking at the median of the elements smaller than the median of 8.5, which are 1,4,8. Since there is an oddnumber of elements to be considered here, the median is the central element 4, so Q1 = 4. Similarly, thethird quartile is the median of the three elements larger than the median, so we need the median of 9,27,42.The value we need is Q3 = 27.

We can also find all of these values using the calculator. The TI-83 and TI-84 has a statistical package thatallows us to quickly calculate values like the mean and median and also create statistical plots. We will firstlook at how to find the values in the calculator and then how to create a couple of visual representations of

128

Page 129: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

the data.

Begin by pressing the STAT key. The screen will look like

We want to go into the EDIT menu. When we do we have

Enter the set of data under L1. We will use the data from an earlier example to illustrate this. That data setagain is 7,15,34,24,20,25,22, 28,23. You do not have to order the data first, however. The calculator willtake care of that. After you finish, press 2nd and QUIT to get back to the blank screen. If we don’t, thecalculator will think we are trying to enter data into a cell. Next, press STAT again and scroll to CALC.What we want is 1-Var Stats, which stands for statistics for one variable. Press ENTER on this or press the1 key (because it is the first option) and the screen will look like

If you entered your data under L1 then you just need to press ENTER again. If you did not put the dataunder L1 then you need to specify which list you want the statistics calculated for by pressing 2nd and thenone of the keys 1-6 (the one that corresponds to the list you used). When you eventually press ENTERthe screen have some statistics that will look familiar and some that will not. The mean, x, is the same aswhat we would have obtained (if we would have found it for this set of data) and also two different standarddeviations. The one that we are interested in is the sample standard deviation, denoted as Sx. The differencebetween the two is that the sample standard deviation has a denominator of n−1 and the population standarddeviation has a denominator of n.

129

Page 130: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

In order to understand why there are two standard deviations, we need to understand the difference betweena sample and a population. A sample is a collection of data for which we can calculate our basic statistics. Apopulation would be the entire collection of observations that cannot be used for calculations. For example,if we were doing a study on the class average for students taking Finite Math, our class could be a sample forthe population and all students across the country taking a Finite Math class would be the population. Wecan use the statistics from our class to project what would happen if we considered all Finite classes (withvarying degrees of accuracy) but it would not be reasonable to calculate the average for every Finite Mathstudent in every class in every college and university in the entire country. When we have all of the possi-ble observations, we can simply use n in the calculation of the standard deviation. But when we are using asample to make projections for the whole population, we divide by a smaller number to account for the error.

If we use the arrows to scroll on the calculator screen, we see another set of numbers. This set is the5-number summary that we were calculating earlier.

Notice that these are the same values we found by hand.

5.1.4 Box Plots

Now that we have calculated statistics for our data, how can we visually represent this? There are two waysthat we will discuss. The first is called a box plot (also known as a box-and-whisker plot). Once the datais in the calculator, we can produce a box plot using the statistical plotting capabilities of the calculator. Toget to the STATPLOT menu, press 2nd and Y=. What you should see is

130

Page 131: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Now open whichever plot you want. When you do the screen will have a number of choices. You need touse the arrows to scroll to On and press ENTER. Then select which plot you want. There are two box plotoptions, one that indicates outliers and one that does not (we will determine outliers numerically soon). TheX list needs to be whichever list the data in question is in.

Once you have edited these options in whatever way you see fit (scroll to whichever box plot you want andpress ENTER), press ZOOM and then 9 (Zoom Stat).

This plot gives us an idea of how the data is distributed. It shows us where half of the data lies (between thefirst and third quartiles is the middle 50% of the data) and it gives an idea of how far away from the medianthe extreme values are. Plots of this type are more useful in comparing the ranges or medians of two sets ofdata. We can get the exact values of the 5-number summary from the plot, though, by pressing the TRACEkey and then using the arrows to scroll throughout the diagram.

We said before that outliers are data elements that do not “fit in” with the rest of the data. We can look ata list of elements and determine that some may not seem right, but this is certainly not a discerning wayto decide which elements are not consistent. We can quantitatively determine which elements are outliers,however, by using the IQR criterion. The IQR is the inter-quartile range, which is the difference betweenQ1 and Q3. We classify all elements that are 1.5(IQR) units above Q3 or 1.5(IQR) units below Q1 as outliers.This may sound confusing, so we will look at this in terms of the problem we were just working with.

Example 5.1.6 Determine if there are any outliers in the set of data below.7,15,34,24,20,25,22,28,23

Solution Earlier we calculated Q1 to be 17.5 and Q3 to be 26.5. This gives an inter-quartile range (IQR) of26.5−17.5 = 9 and 1.5(IQR) = 1.5(9) = 13.5. Since Q1 is 17.5, any values below 17.5−13.5 = 4 wouldbe outliers and since Q3 is 26.5, any values above 26.5+13.5 = 40 would be outliers. There are no valuesin these ranges, so this set of data contains no outliers.

131

Page 132: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

We can also determine if there are any outliers using the calculator. The other option for boxplots indicatesoutliers in the plot.

When we choose this box plot option, we are given a choice along the bottom for the type of mark we wantto indicate outliers. The general shape of the box plot will be the same, but the lines that extend from thecentral rectangle will be shorter if there are outliers and the data elements that are outliers will be indicatedby one of these symbols. If there are no outliers then the box plot will look exactly the same regardless ofwhich plot is chosen. In this case, they will be the same, as can be seen below, because we calculated thatthere are no outliers.

If there are outliers, however, we can use the TRACE command and the arrows to scroll to the outliers todetermine the values.

Box plots are best used for comparisons of sets of data. We can produce multiple box plots on the calculator,as can be seen in the next example.

Example 5.1.7 Create box plots on the same set of axes for the following sets of data.S = 7,15,34,24,20,25,22,28,23

T = 3,6,1,8,23,21,36,23,22

Solution Put both sets of data in the calculator the set S under L1 and the set T under L2. Then enter theSTATPLOT menu as before. Under PLOT 1, put in the specifics you’d like for the boxplot of your choosing.Be sure that this plot is using L1 as the X list. Then use the arrows to scroll over to PLOT 2. Put in thespecifics for the box plot as you’d like (ideally the same as what you did for the first box plot) except theXList needs to be changed to L2. The screens should look something like this:

132

Page 133: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Then, as before, press ZOOM and 9 to get the plot. The box plot for the data listed under L1 will be on top.

5.1.5 Histograms

We can also use the data to create graphs that give insight into the distribution of the data in a more tra-ditional sense. The method we will use is the histogram. Histograms group data into classes and thenrepresent the amount of values in each class with the height of an appropriate column. The general shape ofthe collection of rectangles tells us whether the data is symmetric or skewed and the range in which most ofthe data elements reside. We will use the previous example to create a histogram on the calculator.

To create a histogram, open the STATPLOT menu again by pressing 2nd and Y=. Note that if you are goingto use a different plot than the last time you made a plot, you need to shut off the other plot. If you havemore than one on, you will get an error. (On that note, if any of the STATPLOTs are on and you try to makea regular graph, you will also get an error.) After you select whichever plot you want to use, the histogramis the third graph.

Once you change the options to be what you want, you can again press ZOOM and 9. The diagram willgive a rectangle to represent each class. In order to see the frequency in each class or the class boundaries,press the TRACE key. The graph will appear as

This indicates that the first class ranges from 7 to just under 13.75 and there is one element in the class. Asyou scroll through the histogram, you will notice that all of the classes are the same width. This is a neces-sity for a histogram because the relationship between the classes is compared by the area of the rectangles.

133

Page 134: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

The only way to make a direct comparison is if the rectangles have the same width and varying heights. Thetaller the rectangle, the higher the frequency of the class. The calculator also automatically determines thestandard size for the classes.

When creating histograms by hand, we have to do much more in the way of set-up work. First, we have todecide how many classes to create. Then we need to decide how big each class needs to be. Next comes theendpoints of each class. Once we have these then we manually count how many of the data elements are ineach class. Finally, we draw our rectangles on a grid and label our axes and title our graph. It really isn’t ascomplicated as it sounds as long as we remember the steps.

1. Decide on the number of classes.

The rule of thumb for the number of classes is the square root of the number of data elements.

2. Decide on the size of each class.

To do this, find the difference between the minimum and maximum values and then add to this oneunit of the smallest decimal place. So if the data is in while numbers, add 1. If the data elements haveone decimal place, add a tenth. We do this because when we subtract the endpoints, we are not takinginto account the small endpoint. Think of it this way - if the minimum was 1 and the maximum was10, then there are 10 data elements, but if we subtract them, we get 10−1 = 9 and we are effectivelyeliminating the low endpoint. By adding back in, we take care of this. Once we have this quantity, wedivide by the number of classes we found in the previous step.

3. Decide on the endpoints of the classes.

Start with the minimum value. This will be the left endpoint of the first class. To find the left endpointof the next class, add to this endpoint the size of the class. Continue in this fashion to find all of the leftendpoints - you will do this until you have the same number of left endpoints as the number of classesyou found in the first step. We then need to find the right endpoints. To find the first right endpoint,subtract from the second left endpoint one unit from the last decimal place. This will guarantee thatthere will be no overlap in the classes. Continue in this way until you have all of the right endpointsbesides the last one. For the last one, we need to figure out what the left endpoint would be if we hadone more class and then subtract the same way.

4. Count how many go into each class.

The important thing it to make sure each element is only represented in one class.

5. Draw the rectangles.

The bars must touch when we draw them - there can be no gaps. And, the bars must be vertical. Thismeans that the y-axis will be the frequency and the x-axis will be whatever the data represents. Whenwe label the y-axis, we use values to show how tall the rectangles are and when we label the x-axis,there are multiple ways it can be done. The way we will choose to do it here is to write the rangerepresented by the rectangle below the rectangle.

6. Label everything.

This includes the numbers mentioned above as well as names for the axes and the chart’s title.

134

Page 135: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

We need to be a little careful to not exclude any values because of rounding, so when in doubt, round up.It is perfectly fine to have classes with decimal places, and we want to go one more decimal place then thedata has so that we are sure we don’t have any overlap.

Example 5.1.8 For the following set of data, create a histogram.2,3,3,4,4,4,5,6,7,7,8,8,8,8,9

Solution There are 15 data elements, so the number of classes for our histogram will be√

15≈ 4. Next, weneed to know how big each class should be. 9−2+1 = 8 and 8

4 = 2, so each class will be of size 2. Now wecreate the frequency table, which is what we call the table that has the classes and the numbers of elementsper class.

Class Frequency2-3.94-5.96-7.98-9.9

Now, we count.

Class Frequency2-3.9 34-5.9 46-7.9 38-9.9 5

And finally, we graph.

We will worry about how to analyze a histogram in the next section.

135

Page 136: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.1.6 Exercises

For each of the data sets in problems 1-3, do the following:

a) Find the mean and standard deviation.

b) Find the 5-number summary.

c) Determine if there are any outliers using the IQR criterion.

d) Produce a box plot.

e) Produce a histogram.

1. S = {3,5,7,9,13,22,45}

2. T = {.5, .7, .2, .12, .42, .85, .22, .01,0,1}

3. U = {1,2,3,5,8,13,21,34,55,89,144,233,377}

4. The following are the numbers of homeruns per season hit by Manny Ramirez and by Alex Rodriguezbetween 1995 and 20061. Produce a box plot for each and use them to compare the two sluggers. Whowould you rather have on your team as a power hitter? (Do not include personality in this decisionbecause that makes the decision too easy).

Manny 31 33 26 45 44 38 41 33 37 43 45 35Arod 5 36 23 42 42 41 52 57 47 36 48 35

1Data obtained from www.baseballreference.com

136

Page 137: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.2 Normal Distributions

In the last section, we talked about some ways we can describe distributions in numerical and pictorialways. But sometimes we want to use the data to explore the likelihood of an event occurring. If the datais irregular, this can be very difficult. But when the data follows some kind of regular pattern, we can usethe mean and standard deviation to find the probability of an event. Real-life situations are governed byNormal distributions. These are the symmetric bell curves that we generally think of when we think ofdistributions. They look like

These are the curves which have the majority of the observations in the middle, indicated by the single peak,and then the observations get less and less frequent as we get further from the mean. The area under thecurve represents 100% of the observations. Since the curve is symmetric, the mean and median are the sameand therefore 50% of the observations lie above the mean and 50% lie below the mean. What this meansfor us is that we can predict the likelihood of an event occurring based on how far away from the mean thatobservation lies. We do this by standardizing the values based on the mean and standard deviation for theparticular situation.

Roughly speaking, there is a 68%-95%-99.7% rule with Normal distributions. This means that 68% of allobservations lie within 1 standard deviation of the mean, 95% lie within 2 standard deviations of the meanand 99.7% of all observations lie within 99.7% of the mean. Pictorially, this would look like

So, in each of the tails to the outside of the mean + 2SD lines there is 2.5% of the observations and in eachof the tails to the outside of the mean + 3SD lines there is .15% of the observations. These percentages holdif there is enough data, but they roughly hold for any Normal population.

So how can we use this to predict the likelihood of events? We can use something called a z-score to findthe probability associated with a particular score. If we know how many standard deviations away from themean a particular element is, we can make a prediction based on the pattern that exists with the rest of the

137

Page 138: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

observations. The z-score is the result we obtain when we convert the observations from our particular dataset to a standardized scale. So, the z-score is how many standard deviations an observation lies from thecenter of the distribution. Based on this distance, we can give a probability, or likelihood, that the eventcould occur. Let us see how to calculate these on the calculator.

Example 5.2.1 The Mathematics portion of the SAT exam is Normally distributed with a mean of 500 anda standard deviation of 100. What is the probability of getting a score of at least 650?

Solution Since these are continuous curves, the probability of any one score is virtually 0, regardless of thescore. We have to look at the probability that a score lies in some range. In this case, we are looking forscores between 650 and 800. But, the Normal distribution curve will not stop at 800; it continues on andconsiders all possible values up to infinity as the upper bound for the range. So we will have to “trick” thecalculator into using an infinite value as the upper bound so that we can get as accurate a probability aspossible.

Pictorially, we are looking for the probability that the score in question lies in the following range :

We can find the z-score using the formula z = x−µ

σ, where µ is the mean of the population, σ is the standard

deviation of the population and x is the value of the observation. (Note : if we are finding the mean andstandard deviation from the given data then we denote these values as x and s. There is a slightly differentformula when using empirical data, which we will get to shortly.) In this case, we have that

z =650−500

100= 1.5

So, we are looking for what percent of the observations lie more than 1.5 standards deviations above themean. We could look this value up using a table, but we can obtain basically the same value (but a bitmore accurate) from the calculator. The way in which we do this is by using the normalcdf command.The cdf stands for the cumulative distribution function. This function is a running total of the area in thegiven region. To use this command, we begin by getting into the menu by pressing 2nd and VARS and thenselecting the normalcdf command.

138

Page 139: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

The format of the input for the command is as follows:Normalcdf(lower bound,upper bound, mean, standard deviation)

In our case, we know the lower bound (650), the mean (500) and the standard deviation (100), but do nothave an upper bound. This is where tricking the calculator comes into play. We need to use a ridiculouslyhuge number for the upper bound to simulate infinity (if we had a similar situation but needed an infinitelower bound, we would make up some ridiculously huge negative number to represent negative infinity).So, for example, we could use

When we press ENTER, we get that the probability of getting a score greater than 650 on the Math portionof the SAT exam is approximately 6.68%.

We can also use a different command to get a visual representation of the area in question, but we should getthe same probability. This command is called ShadeNorm. In order to use this, however, we have to set thewindow so that the whole picture appears on the screen and also we have to make sure that the STATPLOTSare all Off. If they are not then we will get multiple pictures on the screen and it will possibly be confusing.

Once the STATPLOTS are all turned off, open the WIMDOW menu. Use the following values to set thewindow (you can type in the formulas and the TI-83/84 will calculate the values for you).

1. Set Xmin=mean-4*standard deviation and Xmax=mean+4*standard deviation.

2. Set the Ymin = -.4/standard deviation and Ymax = .4/standard deviation.

If this is done for this example, the following will be the values on the Window screen.

139

Page 140: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Now that the window is appropriately sized, press 2nd, then VARS and then scroll to the DRAW menu.The first option is ShadeNorm. Open this command and then use the same format for the input as with thenormalcdf command. For this example, we get

When we press the ENTER key, we get the picture we were looking for and also the associated probabilityof the shaded region.

Note : You cannot clear the picture out of memory simply by pressing the CLEAR key. If you do, thispicture will be on the screen when you try to produce another plot. They will be on top of each other andmake it quite confusing. In order to clear out the picture, press 2nd and PRGM to get to the DRAW menuand then select ClrDraw to remove the picture.

5.2.1 What do the probabilities mean?

Before we continue, we want to make sure we understand what the probabilities we are calculating actuallymean. It can be misleading to say that the probability of getting a 650 on the SAT Math portion is 6.68% orthat the chance of the Red Sox winning the World Series is 99%. What do these things really mean? Firstoff, they are entirely different they are both probabilities but they represent entirely different concepts. Thelatter is called a personal probability and is not based on any kind of experimentation or trial. There is noscientific proof that the Red Sox will win it is just an opinion. The former is based on empirical data. But itdoes not mean that out of every 100 people that 6.68 of them will score at least 650. Probabilities are basedon a long series of trials many, many trials. The probability we calculated in the last example means thatin a long series of trials, a randomly selected person will have a score of at least 650 on the Math portion ofthe SAT exam 6.68% of the time.

5.2.2 Probabilities with Populations

Depending on what information we have, we need to use slightly different formulas to find the probabilitiesof events occurring. If we are given the mean and standard deviation for a Normal population (since wecannot calculate them) then we say that the population is Normally distributed with a mean of µ and astandard deviation of σ . When dealing with a population, we are dealing with the probability that oneobservation lies in a certain range.

140

Page 141: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 5.2.2 What is the probability that a randomly selected person has an IQ between 100 and 130given that IQ scores are Normally distributed with a mean of µ = 100 and a standard deviation of σ = 15?

Solution We are dealing with the mean and standard deviation for the population in this example. We have alower bound of 100 and an upper bound of 130. When we use the normalcdf command, we get the following:

This shows that if we randomly select a person, their IQ will be between 100 and 130 47.72% of the time.

Example 5.2.3 The average amount of time it takes for a smoker to quit is 37 days (this is a made-up value)with a standard deviation of 2.7 days. If the amount of time is Normally distributed, what percentage ofsmokers take less than 35 days to quit smoking?

Solution Since we are talking about the area under a Normal distribution curve, the probability and thepercent of people are represented the same way. So, just like before, we want to find the percent of the curvethat is less than 35 days (somewhere between 0 and 1 standard deviation below the mean. We will find thisusing the ShadeNorm command. The upper limit is 35 days and the lower limit will be some ridiculouslylarge negative value to represent negative infinity. When we use this command, the screen and the Windowshould look

The plot will look like

So, if we have a very large sample of smokers, approximately 22.94% of them will quit in less than 35 days.

141

Page 142: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.2.3 The Central Limit Theorem

When we are using a sample, we have a smaller standard deviation because averages vary less than individualvalues. The reason we can use this to help us find probabilities is because of the Central Limit Theorem.This is an integral theorem in the study of probability. We will not prove it here but we will state the theorem.

Theorem 5.2.4 The Central Limit Theorem states that if we draw a simple random sample of size n from apopulation with mean µ and standard deviation σ then the sampling distribution of the mean x is approxi-mately Normal when n is large (at least 30). We express this symbolically as

x∼ N(

µ,σ√

n

)Here, a simple random sample of size n is a collection of n elements chosen from the population in such away that every single element in the population has an equal chance of being selected.

So what does this do for us in practice? Notice that the standard deviation is smaller since we are dividingby the square root of the size of the sample. The standard deviation is smaller since averages have a smallervariation than an individual value. In these situations, we are looking at the probability that the averagevalue for the simple random sample falls within a prescribed range whereas we earlier were looking at theprobability that an individual value fell within a given range.

Example 5.2.5 If we poll 25 people who recently quit smoking, what is the probability that their averagequit time was less than 35 days?

Solution Using the information from the previous example combined with the Central Limit Theorem wehave that

x∼ N(

37,2.7√

25

)∼ N(37,5.4)

Using the same approach as the last example we get the following screens

The shaded area will be different because of the significantly smaller standard deviation.

142

Page 143: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Here, the probability that the average quit time for the 25 smokers is not very likely at all to be less than 35days. In fact, the probability is .0106˙

Clearly, having a simple random sample makes a large difference when finding the probability. The largerthe simple random sample, the smaller the standard deviation and consequently, the smaller the chances ofbeing far from the mean.

5.2.4 The Standard Normal Distribution

A standard Normal distribution has a mean of 0 and a standard deviation of 1. Other than this, wecalculate probabilities in the same manner as with other Normal distributions.

Example 5.2.6 Find the percent of elements that would be more than 2 standard deviations from the meanin a standard Normal population.

Solution Since we are not told whether we are looking for elements greater than the mean or smaller thanthe mean, we need to find both. We will use the normalcdf function to calculate these probabilities. Whatwe want is the area of the tails taken together.

For the lower tail we are looking for the area between negative infinity and -2. For the upper tail we arelooking for the area between 2 and positive infinity. The calculator gives the following for areas :

Notice that the area of both tails is the same. This is because the Normal distribution curve is symmetric. So,we could have found the area of just one tail and then doubled it and we would have gotten the same result:the percent of elements in the tails of the standard Normal curve that are at least 2 standard deviations fromthe mean is approximately 4.55%. This symmetry property is not limited to the standard Normal population,however. As long as the distribution curve is Normal, the symmetry property holds.

143

Page 144: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.2.5 Exercises

1. Suppose that the mean commute time to Salem State College is 24 minutes with a standard deviationof 6 minutes.

(a) What percentage of students have a mean commute time of more than 33 minutes?

(b) If we polled 20 students, what is the probability that their mean commute time is more than 33minutes?

2. A largely Normally distributed population has a mean of 4.50 and a standard deviation of 1.05.

(a) Find the probability that a randomly selected score is less than 5.00.

(b) If a sample of size n = 40 is randomly selected, find the probability that the sample mean x isless than 5.00.

3. A study of the time high school students spend working each week at a job found that the mean is10.7 hours and the standard deviation is 11.2 hours. If 42 high school students are randomly selected,find the probability that their mean weekly work time is less than 12 hours.

4. The average time it takes to drive around Boston to find a parking space, seeing how I refuse to usegarages, is 14 minutes with a standard deviation of 8.5 minutes.

(a) What is the probability that I find a parking spot in under 7 minutes?

(b) What is the probability that in 8 trips to the city, the mean time for finding a parking spot forthose trips is less than 7 minutes?

5. Suppose that the amount of time it takes for the average finite student to finish one of the exams is115 minutes with a standard deviation of 28 minutes.

(a) What is the probability that a class of 15 students finish with an average time of less than 115minutes?

(b) What is the probability that a class of 30 students finish with an average time of less than 115minutes?

6. Suppose I tracked the length of my tee shots for an entire golf season and found that my average drivewas 245 yards with a standard deviation of 37 yards. Suppose further that the drives are Normallydistributed.

(a) What is the probability that a randomly selected drive exceeded 280 yards?

(b) What is the probability that my average drive exceeded 280 yards for an entire round of 18 holes?

7. Stephanie is on a conference call and over the course of time, the calls take an average of an hour witha standard deviation of 12 minutes. If she has 3 conference calls this week, what is the probabilitythat their average time will be less than 45 minutes?

8. The Providence Grays play doubleheaders on almost every single date. Suppose that the time ofgames is Normally distributed with a mean of 156 minutes and a standard deviation of 22 minutes.What percent of games will be completed in less than 2 hours?

144

Page 145: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

9. Suppose that the length of time for the Red Sox-Yankees playoff games are as follows (in minutes):185,221,201,193,212,231,229

If we can assume that the mean and standard deviation for these times is representative of the meantime for any Red Sox-Yankees game, what is the probability that a randomly selected game is com-pleted in under 3 hours?

145

Page 146: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.3 Scatterplots and Linear Regression

5.3.1 Scatterplots

In the previous section, we discussed Normal distributions, which deal with one quantitative variable. Inthis section, we will look at what happens when we have two quantitative variables that are measured onthe same individuals. We express these two variables as ordered pairs and can plot them in the usual way aspoints on the graph. When we graph data of this type as a collection of points, we call the graph a scatterplot.Let us begin with an example.

Example 5.3.1 The following are the high school and college grade point averages (on the 4.0 scale) for15 random students. Make a scatterplot for the relationship between the high school GPAs and the collegeGPAs.

Student HS GPA College GPA1 2.20 2.252 3.85 3.783 4.00 3.924 2.43 2.615 2.42 2.246 3.64 2.987 3.22 3.318 2.90 2.659 3.25 3.1210 3.00 2.8311 3.48 3.6012 2.75 2.8813 3.25 2.4014 2.80 2.2015 3.38 3.21

Solution First, we have to decide which data is going to be for the x-axis and which for the y-axis. There aretwo types of variables that we could have the response variable measures the outcome of the experiment andthe explanatory variable measures the changes in the response variable. We want the explanatory variableto be on the x-axis. In examples such as this, where both are response variables, it does not matter which weuse for x and which we use for y. So, without loss of generality, we will use the high school GPA as the xand the college GPA as the y in each of the pairs. We know how to graph the points by hand, so we will plotthem here using the calculator. To do so enter the high school GPAs under L1 and the college GPAs under L2in the STAT menu under EDIT. Be sure that the ordered pairs from the data set are on the same horizontalline in the lists on the calculator. Then press 2nd and Y= to get into the STATPLOT menu.

The scatterplot is the first of the six plots that we have to choose from. We then have to make sure that theXList and YList are L1 and L2, respectively. At this point the screen should look like

146

Page 147: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Notice that we also have a choice for what marks to use for each of the data elements. Remember that eachof these marks represents an ordered pair from the list of data. We then press ZOOM and 9 as before to getthe plot. What we should now have is

This is what we call a scatterplot. If we want to look at individual values, we can use the TRACE command.

5.3.2 The Correlation Coefficient

This appears to be a random collection of points. What is important to us is to determine if there is somekind of relationship between the x-variables and the y-variables. That is, we want to see if there is a linearcorrelation between the two variables. We can determine what kind of correlation there is by calculatingthe correlation coefficient, which is a value that ranges between −1 and 1 and tells us how strong the rela-tionship is between the two variables.

Before we get to calculating the correlation coefficient for a pair of variables, we will look at what thepossible values are and what those values mean. We use r to represent the correlation coefficient. Thefollowing give an idea of what different values for r mean.

• A correlation coefficient of r = 1 indicates that there is a perfect positive relationship.

• A correlation coefficient of r = .7 indicates that there is a strong positive relationship.

• A correlation coefficient of r = .3 indicates that there is a weak positive relationship.

• A correlation coefficient of r = 0 indicates that there is no correlation.

• A correlation coefficient of r =−.3 indicates that there is a weak negative relationship.

• A correlation coefficient of r =−.7 indicates that there is a strong negative relationship.

• A correlation coefficient of r =−1 indicates that there is a perfect negative relationship.

147

Page 148: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Positive and negative correlation coefficients do not have anything to do with which is a “better” relation-ship; rather, it indicates whether there is a direct or inverse relationship. If there is a direct relationship thenthe y-variables are increasing as the x-variables are increasing. If there is an inverse relationship then they-variables are decreasing as the x-variables are increasing.

The following graphs give some possible scatterplots and the associated correlation coefficient.

We can find the correlation coefficient by using the following method:

Suppose that we have our data where each of the pairs of data are of the form (xi,yi) for i = 1, . . . ,n. Eachof the sets of data individually has a mean and standard deviation. Let these be denoted as x, y, sx, sy. Thenthe correlation coefficient is determined by using the formula

r =1

n−1

n

∑i=1

(xi− x

sx

)(yi− y

sy

)What this basically means is that for each pair (xi.yi), subtract the x from the mean and then divide by thestandard deviation and then do the same thing for the y value. Then multiply those together. Once this is

148

Page 149: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

done for all of the pairs of elements, add them together and then multiply this sum by 1n−1 .

This probably seems a lot more complicated than it really is. We can get some of the information we needby using 2-Var Stats. We will use the first example we were working with (the GPA example) to see howto calculate these statistics. To get the statistics we need, press STAT and then use the arrows to scroll toCALC. Press 2 and the screen will have nothing on it except 2-Var Stats. We now need to tell the calculatorwhere the two sets of data are that we want to use.

When we press ENTER, we get the mean and standard deviation for both sets of data, as well as otherstatistics.

Now we can calculate the correlation coefficient. It may sound more confusing then it really is, but the workrequired to find the correlation coefficient is as tedious as it seems. Fortunately, we can find this value usingthe calculator.

Begin by pressing the STAT key and the use the arrows to scroll to TESTS. Here, we want the option namedLinRegTTest. Press ENTER. The screen will now look like

Since we are not using this for anything else, the only parameters we need to be concerned with is the Xlistand Ylist. Be sure that these indicate the correct lists for the data we are working with. Then use the arrowsto scroll to Calculate. When we do so, we get a lot of information that we will not use, but as we scrolldown the page we get to “r =” at the bottom. This is the correlation coefficient for the two variables.

149

Page 150: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

So, as we can see, the correlation coefficient for the GPA data is approximately r = .68, which indicates thatthere is a relatively strong positive relationship between the high school GPA and college GPA.

Another important value we see on this screen is r2. We don’t have a fancy name for this value, but what itrepresents is how much better our predictions will be when we use the regression line instead of just usingthe mean to make those predictions. This value is just the square of the correlation coefficient, so they areclosely related in that the closer to ±1 the correlation coefficient is, the closer r2 will be to 1. And if r2 = 1,what would mean our predictions would be 100% better, which is ideal. Here, we see r2 ≈ .46, so anypredictions made using the regression line associated with this data will be about 46% better than just usingx to guess values.

All this talk of regression lines and predictions and we aren’t even there yet. We will be shortly. But first ...

5.3.3 Points of Clarification for Correlation Coefficients

There are a few things that we need to be clear about with correlation coefficients. First, the correlation maybe coincidental. A strong relationship indicated by the data does not mean there is a definite relationshipbetween the two sets of data. Some possibilities are:

1. There is a direct cause-and-effect relationship (i.e. x causes y).

2. There is a reverse cause-and-effect relationship (i.e. y causes x).

3. The relationship may be caused by a third variable that was not part of the scatterplot. A variable ofthis type is called a lurking variable.

4. There may be a complicated interrelationship between more than just two variables. Depending onthe situation, there may be many variables that impact the relationship.

The bottom line is that we have to be careful when interpreting the data. In the last example, the correlationcoefficient would seem to indicate that there is a relatively strong relationship between the grades one getsin high school and the grades the same individual gets in college. We would think that someone who learnsa lot in high school and possibly how to study will have that knowledge and skill carry over to college, sothis would seem to be a direct cause-and-effect relationship. But scatterplots and correlation alone are notenough for us to definitely say that correlation implies causation.

5.3.4 Linear Regression

When there is a strong relationship between the two variables, we want to find some way to make predic-tions based on this relationship. We do this by using a linear regression line. That is, when there is a

150

Page 151: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

strong linear relationship between the two variables, we want to find the linear function that best fits the data(i.e. the linear function that fits the data with the least error). This is found by using the method of leastsquares. We need to identify which is the explanatory variable and which is the response variable (why willbe explained shortly) and then we can find the linear equation using basic statistics from the data sets.

The equation of the regression line is of the form∧y = mx+b where

m = rsy

sx, b = y−mx

So, we can find the linear regression line simply by using the mean and standard deviation for the individualsets of data and by knowing the correlation coefficient.

Example 5.3.2 Find the regression line for the relationship between the GPAs in the first example in thissection.

Solution From our earlier work, we know

x = 3.105 sx = .53y = 2.892 sy = .46

r = .6772

We calculate the slope to be

m = .6772.46.53≈ .5876

and the y-intercept to beb = 2.892− .5876(3.105)≈ 1.0675

This means that the linear function that best fits the data from the first example is

∧y = .5876x+1.0675

As you can probably guess, we can use the calculator to find this regression line directly. First, produce thescatterplot exactly as we did before. This way, once we have the regression line, we can plot them togetherand visually see the relationship between the data and the line. As a reminder, here is the scatterplot wefound earlier for the GPA example.

Now press STAT and scroll over to the CALC menu. The command we want is the 4th option. Noticethat there are other regression options we could also find higher order regression lines. These would beparabolas that best fit the data, cubics that best fit the data, etc, but we will only concern ourselves with thelinear function that best fits the data.

151

Page 152: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

If the data is under L1 and L2 then you do not need to specify which lists the x and y values are under.However, if you use other lists for the data then you have to list them on the screen so that calculator knowswhere to look. The two possible screens would be

Whichever way you go, pressing ENTER gives

These are basically the same values we found when we calculated the slope and y-intercept by hand. Thedifference is because we rounded our values and the calculator did not. The implication here is that thecalculator is slightly more accurate.

Now, press Y= and enter the linear regression line on Y1, but be sure to leave on Plot1 (We know Plot1 is onbecause it is highlighted on the screen below.)

When we press GRAPH, we see the regression line plotted through the data.

152

Page 153: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.3.5 Important things to note about regression lines

• The response variable is what we are studying.

• The explanatory variable may or may not affect the response variable - this is why we are looking tosee if there is a relationship. If we already knew if there was a relationship, there would be no pointin studying the two variables.

• The response variable (y) is dependent on the explanatory variable (x).

• We need to be careful in determining which is the explanatory variable and which is the responsevariable (if there is one of each) because the linear regression line found using the least squaresmethod only considers distances in the y-direction. If the variables are reversed then the resultingregression line will be different and the predictions we make will be greatly affected.

• The regression line will always pass through the point (x,y) but may not pass through any of the otherpoints.

• The closer to ±1 the correlation coefficient is, the better the regression line will fit the data. But, allof the data points will be on the regression line only when there is a perfect relationship.

5.3.6 What good is having this regression line?

We said in the earlier section that we could use the linear regression lines to make predictions about thesituation. For example, what GPA could we expect in college from a student who graduated high schoolwith a 3.5? The linear regression line gives us the means to make a prediction about this value based on theresearch that has already been done. We can simply substitute x = 3.5 into our regression equation and thecorresponding y-value will be the predicted college GPA.

∧y = .5876(3.5)+1.0675≈ 3.12

So, we can expect a student with a 3.5 GPA in high school to have approximately a 3.12 GPA in college.

This is the point of a regression line. We can use it to predict the future or to find an the value of anexplanatory variable for a value of a response variable that is not explicitly part of the data. The importantthing to note is that the regression line is the linear function that fits the data with the least error. It isnot going to be exact for most of the data. If we substitute an actual data point into the regression line,the approximating value will more often than not be different then the actual value. For example, using ourregression line in the same example, if we substitute the value of x = 4.0, we get [

∧y = .5876(4.0)+1.0675≈

3.42 but the point in the data was (4.0,3.92). We have to remember that the regression line gives a prediction,but empirical data is more accurate.

153

Page 154: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Example 5.3.3 The percentage of smokers in a given city has declined over time. The following table givesthe percentage of smokers in the city in 10 year increments.

Year 1900 1910 1920 1930 1940 1950 1960 1770 1980 1990% 48 47 44 42 38 33 30 28 25 20

a. Create a scatterplot for the given data.

b. Find the correlation coefficient for the two variables.

c. Find and interpret r2

d. If there is a strong relationship, find the regression line.

e. Based on this data, what percentage of smokers can we predict in this city in the year 2007?

Solution

a. To create the scatterplot, we enter the year under L1 and the percentage under L2 as we did before. Justa reminder, we get to the list by using the Edit option in the EDIT menu after we press STAT. Then weenter the STATPLOT menu by pressing 2nd and Y= as we did before. In whichever plot we choose, weturn the plot on, choose the 1st option for scatterplot and make sure that the Xlist and Ylist are the listson which we entered the data. Then we press, as before,ZOOM and 9. The scatterplot for this data is

b. Without even finding the correlation coefficient, we can see that there is a strong negative relationship.When we calculate r, we get r =−.9935.

c. r2 = .9870, which tells us that we would be 98.7% more accurate with any predictions we would makeover using the mean y.

d. Since there is a strong relationship, we will find the regression line. Using the CALC menu under STATwe will select the 4th option, LinReg (ax+b). (Remember if the data is not under L1 for the explanatoryvariable and L2 for the response variale then we need to specify the lists so that the calculator knowswhere to get the information.) When we press ENTER, we get the values for the y-intercept and slopeof the line.

154

Page 155: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Entering these under Yl allow us to see the line with the points as before.

e. By using our regression line∧y =−.3139x+656.72121 we can predict that the percentage of smokers in

this city in the year 2007 should be

∧y =−.3139(2007)+656.72121≈ 15.71%

155

Page 156: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.3.7 Exercises

For each of the three questions, do the following:

a. Create a scatterplot for the given sets of data.

b. Find and interpret the correlation coefficient.

c. Find and interpret r2.

d. Find the equation of the regression line.

e. Answer the question with the set of data.

1. The following list gives the power numbers for 10 Red Sox players for the 2006 season.2

Name Home Runs RBIDavid Ortiz 54 137

Manny Ramirez 35 102Jason Varitek 12 55Trot Nixon 8 52

Kevin Youkilis 13 72Coco Crisp 8 36

Willy Mo Pena 11 42Mike Lowell 20 80Mark Loretta 5 59

Alex Gonzalez 9 50

We want to know if there is a relationship between the number of home runs hit and the number ofruns batted in. If a player hit 60 home runs, how many RBI could we expect the player to have had?

2. Seeing as how we are all huge Red Sox fans, we are also interested in the relationship between thenumber of hits and the number of runs scored. Here are the associated numbers for the same 10players from the 2006 Red Sox team.2

Name Hits RunsDavid Ortiz 160 115

Manny Ramirez 144 79Jason Varitek 87 46Trot Nixon 102 59

Kevin Youkilis 159 100Coco Crisp 109 58

Willy Mo Pena 83 36Mike Lowell 163 79Mark Loretta 181 75

Alex Gonzalez 99 48

If I was on the Sox in 2006 and got 200 hits, how many runs would you predict that I would havescored?

156

Page 157: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

3. The following chart gives the passing yardage and touchdown passes for Tom Brady during his Patriotscareer so far.3

Year Passing Yards Touchdowns2000 6 02001 2843 182002 3764 282003 3620 232004 3692 282005 4110 262006 3529 242007 4806 502008 76 02009 4398 282010 3900 362011 5235 39

We are looking at the relationship between passing yards and touchdown passes. Based on this data,how many touchdowns can we expect Tom Brady to throw next season if he passes for 4000 yards?

2data obtained from www.baseballreference.com3data obtained from www.espn.com

157

Page 158: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

158

Page 159: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

Solutions to Exercises

159

Page 160: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

160

Page 161: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.1 Exercises

1. 2x−5y =−5

2. x+ y = 3

3. y =−1713 x+ 11

13

4. y = x−5

5. x-intercept (3,0), y-intercept (0,−3)

6. x-intercept (9,0), y-intercept (0,6)

7. x-intercept (0,0), y-intercept (0,0)

8. x-intercept (−5,0), no y-intercept

9. no

10. yes

11. no

12. yes

13. undefined

14. zero

161

Page 162: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.2 Exercises

1. 2.

3. 4.

5. 6.

7. 8.

9. 10.

11. 12.

162

Page 163: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.3 Exercises

1. (3,7)

2.(1

2 ,12

)3. No intersection - the lines are parallel

4.(1, 3

2

)5. (5,2.7)

6. (0,0)

7. (−45,−29)

8. (2,0)

9. They are the same line - every point on the line is a solution.

10.(−4

9 ,1999

)

163

Page 164: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

2.4 Exercises

Note: With the shading problems, we are shading the part that is not the solution. The unshaded part is thesolution in each problem 1-8.

1. 2.

3. 4.

5. 6.

7. 8.

9. below

10. above

11. above

12. above

13. The feasible set is the collection of points that satisfy all of the inequalities for the given situation.

164

Page 165: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

3.1 Exercises1.

2.

3. 4.

5. There is no region that simultaneously satisfies both inequalities.

6. Lampes Shipping Company

a. Here is our completed table.

Type 1 Type 2 Truck CapacityVolume 100 20 2000Weight 400 720 14400Charge 75 100

b. The constraints. 100x+20y≤ 2000400x+720y≤ 14400x≥ 0,y≥ 0

c. C = 75x+100y

d. Finally, our feasible set.

165

Page 166: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

7. Base Ball Bats

a. The constraints. x+ y≤ 65020x+40y≤ 22000x≤ 400y≤ 500x≥ 0,y≥ 0

b. P = 40x+60y

c. And the feasible set. Notice that this one looks a little different. When using the Inequalz app on theTI-84, it is relatively easy to produce the feasible set this way. By hand we want to produce the feasibleset the way we have discussed, but using technology, this is the easier way to go.

166

Page 167: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

3.2 Exercises

1. {(0,2), (0,8), (4,0), (2,0)}

2. {(0,0), (0,20), (10,0), (10,5), (5,15)}

3. {(0,0), (0,20), (20,0), (20,6), (16,12)}

4. Minimum of 8 occurs at (4,0).

5. Maximum of 43 occurs at (1,8).

6. Minimum of 6 occurs at (2,0).

7. No Solution.

8. Maximum profit of $480 occurs at (92 ,3). (I know you can’t make half a watch - this is an exercise ...)

9. Minimum cost of $4 occurs when you buy 2 energy bars and no energy drinks.

10. Minimum price of $1 occurs when 100 ounces of rice and 0 ounces of lamb are used.

167

Page 168: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.1 Exercises

1. 5×3

2. 3×2

3. 2

4. 2

5. R3→−R3 and R2↔ R3

6. R2→ R1 +R2

7. R1→ 2R2 +R1 and R3→ R2 +R3

8. R2→ 4R1 +R2 and R1→ 2R1

9. We pivoted about the 3,3 position. 3 7 00 4 0−1 −2 1

10. We pivoted about the 4,2 position.

−3 0 −22 0 1

2−1 0 01 1 1

2

11. We pivoted about the 2,1 position. 0 −1 −3

1 1 20 3 −6

12. We pivoted about the 1,2 position. −2 1 −4 3

0 0 0 0−5 0 −15 17

Notice that row 1 and row 2 are multiples of each other, which is what made the resulting row of all0s.

168

Page 169: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.2 Exercises

1.[1

4 −14

18

38

]

2.[

1 00 1

]3. Not invertible

4.[−5 11

26 −13

2

]5. x = 12, y =−6

6. x = 3, y = 2

7. Infinite number of solutions - same line

8. No solution

9. x = 4, y =−2, z =−2

10. x = 3, y = 1, z = 2

11. x = 3, y = 1, z = 2 (not a mistake - same solution)

12. x1 = 2, x2 =−1, x3 = 1

169

Page 170: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.3 Exercises

1. M = 20 at (4,0)

2. M = 110 at (10,20)

3. M = 190 at (10,20)

4. M = 12 at (0,6,0)

5. Profit of $14000 is attained when 6 window displays, 4 aisle displays and 0 end caps are designed.

170

Page 171: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

4.4 Exercises

1. m = 40 at (4,4)

2. m = 10 at (2,2)

3. m = 5 at (5,0,0)

4. m = 36 at (2,0,4)

5. The minimal operating cost is $12400 and is attained when the Salem factory is open for 3 days andthe Boston factory is open for 4 days.

171

Page 172: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.1 Exercises

1. (a) x≈ 14.86, s≈ 14.70

(b) min = 3,Q1 = 5,M = 9,Q3 = 22,max = 45

(c) No outliers

(d)

(e)

2. (a) x≈ .402, s≈ .354

(b) min = 0,Q1 = .12,M = .32,Q3 = .7,max = 1

(c) No outliers

(d)

(e)

3. (a) x≈ 75.769, s≈ 113.775

(b) min = 1,Q1 = 4,M = 21,Q3 = 116.5,max = 377

(c) No outliers

(d)

172

Page 173: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

(e)

4. Below are the box plots for the two players. Based on the comparison, we see that Alex Rodriguezhas a greater range in his homerun production. Although he may have seasons with more homerunsthan Manny Ramirez, Manny is more consistent and would be, in my book, a more desirable playerto have on the team. Too bad both are not clean players ...

173

Page 174: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.2 Exercises

1. (a) 6.68%

(b) less than .01%

2. (a) 68.44%

(b) 99.87%

3. 77.34%

4. (a) 20.51%

(b) .99%

5. (a) 50%

(b) 50%

What is the point of this question? No matter the size of the simple random sample, 50% is 50%.

6. (a) 17.21%

(b) .00299%

7. 1.52%

8. 1.03%

9. x = 210.29 minutes

s = 17.90 minutes

Probability is 4.53%

174

Page 175: Finite Mathematics : A Business Approachbtravers.weebly.com/.../finite_mathematics_012412.pdf · Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes

5.3 Exercises

1. RBIs v. HR

(a)

(b) r = .9511, which indicates a strong, positive correlation.

(c) r2 = .9046, which means that our predictions will be 90.46% more accurate than using y

(d)∧y = 1.904x+35.175

(e) about 149 RBIs

2. Runs v. Hits

(a)

(b) r = .8308, which indicates a strong, positive correlation.

(c) r2 =,6902, which means that our predictions will be 69.02% more accurate than using y

(d)∧y = .571x−3.931

(e) about 110 runs

3. Touchdowns v. Yardage

(a)

(b) r = .9284, which indicates a strong, positive correlation.

(c) r2 = .8619, which means that our predictions will be 69.02% more accurate than using y

(d)∧y = .00806x−1.83998

(e) about 30 touchdowns

175


Recommended