Docsity

Inequalities and Linear Programming - Lecture Notes | MATH 1050, Study notes of Mathematics

Toggle sidebar
bg1
Summary of Part 3 of the course
Determinants
An
n
n
matrix
A
has an inverse if and only if det
A
6
=0. The determinantof
A
is given by a crazy formula: fora2
2 matrix it is simply
A
=
a b
c d
=
)
det(
A
)=
ad
,
bc
;
fora3
3 matrix
A
, the determinant can be computed by expanding using any
row or any column (pick the one with most zeros in). The expansion should
contain three 2
2-determinants, eachmultiplied byeither+1or
,
1 times an
entry from the matrix.
The area of a triangle with vertices (
x
1
;y
1
), (
x
2
;y
2
)and(
x
3
;y
3
) is equal to
area =
1
2
det
0
@
x
1
y
1
1
x
2
y
2
1
x
3
y
3
1
1
A
;
where you choose either +1
=
2or
,
1
=
2so that the result is not a negative
number. If this determinant is zero then the three vertices are collinear.
Finally, determinants can be used to solve a system of
n
-equations in
n
-
unknowns (again!!) using Cramer's rule: for 3 equations in 3 unknowns
A
0
@
x
y
z
1
A
=
B
=
)
x
=
det
A
x
det
A
; y
=
det
A
y
det
A
; z
=
det
A
z
det
A
;
where
A
x
is obtained by replacing the rst column of
A
by
B
,
A
y
is obtained
by replacing the second column of
A
by
B
and
A
z
is obtained by replacing the
third column of
A
by
B
. There are similar formulas for any
n
n
matrix. Note
that this method only applies if det
A
6
=0.
Inequalities and linear programming
The solution to a system of inequalities (in
x
and
y
) is best illustrated bydrawing
the region of solutions in the plane. Todothis:
1. Replace each inequality sign by an equals sign (e.g. 3
x
+4
y
2 becomes
3
x
+4
y
= 2). This equation denes aline in the plane. Draw one line
(possibly dotted) for each inequality and decide whichside of eachline
is the side satisfying the inequality. It may help to draw small arrows
pointing to the correct side of eachline.
2. The solutions of the system of inequalities corresp ond to the region of
points that lie on the correct side of
every
line.
1
pf2

Partial preview of the text

Download Inequalities and Linear Programming - Lecture Notes | MATH 1050 and more Study notes Mathematics in PDF only on Docsity!

Summary of Part 3 of the course

Determinants

An n  n matrix A has an inverse if and only if det A 6 = 0. The determinant of A is given by a crazy formula: for a 2  2 matrix it is simply

A =

a b c d

=) det(A) = ad bc;

for a 3  3 matrix A, the determinant can b e computed by expanding using any row or any column (pick the one with most zeros in). The expansion should contain three 2  2-determinants, each multiplied by either +1 or 1 times an entry from the matrix. The area of a triangle with vertices (x 1 ; y 1 ), (x 2 ; y 2 ) and (x 3 ; y 3 ) is equal to

area = 

det

x 1 y 1 1 x 2 y 2 1 x 3 y 3 1

A ;

where you cho ose either +1= 2 or 1 = 2 so that the result is not a negative numb er. If this determinant is zero then the three vertices are collinear. Finally, determinants can b e used to solve a system of n-equations in n- unknowns (again!!) using Cramer's rule: for 3 equations in 3 unknowns

A 

x y z

A = B =) x = det^ Ax

det A

; y =

det Ay det A

; z =

det Az det A

where Ax is obtained by replacing the rst column of A by B , Ay is obtained by replacing the second column of A by B and Az is obtained by replacing the third column of A by B. There are similar formulas for any n  n matrix. Note that this metho d only applies if det A 6 = 0.

Inequalities and linear programming

The solution to a system of inequalities (in x and y ) is b est illustrated by drawing the region of solutions in the plane. To do this:

  1. Replace each inequality sign by an equals sign (e.g. 3 x + 4 y  2 b ecomes 3 x + 4 y = 2). This equation de nes a line in the plane. Draw one line (p ossibly dotted) for each inequality and decide which side of each line is the side satisfying the inequality. It may help to draw small arrows p ointing to the correct side of each line.
  2. The solutions of the system of inequalities corresp ond to the region of p oints that lie on the correct side of every line.

If all of the inequalities contain either the  or  sign (i.e., no < or >) and if each line in the picture is a straight line, then you can nd the maximum or minimum value of a linear function z = ax + by sub ject to the inequalities by substituting the x and y values of each vertex of the region. The largest is the max, the smallest is the min. Watch out for either

  1. cases where the max (or min) o ccurs at two p oints. When this happ ens, every p oint on the line joining the pair of p oints is a max (or min); or
  2. cases where the region is unb ounded, so there may not b e a nite max (or min) value.

Exp onentials and Logarithms

The exp onential function f (x) = ax^ (a > 0 with a 6 = 1) is b est understo o d in terms of its graph; we typically only draw the graph for the case where a > 1 (what is its domain? range?). This function app ears in numerous applications (see x3.5) and we often want to solve equations involving ax^. To do this we required the inverse function, namely f ^1 (x) = loga (x). The whole p oint of log are the relations loga ax^ = x and alog^ a^ (x)^ = x;

so log (^) a undo es ax^ , and vice-versa. Again, rememb er the graph of log (^) a for a > 1 (what is the domain? range?). Key prop erties of log are:

loga (x) = log 10 (x)= log 10 (a); log (^) a (u  v ) = loga (u) + loga (v ); loga (u=v ) = loga (u) loga (v ); log (^) a (un^ ) = n loga (u):

Can you prove these? Rememb er, y = loga (u) means that ay^ = u. These prop erties are used frequently when solving equations involving logs or exp onentials. To do this, the strategy is always to isolate a single log or exp onential on one side of an equation, then apply or exp onential or log.

Word problems

Lots of examples in x7.5 and x3.5. Take care setting up the inequalities in optimisation problems. For exp onential word problems, notice that exp onential growth problems are very similar to exp onental decay problems. Typically there are two quantities that you don't know (e.g. a and b in y = aebt^ ). Use the information from the question to give you one or b oth of these quantities, then answer the question.