Math 132 Notes

43
UNLV Department of Mathematical Sciences MATH 132 - Finite Mathematics Notes Steven T. Fisher Graduate Assistant November 2, 2010 1

Transcript of Math 132 Notes

Page 1: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 1/43

UNLVDepartment of Mathematical Sciences

MATH 132 - Finite Mathematics Notes

Steven T. FisherGraduate Assistant

November 2, 2010

1

Page 2: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 2/43

UNLVDepartment of Mathematical Sciences

MATH 132 - Finite Mathematics NotesPreface

Over the last couple of years I have been teaching MATH 132. In this process I have compiled a list otyped-up notes. Granted these notes are not perfect, nor necessarily complete. I have primarily taken thenecessary information from each section and collected it into one place. For the most part I have excludedexamples, unless I felt that they were necessary to show particular concepts. I feel that there are plentyof examples in the text for the students to look at on their own, and the examples I do in class are fromthe problems in the textbook.

It is advised to cover chapter 6, 7, and 8, then cover 1, 3, 2, and 4. This is how the online homework done. In §1.2 I have included the concept of perpendicular lines, which has been exclude in the text. Alsonote that in §4.2 and §4.3, my method for nding the pivot element differs than the textbook. The methodthat I use was from the previous edition. It is up to you whether you wish to include it in your class. Asfar as classroom management goes, I usually have students work problems in class and then present themto the rest of the class. This way you are able to determine where a student might have a problem andcorrect it in class instead of the student nding out during the homework.

Chapters 3 and 4 deal with linear programming problems. In my experience students tend to have troublesetting up the application problems. They often mix-up what the variables are suppose to be and getconfused in setting of the linear inequalities for the constraints. So, once I have shown them how to solvethe linear programming problems, I usually work with the students in class on how to set these problemsup. Paying particular attention to what the constraints will be and what the variables should represent.

In §6.6 the textbook gives the binomial theorem as

(x + y)n =n0

x n y0 +n1

x n − 1y1 +n2

x n − 2y2 + · · · +nk

x n − k yk + · · · +nn

x0yn

In my notes I have stayed with how the previous addition stated it. I nd that this is less confusing to thestudents.

These note are by no means perfect. I am constantly looking for ways to improve them. If you noticeanything that is incorrect or needs to be changed or added, please let me know. My email address [email protected].

v1.06 changes:corrected some misspelled words

v1.05 changes:

changed the position of guresadded the values for the gure in §8.1added a gure for §1.1

version 1.06 Page 2 of

Page 3: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 3/43

UNLVDepartment of Mathematical Sciences

§6.1: Sets: Union, Intersection, Venn Diagram

A. Denitions:

1. Set: any collection of objects

2. Roster Method: listing of the objects in the set

3. Rule Method (Set Builder Notation): Describing properties held by all members and no others.

4. Element: Member of a set.

5. Empty (null) set: Set with no elements. Notation: ∅or {}

6. Equal Sets: two sets, A and B , are said to be equal if every element in A is also and element inand every element of B is also an element of A.

7. Subset ( A ⊆ B ) any element in A is also an element in B . NOTE: it is possible for A = B .

8. Proper subset ( A ⊂ B ): any element of A is also an element of B and there is at least one elemenin B not in A.

9. Universal Set: Set of all objects being considered. The universal set is denoted by U .

10. Union (A ∪B ) : set of all elements in A OR B .

11. Intersection ( A ∩ B ) : set of all elements in both A AND B .

12. Disjoint sets:sets with no common elements. Therefore if A and B are two sets, then A and B adisjoint if A ∩ B = ∅.

13. Complement of a set ( A) all elements in U but not A.14. Venn Diagrams: provides a geometric intuition between relationships between sets.

15. Counting Principle: If A and B are two nite sets, then n (A ∪B ) = n (A) + n (B ) − n (A ∩ B )

16. De Morgan’s Properties:

(a) A ∪B = A ∩ B

(b) A ∩ B = A ∪B

B. Examples: Given U = {1, 2, 3, 4, 5, 6}, A = {2, 4, 5, 6} and B = {1, 2, 3, 5}.:

1. A ∪B = {1, 2, 3, 4, 5, 6} = U

2. A ∩ B = {2, 5}

3. A = {1, 3}

version 1.06 Page 3 of

Page 4: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 4/43

4. A ∩ B = {1, 3, 4, 6}

5. A ⊂ B = ? Nope

6. A ⊂U =? Yep

7. A ∩ B = ∅

8. A ∪B = {1, 3, 4, 6} by using De Morgan’s property with (4)

C. Venn Diagrams:Two or more sets may be shown as circles enclosed in a rectangle, which represents the universal set. Thecircles may or may not intersect depending upon the situation. The part of the circles which is the overlappart represents the intersection of the two sets and the area inside each circle represents the elements of that set so the total area inside the circles represents the union of the two sets. These Venn diagrams arevery helpful in determining the number of elements in the set.(6.2)

version 1.06 Page 4 of

Page 5: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 5/43

UNLVDepartment of Mathematical Sciences

§6.2: The Number of Elements in a set

1. If A is any set, we denote the number of elements in the set by n (A). For example, if A{1, 2, 3, 4, 5, 6}, we can say that n (A) = 6.

2. If the number of elements in a set is zero or a counting number, then the set is nite . Otherwise thset is innite .

3. The area of mathematics that deals with nite sets is called nite mathematics .

4. The counting formula, see §6.1, is n (A ∪B ) = n (A) + n (B ) − n (A ∩ B ). This is a very importanformula.

(a) We can use Venn diagrams to assist in the counting of elements in a set

i. Draw the intersection of set in the Venn diagramii. Complete the innermost region (the one which represents the intersection of all sets)

iii. Work your way until you nd the number of elements in an individual set.iv. Remember if n (A) = 22, n (B ) = 12, and n (A

∩B ) = 6, That leaves only 16 elements i

the set A alone and only 6 elements in the set B alone.

version 1.06 Page 5 of

Page 6: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 6/43

UNLVDepartment of Mathematical Sciences

§6.3: The Multiplication Principle

A. Introduction

1. Knowing how to count is one of the keys to being able to compute many of the probabilities ichapter 7. Remember that to count means to nd the number of elements in a set, even in sets that

are too large to explicitly write down each element. It is the large sets, such as the set of possibllicense plates or lottery picks) that drive the need for counting techniques. We have already seenthat Venn diagrams may be applied to specic types of counting problems. However, other countingproblems require more sophisticated techniques. Regardless of the counting technique applied,

(a) A counting problem always asks “how many”

(b) The answer is always found to be a non-negative integer(whole number) {0, 1, 2, 3, . . . }

2. The Multiplication Principle of Counting states: If a task consists of a sequence of choices in whicthere are p selections for the rst choice, q selections for the second choice, r selections for the thirchoice and so on, then the task of making these selections can be done in: p · q · r · . . . different way

These selections can be depicted in a tree diagram (see pg. 332)

B. Examples:

1. If you have 4 coats and 2 hats, how many different coat and hat combinations can you make? 4 ·2 =

2. How many license plates can be made using 2 letters followed by 3 numbers? 26 ·26·10·10·10 = 676, 0

3. 8 runners race against each other. How many ways are there of awarding them the rst-second andthird place medals?

(a) The rst place can be won by any of the 8 runners

(b) The second place can then be won by any of the 7 runners who did not win the rst place meda

(c) Third place can be won by any one of the remaining 6 runners.

