Professional Documents
Culture Documents
Lecture Notes
by
Department of Mathematics
Lock Haven University
Lock Haven, PA 17745.
Fall 2009
ii
Contents
iii
iv CONTENTS
4 Probability 85
2.2 4x + 3y ≤ 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
2.3 y ≤ −2x + 8, −2 ≤ x ≤ 1 . . . . . . . . . . . . . . . . . . . . . . . . . . 40
2.4 2x − 5y ≤ 10, x + 2y ≤ 8, x ≥ 0, y ≥ 0. . . . . . . . . . . . . . . . . . 41
2.6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
2.7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
2.8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
2.9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
v
vi LIST OF FIGURES
Chapter 1
In this section, we discuss following important questions about the systems of linear equa-
tions?
How many solutions(if any) are possible for the system of linear equations?
1
2 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
equations?
3. Infinitely many solutions: All linear equations will be representing a same graph or
their graphs are intersecting at infinite many points.
Definition 1 An equivalent system is a system that has the same solutions as the given
system.
3x − 4y = 1
are equivalent systems because both have same solution (3, 2).
3. replacing any equation by a nonzero multiple of that equation plus a nonzero multiple
of any another equation.
4x − 19y + z = 31
5x + 7y − z = 12
2x − 3y + 4z = 11
5x + 7y − z = 12
4x − 19y + z = 31
Here we interchanged second and third equations and got an equivalent system to the given
system. We will denote this transformation by R23 .
−4x + 6y − 8z = −22
4x − 19y + z = 31
5x + 7y − z = 12
Here we multiplied first equation by −2 in the given system. We will denote this transfor-
mation by (−2)R1 → R1 .
2x − 3y + 4z = 11
4 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
0x − 13y − 7z = 9
5x + 7y − z = 12
Here we have replaced second equation by multiplying second equation by 1 plus multiplying
first equation by −2 in the given system. We will denote this transformation by (−2)R1 +
R2 → R2 .
The Echelon Method A systematic approach for solving systems of equations using
above three transformations is called the Echelon method. The goal of the Echelon method
is to use the transformations to rewrite the equations of the system until the system has a
triangular form. For a system of three equations in three variables, for example, the system
should have the form
x + ay + bz = c
y + dz = e
z=f
Where a, b, c, d, e, and f are constants. Then the value of z from the third equation
can be substituted into the second equation to find y, and the values of y and z can be
substituted into the first equation to find x. This is called back substitution.
2x + 3y = 12
3x − 4y = 1.
1.1. SOLUTION OF LINEAR SYSTEMS BY THE ECHELON METHOD 5
Solution We will first use transformation 3 to eliminate the x term from the second
equation. We can see 3R1 + (−2)R2 gives us
17y = 34
2x + 3y = 12
1
Next we are using transformation 2 and multiplying first equation by 2
and second
1
equation by 17
.
1
R
2 1
→ R1 x + 32 y = 6
1
R2 → R2 y=2
17
x = 3.
−4x + 6y = 8.
6 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
Solution We will use transform 3 to eliminate x term from the second equation.
2x − 3y = 6
2R1 + R2 → R2 0 = 20.
In the second equation, both variables have been eliminated, leaving a false statement.
This is a signal that this system has no solution and therefore is inconsistent.
−6x + 4y = 8.
3x − 2y = −4
2R1 + R2 → R2 0 = 0.
In the second equation, both variables have been eliminated, leaving true statement. In
fact, we are left with one equation in two variables. This indicates that both equations are
representing the same line. We call such system as dependent and it has infinite many
solutions. We will express these solutions in terms of y, where y can be any real number.
2y−4
Solving first equation for x, we get x = 3
. Therefore, solution will be ( 2y−4
3
, y). In this
case y is called parameter.
1. If possible, arrange the equations so that there is an x1 term in the first equation, an
x2 term in the second equation, and so on.
5. Continue in this way until the last equation has the form axn = k, for constant a and
k, if possible.
2x + y − z = 2
x + 3y + 2z = 1
x + y + z = 2.
Solution First we need to eliminate x term from second and third equations.
2x + y − z = 2
R1 + (−2)R2 → R2 − 5y − 5z = 0
8 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
R1 + (−2)R3 → R3 − y − 3z = −2.
2x + y − z = 2
−5y − 5z = 0
1 1 1
R1 → R1 x + y+ z=1
2 2 2
−1
R2 → R2 y+z =0
5
1
R3 → R3 z = 1.
10
Solution Let x denotes per lb price of rice and y denotes per lb price of potatoes. Then
Now we have to solve this system. Eliminate y from the second equation.
1 1
R1 → R1 x + y = 0.81
20 2
−1
R2 → R2 y = 0.42.
6
Substitute the value of y = 0.42 in first equation, we have, x = 0.60. Which means per
lb price of rice is $0.60 and per lb price of potatoes is $0.42. The price of 10 lb of rice and
50 lb of potatoes is 10(0.60) + 50(0.42) = $27.
Practice Problems
1.
2x + 5y = 15
x + 4y = 9.
2.
3x − 2y = 3
7x − 5y = 0.
3.
2x − 2y = 5
4y + 8z = 7
x + 2z = 1.
10 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
4.
x + y + z = −1
4x + 5y = −2
y − 3z = 3.
5.
x + 3y − 2z = 4
2x + 7y − 3z = 8
3x + 8y − 5z = −4.
How to write augmented matrix from the given system of linear equations?
2x + y − z = 2
x + 3y + 2z = 1
5x − 2y + 3z = 7.
1.2. SOLUTION OF LINEAR SYSTEMS BY THE GAUSS-JORDAN METHOD 11
Such a rectangular array of numbers enclosed by brackets is called matrix and each
number in the array is called an element or entry. The matrix written from the system of
equations is called augmented matrix.
Row Operations For any augmented matrix of a system of equations, following op-
erations produce the augmented matrix of an equivalent system:
3. Adding a nonzero multiple of the elements of one row to the corresponding elements
of a nonzero multiple of some other row.
In the following operation, twice of row 2 is added to three times row 1. It is denoted
by 2R2 + 3R1 → R1 .
12 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
2 1 −1 2 8 9 1 8
1 3 changes to
2 1 1 3 .
2 1
5 −2 3 7 5 −2 3 7
1. Write each equation so that variable terms are in the same order on the left side of
the equals sign and constants are on the right.
3. Use row operations to transform the first column so that all elements except the ele-
ment in the first row are zero.
4. Use row operations to transform the second column so that all elements except the
element in the second row are zero.
5. Use row operations to transform the third column so that all elements except the
element in the third row are zero.
6. Continue in this way, when possible, until the last row is written in the form
0 0 0 · · · 0 j k ,
where j and k are constants with j 6= 0. When this is not possible, continue until
every row has more zeros on the left than the previous row (except possibly for any
rows of all zeros at the bottom of the matrix), and the first nonzero entry in each row
is the only nonzero entry in this column.
1.2. SOLUTION OF LINEAR SYSTEMS BY THE GAUSS-JORDAN METHOD 13
7. Multiply each row by the reciprocal of the nonzero element in that row.
Example 7 Use Gauss Jordan Method to solve the following system of linear equations.
x+y−z =6
2x − y + z = −9
x − 2y + 3z = 1
To produce zeros in the first column (in second and third row), we perform
(−2)R1 + R2 → R2 and (−1)R1 + R3 → R3 .
1 1 −1 6
0 −3 3 −21 .
0 −3 4 −5
To produce zeros in second column (in first and third row), we perform
1
R
3 2
+ R1 → R1 and (−1)R2 + R3 → R3 .
1 0 0 −1
0 −3 3 −21 .
0 0 1 16
14 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
1 0 0 −1
0 −3 0 −69 .
0 0 1 16
1 0 0 −1
0 1 0 23 .
0 0 1 16
Thus we conclude that system is consistent and its solution is (−1, 23, 16).
x + 2y − z = 0
3x − y + z = 6
−2x − 4y + 2z = 0
Solution
1 2 −1 0
0 −7 4 6 .
0 0 0 0
7 0 1 12
0 −7 4 6 .
0 0 0 0
We cannot get zeros for the first and second row of column 3 without changing the form
of first two columns. We must multiply each of the first two rows by the reciprocal of the
first nonzero numbers. So we have
1 −1
R
7 1
→ R1 and 7
R2 → R2 .
1 12
1 0 7 7
0 1 −4 −6 .
7 7
0 0 0 0
1 12
x+ z =
7 7
4 −6
y− z=
7 7
16 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
12 − z
x=
7
4z − 6
y=
7
Practice Problems
1.
2x + 5y = 15
x + 4y = 9.
1.2. SOLUTION OF LINEAR SYSTEMS BY THE GAUSS-JORDAN METHOD 17
2.
3x − 2y = 3
7x − 5y = 0.
3.
2x − 2y = 5
4y + 8z = 7
x + 2z = 1.
4.
x + y + z = −1
4x + 5y = −2
y − 3z = 3.
5.
x + 3y − 2z = 4
2x + 7y − 3z = 8
3x + 8y − 5z = −4.
18 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
Important concepts discussed in this section will include addition of matrices, sub-
traction of matrices, equal matrices and additive inverses.
Matrices are often classified by by size; that is number of rows and columns they contain.
For example, a matrix with three rows and two columns has a size 3 × 2 or we call it a
3 × 2 matrix..
1 3 −1 4
Example 9 The matrix
6 2 5 0 is a 3 × 4 matrix.
7 0 1 2
Example 10 The matrix 3 2 1 2 5 1 is a 1 × 6 matrix. It is also a row matrix.
3
2
Example 11 The matrix
is a column matrix of size 4 × 1.
5
1
Definition 5 A matrix with the same number of rows as columns is called a square
matrix.
1.3. ADDITION AND SUBTRACTION OF MATRICES 19
4 2 3
7
1 −5 2 −4
Example 12 The matrix
is a square matrix of size 4 × 4.
5 2 0 1
2 0 6 3
Definition 6 Two matrices are said to be equal if they are the same size and if each pair
of corresponding elements is equal.
Example 13 Matrices
3 2
0 1
and
3 2
0 2
are not equal because each pair of corresponding elements is not equal.
Example 14 Matrices
2 3
1 4
and
2 3 2
1 4 1
are not equal because they have different size.
Example 15 Determine the values of the variables such that following statement is true.
2 5 −1 2 s y
=
t 4 x 7 4 2
Example 16
3 −2 2 3 5 1
+ = .
4 1 5 4 9 5
Example 17
−2 4
3 1
+
1 3
1 0
0 0
does not exist because matrices have different sizes.
Note: It is important to remember that only matrices that are the same size can be
added.
is the matrix
−4 3
−A =
.
−2 −4
0 −1
1.3. ADDITION AND SUBTRACTION OF MATRICES 21
A + O = O + A = A.
Example 19
3 −1 2 −3 1 2
2 4 − 1 4 = 1
.
0
5 7 6 1 −1 6
1.
s−4 t+2 6 2
= .
5 7 5 r
2.
a + 2 3z + 1 5m 3a 2z 5m 10 −14 20
+ = .
4k 0 3 2k 5 6 10 5 9
1.
3 0
1 3 −2
+
6 4 .
4 7 1
−5 2
22 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
2.
2 −3 4 3 3 2
+ − .
−2 4 7 8 1 4
1.4. MULTIPLICATION OF MATRICES 23
Definition 11 The product of a scalar k and a matrix X is the matrix kX, each of whose
elements is k times the corresponding element of X.
Example 20
3 −1 −15 5
(−5) = .
5 9 −25 −45
1
2 3 −1 2 × 1 + 3 × 8 + (−1) × 6 20
AB = =
8 = .
4 2 2 4×1+2×8+2×6 32
6
NOTE The product AB of two matrices A and B can be found only if the number of
columns of A is the same as the number of rows of B.
1 −3
1 0 −1
A=
7 2
and B= .
3 1 4
−2 5
Solution
1 −3
1 0 −1
AB =
7 2
3 1 4
−2 5
1.4. MULTIPLICATION OF MATRICES 25
1 × 1 + (−3) × 3 1 × 0 + (−3) × 1 1 × (−1) + (−3) × 4
=
7×1+2×3 7×0+2×1 7 × (−1) + 2 × 4
(−2) × 1 + 5 × 3 (−2) × 0 + 5 × 1 (−2) × (−1) + 5 × 4
Which gives
−8 −3 −13
AB =
13 2 1 .
13 5 22
Similarly
1 −3
1 0 −1
BA = 7 2
3 1 4
−2 5
1 × 1 + 0 × 7 + (−1) × (−2) 1 × (−3) + 0 × 2 + (−1) × 5
=
3 × 1 + 1 × 7 + 4 × (−2) 3 × (−3) + 1 × 2 + 4 × 5
Which gives
3 −8
BA = .
2 13
From above example, we can conclude that multiplication in matrices is not commuta-
tive. That is AB 6= BA in general.
Practice problems Find each product, if possible.
1.
5
2 −1 7
.
10
−3 0 −4
2
26 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
2.
5 2
1 4 0
7 6
.
2 −1 2
1 0
3.
2 −2 4 3 7 0
+ .
1 −1 1 2 −1 5
1.5. MATRIX INVERSES 27
This means identity matrix must be square matrix and all of its elements are zero except
the elements on the main diagonal, which are equal to 1.
1 0
Example 23 The 2 × 2 identity matrix is I = .
0 1
Let we have
a b
A= .
c d
Then
a b 1 0 a(1) + b(0) a(0) + b(1) a b
AI = = = .
c d 0 1 c(1) + d(0) c(0) + d(1) c d
and
1 0 a b 1(a) + 0(c) 1(b) + 0(d) a b
IA = = = .
0 1 c d 0(a) + 1(c) 0(b) + 1(d) c d
We have
AI = IA = A.
28 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
1 0 0
Example 24 The 3 × 3 identity matrix is I =
.
0 1 0
0 0 1
Definition 14 Let A be any given square matrix. Then the matrix A−1 is called multi-
plicative inverse of A if
AA−1 = A−1 A = I.
1
NOTE A−1 does not mean A
; here A−1 is just the notation for multiplicative inverse.
3 −1
A−1 = .
−5 2
Because
1 0
AA−1 = −1
= A A.
0 1
Let A be any given matrix. In order to find its inverse, first we write it in the form
[A|I]. Where I is the identity matrix of size A. We perform row operations on [A|I] so that
it has the form [I|B]. The matrix B will be inverse of A and we will write as A−1 = B.
1 3
Example 26 Find the inverse of a matrix A = .
−1 2
1.5. MATRIX INVERSES 29
We perform
1 3 1 0
R1 + R2 → R2
0 5 1 1
5 0 2 −3
−3R2 + 5R1 → R1
0 5 1 1
2 −3
1
1 0 5 5
R
5 1
→ R1
0 5 1 1
2 −3
1 1 0 5 5
R → R2
5 2
1 1
0 1 5 5
Therefore, we have
2 −3
5 5
A−1 =
1 1
5 5
2 −1
Example 27 Find A−1 if A =
.
4 −2
2 −1 1 0
(−2)R1 + R2 → R2 .
0 0 −2 1
30 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
Because the last row has all zeros to the left of a vertical line, there is no way to
complete the process of finding the inverse matrix. In other words, we can say that inverse
of the given matrix does not exist.
1 0 1
Example 28 Find A −1
if A =
2 −2 −1
.
3 0 0
1 0 1 1 0 0
2 −2 −1 0 1 0 .
3 0 0 0 0 1
−2R1 + R2 → R2
1 0 1 1 0 0
0 −2 −3 −2 1 0 .
3 0 0 0 0 1
−3R1 + R3 → R3
1 0 0 0 1 1
.
0 −2 −3 −2 1 0
0 0 −3 −3 0 1
R3 + 3R1 → R1
3 0 0 0 0 1
0 −2 −3 −2 1 0 .
0 0 −3 −3 0 1
1.5. MATRIX INVERSES 31
R3 + (−1)R2 → R2
3 0 0 0 1 0
.
0 2 0 −1 −1 1
0 0 −3 −3 0 1
1
R
3 1
→ R1 , 12 R2 → R2 & −1
3
R3 → R3
1
1 0 0 0 0 3
0 1 0 −1 −1 1 .
2 2 2
−1
0 0 1 1 0 3
Thus we have
1
0 0 3
−1
A = 1 1
−2 −2
1
2
.
1 0 − 13
If A−1 exists, and using the fact that A−1 A = I, we can solve the system.
AX = B
IX = A−1 B
32 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
X = A−1 B.
Example 29 Use the inverse of the coefficient matrix to solve the linear system;
2x − 3y = 4
x + 5y = 2.
2 −3 x 4
A= , X= & B= .
1 5 y 2
To solve the system, first find A−1 and we can get this by using row operations on the
matrix
2 −3 1 0
.
1 5 0 1
5 3
13 13
and we will get, A−1 = (verify!).
1 2
− 13 13
Since X + A−1 B.
x 2
X= = .
y 0
Practice Problems
1.
5 10
.
−3 −6
2.
−3 −8
.
1 3
3.
2 1 0
.
0 3 1
4 −1 −3
4.
1 3 0
0 2 −1 .
1 0 2
Solve each system of equations by using the inverse of the coefficient matrix.
1.
2x + 5y = 15
x + 4y = 9.
2.
3x − 2y = 3
7x − 5y = 0.
34 CHAPTER 1. SYSTEMS OF LINEAR EQUATIONS AND MATRICES
3.
2x − 2y = 5
4y + 8z = 7
x + 2z = 1.
4.
x + y + z = −1
4x + 5y = −2
y − 3z = 3.
5.
x + 3y − 2z = 4
2x + 7y − 3z = 8
3x + 8y − 5z = −4.
Chapter 2
This section is about graphing inequalities. Several examples are provided to explain the
concept.
ax + by ≤ c
ax + by < c
ax + by ≥ c
or
ax + by > c
35
36 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Y-axis
x+y>5
X-axis
x+y=5
1. Draw the graph of the boundary line. Make the line solid if the inequality involve ≤
or ≥; make the line dashed if the inequality involves > or <.
2. Decide which half plane to shade. Use either of the following methods.
(a) Solve the inequality for y; shade the region above the line if the inequality is of
the form y > or y ≥; shade the region below the line if the inequality is of the form
y < or y ≤.
(b) Choose any point not on the line as a test point. Shade the half plane that includes
the test point if the test point satisfies the original inequality; otherwise, shade the
half plane on the other side of the boundary line.
Solution
Step 1: First we have to draw the dotted (because of < in inequality) line x + y = 5,
which indicates that this line is not the part of the graph of the inequality. In fact, dotted
line will be the boundary of the graph.
Step 2: To decide whether to shade the region above the line or the region below the
line, we would choose a test point not on the boundary line. Choosing (0, 0), we replace x
with 0 and y with 0:
x+y >5
0+0 >5
0>5
Which is false.
The correct half-plane is the one that does not contain (0, 0). Therefore, the region
above the boundary line is shaded as shown in the figure 2.1.
Solution
Step 2: To decide weather to shade the region above the line or the region below the
line, we would choose a test point not on a boundary line. Choosing (0, 0), we replace x
38 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Y-axis
4x+3y <= 12
X-axis
(0,0)
Figure 2.2: 4x + 3y ≤ 12
4(0) + 3(0) ≤ 12
0 ≤ 12
Which is true.
The correct half-plane is the one that contains (0, 0). Therefore, the region below the
boundary line is shaded as shown in the figure 2.2.
System of Inequalities
of the system of inequalities is made up of all those points that satisfy all the inequalities
of the system at the same time. Graph of the system of inequalities will be the overlapping
region of the graphs of all the inequalities involved. This overlapping region is called region
of feasible solutions or feasible region.
y ≤ −2x + 8
−2 ≤ x ≤ 1.
Solution
The boundary line of the first inequality is y = −2x + 8. because of the ≤ symbol, we
use a solid line and shade below the line.
Shaded region in figure 2.3 shows all the points that satisfy the system of inequalities.
2x − 5y ≤ 10
x + 2y ≤ 8
x≥0
y ≥ 0.
40 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Y-axis
x=1
x=-2
y=-2x+8
X-axis
feasible
region
Y axis
x+2y=8
X axis
2x-5y=10
Solution On the same axis, graph each inequality by graphing the boundary and choos-
ing the appropriate half plane. Then find the feasible region by locating the overlap of all
the half planes. This feasible region is shaded in figure 2.4.
Example 34 Happy Ice Cream Company makes cake cones and sugar cones, both of which
must processed in the mixing department and the baking department. Manufacturing one
batch of cake cones requires 1 hour in the mixing department and 2 hours in the baking
department, and producing one batch of sugar cones requires 2 hours in the mixing depart-
ment and 1 hour in baking department. Each department is operated for at most 12 hours
per day.
(a) Write a system of inequalities that expresses these restrictions.
(b) Graph the feasible region.
42 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Y axis
2x+y=12
(4,6)
2x+y=12
(3,2)
X axis
(c) Use the graph from part (b), can 3 batches of cake cones and 2 batches of sugar cones
be manufactured in one day? Can 4 batches of cake cones and 6 batches of sugar cones be
manufactured in one day?
Solution (a) Let x represent the number of batches of cake cones made and y represent
the number of batches of sugar cones made. Then make the table that summarizes the given
information.
Since the department operates at most 12 hours per day, we put the total number of
hours ≤ 12. From the table, we can easily construct two inequalities for mixing department
and baking department;
x + 2y ≤ 12
2x + y ≤ 12.
Since it is not possible to produce negative number of cake cones or sugar cones, there-
fore we have
x≥0 and y ≥ 0.
x + 2y ≤ 12
2x + y ≤ 12
x≥0
y ≥ 0.
(b) The feasible region for this system of inequalities is shown (shaded region) in figure
2.5.
(c) Three batches of cake cones and two batches of sugar cones correspond to the point
(3, 2). Since (3, 2) is in the feasible region in figure 2.5, it is possible to manufacture these
44 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
quantities in one day. However, since (4, 6) is not in the feasible region in figure 2.5, it is
not possible to manufacture 4 batches of cake cones and 6 batches of sugar cones in one
day.
Practice Problems
4x − y < 6
3x + y < 9.
3x − 2y ≥ 6
x + y ≤ −5
y ≤ 4.
−2 ≤ x ≤ 3
−1 ≤ y ≤ 5
2x + y < 6.
46 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
3x + 4y > 12
2x − 3y < 6
0≤y≤2
x ≥ 0.
9. Carmella and Walt produce handmade shawls and afghans. They spin the yarn, dye
it, and then weave it. A shawl requires 1 hour of spinning, 1 hour of dying, and 1
hour of weaving. An afghan needs 2 hours of spinning, 1 hour of dying, and 4 hours
of weaving. Together they spend at most 8 hours spinning, 6 hours dying and 14 hours
weaving.
(c) Use the graph from part(b), can 3 shawls and 2 afghans be made? can 4 shawls
and 3 afghans be made?
Many mathematical models designed to solve problems in economics, business, and engi-
neering involve finding an optimum (maximum or minimum) value of a function, subject
to certain restrictions. In linear programming problem, we must find maximum or mini-
mum value of a function, called objective function, and also satisfies set of restrictions, or
constraints, given by linear inequalities. When only two variables are involved, the solution
to a linear programming problem can be found by first graphing the set of constraints, then
finding the feasible region.
Example 35 Maximaization
Find the maximum value of the objective function z = 3x + 4y, subject to the following
constraints.
2x + y ≤ 4
−x + 2y ≤ 4
x≥0
y ≥ 0.
48 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Y axis
-x+2y=4
X axis
2x+y=4
Figure 2.6:
Solution The feasible region is graphed in figure 2.6. We can find the coordinates of
the point of intersection ( 54 , 12
5
) of lines represented by 2x + y = 4 and −x + 2y = 4 by
solving the system
2x + y = 4
−x + 2y = 4.
Any point in the feasible region satisfies all the constraints; however, we want to find
those points that produce the maximum possible value of the objective function. To see how
to find maximum value, change the graph of the figure 2.6 by adding lines that represent
the objective function z = 3x + 4y for various sample values of z. By choosing the values
0, 5, 10, and 15 for z, the objective function becomes
0 = 3x + 4y
5 = 3x + 4y
10 = 3x + 4y
15 = 3x + 4y.
2.2. SOLVING LINEAR PROGRAMMING PROBLEMS GRAPHICALLY 49
Y axis
-x+2y=4
z=15
X axis
z=0
Figure 2.7:
These four lines are graphed in figure 2.7. The figure shows that z cannot take on the
value 15 because the graph for z = 15 is entirely outside the feasible region. The maximum
value of z will be obtained from line parallel to others and between the lines representing
the objective function when z = 10 and z = 15.The value of z will be as large as possible
and all constraints will be satisfied if this line just touches the feasible region. This occurs
at the point ( 54 , 12
5
). The value of z at this point is
4 12
z = 3x + 4y = 3 + 4 = 12.
5 5
The maximum possible value of z is 12. Of all the points in the feasible region, ( 54 , 12
5
)
generates largest value of z.
50 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
5. For a bounded region, the solution is given by the corner point producing the optimum
value of the objective function.
6. For an unbounded region, check that a solution actually exists. If it does, it will occur
at a corner point.
x + 4y ≥ 12
x − 2y ≤ 0
2.2. SOLVING LINEAR PROGRAMMING PROBLEMS GRAPHICALLY 51
(6,6) 2y-x=6
Y axis
x=6
x-2y=0
(0,3)
(6,3)
(4,2) x+4y=12
X axis
Figure 2.8:
2y − x ≤ 6
x ≤ 6.
Solution The graph in figure 2.8 shows that the feasible region is bounded. Find the
corner points by solving the corresponding pairs of equations of lines. Use the corner points
to find the maximum and minimum values of the objective function z = x + 10y.
The minimum value of z = x + 10y is 24 at the corner point (4, 2). The maximum
value of z = x + 10y is 66 at (6, 6).
Maximum and minimum values of of objective function can be verified by adding graphs
of the line z = x + 10y for z = 66 and z = 24 to the graph in figure 2.8.
Practice problems
x−y ≥1
3x + 2y ≥ 18
x≥0
y ≥ 0.
2.2. SOLVING LINEAR PROGRAMMING PROBLEMS GRAPHICALLY 53
x + y ≤ 10
5x + 2y ≥ 20
−x + 2y ≥ 0
x≥0
y ≥ 0.
2x + 3y ≤ 100
5x + 4y ≤ 200
x ≥ 10
0 ≤ y ≤ 20.
54 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
3 ≤ x + y ≤ 10
x−y ≥3
x≥0
y ≥ 0.
Example 37 Mr. Trenga plans to start a new business called River Explorer, which will
rent canoes and kayaks to people to travel 10 miles down the Clarion River in Cook Forest
state Park. He has $45, 000 to purchase new boats. He can buy the canoes for $600 each
and the kayaks for $750 each. His facility can hold up to 65 boats. The canoes will rent
for $25 a day, and the kayaks will rent for $30 a day. How many canoes and how many
kayaks should he buy to earn the most revenue?
Solution Let x represent the number of canoes and let y represent the number of
kayaks. Summarize all the given information, we have,
2.3. APPLICATIONS OF LINEAR PROGRAMMING 55
The constraints imposed by the number of boats and the cost will give the following
inequalities.
x + y ≤ 65
4x + 5y ≤ 300.
z = 25x + 30y.
4x + 5y ≤ 300
x≥0
y ≥ 0.
56 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Y axis
x+y=65
(0,60)
Q(25,40)
4x+5y=300
X axis
(0,0)
(65,0)
Figure 2.9:
2.3. APPLICATIONS OF LINEAR PROGRAMMING 57
Graph of the feasible region for this problem is shown in figure 2.9. Three corner points
(0, 0), (65, 0) and (0, 60) can be easily determined. The fourth corner point labeled as Q in
the figure 2.9, can be determined by solving the system;
x + y = 65
4x + 5y = 300.
It can be easily verified that Q is the point (25, 40). Now find the values of objective
function at all the corner points, we have,
The objective function, which represents revenue, is maximized at (25, 40). He should
buy 25 Canoes and 40 kayaks.
Example 38 A 4-H member raises only goats and pigs. She wants to raise no more than
16 animals, including no more than 10 goats. She spends $25 to raise a goat and $75 to
raise a pig, and she has $900 available for this project. The 4-H member wishes to maximize
her profits. Each goat produces $12 in profit and each pig $40 in profit.
Solution First summarize all information in a table with the assumption that x rep-
resent the number of goat raised and y represent the number of pigs raised.
58 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
x + y ≤ 16
x ≤ 10
x + 3y ≤ 36.
Since the number of pigs and goats cannot be negative, therefore, x ≥ 0 and y ≥ 0.
z = 12x + 40y.
subject to x + y ≤ 16
x + 3y ≤ 36
2.3. APPLICATIONS OF LINEAR PROGRAMMING 59
Y axis
x=10
(0,12) (6,10)
x+3y=36
(10,6)
x+y=16
(0,0)
X axis
(10,0)
Figure 2.10:
0 ≤ x ≤ 10
y ≤ 0.
Graph of the feasible region is shown in figure 2.10. The corner points (0, 0), (0, 12)
and (10, 0) can easily be determined from the graph. Coordinates of the other two corner
points are (6, 10) and (10, 6). They can be verified by solving system of linear equations.
Now we determine the value of objective function on all the corner points.
Practice Problems
1. The manufacturing process requires that oil refineries must manufacture at least 2 gal
of gasoline for every gallon of fuel oil. To meet the winter demand for fuel oil, at
least 3 million gal a day must be produced. The demand for gasoline is not more than
6.4 million gal per day. It takes 0.25 hours to ship each millon gal of gasoline and
1 hour to ship each million gal of fuel oil out of the warehouse. No more than 4.65
hours are available for shipping. If the refinery sells gasoline for $2.50 per gal and
fuel oil for $2 per gal, how much of each should be produced to maximize revenue?
Find the maximum revenue?
2. Certain animals in a rescue shelter must have at least 30 g of protein and at least 20
g of fat per feeding period. These nutrients come from food A, which costs 18 cents
per unit and supplies 2 g of protein and 4 g of fat; and food B, which costs 12 cents
per unit and has 6 g of protein and 2 g of fat. Food B is bought under the long term
contract requiring that at least 2 units of B be used per serving.
(a) How much of each food must be bought to produce the minimum cost per serving?
2.3. APPLICATIONS OF LINEAR PROGRAMMING 61
(b) The rescue shelter manager notices that although the long term contracts states
that at least 2 unit of food B be used per serving, the solution uses 4 units of food B,
which is 2 units more than the minimum amount required. Can a more economical
solution be found that only uses 2 units of food B?
62 CHAPTER 2. LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Chapter 3
In the previous chapter, we discussed solving linear programming problems by the graphical
method. This method illustrates the basic idea of linear programming but it is practical only
for problems with two variables. For problems with more than two variables or problems
with two variables and many constraints, the simplex method is used.
The simplex method starts with the selection of one corner point (usually origin) from
the feasible region. Then in a systematic way, another corner point is found that attempts
to improve the value of the objective function. Finally, an optimum solution is reached, or
it can be seen that no solution exists.
63
64 CHAPTER 3. LINEAR PROGRAMMING: THE SIMPLEX METHOD
The simplex method requires several steps. In this section, we will discuss some of the
important steps, selecting slack variables, setting up simplex tableau, and selecting the
pivot.
Since the simplex method is used for problems with several variables, therefore, for our
convenience, we will be using variables x1 , x2 , x3 and so on, instead of x, y, z, or w. Thus
the constraints in the simplex method will be represented in a linear form
a1 x1 + a2 x2 + a3 x3 · · · ≤ b,
a1 x1 + a2 x2 + a3 x3 · · · ≤ b,
with b ≥ 0.
3.1. SLACK VARIABLES AND THE PIVOT 65
4x1 + 5x2 ≤ 35
x1 + 6x2 ≤ 20
with x1 ≥ 0, x2 ≥ 0.
In the simplex method, we start by changing constraints, which are linear inequalities
into linear equations. We do this by adding a nonnegative variable to each constraint and
call it a slack variable. For example, the constraint 2x1 + 5x2 ≤ 4 is converted into an
equation by adding slack variable s1 , to get
Example 40 Restate the following linear programming problem by introducing slack vari-
ables.
4x1 + 5x2 ≤ 35
x1 + 6x2 ≤ 20
with x1 ≥ 0, x2 ≥ 0.
66 CHAPTER 3. LINEAR PROGRAMMING: THE SIMPLEX METHOD
Solution We rewrite three constraints by adding slack variables s1 , s2 and s3 , one for
each constraint. The above problem can be restated as follows.
4x1 + 5x2 + s2 = 35
x1 + 6x2 + s3 = 20
with x1 ≥ 0, x2 ≥ 0.
−5x1 − 7x2 + z = 0.
Thus we have the following system of equations with all nonnegative variables,
−5x1 − 7x2 + z = 0.
2x1 + 3x2 + s1 = 15
4x1 + 5x2 + s2 = 35
x1 + 6x2 + s3 = 20.
3.1. SLACK VARIABLES AND THE PIVOT 67
x1 x2 s1 s2 s3 z
2 3 1 0 0 0 15
4 5 0 1 0 0 35
1 6 0 0 1 0 20
−5 −7 0 0 0 1 0
This matrix is called initial simplex tableau. The numbers in the bottom row, which
are from the objective function, are called indicators (except for the 1 and 0 at the far
right).
Example 41 Set up the initial simplex tableau for the following problem.
A farmer has 100 acres of available land on which he wishes to plant a mixture of
potatoes, corn and cabbage. It costs him $400 to produce an acre of potatoes, $160 to
produce an acre of corn, and $280 to produce an acre of cabbage. He has maximum $20, 000
to spend. He makes a profit of $120 per acre of potatoes, $40 per acre of corn, and $60 per
acre of cabbage. How many acres of each crop should he plant to maximize his profit?
Solution Let x1 , x2 , and x3 represent the number of acres allotted to potatoes, corn,
and cabbage respectively. Then we can summarize the above problem in the following table.
x1 + x2 + x3 ≤ 100
and
400x1 + 160x2 + 280x3 ≤ 20, 000.
Let s1 and s2 be the slack variables for these two constraints, then we have the equations
x1 + x2 + x3 + s1 = 100
The objective function is the profit. Let z represents the profit then
with x1 ≥ 0, x2 ≥ 0, x3 ≥ 0, s1 ≥ 0, s2 ≥ 0.
We can now rewrite the objective function as −120x1 − 40x2 − 60x3 + z = 0, and
complete the initial tableau as follows.
3.1. SLACK VARIABLES AND THE PIVOT 69
x1 x2 x3 s1 s2 z
1 1 1 1 0 0 100
10 4 7 .
0 1 0 500
−120 −40 −60 0 0 1 0
In feasible solution, all variables must be nonnegative. To get a unique feasible solution
for m equations, only m variables can be nonzero. These m nonzero variables are called
basic variables and the corresponding solutions are called basic feasible solutions.
Each basic feasible solution is corresponds to a corner point.
Each step of simplex method produces a solution that corresponds to a corner point of
the region of feasible solutions. These solutions can be read directly from the matrix.
x1 x2 x3 s1 s2 z
2 0 8 5 2 0 17
.
9 5 3 12 0 0 45
−2 0 −4 0 0 3 90
In this solution, the variables x2 and s2 are the basic variables. They can be identified
quickly because the columns of these variables have all zeros except for the one nonzero
entry. All variables that are not basic variables have the value 0. This means in the given
tableau, x2 and s2 are basic variables and x1 , x3 and s1 are not basic variables are equal
to 0. The nonzero entry for x2 is 5 in the second row. Therefore, from the second row of
tableau, we have the equation 5x2 = 45, so x2 = 9. Similarly, from the first row, we have
70 CHAPTER 3. LINEAR PROGRAMMING: THE SIMPLEX METHOD
17
2s2 = 17, so s2 = 2
. From the bottom row, we have 3z = 90, so z = 30. The solution is
17
x1 = 0, x2 = 9, x3 = 0, s1 = 0, and s2 = 2
, with z = 30.
Pivot Solutions read directly from the initial tableau are seldom optimal. Therefore, it
is necessary to produce other solutions until an optimum solution is reached. To get these
other solutions, we perform restricted row operations to change the tableau by using one of
the nonzero entries of the tableau as pivot. The row operations are performed to change
all entries to zero in the column containing pivot.
Note: By restricted row operations, we mean when adding a multiple of one row to a
multiple of another, we will never take a negative multiple of the row being replaced. For
example (−2)R1 + 5R2 → R2 may be used but 2R1 + (−5)R2 → R2 will never be used.
Example 43 Pivot about the indicated 2 of the following initial simplex tableau.
x1 x2 x3 s1 s2 z
1 2 4 1 0 0 56
.
2 2 1 0 1 0 40
−1 −3 −2 0 0 1 0
x1 x2 x3 s1 s2 z
−1 0 3 1 −1 0 16
.
2 2 1 0 1 0 40
4 0 −1 0 3 2 120
Here x2 and s1 are the basic variables. The solution is x1 = 0, x2 = 20, x3 = 0, s1 = 16,
3.1. SLACK VARIABLES AND THE PIVOT 71
or
z = 60.
Practice Problems
1. Write the solutions that can be read from the simplex tableau.
x1 x2 x3 s1 s2 z
1 0 4 5 1 0 8
.
3 1 1 2 0 0 4
−2 0 2 3 0 1 28
2. Write the solutions that can be read from the simplex tableau.
x1 x2 x3 s1 s2 z
1 5 0 1 2 0 6
0 2 1 2 3 .
0 15
0 4 0 1 −2 1 64
3. Pivot about the indicated 3 of the following simplex tableau. Read the solution from
the result.
x1 x2 x3 s1 s2 z
2 3 4 1 0 0 18
6 3 2 .
0 1 0 15
−1 −6 −2 0 0 1 0
72 CHAPTER 3. LINEAR PROGRAMMING: THE SIMPLEX METHOD
4. Pivot about the indicated 2 of the following simplex tableau. Read the solution from
the result.
x1 x2 x3 s1 s2 s3 z
2 2 3 1 0 0 0 500
4 1 1 0 1 0 0 300
.
7 2 4 0 0 1 0 700
−3 −4 −2 0 0 0 1 0
5. Locate the most negative indicator. If there are two such indicators, choose the one
farther to the left.
6. From the necessary quotients to find the pivot. Disregard any quotients with 0 or
negative number in the denominator. The smallest nonnegative quotient gives the
location of the pivot. If all quotients must be disregarded, no maximum solution exists.
3.2. MAXIMIZATION PROBLEMS 73
If two quotients are both equal and smallest, choose the pivot in the row nearest the
top of the matrix.
7. Use row operations to change all other numbers in the pivot column to zero by adding
a suitable multiple of the pivot row to a positive multiple of each row.
8. If the indicators are all positive or 0, this is the final tableau. If not, go back to step
5 and repeat the process until a tableau with no negative indicator is obtained.
Solution Let x represent the number of canoes and let y represent the number of
kayaks.
subject to x1 + x2 ≤ 65
x1 ≥ 0, x2 ≥ 0.
74 CHAPTER 3. LINEAR PROGRAMMING: THE SIMPLEX METHOD
x1 + x2 + s1 = 65
x1 ≥ 0, x2 ≥ 0, s1 ≥ 0, s2 ≥ 0.
x1 x2 s1 s2 z
1 1 1 0 0 65
4 5 .
0 1 0 300
−25 −30 0 0 1 0
−R2 + 5R1 → R1
and
6R2 + R3 → R3 .
3.2. MAXIMIZATION PROBLEMS 75
x1 x2 s1 s2 z
1 0 5 −1 0 25
.
4 5 0 1 0 300
−1 0 0 6 1 1800
The solution from this tableau is x1 = 0, x2 = 60, with z = 1800. This corresponds to
the corner point (0, 60) in figure 3.1.
We repeat the process to get the new tableau. Most negative indicator is −1 and the
25 300
corresponding coefficients are 1
= 25 and 4
= 75, which give 1 as a pivot. To make all
other elements in the first column equal to zero, we perform
−4R1 + R2 → R2
and
R1 + R3 → R3 .
x1 x2 s1 s2 z
1 0 5 −1 0 25
.
0 5 −20 5 0 200
0 0 5 5 1 1825
Since there is no more negative indicator, therefore, this is the final tableu. We get the
solution x1 = 25, x2 = 40 with z = 1825, which is corresponds to the corner point (25, 40)
of the figure 3.1.
76 CHAPTER 3. LINEAR PROGRAMMING: THE SIMPLEX METHOD
X2-axis
(0,60)
Q(25,40)
X1-axis
(0,0)
(65,0)
Figure 3.1:
3.2. MAXIMIZATION PROBLEMS 77
Practice Problems
subject to 4x1 + x2 ≤ 25
2x1 + 3x2 ≤ 15
with x1 ≥ 0, x2 ≥ 0.
3x1 + x2 ≤ 10
with x1 ≥ 0, x2 ≥ 0.
x1 + 5x2 + x3 ≤ 8
with x1 ≥ 0, x2 ≥ 0, x3 ≥ 0.
with x1 ≥ 0, x2 ≥ 0, x3 ≥ 0.
78 CHAPTER 3. LINEAR PROGRAMMING: THE SIMPLEX METHOD
a1 y1 + a2 y2 + a3 y3 + · · · + an yn ≥ b
with b ≥ 0.
Duality
An interesting connection exists between standard maximization and and standard mini-
mization problems: any solution of standard maximization problem produces the solution
of an associated standard minimization problem and vice versa. Each of these associated
problems is called the dual of each other.
2y1 + 2y2 ≥ 10
with y1 ≥ 0, y2 ≥ 0.
3.3. MINIMIZATION PROBLEMS; DUALITY 79
The augmented matrix of the system of inequalities without adding slack variables can
be written as
1 5 9
2 2 10
8 16 0
By interchanging rows of the above matrix with columns, and get the matrix
1 2 8
5 2 16
9 10 0
The entries of this matrix can be used to write the following maximization problem in
standard form:
5x1 + 2x2 ≤ 16
with x1 ≥ 0, x2 ≥ 0.
This maximization problem is dual to the minimization problem stated in the start of
this example.
3. Write the maximization problem in standard form, from the transposed matrix.
80 CHAPTER 3. LINEAR PROGRAMMING: THE SIMPLEX METHOD
The following table shows close connection between a problem and its dual.
Note: To solve minimization problem with duals, all the coefficients in the objective
function must be positive. Otherwise negative numbers will appear on the right side of the
constraints of the associated maximization problem, which we do not allow.
3. The minimum value of the objective function w is the maximum value of the objective
function z.
4. The optimum solution to the minimization problem is given by the entries in the
bottom row of the columns corresponding to the slack variables, so long as the entry
in the z column is equal to 1.
3.3. MINIMIZATION PROBLEMS; DUALITY 81
2y1 + y2 ≥ 3
with y1 ≥ 0, y2 ≥ 0.
1 2 3
3 1 2
6 3 0
3x1 + x2 ≤ 2
with x1 ≥ 0, x2 ≥ 0.
Solve this problem by using simplex method. We start by adding slack variables,
82 CHAPTER 3. LINEAR PROGRAMMING: THE SIMPLEX METHOD
x1 + 2x2 + s1 = 3
3x1 + x2 + s2 = 2
−6x1 − 3x2 + z = 0
with x1 ≥ 0, x2 ≥ 0, s1 ≥ 0, s2 ≥ 0.
x1 x2 s1 s2 z
1 2 1 0 0 3
.
3 1 0 1 0 2
−6 −3 0 0 1 0
x1 x2 s1 s2 z
3
0 1 5
− 15 0 7
5
1 0 −1 2
0 1 .
5 5 5
3 9 27
0 0 5 5
1 5
We can now easily read the solution from the last row. The minimum value of w =
27 3
3y1 + 2y2, subject to the given constraints is 5
and occurs when y1 = 5
and y2 = 59 . Note
that the minimum value of w is the same as the maximum value of z.
3.3. MINIMIZATION PROBLEMS; DUALITY 83
Practice Problems
with y1 ≥ 0, y2 ≥ 0, y3 ≥ 0, y4 ≥ 0.
2. Minimize w = y1 + y2 + 4y3
y1 + y3 ≥ 50
with y1 ≥ 0, y2 ≥ 0, y3 ≥ 0.
2y1 + 3y2 ≥ 6
2y1 + y2 ≥ 7
2y1 + 3y2 ≥ 15
5y1 + 6y2 ≥ 35
Probability
Probability is used in many areas, including public financing, medicine, insurance, elections,
manufacturing, weather forecasting, opinion polls, and investment. In this chapter, we will
discuss some important probability concepts and some applications especially related to
management sciences and finance.
Definition 15 Experiment
An experiment is a controlled operation that yields a set of results.
Definition 16 Outcomes
The possible results of an experiment are called its outcomes.
85
86 CHAPTER 4. PROBABILITY
Definition 17 Event
An event is a subcollection of the outcomes of an experiment. It is usually denoted by E.
Let b represents boy and g represents girl. Then the sample space for this experiment
is
S = {bbb, bbg, bgb, gbb, bgg, gbg, ggb, ggg}.
If we are interested only in the outcomes with exactly two boys and one girl. Then we
call this subcollection as an event an we have
Example 48 A fair die is rolled and we are interested in an event of getting even numbers,
then we have sample space
S = {1, 2, 3, 4, 5, 6}
Example 49 Suppose that coin is flipped until both a head or a tail appear, or until the
coin has been flipped four times, whichever comes first. Write each of the following event
in a set notation.
(a) The coin is flipped exactly three times.
4.1. INTRODUCTION TO PROBABILITY 87
{hht, tth}.
(b) In addition to the outcomes listed in part (a), there is also the possibility that the coin
is flipped four times. Which only happens when the first three flips are all heads or all tails.
Thus the event is
{hht, tth, hhhh, tttt, hhht, ttth}.
(c) The coin cannot be flipped fewer than two times under the given rules, so the event is
the empty set and is denoted by φ. It is also called impossible event.
Set Operations for Events Let E and F be events for a sample space S.
E ∩ F occurs when both E and F occur;
E ∪ F occurs when E or F or both occur;
E ′ occurs when E does not occur.
Example 50 Let S = {1, 2, 3, 4, 5, 6}, the sample space of tossing a single die. Let E =
{1, 3, 5}, and let F = {2, 4, 6}. Then E and F are mutually exclusive events because they
have no outcome in common and, therefore, E ∩ F = φ.
If each outcome of an experiment has the same chance of occurring as any other outcome,
they are said to be equally likely outcomes.
Example 51 If we are rolling a fair die, an odd number is as likely to be rolled as an even
number. Therefore, odd and even umbers are equally likely outcomes in a sample space
{1, 2, 3, 4, 5, 6}.
n(E)
P (E) = .
n(S)
Where n(E) is the number of outcomes in E and n(S) is the total number of outcomes in
S.
Example 52 Suppose a single fair die is rolled. Use the sample space S = {1, 2, 3, 4, 5, 6}
and give the probability;
(a) E: the die shows an even number
(b) F : the die shows a number less than 10.
(c) G: the die shows an 8.
Solution (a)
Here E = {2, 4, 6}, a set with three elements. Since S contains 6 elements, therefore,
3 1
P (E) = = .
6 2
F = {1, 2, 3, 4, 5, 6}.
4.1. INTRODUCTION TO PROBABILITY 89
(c) Event G is impossible because die cannot show number 8, so n(G) = 0 and
0
P (G) = = 0.
6
Example 53 If a single playing card is drawn at random from a standard 52-deck card,
find the probability;
(a) Drawing an ace,
(b) Drawing a face card,
(c) Drawing a spade,
(d) Drawing a spade or heart,
(e) Drawing a spade and heart.
Practice Problems
2. A card is drawn from a well-shuffled deck of 52 cards. Find the probability of the
following.
(a) A 9
(b) A black card
(c) A black 8
(d) A heart
(e) The 9 of hearts
(f ) A face card
(g) A 2 or queen
(h) A black 7 or red 4
(i) A red card or a 10
(j) A spade or a king.
4.2. BASIC CONCEPTS OF PROBABILITY 91
Two determine the probability of the union of two events A and B in a sample space S, we
use the following Union Rule for probability.
Example 54 If a single card is drawn from an ordinary deck of cards, find the probability
that it will be a red card or a face card.
Solution
Let A represents the event ”red card” and B represents the event ”face card”. There are
26 12
26 red cards, therefore, P (A) = 52
. There are 12 face cards in the deck, so P (B) = 52
.
6
Since there are 6 cards which are face cards as well as red cards, therefore, P (A ∩ B) = 52
.
By the union rule, probability of the card being red or a face card is
26 12 6 32 8
P (A ∪ B) = + − = .
52 52 52 52 13
Solution
(a) Let A represents the event ”first die shows a 2” and B represents the event ”the sum
of the results is 6 or 7”. Since there are 6 possibilities out of 36 all possible outcomes that
6
the first die shows a 2. Therefore, P (A) = 36
. For the event B, there are 11 outcomes
11
showing sum as 6 or 7, so P (B) = 36
. Since only two outcomes (2, 4) and (2, 5) give sum
92 CHAPTER 4. PROBABILITY
2
6 or 7 and there first die is showing a 2, therefore, P (A ∩ B) = 36
. By the union rule,
6 11 2 15 5
P (A ∪ B) = + − = = .
36 36 36 36 12
(b)
Let A represents the event ”sum is 11” and B represent the event ”second die shows a 5”.
2 6 1
Then it can be easily determined that P (A) = 36
, P (B) = 36
, and P (A ∩ B) = 36
. By the
union rule,
2 6 1 7
P (A ∪ B) = + − = .
36 36 36 36
Note:
If events A and B are mutually exclusive, then A∩B = φ by definition; hence, P (A∩B) = 0.
In this case union rule is reduced to
P (A ∪ B) = P (A) + P (B).
Definition 21 Let A be any event in a sample space S then the event A′ will consist of
all the outcomes in the sample space S except the outcomes which are in A. A′ is called
complement event of the event A.
By definition A ∪ A′ = S and A ∩ A′ = φ.
Therefore,
P (S) = P (A ∪ A′ ) = P (A) + P (A′ ).
Now from here we can define very useful rule for complements.
4.2. BASIC CONCEPTS OF PROBABILITY 93
Complement Rule
P (A) = 1 − P (A′)
and
P (A′ ) = 1 − P (A).
Example 57 If a fair die is rolled, what is the probability that any number but 3 will come
up.
Solution
Let A be the event that 3 comes up, then A′ is the event that any number but 3 comes up.
Since P (A) = 61 , we have
1 5
P (A′) = 1 − P (A) = 1 − = .
6 6
ODDS
Most often probability statements are expressed in terms of odds, a comparison of P (A)
and P (A′ ). In the following, we will discuss odds in favor and odds against the event.
Odds in Favor
The odds in favor of an event A are defined as the ratio of P (A) to P (A′), or
P (A)
Odds in F avor = ,
P (A′)
where P (A′ ) 6= 0.
Odds against
The odds against an event A are defined as the ratio of P (A′ ) to P (A), or
P (A′)
Odds against = ,
P (A)
where P (A) 6= 0.
94 CHAPTER 4. PROBABILITY
Example 58 Suppose the weather forecaster says that the probability of rain tomorrow is
1
3
. Find the odds in favor of rain tomorrow.
Solution
Let A be the event ”rain tomorrow”. Then A′ will represent the event ”no rain tomorrow”.
Since P (A) = 13 , therefore by complement rule, P (A′) = 1 − 1
3
= 23 . Therefore,
1
3 1
Odds in F avor of rain = 2 = .
3
2
We will write it as odds in favor of rain are 1 to 2, or 1 : 2.
2
Similarly, one can find, odds against the rain tomorrow will be 1
or 2 : 1.
Example 59 The odds that a particular bid will be the low bid are 4 to 5. Find the
probability that the bid will be the low bid.
Solution
Odds of 4 to 5 shows 4 favorable chances out of total 4 + 5 = 9 chances. Therefore,
4
P (bid will be a low bid) = .
9
Properties of Probability
Let S be the sample space consisting of n distinct outcomes, s1 , s2 , · · · , sn . Let pi represents
the probability for the outcome si for each i = 1, 2, · · · , n. then
4.2. BASIC CONCEPTS OF PROBABILITY 95
1. 0 ≤ p1 ≤ 1, 0 ≤ p2 ≤ 1, · · · , 0 ≤ pn ≤ 1.
p1 + p2 + · · · + pn = 1.
Practice Problems
96 CHAPTER 4. PROBABILITY