(d) Hence the number of possible ways of awarding the medals is 8 · 7 · 6 = 336

version 1.06 Page 6 of

Page 7: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 7/43

UNLVDepartment of Mathematical Sciences

§6.4: Permutations

A. Factorials

1. Before we begin, let us dene “the factorial symbol” represented by !. The symbol n ! is read “n factorial” is dened as:

n ! = n · (n − 1) · (n − 2) · (n − 3) · . . . · 1, where n is an interger ≥ 1

2. By denition 0! = 1

3. Example: Simplify: 8!3!(8− 3)! = 8·7·6·5·4·3·2·1

3·2·1·5·4·3·2·1 = 56 or 8!3!(8− 3)! = 8!

3!5! = 8·7·6·5!3·2·1·5! = 56

B. Permutations

1. Permutation: an ordered arrangement of r objects chosen from n objects.

(a) The n objects are different and repetition is allowed in the selection of r of them(Distinct withrepetition )

(b) The n objects are different and repetition is not allowed in the selection of r of them( Distinctwithout repetition )

2. Calculations:

(a) Permutations:( Distinct with repetition ) = n r

(b) Permutations:( Distinct with repetition ) = P (n, r ) =n !

(n − r )!, where r ≤ n . REMEM-

BER: ORDER IS IMPORTANT

(c) Permutations:( Distinct using all of them ) = n !

C. Examples:

1. Evaluate: P (6, 2) =6!

(6 − 2)!=

6!4!

=6 · 5 · 4!

4!= 30

2. In how many ways can you arrange 5 books on a shelf? 5! = 120

3. In how many ways can 6 people be seated in 10 chairs?P (10, 6) =

10!(10 − 6)!

=10!4!

=10 · 9 · 8 · 7 · 6 · 5 · 4!

4!= 151200

version 1.06 Page 7 of

Page 8: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 8/43

UNLVDepartment of Mathematical Sciences

§6.5: Combinations

A. Combinations

1. Combination: An arrangement of r objects chosen from n objects without regard to order.

(a) The symbol for combination of r objects chosen from n objects is C (n, r ) where r ≤ n

(b) Combination of n objects taken r at a time = C (n, r ) = n !(n − r )!r ! REMEMBER: ORDER IS

NOT IMPORTANT

(c) The above formula is also equivalent to C (n, r ) = P (n,r )r !

2. Permutation involving n objects that are not all different: The number of permutations of n objecof which n 1 are of one kind, n 2 are of a second kind, . . . , and n k are of a kth kind is given by

n !n 1!n 2!n 3! . . . n k !

where n 1 + n 2 + · · · n k = n

B. Examples:

1. Evaluate: C (6, 2) = 6!(6− 2)!2! = 6!

4!2! = 6·5·4!4!2! = 15

2. In how many ways can you deal a hand of 13 cards from a deck of 52 cards? C (52, 13) = 52!(52 − 13)!13!

52!39!13! = 635 , 013, 559, 600

3. In how many ways can 3 people be chosen from 12 applicants? C (12, 3) = 12!(12 − 3)!3! = 12!

9!3! = 12·11·10·9!3·2·1·9!

220

4. How many distinct “words” can be made using all the letters in the eight letter word BASEBALL?8!

2!2!2!= 5040

version 1.06 Page 8 of

Page 9: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 9/43

UNLVDepartment of Mathematical Sciences

§6.6: The Binomial Theorem

A. Motivation

1. Our goal here is to nd a formula for expanding ( a + b)n for positive integers n . Some examples ar

(a + b)1 = a + b

(a + b)2 = a2 + ab + b2

(a + b)3 = a3 + 3 a 2b + 3 ab2 + b3

(a + b)4 = a4 + 4 a 3b + 6 a2b2 + 4 ab3 + b4

(a + b)5 = a5 + 5 a 4b + 10 a3b2 + 10 a2b3 + 5ab4 + b5

2. Pascal’s Triangle:1

1 11 2 1

1 3 3 11 4 6 4 1

1 5 10 10 5 11 6 15 20 15 6 1

Notice that (except for the 1’s) each number is the sum of the two numbers just above it. You shouldnow be able to write the next row . . . .1 7 21 35 35 21 7 1We can use Pascal’s triangle to expand any binomial but it would be helpful to have a more exactformula so we could calculate any individual terms.

B. The Binomial Theorem

1. The Binomial Theorem: Let a and b be two real numbers. If n is a positive integer, we have

(a + b)n =n0

a n b0 +n1

a n − 1b1 +n2

a n − 2b2 + · · · +nk

a n − k bk + · · · +nn

a 0bn

where nr = C (n, r ) = n !

(n − r )!r !. We call nr the binomial coefficient.

2. Properties of the Binomial Coefficient

(a) n0 = n

n = 1(b) n

1 = nn − 1 = n

(c) In general nr = n

n − r

(d) nk = n − 1

k + n − 1k − 1

version 1.06 Page 9 of

Page 10: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 10/43

3. Theorem: A set with n elements has 2 n subsets

4. Examples: Other than expansion we can nd other items of the expansion WITHOUT actuallyexpanding

(a) Let’s now try to nd a particular coefficient: Find the coefficient of x4y5 in the expansion (x + y)9 . . . the coefficient is 9

5 = 126

(b) How about the coefficient of x7 in the expansion of (x + 2) 12? 125 x7(2)5 = 792 · 32 = 25344.

version 1.06 Page 10 of

Page 11: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 11/43

UNLVDepartment of Mathematical Sciences

§7.1: Sample Spaces and the Assignment of Probabilities

A. Denitions:

1. An experiment is any activity or procedure that produces distinct, well-dened possibilities calledoutcomes which can be observed or measured, but which cannot be predicted with certainty.

2. Each outcome is an element in the universal set of all possible outcomes for the experiment.

3. The universal set is called the sample space.

(a) Example: A fair coin is tossed twice and the result of each toss is recorded. Find the samplspace of the result. S = {HH,HT,TH,TT }

B. Assignment of Probabilities

1. Suppose the sample space of an experiment has n outcomes given by S = {e1, e2, e3, . . . , e n }.

To each outcome we assign a real number P (e) which is called the probability of the outcome e. The

P (e1) ≥ 0, P (e2) ≥ 0, . . . , P (en ) ≥ 0 and P (e1) + P (e2) + . . . + P (en ) = 1

2. Example: A die is rolled. Find the sample space and assign probabilities:S = {1, 2, 3, 4, 5, 6}, P (1) = 1

6 , P (2) = 16 , P (3) = 1

6 , P (4) = 16 , P (5) = 1

6 , P (6) = 16

3. Note: When the same probability is assigned to each outcome of a sample space, the outcomes aresaid to be equally likely.

C. Formula:

1. P (E ) =(number of ways E can take place)

(number of outcomes)=

n (E )n (S )

2. Example: A bowl contains 4 red marbles, 7 green ones, 6 blue ones and 5 white marbles. If Jachooses one marble, nd the probability that:

(a) it is green: 712

(b) it is red: 422 = 2

11

(c) it is red or blue: 4+622 = 10

22 = 511 or 4

22 + 622 = 10

22 = 511

version 1.06 Page 11 of

Page 12: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 12/43

UNLVDepartment of Mathematical Sciences

§7.2: Properties of the Probability of an Event

A. Denitions:

1. An event is any subset of the sample space. If an event has only one element, it is called a simpevent.

2. Two or more events of a sample space, S , are said to be mutually exclusive if and only if they havno outcomes in common.

B. Formulas:

1. Probability of an event:

(a) If E = ∅, the event is impossible so P (E ) = P (∅) = 0.(b) If E = {e} is a simple event, then P (E ) = P (e).(c) If E = {e1, e2, . . . , e n }. Then P (E ) = P (e1) + P (e2) + . . . + P (en )

2. Probability of E and F if E and F are mutually exclusive.

P (E ∪F ) = P (E ) + P (F ), if E ∩ F = ∅

3. The Additive Rule revisited:

P (E ∪F ) = P (E ) + P (F ) − P (E ∩ F )

4. Properties of the Probability of and Event:

(a) 0 ≤ P (E ) ≤ 1 for every event E in S

(b) P (∅) = 0 and P (S ) = 15. Probability of the Complement of and Event:

P (E ) = 1 − P (E )

6. odds

(a) If E is an event then the odds for E areP (E )P (E )

and the odds against E areP (E )P (E )

(b) Knowing odds, calculate probabilities: If the odds for E are a to b, then P (E ) =a

a + bif t

odds against E are a to b, then P (E ) = ba + b

(c) Example 1: If P (E ) =37

, then P (E ) =47

and the odds in favor of E are 3 : 4

(d) Example 2: If the odds against E are 6 : 5, then P (E ) =5

5 + 6=

511

version 1.06 Page 12 of

Page 13: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 13/43

UNLVDepartment of Mathematical Sciences

§7.3: Probability Problems Using Counting Techniques

A. Find the Probability of Events Using Counting Techniques

1. Suggested Sample Problems:# 7, 8, 10, 14(See part B), any from the applications and extensionssection

B. Birthday Problems

1. Derivation: Suppose that you are given a problem to nd the probability that in a group of r peopthere are at least two people who have the same birthday (the same month and day of the year).First, we need to determine the total number of outcomes in the sample space S . Now, there a365 possibilities for each person to have a birthday. Since, there are r people in the group, there ar365r possibilities for birthdays. So,

n (S ) = 365 r

We next need to determine the probability of event E :

E = At east two people have the same birthday

Now, it is difficult to count the elements in this set; it is much to count the elements of the comple-ment:

E = No two people have the same birthday

In order to nd n (E ) we know that for one of the people there are 365 possible birthdays, then for thenext there are 364 possible birthdays. Choosing a third person, we have 363 possible birthdays andso on. The last person in the group has 365 − (r − 1) possible birthdays. Thus, by the multiplicationPrinciple, we have

n (E ) = 365 · 364 · 363 · . . . · (365 − (r − 1)) = P (365, r )

ThereforeP (E ) =

n (E )n (S )

=P (365, r )

365r

Now, using the principle of the complement

P (E ) = 1 − P (E )

We get the probability that at least two people, from a group of r , have the same birthday is

P (E ) = 1 − P (E ) = 1 −P (365, r )

365r

version 1.06 Page 13 of

Page 14: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 14/43

UNLVDepartment of Mathematical Sciences

§7.4: Conditional Probability

A. Motivation

1. Suppose that someone rolls a single die, out of your sight, and tells you it came up an even numberYou are then asked “What is the probability that a 2 has been rolled?” Then answer that you giveis certainly affected by the information that is know to you, namely, that the die is know to havecome up 2, 4, or 6. This, in effect, reduces the sample space to S = {2, 4, 6} from which the answ

is obviously13

. The mathematical notation for this question is:

P (a two comes up |an even number has been rolled) =13

, where the vertical bar is read as “given th

2. How do we calculate conditional probability? Look at how we calculated the answer above:

P (E |F ) =number of a two and an even number

total number of even numbers=

number of outcomes in E ∩ F total number in F

B. Formulas

1. Conditional Probability is: Let E and F be events of a sample space S and suppose P (F ) > 0. Tconditional probability of the event E , given the event F , denoted by P (E |F ), is dened as

P (E |F ) =P (E ∩ F )

P (F )

2. Product Rule: For two events E and F , the probability of the event E and F , namely P (E ∩ F )given by

P (E ∩ F ) = P (F ) · P (E |F )

C. Examples

1. If two cards are randomly drawn, in succession, without replacement, from a deck of 52, what is thprobability that the second card is a spade given that the rst card is a spade? In mathematicallanguage we have: P (second card is a spade |rst was a spade). Because a spade is gone, the ne

sample space is 51 cards including 12 spades. The answer is then1251

2. One card is drawn from a deck of 52 cards. What is the probability that the card is:

(a) A king( K ) given that the card drawn is a heart? 113

(b) A diamond given that the card drawn was a heart or diamond?1326

=12

(c) A heart, given that the card drawn was a diamond or a 10? P (H |10∪D ) =116

(4 10’s and diamonds

version 1.06 Page 14 of

Page 15: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 15/43

3. The senior class of Podunko High has 80 members, 50 of whom are taking English( E ), 30 math(Mand 20 both subjects. What is the probability that a senior taking English, given that the senior istaking math?

P (E |M ) =P (E ∩ M )

P (M )=

20803080

=2030

=23

4. A tree diagram is often helpful in working conditional probability problems. You would multiply thebranch probabilities.

version 1.06 Page 15 of

Page 16: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 16/43

UNLVDepartment of Mathematical Sciences

§7.5: Independent Events

1. Let E and F be two events of a sample space, S , with P (F ) > 0. The event E , is independent the event F , if and only if P (E |F ) = P (E )

2. If two events have positive probabilities ( P (E ) > 0 and P (F ) > 0), and if the event E is independeof F , then F is also independent of E . So, we say that E and F are independent events.

3. Criterion for independent events:

(a) P (E ∩ F ) = P (E ) · P (F )

4. Independence for more than two events, simply apply the criterion over and over which gives:

P (E 1 ∩ E 2 ∩ E 3 ∩ . . . ∩ E n ) = P (E 1) · P (E 2) · P (E 3) . . . · P (E n )

5. Example: Given P (E ) = 0 .3, P (F ) = 0 .2, P (E ∪F ) = 0 .4. Are E and F independent?Solution: First nd P (E ∩F ) by using P (E ∪F ) = P (E ) + P (F ) − P (E ∩F ) to get P (E ∩F ) = 0

Now apply number (3) to see if P (E ∩ F ) ?= P (E ) · P (F )0.1 ?= 0 .3 · 0.20.1 = 0 .06Since, P (E ∩ F ) = P (E ) · P (F ), then E and F are not independent.

version 1.06 Page 16 of

Page 17: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 17/43

UNLVDepartment of Mathematical Sciences

§8.1: Bayes Theorem

A. Motivation

1. Bayes’ Theorem is a special application of conditional probability. An example leads to the theorem

2. Surf Mart, which sells shirts under its’ own label, buys 40% of its shirts from supplier A, 50% frosupplier B, and 10% from supplier C. It is found that 2% of the shirts from A have aws, 3% from have aws and 5% from C have aws. A probability tree diagram is shown below fro you to completeIf one of the shirts is bought from Surf Mart, what is the probability that:

(a) the shirt has a aw, given that it came from A? Knowing that the shirt came from A means

that we have already traversed the A branch and now look for the probability, which is 0.02,along the attached ow branch. Therefore P (aw|from A) is 0.02.

(b) The shirt has a aw? P (from A and a aw or from B and a aw or from C and a aw) =(0.4)(0.02) + (0 .5)(0.03) + (0 .1)(0.05) = 0 .028

(c) The shirt came from A given that it has a aw?This time, the given event is on the right and we are confronted with somehow trying to readback to the left to reach the event A. This is the reverse probability to which referred and willalways be a clue that the problem is a Bayes Theorem problem. We nd the solution:

P (A|aw) =P (A and aw)

P (aw)=

(0.40)(0.02)(0.4)(0.02) + (0 .5)(0.03) + (0 .1)(0.05)

=0.0080.028

= 0 .286

B. Bayes Theorem

1. Partition: A sample space S is partitioned into n subsets A1, A 2, . . . , A n , provided

(a) Each subset is nonempty

(b) The intersection of any two of the subsets is empty

(c) A1 ∪A2 ∪ · · ·∪An = S

version 1.06 Page 17 of

Page 18: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 18/43

2. Let S be a sample space and let A1, A2, . . . , A n be n events that form a partition of the set S . Ifis any event in S , then

E = ( E ∩ A1) ∪ (E ∩ A2) ∪ · · ·∪ (E ∩ An )

Since E ∩ A1, E ∩ A2, . . . , E ∩ An are mutually exclusive events, we have

P (E ) = P (E ∩ A1) + P (E ∩ A2) + · · · P (E ∩ An )

Now, if we replace P (E ∩ A1), P (E ∩ A2), . . . , P (E ∩ An ) using the Product Rule. Then we obtainthe formula

P (E ) = P (A1) · P (E |A1) + P (A2) · P (E |A2) + · · · + P (An ) · P (E |An )

3. Bayes Theorem: Let S be a sample space partitioned into n events, A1, . . . , A n . Let E be any eveof S for which P (E ) > 0. The probability of the event A j ( j = 1 , 2, . . . , n ), given the event E , is

P (A j |E ) =P (A j ) · P (E |A j )

P (E )=

P (A j ) · P (E |A j )P (A1) · P (E |A1) + P (A2) · P (E |A2) + . . . + P (An ) · P (E |An )

version 1.06 Page 18 of

Page 19: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 19/43

UNLVDepartment of Mathematical Sciences

§8.2: Binomial Probability Model

A. ConditionsExperiments classied as binomial were rst studied by James Bernoulli in the late 1600’s. The termbinomial comes from the fact that these experiments can be classied as having exactly two outcomes. Foran experiment to qualify as binomial, several conditions must be met.

1. The same experiment is repeated several times.

2. There are only two possible outcomes, success and failure, on each trial.

3. The repeated trials are independent.

4. The probability of each outcome remains the same for each trial.

B. Examples/MotivationThe central question in a binomial experiment is to nd the probability of r successes from among n triathe outcome labelled “success” will be determined by the question asked, and all other outcomes will belumped together and labelled “failure.” Some examples follow which should help clarify the terminolog

1. A single die is rolled 10 times and we want to know the probability that exactly 3 ves will be rolledThe experiment is repeated n = 10 times, there are to be r = 3 successes and the outcome of eactrial is independent of the others.Because the question asks about rolling 5’s, we call “roll a 5” a success, S , and “roll a 1,2,3,4 or 6”a failure, F . It follows that p = P (S ) = 1

6 and q = P (F ) = 56 .

2. A coin is tossed 20 times and we are asked to determine the probability that exactly 12 heads wil

turn up. Here, n = 20 and the outcome of the trials are independent. Success will be “a head landup” and failure will be “a tail lands up.” So, p = P (S ) = 1

2 and q = P (F ) = 12 and r = 12.

3. Test show that 4% of the hair dryers made by the Hot-Dri company have a defect. Suppose that50 of the company’s dryers are ordered by the Bettis Discount Store and she is interested in theprobability that exactly one will be defective. In this case n = 50 and because we are interested idefects, success will be “the dryer is defective” and failure will be “the dryer is not defective.” Th p = P (S ) = 0 .04 and q = P (F ) = 0 .96 and r = 1.

C. Formula for Binomial Probabilities

1. Formula for Binomial Probabilities:

b(n, k ; p) =nk

pk · q n − k =n !

k!(n − k)! pk · q n − k

where p is the probability of success and q = 1 − p is the probability of failure.

version 1.06 Page 19 of

Page 20: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 20/43

2. Examples

(a) Tests show that 4% of the people who take a particular drug are subject to side effects. Of20 people taking the drug, what is the probability that exactly 5 of them will experience sideeffects?

b(20, 5; 0.04) =205

(0.04)5 · (0.96)15 = 0 .00086

(b) The Marcello Company polled a large number of potential customers and found that 25% wouldbuy the company’s product. If Deanna calls on 10 potential customers, what is the probabilitythat:

i. Exactly 8 will buy the product?

b(10, 8; 0.25) =108

(0.25)8 · (0.75)2 = 0 .00039

ii. Exactly 3 will buy the product?

b(10, 3; 0.25) =103

(0.25)3 · (0.75)7 = 0 .25

iii. At least 8 will buy the product?P (8 will buy) + P (9 will buy) + P (10 will buy)= 10

8 (0.25)8 · (0.75)2 + 109 (0.25)9 · (0.75)1 + 10

10 (0.25)10 · (0.75)0

= 0 .00039 + 0.00003 + 0.00000= 0 .00042

iv. At least one will buy the product? The complement theorem will give the easiest translation:P (at least one will buy) = 1 − P (none will buy)

= 1 − (0.75)10

= 0 .944

version 1.06 Page 20 of

Page 21: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 21/43

UNLVDepartment of Mathematical Sciences

§8.3: Expected Value

A. Expected Value

1. Formula for expected value: Let S be a sample space and let A1, A 2, A3, . . . , A n be n events that forma partition of S . Let p1, p2, p3, . . . , p n be the probabilities of the events A1, A 2, A 3, . . . , A n . If ea

event A1, A 2, A 3, . . . , A n is assigned a payoff m 1, m 2, m 3, . . . , m n , the expected value E correspondinto these payoffs is:E = m 1 · p1 + m 2 · p2 + m 3 · p3 + . . . m n · pn

2. If E is positive, we say that the game is favorable to the player; if E = 0, we say the game is faand if E is negative, we say the game is unfavorable to the player.

3. Expected Value of a Bernoulli Trials: In a Bernoulli process with n trials the expected number osuccesses is

E = np

where p is the probability of success for any single trial.

B. Examples

1. At a carnival midway, Shawn purchases a lottery ticket for $1. If 1000 tickets are to be sold andthere are 3 prizes . . . a rst prize of $100, a second prize of $50 and a third prize of $25, what is hexpected value for his ticket?

(a) What Formula is the expected value of a ticket? Sol’n:

E = 100 ·1

1000+ 50 ·

1

1000+ 25 ·

1

1000= $0 .10 + $0.05 + $0.025 = $0.175

(b) If Shawn purchases a lottery ticket for $1, how much should he expect to lose? Sol’n:

1 − 0.175 = 0.825

He should expect to lose $0.825.

2. If Steven rolls a die 600 times, how many times should a “4” turn up?

E = (600) ·16

= 100

version 1.06 Page 21 of

Page 22: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 22/43

UNLVDepartment of Mathematical Sciences

§1.1: Lines

A. Rectangular Coordinates

1. x− axis

2. y− axis

3. origin

4. ordered pair

5. quadrants

B. Graphing Linear Equations

1. Def’n: A linear equation in two variables is an equation equivalent to the form:

Ax + By = C

where A,B,C ∈R and A and B are not both zero.

2. Def’n: The points where the graph of a linear equation crosses the axes are called intercepts. Thex− intercept is the point at which the graph crosses the x− axis; the y− intercept is the point at whicthe graph crosses the y− axis.

3. Steps for Finding the Intercepts of a Linear Equation: To nd the intercepts of a linear equationAx + By = C , where A = 0 or B = 0, follow these steps:Step 1: Let y = 0 and solve for x . This determines the x− intercept.Step 2: Let x = 0 and solve for y. This determines the y− intercept.

version 1.06 Page 22 of

Page 23: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 23/43

C. Lines

1. Def’n(Slope of a Line): Let P 1 = ( x1, y1) and P 2 = ( x2, y2) be two points. If x1 = x2, the slope mthe nonvertical line L containing P 1 and P 2 is given by:

m =y2 − y1

x2 − x1x1 = x2

If x1 = x2, L is a vertical line and the slope m of L is undened.

2. Theorem(Equation of a Vertical Line): A vertical line is given by the equation:

x = a

where (a, 0) is the x− intercept.

3. Theorem(Equation of a Horizontal Line): A horizontal line is given by the equation:

y = b

where (0, b) is the y− intercept.

4. Theorem(Point-Slope Form of an Equation of a Line): An equation of a nonvertical line with slopem that contains the point ( x1, y1) is:

y − y1 = m (x − x 1)

5. Theorem(Slope-Intercept Form of an Equation of a Line): An equation of a line with slope m any− intercept (0 , b) is:

y = mx + b

version 1.06 Page 23 of

Page 24: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 24/43

UNLVDepartment of Mathematical Sciences

§1.2: Pairs of Lines

A. Pairs of Lines

1. Theorem(Coincident Lines): Coincident lines that are vertical have undened slope and the samex− intercept. Coincident lines that are nonvertical have the same slope and same intercepts

2. Theorem(Parallel Lines): Parallel lines that are vertical have undened slope and different x− interceParallel lines that are nonvertical have the same slope and different intercepts.

3. Theorem(Intersecting Lines): Intercepting lines have different slopes

4. Theorem(Perpendicular Lines) No longer included in the textbook : Vertical lines are perpendiculto horizontal lines. Given two lines L1 and L 2 with slopes m 1 and m 2 respectively. Then L 1

perpendicular to L 2 if:m 1m 2 = − 1 or m 1 = −

1m 2

version 1.06 Page 24 of

Page 25: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 25/43

UNLVDepartment of Mathematical Sciences

§1.3: Applications to Business and Economics

A. Break-Even Point

1. Given the equations for cost( C ) and revenue( R ), then the break-even point occurs when C = R .

B. Supply and Demand

1. Given the equations for supple( S ) and demand( D ), then the market price occurs when S = D .

version 1.06 Page 25 of

Page 26: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 26/43

UNLVDepartment of Mathematical Sciences

§3.1: Systems of Linear Inequalities

A. Graph linear inequalities

1. Def’n: A linear inequality in two variables x and y is an inequality of one of the following forms:

Ax + By ≤ C Ax + By ≥ C Ax + By < C Ax + By > C

Where A,B,C ∈R and A and B are not both zero. The rst two inequalities are nonstrict anthe second two inequalities are strict .

2. The graph of a linear inequality in two variables x and y is the set of all points ( x, y ) for which tinequality is satised.

3. Steps for Graphing a Linear Inequality:S1: Graph the corresponding linear equation, a line L . If the inequality is nonstrict, graph L usia solid line; if the inequality is strict, graph L using dashes.S2: Select a test point P that is not on the line L .S3: Substitute P into the inequality. If the inequality is satised, then shade the region containingP . If the inequality is not satised then shade the region not containing P .

B. Graph Systems of Linear Inequalities

1. Def’n: A system of linear inequalities is a collection of two or more linear inequalities

2. To graph a system of linear inequalities containing two variables x and y we locate all the poin(x, y ) whose coordinates satisfy all the inequalities of the system.

3. Terminology:

(a) Bounded: A region is bounded in the sense that it can be enclosed by some circle of sufficientllarge radius

(b) Unbounded: A region is unbounded in the sense that it extends innitely far in some direction.

(c) Corner Point: The point of intersection of two line segments that form the boundary is calleda corner point.

version 1.06 Page 26 of

Page 27: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 27/43

UNLVDepartment of Mathematical Sciences

§3.2: A Geometric Approach to Linear Programming Problems

A. Linear Programming Problems

1. Def’n: (Linear Programming Problem)

A linear programming problem(lpp) in two variables, x and y, consists of maximizing or minimizian objective functionz = Ax + By

where A, B ∈R , not both zero, subject to constraints expressible as a system of linear inequalities.

2. Def’n: To maximize(minimize) z = Ax + By means to locate the points that result in the largest(orsmallest) value of z . Only the points that obey all the constraints are potential solutions. Thesepoints are called feasible points.

3. A solution to a lpp is a feasible points, together with the value of the objective function at that point,which maximizes(or minimizes) the objective function. If none of the feasible points maximizes(ominimizes) the obj func, or there are no feasible points, then the lpp has no solution.

B. Solving a lpp

1. Theorem(Criteria for the Existence of a Solution)Consider a lpp with the set R of feasible points and objective function z = Ax + By .

(a) If R is bounded, then z has both a max and min value on R

(b) If R is unbounded, A,B > 0, and the constraints include x, y ≥ 0, then z has a min on R bnot a max.

(c) If R = ∅, then the lpp has no solution and z has neither a max nor a min.

2. Theorem(Fundamental Theorem of LPP with Two Variables)Consider a lpp with the set R of feasible points and objective function z = Ax + By , where x, y ≥If a lpp has a solution, it is located at a corner point of the set R of feasible points; if a lpp hmultiple solutions, at least one of them is located at a corner point of the set R of feasible points. either case the corresponding value of the objective function is unique.

3. Steps for Solving a LPPIf a lpp has a solution, follow these steps to nd it:S1: Write an expression for the quantity to be maximized or minimized. (the objective function)S2: Determine all the constraints and graph the set of feasible points.S3: List the corner points of the feasible points.S4: Determine the value of the objective function at each corner point.S5: Select the maximum or minimum value of the objective function.

version 1.06 Page 27 of

Page 28: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 28/43

UNLVDepartment of Mathematical Sciences

§2.1: Systems of Linear Equations: Substitution; Elimination

A. Def’ns:

1. System of linear equations: A system of linear equations is a collection of two or more linear equation

2. Solution: A solution to a system of linear equations consists of values of the variables that arsolutions to each equation in the system.

3. Types of Solutions:

(a) If the lines are parallel, then the system of equations has no solutions, because the lines neverintersect. The system is inconsistent

(b) If the lines intersect, then the system of equations had one solution, given by the point ofintersection. The system is consistent and the equations are independent

(c) If the lines are coincident, then the system of equations has innitely many solutions representedby the totality of the points on the line. The system is consistent and the equations are

dependent.

B. Solve Systems of Equations by Substitution

1. Steps for Solving by Substitution:Step 1: Pick one of the equations and solve for one of the variables in terms of the remaining variablesStep 2: Substitute the result in the remaining equations.Step 3: If one equation in one variable results, solve this equation. Otherwise repeat Step 1 and 2until a single equation with one variable remains.Step 4: Find the values of the remaining variables by back-substitution.

Step 5: Check the solution.

C. Solve Systems of Equations by Elimination

1. Rules for obtaining an Equivalent System of Equations:

(a) Interchange any two equations in the system(b) Multiply(or divide) each side of an equation by the same nonzero constant(c) Replace any equation in the system by the sum(or difference) of that equation and a nonzero

multiple of any other equation in the system

2. Steps for Solving by Elimination:Step 1: Select two equations from the system and replace them by two equivalent equations that,when added, eliminate at least one variable.Step 2: If there are additional equations in the original system, pair off each one with one of thequations selected in Step 1 and eliminate the same variable from them.Step 3: Continue Steps 1 and 2 on successive systems until one equation containing one variable

version 1.06 Page 28 of

Page 29: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 29/43

remains.Step 4: Solve for this variable and back-substitute in previous equations until all the variables havebeen found.Step 5: Check the solution.

version 1.06 Page 29 of

Page 30: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 30/43

UNLVDepartment of Mathematical Sciences

§2.2: Systems of Linear Equations: Matrix Method

A. Def’ns:

1. matrix: a rectangular array of numbers, enclosed by brackets.

2. entries: the numbers of the matrix

3. When a matrix is used to represent a system of linear equations, it is called an augmented matrix

B. Solve Systems of Equations by Matrices

1. Row Operations:

(a) Interchange any two rows

(b) Replace a row by a nonzero multiple of that row.

(c) Replace a row by the sum of that row and a constant nonzero multiple of some other row.2. A matrix is in row echelon form when:

(a) The entry in row 1, column 1 is a 1, and 0s appear below it

(b) The rst nonzero entry in each row after the rst row is a 1, 0s appear below it, and it appearsto the right of the rst nonzero entry in any row above.

(c) Any rows that contain all 0s to the left of the vertical bar appear at the bottom.

3. Matrix Method for Solving a System of Linear Equations(Row Echelon Form):Step 1: Write the augmented matrix that represents the system.

Step 2: Perform the row operations that place the entry 1 is row 1, column 1.Step 3: Perform the row operations that leave the entry 1 in row 1, column 1 unchanged, whilecausing 0s to appear below it in column 1.Step 4: Perform the row operations that place the entry 1 in row 2, column 2 but leaves the entriesin column 1 unchanged. If impossible to place a 1 in row 2, column 2, then proceed to place a 1 row 2, column 3. Once a 1 is in place, perform the row operations to place 0s below it. (If any roware obtained that contain only 0s on the left side of the vertical bar, place such rows at the bottomof the matrix.)Step 5: Now repeat Step 4, placing a 1 in the next row, but one column to the right, while leavingall entries in columns to the left unchanged. Continue until the bottom row or the vertical bar isreached.Step 6: The matrix that results is the row echelon form of the augmented matrix. Analyze the systemof equations corresponding to it to solve the original system.

4. Reduce row echelon form: obtain 0s above as well as below the 1s in each row.

version 1.06 Page 30 of

Page 31: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 31/43

UNLVDepartment of Mathematical Sciences

§2.3: Systems of m Linear Equations Containing n Variables

A. Def’ns:

1. Systems of m Linear Equations Containing n VariablesA system of m linear equations containing n variables x1, x 2, . . . , x n is of the form

a11 x1 + a12x2 + · · · + a 1n x n = b1a21x1 + a22x2 + · · · + a 2n x n = b2a31x1 + a32x2 + · · · + a 3n x n = b3

......

......

a i1x1 + a i2x2 + · · · + a in x n = bi...

......

...a m 1x1 + a m 2x2 + · · · + a mn x n = bm

where a ij and bi are real numbers, i = 1 , 2, . . . , m , j = 1 , 2, . . . , n .A solution of a system of m linear equations containing n variables x1, x 2, . . . , x n is any ordered s(x1, x 2, . . . , x n ) of real numbers for which each of the m linear equations of the system is satised.

B. Solving a System of m Equations Containing n variables

1. Conditions for the Reduced Row Echelon Form of a Matrix:

(a) The rst nonzero entry in each row is a 1 and it has 0s above and below it

(b) The leftmost 1 in any row is to the right of the leftmost 1 in the row above.

(c) Any rows that contain all 0s to the left of the vertical bar appear at the bottom.

2. Steps for Solving Systems of m Equations Containing n variables.

Step 1: Write the augmented matrix.Step 2: Find the reduced row echelon form of the augmented matrix.Step 3: Analyze this matrix to determine if the system has no solution, one solution, or innitelymany solutions.

C. Applications

1. Example: In a chemistry laboratory one solution contains 10% hydrochloric acid (HCl), a secondsolutions contains 20% HCl, and a third contains 40% HCl. How many liters of each should be mixeto obtain 100 liters of 25% HCl? Sol’n:

Let x = number of liters of the 10% soluition of HClLet y = number of liters of the 20% soluition of HClLet z = number of liters of the 40% soluition of HClSince we want 100 liters in all and the amount of HCl obtained from each solution must sum to25% of 100, or 25 liters, we must have x + y + z = 100

0.1x + 0 .2y + 0 .4z = 0 .25(100) Thus, our proble

version 1.06 Page 31 of

Page 32: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 32/43

is to solve a system of two equations containing three variables. By matrix techniques we ob

tain the solution x = 2 z − 50y = − 3z + 150 where z is the parameter. Now, the practical considera

tions of this problem lead us to the conditions that x ≥ 0, y ≥ 0, z ≥ 0. From above, we sthat we must have z ≥ 25 and z ≤ 50, since otherwise x < 0 or y < 0. Some possible sotions are listed in the following table. The nal determination by the chemistry laboratory willmore than likely be based on the amount and availability of one acid solution versus the others.

No. of liters10% solution 0 10 12 16 20 25 26 30 36 38 46 50

No. of liters20% solution 75 60 57 51 45 37.5 36 30 21 18 6 0No. of liters30% solution 25 30 31 33 35 37.5 38 40 43 44 48 50

version 1.06 Page 32 of

Page 33: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 33/43

UNLVDepartment of Mathematical Sciences

§2.4: Matrix Algebra

A. Def’ns:

1. A matrix is dened as a rectangular array of the forma11 a12 · · · a 1 j · · · a1n

a21 a22 · · · a 2 j · · · a2n

... ... ... ...a i 1 a i2 · · · a ij · · · a in...

......

...a m 1 a m 2 · · · a mj · · · a mn

The symbols a11 , a 12 , · · · of a matrix are referred to as the entries (or elements) of the matrix. Eachentry a ij of the matrix has two indices: the row index, i, and the column index, j . The symboa i1, a i2, · · · , a in represent the entries in the ith row, and the symbols a1 j , a 2 j , · · · , a mj represent thentries in the j th column.

2. The dimension of a matrix A is determined by the number of rows and the number of columns ithe matrix. If a matrix has m rows and n columns, we denote the dimension of A by m × n , re“m by n”

3. If a matrix A has the same number of rows as it has columns, it is called a square matrix.

4. Equality of Matrices: Two matrices A and B are equal if they are of the same dimension and corresponding entries are equal. In this case we write A = B , read as “matrix A is equal to matrB ”.

5. Addition of Matrices: We dene the sum A + B of two matrices A and B with the same dimensioas the matrix consisting of the sum of corresponding entries from A and B . That is, if A = [a ij ] aB = [bij ] are two m × n matrices, the sum A + B is the m × n matrix [ a ij + bij ].

6. Subtraction of Matrices: We dene the difference A − B of two matrices A and B with the samdimension as the matrix consisting of the difference of corresponding entries from A and B . That iif A = [a ij ] and B = [bij ] are two m × n matrices, the difference A − B is the m × n matrix [ a ij − bi

B. Properties of Matrix Algebra

1. Commutative Property of Addition: If A and B are two matrices of the same dimension, then

A + B = B + A

2. Associative Property of Addition: If A, B and C are three matrices of the same dimension, then

A + ( B + C ) = ( A + B ) + C

3. Additive Inverse Property: For any matrix A, we have the property that

A + ( − A) = 0

version 1.06 Page 33 of

Page 34: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 34/43

C. Scalar Multiplication

1. Scalar Multiplication: Let A be an m × n matrix and let c be a real number, called a scalar. Thproduct of the matrix A by the scalar c, called scalar multiplication, is the m × n matrix cA, whoentries are the product of c and the corresponding entries of A. That is, if A = [a ij ], then cA = [ca i

2. Properties of Scalar Multiplication: let k and h be two real numbers and let A and B be two matricof dimension m × n . Then

k(hA ) = ( kh )A(k + h )A = kA + hA

k(A + B ) = kA + kB

version 1.06 Page 34 of

Page 35: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 35/43

UNLVDepartment of Mathematical Sciences

§2.5: Multiplication of Matrices

A. Def’ns:

1. If R = [r 1r 2 · · · r n ] is a row matrix of dimension 1 × n and C =

c1c2...cn

is a column matrix

dimension n × 1, then by the product of R and C we mean the number

RC = r 1c1 + r 2c2 + · · · + r n cn

2. Multiplication of Matrices: Let A denote an m × r matrix, and let B denote an r × n matrix. Thproduct AB is dened as the m × n matrix whose entry in row i , column j is the product of the irow of A and the j th column of BNote: Multiplication of matrices is possible only if the number of columns of the matrix on the lefequals the number of rows of the matrix on the right. If A is of dimension m × r and B is of dimensi

r × n , then the product AB is of dimension m × n .

B. Theorems and Properties

1. Theorem: Matrix multiplication is not commutative. That is, in general

AB is not equal to BA

2. Associative Property of Matrix Multiplication: Let A be a matrix of dimension m × r , let B bematrix of dimension r × p and let C be a matrix of dimension p × n . Then matrix multiplication iassociative. That is,

A(BC ) = ( AB )C

The resulting matrix ABC is of dimension m × n .

3. Distributive Property: Let A be a matrix of dimension m × r . Let B and C be a matrices of dimensior × n . Then the distributive property states that

A(B + C ) = AB + AC

The resulting matrix AB + AC is of dimension m × n .

4. The Identity Matrix: For an n × n matrix, the entries located in row i , column i , 1 ≤ i ≤ n , acalled the diagonal entries. An n × n matrix whose diagonal entries are 1s, while all the other entrieare 0s, is called the identity matrix I n . For example:

I 2 = 1 00 1 , I 3 =

1 0 00 1 00 0 1

, I 4 =

1 0 0 00 1 0 00 0 1 00 0 0 1

version 1.06 Page 35 of

Page 36: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 36/43

5. Theorem: If A is a square matrix of dimension n × n , then

AI n = I n A = A

6. Identity Property: If A is a matrix of dimension m × n and if I n denotes the identity matrix odimension n × n , and I m denotes the identity matrix of dimension m × m , then

I m A = A AI n = A

version 1.06 Page 36 of

Page 37: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 37/43

UNLVDepartment of Mathematical Sciences

§2.6: The Inverse of a Matrix

A. Inverse of a Matrix

1. Inverse of a Matrix: Let A be a matrix of dimension n × n . A matrix B of dimension n × n is callthe inverse of A if AB = BA = I n . We denote the inverse of a matrix A, if it exists, by A− 1.

NOTE: A nonsquare matrix has no inverse.2. Steps for Finding the inverse of a Matrix of Dimension n × n

Step 1: Form the matrix [ A|I n ].Step 2: Using row operations, write [ A |I n ] in reduced row echelon form.Step 3: If the resulting matrix is of the form [ I n |B ], that is, if the identity matrix appears on the leftside of the bar, then B is the inverse of A. Otherwise, A has no inverse.

B. Matrix Equation

1. Given a system of n linear equations containing n variables of the forma11 x1 + a12x2 + · · · + a1 j x j · · · + a1n x n = b1a21x1 + a22x2 + · · · + a2 j x j · · · + a2n x n = b2

......

......

...a i1x1 + a i2x2 + · · · + a ij x j · · · + a in x n = bi

......

......

...a n 1x1 + a n 2x2 + · · · + a nj x j · · · + a nn x n = bn

where a ij and bi are real numbers, i = 1 , 2, . . . , n , j = 1 , 2, . . . , n .Then I can express this system as the following matrix equation

a11 a12 · · · a 1 j · · · a1n

a21 a22 · · · a 2 j · · · a2n

... ... ... ...a i1 a i 2 · · · a ij · · · a in...

......

...a n 1 a n 2 · · · a nj · · · a nn

A

x1x2...

x i...

x n

X

=

b1b2...bi...

bn

B

2. Theorem: A system of n linear equations containing n variables

AX = B

for which A is a square matrix and A−

1 exists, always has a unique solution that is given by

X = A − 1 B

version 1.06 Page 37 of

Page 38: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 38/43

UNLVDepartment of Mathematical Sciences

§4.1: The Simplex Method: Standard Form, Initial Tableau and Pivoting

We now know how to work linear programming problems graphically with two variables. Unfortunatelymost LPP problems have many more variables, so we need a less restrictive algebraic method. This methodis called the simplex method . The rst type we will examine will be the standard maximum-typeproblems .A. Standard Form

1. The following conditions must be met to be a standard maximum-type problem :

(a) The objective function is linear and is to be maximized

(b) The variables are all nonnegative

(c) The constraints are all of the form ax 1 + bx2 + cx 3 + · · · ≤ m , where m ≥ 0.

2. Examples:

(a) Maximize P = 3 x1 + 4 x2 subject to the constraints:

5x 1 + 2 x2 ≤ 1452x 1 + 3 x2 ≤ 222

x1 ≥ 0 x2 ≥ 0is in standard form

(b) Maximize P = 3 x1 + 4 x2 subject to the constraints:5x 1 + 2 x2 ≥ − 1252x 1 + 3 x2 ≤ 222

x1 ≥ 0 x2 ≥ 0is NOT in standard form

(c) NOTE: 2 x1 + 3 x2 ≥ − 125 can be put in correct form by multiplying by (-1) and getting

− 2x1 − 3x2 ≤ 125

B. The initial tableau

1. In order to apply the simplex method to a maximum problem required the conversion to equationsby using slack variables .

(a) Convert the inequalities to equations by adding a slack variable to the left side which gives slack

equations: 5x1 + 2 x2 ≤ 1452x1 + 3 x2 ≤ 222

The slack equations are: 5x1 + 2 x2 + s1 = 1452x1 + 3 x2 + s2 = 222where s1 and s2 are the slack variables and are nonnegative.

(b) We are now ready to set up the matrix which represents the initial simplex tableau.

i. The objective row is always the bottom rowii. The slack equations form all the other rows

version 1.06 Page 38 of

Page 39: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 39/43

iii. The symbol for each variable appears above the column where its coefficients appear.iv. The notation BV stands for basic variables. These are the variables that have only 0’s and

1’s in the column. The others are called non-basic variables.v. The notation RHS stands for the right-hand side of the equal sign in the slack equations.

vi. The initial simplex tableau for the above problem is:BV P x1 x2 s 1 s 2 RHSs1 0 5 2 1 0 145s2 0 2 3 0 1 222P 1 -3 -4 0 0 0

C. Pivoting

1. We need to discuss the method of pivoting:

(a) Denition: To pivot a matrix about a given element(the pivot element) is to apply row operationsso the pivot element is replaced by 1 and all the other elements in the same column (the pivotcolumn) are 0.

(b) Method:

i. Divide each element in the pivot row by the pivot element which causes the pivot elementto become 1.

ii. Obtain 0’s in the remainder of the pivot column by performing row operations.

(c) Analyzing the tableau:

i. From the tableau, write the equation corresponding to each row.ii. Solve the bottom equation for P and the remaining equations for the basic variables

iii. Set each non-basic variable equal to 0 to obtain the current values for P and the basicvariables

(d) Example: In the tableau given below, the pivot element is boxed.BV P x1 x2 s 1 s2 RHSs1 0 1 2 1 0 300s2 0 3 2 0 1 480P 1 -1 -2 0 0 0

R 1 = 12 r 1

−−−−→

BV P x1 x2 s1 s 2 RHSs 1 0 1

2 1 12 0 150

s 2 0 3 2 0 1 480P 1 -1 -2 0 0 0

R 2 = − 2 r 1 + r 2R 3 =2 r 1 + r 3−−−−−−−→

BV P x1 x2 s1 s 2 RHSx2 0 1

2 1 12 0 150

s 2 0 2 0 -1 1 180P 1 0 0 1 0 300

Now, are basic variables are x2, s 2 and P , so the new equations will be:x2 = − 1

2 x1 − 12 s1 + 150

s 2 = − 2x1 + s1 + 180P = − s 1 + 300Thus, setting the non-basic variables equal to 0. We get x1 = 0 , x 2 = 150 and P = 300

version 1.06 Page 39 of

Page 40: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 40/43

UNLVDepartment of Mathematical Sciences

§4.2: The Simplex Method: Solving Maximum Problems in standard form by the simplexmethod

A. Simplex algorithmOnce we have the problem in standard form(see 4.1) we are ready to perform the simplex operationaccording to the following algorithm:

1. Insert a slack variable into each of the constraints.

2. Rewrite the objective function to match the format of the slack equations and adjoin(place) theobjective function at the bottom of the system.

3. Write the augmented matrix for this new system of equations

4. Find the most negative(smallest value) indicator in the bottom row(the objective function) of thetableau. This element will determine the pivot column . NOTE: This is different than the textbookin the text they choose the rst negative value in the bottom row.

5. Divide each positive element above the element found(do not negative elements or zero) into thecorresponding value of the RHS. This determines the quotient.

6. The smallest quotient found determines the pivot row.

7. Where the pivot row intersects the pivot column determines the pivot element .

8. Perform the pivot operations on that element.

(a) Divide each element in the pivot row by the pivot element

(b) Obtain zeros elsewhere in the pivot column by performing row operations on the other entries.

9. Find the basic variables

10. When completed, examine the new bottom row. If a negative element is still present in that row,repeat steps 4-8 until no negative elements appear there.

11. At that point you are nished and can nd values of the basic variables.

(a) Write equations corresponding to each row.

(b) Solve the bottom equation for P and the remaining equations for the basic variables.

(c) Set each non-basic variable equal to 0 in order to solve.

B. Example:(pg 255,#13)Maximize P = 3 x1 + x2 subject to the constraints:

x1 + x2 ≤ 22x1 + 3 x2 ≤ 123x1 + x2 ≤ 12

x1 ≥ 0 x2 ≥ 0

version 1.06 Page 40 of

Page 41: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 41/43

So, our slack equations are:P − 3x1 − x2 = 0x1 + x2 + s 1 = 2

2x1 + 3 x2 + s 2 = 123x1 + x2 + s 3 = 12

1. The initial tableau is:BV P x1 x2 s 1 s2 s 3 RHSs1 0 1 1 1 0 0 2s2 0 2 3 0 1 0 12s3 0 3 1 0 0 1 12P 1 -3 -1 0 0 0 0

2. Find the most negative value in the bottom row which is -3

3. Hence the column headed by x1 is the pivot column.

4. Apply the smallest quotient rule 21 = 2 , 12

2 = 6 and 123 = 4.

5. Hence row 1 is the pivot row and the element s 1, x 1, 1 is the pivot element.

6. After the pivot operation is performed, the new tableau is:BV P x1 x2 s 1 s2 s 3 RHSx1 0 1 1 1 0 0 2s2 0 0 1 -2 1 0 8s3 0 0 -2 -2 0 1 6P 1 0 2 3 0 0 6

7. Since there are no negative values in the bottom row, we are nished. Notice that x1 has becomebasic variable replacing s 1.

8. Solving for the variables we get x1 = 2 , x 2 = 0, and P = 6.

version 1.06 Page 41 of

Page 42: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 42/43

UNLVDepartment of Mathematical Sciences

§4.3: The Simplex Method: Solving Minimum problems in standard form by the dualityprinciple

There is a lot of similarity in solving a minimum problem as solving a maximum, once we get set up. AStandard Form

1. First we must make certain the problem is in standard form:(a) The following conditions must be met to be a standard minimum-type problem.

i. The objective function is linear and has nonnegative coefficients.ii. The variables are all nonnegative

iii. The constraints are all of the form ax 1 + bx2 + cx3 + · · · ≥ m where m is a constant.(b) We will solve using the duality principle

i. Suppose a linear programming problem in standard form has a solution. The minimum valueof the objective function of the minimum problem in standard form equals the maximumvalue of the objective function of the dual problem which is a maximum problem in standardfrom.

ii. Write the minimum problem in standard form.iii. Construct a matrix that represents the constraints and the objective function.iv. Interchange the rows and columns to form the matrix of the dual problem. (Transpose)v. Translate the matrix into a maximum problem in standard form.

vi. Solve the maximum problem by the simplex method.vii. The minimum value of the objective function ( C ) will appear in the lower right-hand corne

of the nal tableau and is equal to the maximum value of the dual objective function ( Pviii. The values of the variables that give rise to the minimum value are located in the objective

row in the slack variable columns.

B. Example( §4.3 #15) Minimize C = 6 x1 + 3 x2 subject to the constraints:x1 + x2 ≥ 4

3x1 + 4 x2 ≥ 12x1 ≥ 0 x2 ≥ 0

Thus, our matrix is:1 1 43 4 126 3 0

Transpose−−−−−−−→

1 3 61 4 34 12 0

Which gives the following dual maximum problem:

Maximize P = 4 y1 + 12 y2 subject to the constraints:y1 + 4 y2 ≤ 6y1 + 4 y2 ≤ 3

x1 ≥ 0 x2 ≥ 0So, our slack equations are:

P − 4y1 − 12y2 = 0y1 + 4 y2 + s1 = 6y1 + 4 y2 + s2 = 3

version 1.06 Page 42 of

Page 43: Math 132 Notes

7/27/2019 Math 132 Notes

http://slidepdf.com/reader/full/math-132-notes 43/43

Hence, our initial tableau is:BV P y1 y2 s1 s 2 RHSs 1 0 1 3 1 0 6s 2 0 1 4 0 1 3P 1 -4 -12 0 0 0

Once the pivot operations are completed you should have a tableau the resembles the following:BV P y1 y2 s1 s 2 RHSs 1 0 0 -1 1 -1 3y1 0 1 4 0 1 3

P 1 0 4 0 4 12which give P = 12 , y1 = 3 , y2 = 0 as the maximum solutions, so C = 12 , x 1 = 0 , x 2 = 4 is the nal solutiofor the minimum problem.