Lecture Notes - MTH 208
Lecture Notes - MTH 208
Contents
Theme 1: Solutions of Systems of linear equations. ......................................................................... 1
1.1 General Linear Systems .............................................................................................................. 1
1.1.2 Reduction Process: .............................................................................................................. 2
1.1.3 Gaussian Elimination: .......................................................................................................... 3
1.2 Description of the set of solutions........................................................................................... 4
1.2.1 Infinitely Many Solutions: ................................................................................................... 5
1.2.2 Back Solving:....................................................................................................................... 5
Theme 2: Matrices (Matrix) .............................................................................................................. 9
2.1 Matrix Representation of a Linear System ............................................................................. 9
2.2 Use of Augmented Matrix in Solving System of Linear Equations ..................................... 10
2.3 Echelon form ......................................................................................................................... 11
2.3.1 Reduced Echelon form ...................................................................................................... 11
2.4 Determinants ......................................................................................................................... 12
2.4.1 Determinant of (nn) Matrix ............................................................................................. 13
2.5 Elementary Operations and Determinants ............................................................................ 14
2.6 Solution to System of Linear equations by Cramer’s rule .................................................... 17
2.7 Application of Determinants ................................................................................................. 17
2.8 Inverses of Matrix: ................................................................................................................ 18
Theme 3: Numerical Methods. ........................................................................................................ 19
3.1 Determination of the Zeros of Function by Iteration ............................................................ 19
3.2 Method of Chord ................................................................................................................... 21
Theme 4: Optimization: Linear programming. ............................................................................... 24
4.1 Geometric View .................................................................................................................... 24
4.2 The Simplex method : ........................................................................................................... 25
4.3 Duality of Linear Programming ............................................................................................ 29
4.3.1 Solving Dual Programs:..................................................................................................... 30
4.4 Solving minimum programmes:............................................................................................ 32
Theme 5: Optimization- Lagrange method. .................................................................................... 34
Theme 6: Calculus of finite differences. ......................................................................................... 36
Definition: Two systems of linear equations are said to be equivalent if they have same set of solutions.
Theorem 1: If one of the following elementary operations is applied to a system of linear equations the
resulting system is equivalent.
1. Interchange of two equations
2. Multiplication of an equation by a non-zero scalar.
3. Addition of a constant multiple of one equation to another equation.
To explain the operation we are carrying out we may use the following notations
Notation Elementary Operation Performed
Ei Ej The ith equation is interchanged with jth equation
KEi The ith equation is multiplied by non zero scalar, k
Ei + KEj Add k times jth equation to the ith equation
E1 E3 : 2 x1 4 x2 2 x3 2
3x1 5 x2 5 x3 1
2 x2 x3 1
3
1
E1 : x1 2 x2 x3 1
2
3
E2 E1 : x2 2 x3 2
2
2 x2 x3 1
x1 2 x2 x3 1
x2 2 x3 2
E3 2 E2 : 3x3 5
Note that, Theorem I assure us that this last system of equations has the same solution set as the given
system.
2 x1 x2 x3 1 (3)
3x1 x2 2 x3 5
Solution: x1 2 x2 x3 2
E2 2 E1 : 5 x2 3 x3 3
5 x2 x3 1
x1 2 x2 x3 2
5 x2 3x3 3 (4)
E3 E2 2 x3 2
Solving the last equation for x3 yields x3 = 1. Substituting for x3 in the second equation and solving for x2,
we get x2 = 0. Finally, the first equation yield x1 = 1. Because the system (4) is equivalent to the original
system (3), we have that x1 = 1, x2 = 0, x3 = 1 is the unique solution of (3).
Remark: The goal of Gaussian elimination is to reduce the given system of equation to an equivalent
system in the “triangular” form of (4).
x1 x2 x3 1
E2 E3 : 2 x2 x3 3
3x3 6
4
1 1
Solving, we get x3 2, x2 , x1
2 2
Example: 5Use Gaussian elimination to show that the (33) system of linear equations
x1 2 x2 x3 3
x1 4 x2 1 (5)
2 x1 4 x3 12
has no solution.
Solution: E2 E1 : x1 2 x2 x3 3
E3 2 E1 : 2 x2 x3 2
4 x2 2 x3 6
x1 2 x2 x3 3
E3 2 E2 2 x2 x3 2
0 x2 0 x3 2 (6)
Clearly, there are no values for x1, x2 and x3 that satisfy the third equation of the system (6), so both (5)
and (6) are inconsistent.
Exercises (1) Which of the following equations is linear?
(a) x1 2 x2 3 (b) x1 x2 x2 1 (c) x1 7 x2 3
2) In the following numbers, display the system and verify that the given values constitute a solution.
(a) a11, 6, a12 1, a22 3, a21 1, a22 2, a23 4, b1 14, b2 4; x1 2, x2 1, x3 1
(b) a11, 1, a12 3, a22 4, a22 1, b1 7, b2 7; b2 2, x1 1, x2 2
(c) a11, 1, a12 1, a21 3, a22 4, a31 1, a32 2, b1 0, b2 1; b3 3;
x1 1, x2 1
4. Using Gaussian elimination technique, solve the following system of equations.
(a) x1 2 x2 5 (b) x1 2 x2 4
2 x1 x2 5 2 x1 6 x2 12
(c) x1 2 x2 4 x3 6 (d) x1 x2 x3 1
x1 2 x3 2 x1 x2 x3 1
x1 3x2 7 x3 10 2 x1 3x3 8
(4) Use Gaussian elimination procedure to verify that the following systems do not have solutions
(a) x1 2 x2 3 (b) 2x1 3x2 4 (c) x1 2 x2 x3 3
2 x1 2 x2 4 6 x1 9 x 4 x1 x2 x3 1
2 x1 4 x2 2 x3 4
(5) Find all values of a for which the given system has no solution.
(a) x1 2 x2 5 (b) x1 2 x2 3 (c) x1 3x2 4
2 x1 ax2 4 ax1 2 x2 5 2 x1 6 x2 a
a21 x1 a22 x2 b2
Geometrically, solutions to each equation are represented by lines. A simultaneous solution
corresponds to a point of intersection. Thus there are three possibilities.
1. The two lines a coincident (i.e. the same line) so there are infinitely many solutions.
2. The two lines are parallel, so there are no solutions.
3. The two lines intersect at a single point, so there is a unique solution.
5
Example
Give the geometric representation for each of the following systems of equations.
(a) x1 x2 2 (b) x1 x2 2 (c) x1 x2 3
2 x 2 x2 4 x1 x2 1 x1 x2 1
x2 x2 x2
3 3 3
2 2 2
1 1
1
1 2 3 x1 1 2 3 x1 -1 1 2 3 x1
Remark: A (mn) system of linear equations has infinitely many solutions, no solution or unique
solution.
cmn xn cmn xn d m
The system is already reduced according to Gaussian elimination procedure. If the coefficients
c11 , c22 , , cmm are all non-zero, then we can solve system (9) relatively easily.
In the special case when m = n, the solution will be unique. The process of obtaining solution to
(9), which is called Back Solving, is in the obvious fashion. That is, if we allow xm1 , , xn being free
parameters then xm is determined from the last equation of (9) by
6
xm
d m cm ,m1 xm1 cmn xn
cmm
This formula for xm is then inserted in the (m – 1) equation of system (9) to determine xm – 1.
In general, the ith equation is used to express xi in terms of the free parameters xm1 , , xn .
Example 2: Describe the solution set for (35) system.
2 x1 x2 x3 x4 2 x5 3
x2 2 x3 x4 x5 1
x3 2 x4 x5 2
Solution: Solving the third equation for x3, we get x3 = 2 – 2x4 + x5. Substituting for x3 in the second
equation, and solving for x2 yields. x2 3 5 x4 x5
Finally, we substitute for x2 and x3 in the first equation and solve for x1 to get x1 1 2 x4 x5
Thus the solution is x1 1 2 x4 x5
x2 3 5 x4 x5
x3 2 2 x4 x5
where x4 and x5 are independent variables.
For example, x4 = 0, x5 = 1, x1 = 0, x2 = 4, x3 = 3 is a solution. Also, x4 = -1, x5 = 0, x1 = -1, x2 = 8, x3 = 4 is
also a solution.
Example 3 Solve x1 2 x2 x3 2
2 x2 x2 3 x3 1
(10)
3 x1 x2 2 x3 1
Solution: Gaussian elimination proceeds as follows:
x1 2 x2 x3 2
E2 2 E1 : 5 x2 5 x3 5
E3 3E1 : 5 x2 5 x3 5
x1 2 x2 x3 2
E3 E2 : 5 x2 5 x3 5
0 x3 0 (10a)
Since the last equation (10a) is satisfied by any value of x3, we may as well delete it. Thus the given
system is equivalent to the (23) system.
x1 2 x2 x3 2
5 x2 5 x3 5 (10b)
Back solving (10b), we obtain the solution: x1 x3 , x2 1 x3
where x3 is a free parameter. For instance, x3 = 0, x2 = 1, x1 = 0 is one of the solutions and x3 = 4, x2 = -3,
x1 = -4 is another such solution, etc.
In general, (mn) linear system given in system (2), no restrictions are placed on the relative sizes of m
and n.
Hence, there may be more equations than unknowns (m > n), more unknowns than equations
(m < n), or equal number of equations and unknowns (m = n).
The following is an example of (3 4) rectangular system.
Example 4: Solve x2 x3 x4 0
x1 x2 3x3 x4 2
x1 x2 x0 x4 2 (11a )
Solution: E1 E2 : x1 x2 3x3 x4 2
x2 x3 x4 0
x1 x2 x3 x4 2
7
x1 x2 3x3 x4 2
E3 E1 : x2 x3 x4 0
2 x2 2 x3 2 x4 4
E3 2 E2 : x1 x2 3x3 x4 0
x2 x3 x4 0
4 x3 4 x4 4 (11b)
Back solving results in : x1 2 2 x4 , x2 1, x3 1 x4 (11c)
where x4 is an independent variable.
Note: The system (11b) could just as easily, have been back-solved by expression x1, x2 and x4 in terms of
x3. In this case, the solution would be described by x1 2 x3 , x2 1, x4 1 x3 (11d )
Note also that the variables in (11a) could have been arranged so that Gaussian elimination resulted in
solving for x3 and x4 in terms of x1.
For this particular example, we will always get x2 = 1. So it would not have been possible to solve for x1,
x3 and x4 in terms of x2.
What is invariant about these solutions is that x2 = 1, and that any two of the remaining variables may be
expressed in terms of the third.
Hence, there is one independent variable and three dependent variables in any case and we can choose
whichever form of solution best suits our purposes. Consider example.
Example 5 Exhibit three solutions of system (11a) given in Example 4 such that each of the solutions
satisfies one of the following constraints: (a) x4 = 3 (b) x3 = 0 (c) x1 = 2.
Solution: The solution given in (11c) designates x4 as free variable. Setting x4 = 3, in (11c) will give x1 = -
4, x2 = 1, x3 = 2, x4 = 3 as the solution.
The solution in (11d) designates x3 as the independent variable. With x3 = 0 in (11d) we get.
x1 , x2 1, x3 0, x4 1.
Finally, if system (11b) is back-solved by expressing x2, x3 and x4 in terms of x1, the solution to system
1 1
(11a) is described by x2 1, x3 x1 , x4 1 x1 (11e)
2 2
Setting x2 = 2 in (11e) we get x1 = 2, x2 = 1, x3 = -1, x4 = 0.
Remark: We have seen examples of linear systems that have a unique solution and examples in which
there are infinitely many solutions. The only remaining possibility is the case where the system may be
inconsistent. The next examples illustrate this case.
Example 6 Solve x1 2 x2 x3 2
2 x1 x2 3x3 2
3x1 x2 2 x3 1.1 (12a)
Solution: x1 2 x2 x3 2
E2 2 E1 5 x2 5 x3 5
E3 3E1 5 x2 5 x3 4.9
x1 2 x2 x3 2
5 x2 5 x3 5
E3 E2 0.x3 0.1
Because there is no number x3 such that 0x3 = 0.1 system (12b) is inconsistent. Because (12a) and (12b)
are equivalent, system (12a) has no solution. Consider next example.
Example 7: x1 x2 3; 2 x1 x2 6; x1 x2 1
E2 2 E1 x1 x2 3
E3 E1 3x2 0
2 x2 2
8
This system is clearly inconsistent, for the third equation required x2 = -1 whereas the second equation
requires x2 = 0.
Exercise (1) Determine whether the system has a unique, solution, no solution or infinitely many
solutions by sketching a graph for each equation.
(a) 2x y 5 (b) 2 x y 1 (c) 3x 2 y 6 (d ) 2 x y 5
x y 1 2x y 2 6 4 y 12 x 3y 2
2) Back solve the reduced system and describe the solution set by using the procedure illustrated in
(a) x1 x2 x3 4 (b) x1 x2 x3 1
x2 x3 7 2 x2 6 x3 2
(c ) x1 x2 3x3 x4 3 (d ) x1 2 x2 3x3 x4 0
x2 x4 1 x2 x3 x4 5
x3 x4 1
3) In each of parts (a) – (c) below, exhibit a solution set for the system in Exercise 2 above that satisfies
the given constraints. (a) x3 0 (b) x3 1 (c) x3 1
(4) a Solve 3 x1 x2 x3 x4 x5 6
x2 x3 0
x3 x4 x5 1
1. In each of part (a) – (d) below, exhibit a solution for the system in (4a) above that satisfies the
given constraints.
(i) x4 0, x3 0 (ii) x4 1, x5 1 (iii) x4 0, x5 1 (iv) x4 1, x5 0
5) Solve the systems below or state that the system is inconsistent.
(a) x1 2 x2 3 (b) x1 x2 2
2 x1 4 x2 1 3 x1 3 x2 6
(c ) x1 x2 x3 2 (d ) x1 x2 x3 1
3 x1 3 x2 3 x2 6 2 x1 x2 7 x3 8
x1 x2 5 x3 5
9
Example 1 Display the (23) matrix A = (aij) where a11 = 6, a12 = 3, a13 = 7, a21 = 2, a22 = 1 and a23 = 4.
6 3 7
Solution: 4 1 4
am1 x1 am 2 x2 amn xn bm
The (mn) matrix A = (aij) as given in (1) is called the coefficient matrix for the system (3a), and the
(mn + 1) matrix.
a11 a12 a1n b1
a a22 a2 n b2
B 21
am1 am 2 amn bm
is called the augmented matrix for (3a). The matrix B is usually denoted by A b where A is the
coefficient matrix of (3a) and
b1
b
b 2
bm
Example 2 Display the coefficient matrix A and the augmented matrix B for the system.
x1 2 x2 x3 2
2 x1 x2 x3 1
3x1 x2 2 x3 5
1 2 1 1 2 1 2
Solution : A 2 1 1 B 2 1 1 1
3 1 2 3 1 2 5
10
1 2 1 3 2 1 2 1 3 2
1 R2 R1 :
1 3 2 1 0
3 2 1 1
Augmented Matrix: R3 2 R1 :
2 7 1 9 8 0 3 1 3 4
R4 3R1 :
3 3 2 4 6 0 3 1 5 12
1 2 1 3 2 1 2 1 3 2
R3 R2 : 0 3 2 1 1 0 3 2 1 1
R4 3R3 :
R4 R2 : 0 0 1 2 3 0 0 1 2 3
0 0 3 4 11 0 0 0 2 2
Back solving yields the solution x1 8, x2 4, x3 5, x4 1
Definition
The following operations, performed on the rows of a matrix are called elementary row operations.
1. Interchanging two rows
2. Multiplication of a row by a non-zero scalar.
3. Addition or subtraction of multiple of one row to another.
As before, we adopt the following notation
Notation Elementary Row Operation
Ri Rj The ith and jth rows are interchanged.
KRi The ith row is multiplied by a non-zero scalar K.
Ri + KRj Add K times jth row to the ith row.
So we can solve a linear system, by forming the augmented matrix, B, for the system and then
using elementary row operations to transform the augmented matrix to a row equivalent matrix, C, which
represents a simpler system.
Example 2 Solve: x2 x3 x4 0
x2 x2 3x3 x4 2
x1 x2 x3 x4 2
Solution: The augmented matrix for this system is
0 1 1 1 0 1 1 3 1 2
1 1 3 1 2 R R : 0 1 1 1 0
1 2
1 1 1 1 1 1 1 1
2 2
1 1 3 1 2 1 1 3 1 2
R3 R1 : 0 1 1 1 0 R3 2 R2 : 0 1 1 1 0
0 1 2 2 4 0 0 4 4 4
This is the augmented matrix for the linear system below:
x1 x2 3 x3 x4 2
x2 x3 x4 0
4 x3 4 x4 4
The solution is found by back solving.
11
Example 4Use the elementary row operations to find a matrix C such that C is in echelon form and is row
0 0 0 1 3 5
0 1 2 1 2 2
equivalent to B 0 2 4 5 7 14
0 3 6 4 7 7
0 9
0 0 2 4
0 1 2 1 2 2 0 1 2 1 2 2
0 0 0 1 3 5
R3 2 R1 :
0 0 0 1 3 5
Solution: R1 R2 0 2 4 5 7 14 0 0 0 3 11 18
R 3 R1
:
4 1
4
0 3 6 7 7 0 0 0 1 1
0 0 9
0 0 2 4 9 0 0 2 4
0 1 2 1 2 2 0 1 2 1 2 2 0 1 2 1 2 2
R3 3R2 : 0 0 0 1 3 5
0 0 0 1 3 5
0 0 0 1 3 5
R4 2 R3 :
R4 R2 : 0 0 0 0 2 3 0 0 0 0 2 3 R5 R4 0 0 0 0 2 4 C
R5 R3 :
R5 2 R2 : 0 0 0 0 4 6 0 0 0 0 0 0 0 0 0 0 0 2
0 2 1 0 2 0 0
0 0 0 0 0 0 0 0 0 0 0
The matrix C is the echelon form and row equivalent to the matrix B.
2 0 0 1 1 2 0 1 1
0 3 0 1 D 0 0 3 2 2
0 0 1 2 0 0 0 0 0
are a reduced echelon form.
We now give example to illustrate how to solve a system by transforming the augmented matrix to a row
equivalent matrix in reduced echelon form.
Example 5 Solve the system x1 x2 x3 4 x4 4
2 x1 3x2 4 x3 9 x4 16
2 x1 3x3 7 x4 11
by transforming the augmented matrix to a reduce echelon form.
1 1 1 4 4
Solution: The augmented matrix is 2 3 4 9 16
2 0 3 7 11
1 1 1 4 4 1 0 1 3 4 1 0 0 2 1
R2 2 R1 : R1 R2 : R1 R3 : 0 1 0 3 2
0 1 2 1 8 0 1 2 1 8
R3 2 R1 : R 2R :
2
R 2R :
0 0 1 1 3
0 2 5 1 19
3
0 0 1 1 3
2 3
This last matrix is in reduced echelon form and the given system is equivalent to the system.
x1 2 x4 1
x2 3x4 2
x3 x4 3
This system is easily solved in terms of x4 without back solving.
Exercises (1) Display the coefficient matrix A and the augmented matrix B for the following:
(a) x1 x2 2 x3 6 (b) x1 x2 x3 1
3x1 4 x2 x3 5 2 x1 3x2 x3 2
x1 x2 x3 2 x1 x2 3x3 2
2) Either state that the matrix is in echelon form or use elementary row operation to transform it to
echelon form:
1 3 2 1 1 2 1 2 1 4 3 4 6
(a) 0 1 4 2 (b) 0 2 2 3 (c) 0 2 1 3 3
0 0 1 1 0 0 0 1 0 0 0 1 2
3) Transform the echelon form of 2(a), (b), (c) into a reduced echelon form.
4) Solve the given system by transforming the augmented matrix to a reduced echelon form:
(a) x1 2 x2 0 (b) 2 x1 x2 3 x3 0 (c) x1 2 x2 4 x3 3 x4 7
2 x1 5 x2 1 2 x1 3x3 4 x1 2 x2 6 x3 6 x4 10
x1 x2 3 6 x1 x2 14 2 x1 4 x2 6 x3 6 x4 13
2.4 Determinants
Definition: Let A aij be a (22) matrix. The determinant of A is given by
det A a11 a22 a12 a21
For notational purposes, the determinant is often expressed by using vertical bars
a11 a12
det A
a21 a22
Example 1 Find the determinants of the following matrices
1 2 4 1 3 4
A B C
1 3 2 1 6 8
13
1 2
Solution: det A 1.3 1 2 5
1 3
4 1 3 4
det B 4.1 2 1 2. det C 3.8 6.4 0
2 1 6 8
Example 2 Determine the minor matrices M11, M23, M32 for the matrix A given by
1 1 2
A 2 3 3
4 5 1
Also, calculate the cofactors A11, A23 and A32.
3 3 23 1 2 3 2 1 2
A11 1 3 15 18, A23 1 5 4 9, A32 1 3 4 7
11
5 1 4 5 2 3
Definition: Let A aij be an (nn) matrix. Then the determinant of A is
det A a11 A11 a12 A12 a1n A1n
Where Aij is the cofactors of a1 j ,1 j n
3 2 1
Example 3Compute det (A) where A 2 1 3
4 0 1
1 3 2 3 2 1
Solution: det A a11 A11 a12 A12 a 13 A13 3 2 1 3 1 2 14 1 4 29
0 1 4 1 4 0
1 2 0 2
1 2 3 1
Example 4 Compute det (A) where A
3 2 1 0
2 3 2 1
Solution: det A a11 A11 a12 A12 a13 A13 a14 A14 A11 2 A12 2 A14
The required cofactors A11, A12 and A14 are calculated as ain example 1 above.
2 3 1
1 0 2 0 2 1
A11 2 1 0 2 3 1 15
2 1 3 1 3 2
3 2 1
14
1 3 1
1 0 3 0 3 1
A12 3 1 0 1 3 1 18
2 1 2 1 2 2
2 2 1
1 2 3
2 1 3 2 3 2
A14 3 2 1 1 2 3 6
3 2 2 2 2 3
2 3 2
Thus, it follows that det A A11 2 A12 2 A14 15 36 12 63
3 0 0 0
1 2 0 0
Example 5 Compute the determinant of the lower triangle matrix T where T
2 3 2 0
1 4 5 1
Solution: We have det T t11T11 t12T12 t13T13 t14T14
2 0 0
2 0
det T t11 A11 3 3 2 0 3.2 3.2.2.1 12
5 1
4 5 1
Here, we saw that the determinant of the lower triangular matrix T was the product of the diagonal entries.
i.e. det(T ) t11 xt22 xt33 xt44
This simple relationship is valid for any lower triangular matrix.
Theorem: Let T tij be an (nn) lower triangular matrix. Then
det T t11 xt22 xt33 x xtmn
Theorem: Id the (nn) matrix A is non singular, then det A 0. Moreover det A1
1
det A
Exercise: Find det (A) where A are matrices defined below:
2 1 1 2 2 0 2 0
1 2 1 1 4 0 3 0 0 1 1 2
1. A 0 1 3 3 1
2. A 1 0 2 3. A 4. A
2 1 1 3 1 2 2 1 2 0 0 1 2 1
3 1 1 2 0 3 1 4
FIRST ONE
Theorem: 1Let A = [A1, A2… An] be an (nn) matrix. If B is obtained from A by interchanging two
columns (or rows) of A, then det (B) = – det (A).
Example 6 Verify the above theorem for (22) matrix
15
Verification: Let B denote the matrix obtained by interchanging the first and second columns of A. Thus
a12 a11
B is given by B
a22 a21
Now, det B a12 a21 a11a22 , det A a11a22 a12 a21
Thus det B det A .
Theorem 2: If A is an (nn) matrix and if B is the (nn) matrix resulting from multiplying the kth column
(or row) of A by scalar C, then det (B) = C det (A)
a11 a12
Example 7 Verify the above theorem for the (22) matrix A
a21 a22
Verification: Consider the matrices A and A give by
ca a a ca12
A 11 12 A 11
ca21 a22 a21 ca22
Clearly det A ca11a22 ca21a12 c a11a22 a21a12 c det A.
Similarly, det A ca11a22 ca21a12
We note that the above theorem is not valid for c = 0. That is, if a column of a matrix A is zeros, then
det (A) = 0.
Corollary 3: Let A be (nn) matrix and let c be a scalar, then det cA c n det A
Proof: Exercise
1 2
Example 8 Find det (3A) where A
4 1
3 6
Solution: 3A Thus det (3A) = 9 – 72 = –63 32 det A 9 x 7 63.
12 3
Theorem 4: If A, B and C are (nn) matrices that are equal except that the 5th column (or row) of A is
equal to the sum of the 5th columns (or row) of B and C, then
Det (A) = det = det (B) + det (C)
Example 9: Verify theorem 4 where A, B and C (22) matrices such that the first column of A is equal to
the sum of the first columns of B and C.
b1 c b c
Thus: B C 1 A 1 1
b2 c2 b2 c2
det A b1 c1 b2 c2 b1 c1 b2 c2 b1 b2 c1 c2
det B det C
Example 10 Given that det (B) = 22 and det (C) = 29, find det (A), where
1 3 2 1 1 2 1 2 2
A 0 4 7 B 0 2 7 C 0 2 7
2 1 8 2 0 8 2 1 8
Solution A1 B1 C1 ; A3 B3 C3 . But A2 B2 C2 .
Thus, det A det B det C 22 29 51
Theorem 5: Let A be an (nn) matrix. If the jth column (or row) of A is a multiple of the
kth column (or row) of A, then det (A) = 0.
Theorem 6: If A is an (nn) matrix, and if a multiple of the kth column (or row) is added to the jth
column (or row) then the determinant is not hanged.
Example 11 Use elementary column operations to simplify the matrix A and find det (A)
1 2 0 2
1 2 3 1
A
3 2 1 0
2 3 2 1
16
1 2 0 2 1 1 0 0 0
1 2 3 1 1 1 3 1 1 4 3 3
Solution: det A
3 2 1 0 3 2 1 3 3 3 1 6
2 3 2 1 0 1 2 1 2 7 2 3
4 3 3
Thus it follows that det (A) is given by det A 8 1 6
7 2 3
We wish to create zeros in the (1, 2) and (1, 3) positions of this (3, 3) determinant. To avoid using
fraction, we multiply the second and third columns by 4 and then add a multiple of -3 times column 1 to 2
and 3.
4 3 3 4 12 12 4 0 0
1 1
det A 8 1 6 8 4 24 8 28 0
16 16
7 2 3 7 8 12 7 13 9
Thus we find that det (A) = -63.
1 2 0 3 2 4 2 2 1 1 2 1
2 5 1 1 1 3 1 2 0 1 4 1
(1) (2) (3)
2 0 4 3 1 3 1 3 2 1 3 0
0 1 6 2 1 2 1 2 2 2 1 2
x1 2 x2 x3 6
Solution: Writing the system as AX = b, we have
1 1 1 0 1 1 1 0 1 1 1 0
A 1 1 2 B1 1 1 2 B2 1 1 2 B3 1 1 1
1 2 1 6 2 1 1 6 1 1 2 6
18
Root
y
Root
Zero
x y =h(x)
Root
Zero
y = g(x)
x
Example
Use the graphical method to find the zero of the function
f x x4 2x 1
Solution
Let g x x 4 , h x 2 x 1
f x g x h x
Our method is to guess an approximate solution as A1, where x = x1, which is reasonably close” to the
point x0 representing the exact solution. we construct the tangent to y = f (x) at the point P1 (x1, f (x)).
From the diagram, it is clear that x2 is a better approximation to the solution than x1.
20
We then repeat the process to find A3 (x3, 0) which is yet closer to x0. Clearly, we may repeat this
process as many times as we like to achieve the necessary accuracy.
P1 A1 f x1
Considering the figure above, from A1 A2 P1, tan P1 Aˆ 2 A1
A1 A2 x1 x2
But tan P1 Aˆ 2 A is the slope of the curve at P1, then tan P1 Aˆ2 A1 f x1 .
So
f x2 f xn 1
In the same way. x3 x1 . Generally, xn xn
f x2 f xn 1
This is known as the Newton-Raphson process for the iterative solution.. It is important to realize that the
first guess of a solution has to be reasonably close. It is also important to be aware of any discontinuities
within the graph when making the first guess.
Consider the diagram
A1
0
x
x0
We see that a first guess at A1 will not give better approximation to x0 which is on the other side of the
discontinuity.
Solution: We let f x x 2 27 , f x 2 x, x1 5.
f x1 2
Hence f x1 2, f x1 10. Thus x2 x1 5 5.2
f x1 10
0.04
f x1 5.2 27 0.04, f x2 f 5.2 10.4so: x3 5.2 5.196 to 3 decimal places.
2
10.4
Repeating the process, with x = 5.196, we have f x3 5.196 27 0.002, f x3 10.392
2
0.002
x4 5.196 5.196 to 3 d.p.
10.392
Since x3 and x4 are the same to accuracy of 3. d.p., there is no need continuing further. So we have found a
reasonable approximation to the solution.
Example 2 Solve x cos x = 0 giving the answer correct to 3 decimal places using x1 = 0.7 as the first guess
(angle is in radians).
Solution: Let f x x cos x, f x 1 sin x, x1 0.7, f x1 f 0.7 0.7 cos 0.7 0.65
f x1 0.065
f x1 f 0.7 1.644 x2 x1 0.7 0.739
f x1 1.644
Repeating f x2 f 0.739 0.739 cos 0.739 0.0001, f x2 1 sin 0.739 1.674
21
0.001
x3 0.739 0.739 to 3 d.p. Hence x = 0.739 to 3 decimal places.
1.674
Example 3: Solve f x 8 x 3 24 x 2 24 x 1.02 using x1 = 0 as a first guess.
f xn 1
Solution: xn xn 1 n 2,3, 4,... f x 24 x 2 48 x 24
f xn 1
f xn1
n xn1 f xn 1 f xn 1 f xn1
2 3 1 – 1.02 24 0.0425
3 0 – 0425 –0.0.4274 22.00344 0.001742
4 0.34444 –0.000138 21.91428 0.00006
5 0.44446 … … …
Exercises
1. Find correct to 3 decimal places, the root of x3 9 x 1 0 which is near to x = 3.
2. Solve f xn 1 2sin x x, by first sketching the two graphs y = 2sin x and y = x to obtain a
reasonable guess for your first estimate. Find the solution correct to 3 decimal places.
3. Solve the equation using the Newton Raphson method with a first estimate of x = 0.05. Give
your answer accurate to 3 decimal places (x is in radians).
4. Find, correct to 3 decimal places, the solution to t 4 t 3 0 near to t 1.4 .
y
P1 (x1, f(x1))
x4
x2 x3
x1 x
x0
P2 (x2, f(x2))
Considering the above graph, we see that chord joining P1 and P2 crosses the x-axis is at a point x3,
which is closer to x0 than either x2 or x1.
x3 x2 x x
To compute x3, we note from similar triangles 1 3
f x2 f x1
22
x2 f x1 x1 f x2
From this we get x3
f x1 f x2
To compute the next approximation, we note also that the chord P1P3 now crosses the x-axis at x4 which is
x3 f x1 x1 f x3
much closer to x0 than x3. Thus we calculate x4
f x1 f x3
xn1 f x1 x1 f xn 1
Continuing the above process, we have xn
f x1 f xn1
xn f x1 f xn1 xn1 f x1 x1 f xn1 xn1 f x1 x1 f xn1 x1 f x1 x1 f x1
xn 1 x1 f x1 f x1 f x
n 1 1
x n 1
x1 f x1 f x1 f xn1 x1
xn
f x1 f xn1
xn x1
x x f x ,
n 1 1 1
n 3, 4,.... or , xn x1 x1 xn1
f x1
n 3, 4,....
f x f x
1 n 1 f x1 f xn 1
f x0 x0 xn
Preferably, this formula is used in the form, xn 1 x0 , r 1, 2,3,....
f x0 f xn
f x0 x0 xn
xn1 x0
f xn f x0
Example 1: Find a root of the equation 8 x3 24 x 2 24 x 1.02 0.
Solution: Find the separation interval. We note that
x0 0, f x0 1.02, x1 1, f x1 6.98
Thus the separation interval (0, 1) contains one or three roots. If it contains three roots, then there must be
a maximum and a minimum in this interval.
f x 24 x 2 48 x 24 0 or x 2 2 x 1 0 x 1 0
2
8
Example 2 Solve x3 3 x 2 0
3
8
Solution: Let f x x 3 3x 2 0 . So f x 3 x 2 6 x 0 at turning point
3
x 3 x 6 0 x 0 or x 2. Then f x 6 x 6. at x 0, f x 6
x = 0 is local maxi.
8 1
At x = 2, f x 6 x = 1 is a local mini. f 0 and f 2 1
3 3
y
3
2
P2
2 P3 1 1 2P3
1 0 3
1
23
So, its graph crosses x – axis at three points. We look for separation intervals for each of these points.
1
Thus, one root at P1 I in the separation interval (1, 0) or better still 1, . another root is at P2 in the
2
separation interval (0, 2). The third root is at P3 in the separation interval (2, 3). For root at P2, separation
interval is (0, 2).
Set x0 0, f x0 f 0 2.667, x1 2, f x1 f 2 1.333
n xn f xn xn x0 f xn f x0 xn x0
f ( x0 )
f xn f x0
1 2.000 -1.333 2.000 -4.000 1.3335
2
3
24
H C1 x1 C2 x2 Cn xn
which is called objective function, be minimized or maximized subject to constraints of the form.
a11 x1 ain xn bi
xj 0
Where i = 1, 2… m and j = 1, … , n
Comments: The objective function and all the constraints are linear in the variables x e.g.
H 2 x1 5x2 10.
We stated the constraints in the form of: Ax b
Note that alternative form viz:
i) 2 x 5 y 3z 25 or (ii) x + y = 3 may be reduced to the above.
That is reducing all the constraints to notation.
i) 2 x 5 y 3z 25 2 x 2 y 3z 25
i.e. multiplying the inequality () by (1) to reserve the sign of the inequality.
ii) x y 3 x y 3 x y 3 x y 3 x y 3
3) The constraints x 0
There are also many problems where negative values of some x’s are meaningful.
Suppose that a variable x can have both positive and negative values, we say that x is free or we do not
impose a restriction x 0
Feasible Point: A point (x1, x2, …, xn) is called feasible if it coordinates satisfy all m + n constraints.
6
x=3
5
4 x1 + x2 = 4
3
(2, 2) x1, + 2x2 = 2
2
1 (3, 1)
(0,1)
2 1 (0, 0) 1 2 3(3, 0) 4 5 x
Note that the extreme points are (0, 0), (2, 2), (3, 1) and (3, 0).
F = x2 – x1
At (0,0) F=0–0=0
At (0, 1) F=1–0=1
At (2, 2) F=2–2=0
At (3, 1) F = 1 – 3 = -2
25
At (3, 0) F = 0 – 3 = -3
Thus the maximum is F = 1 and it occurs at (0, 1).
Example A
2) With the same inequality constraints as in Example 1 above, find (x1, x2) such that G = 2x1 + x2 is
maximized.
Solution: F = 2x1 + x2
At (0,0) G=0–0=0
At (0, 1) G=20+1=1
At (2, 2) G=22+2=6
At (3, 1) G=23+1=7
At (3, 0) G=23+0=6
Thus the maximum is 7 it occurs at a point (3, 1). i.e. when x1 = 3, x2 = 1.
Exercises
1) Find the optimal values of x1 and x2 by the graphical method that maximizes z = 3x1 – 2x2
3x1 x2 10
subject to x1 2 x2 15
x1 0, x2
2) Find the optimal values, of x and y by the graphical method that maximize F = 2x + 3y
3 x 2 y 2
x y 2
subject to
x y 8
3 x y 12
3) Find the optimal values of x and y by the graphical methods, that
(a) maximize z = x + 3y
5 x 10 y 20
subject to x 4 y 4
x, y 0
(b) Use the same feasibility region and minimize the objective function z = -5x + 2y
4) Use graphical method to find x and y that
(a) Maximize z = 5x + 2y
Subject to : 2x – 5y -10
2x + y -6
x 0, y 0.
(b) Use the same feasibility region and minimize the objective function
z = -5x + 4y
From the objective function row, we note that 1 is the only positive number present. This determines the
pivot column.
2 4
In this column, we have two positive entries, but noting that 1 is less than , we make 2 a pivot pint
2 1
to get T1.
T1 is obtained by first making the pivot to be unity and then eliminating every other entry in its column.
Thus:
x1 x2 s1 s2 s3 b
1 1 1 0 0 1
2 2
T1: 3 0 1 1 0 3
2 2
1 0 0 0 1 3
1 0 1 0 0 -1
Obj. Fun. H 2 2
Decision variable Slack variables RHS
Note that no entry in the objective function row is positive. This shows that the maximum of H = x2 – x1 is
equal to 1 i.e. negative of (-1), which appears in the right hand side of the objective function row.
Note also that this agrees with our graphical method i.e.
x1 0, x2 1, H 1
Example 2 Solve Example A No. 2 by simplex method.
Solution: Slack variables and constraints are the same as in No. above. We want to
maximize G = 2x1 +x2.
x1 x2 s1 s2 s3 b
-1 2 1 0 0 2
T0: 1 1 0 1 0 4
1 0 0 0 1 3
2 1 0 0 0 0
Obj. Fun. H
Decision variable Slack variables RHS
Note that both 2 and 1 are positive in objective function row. So we have a choice.
27
3 4
Selecting 2, we make the circled 1 a pivot since is less than . We get T1 by the process of elimination.
1 1
x1 x2 s1 s2 s3 b
0 2 1 0 1 5
T0: 0 1 0 1 -1 1
1 0 0 0 1 3
0 1 0 0 -2 0
Obj. Fun. H
Decision variable Slack variables RHS
Now, we have no choice, the new pivot is the circle 1. We then get T2 as shown below.
x1 x2 s1 s2 s3 b
0 0 1 -2 3 3
T1: 0 1 0 1 -1 1
1 0 0 0 1 1
0 1 0 -1 -1 -7
Obj. Fun. H
Decision variable Slack variables RHS
No entry in the objective function row is positive, so we stop. This means that the maximum of G is
negative of (-7) = 7.So, G has maximum of 7 at it occurs when x1 = 3, x2 = 1 as before.
3) Solve by simplex method: maximize 2x + 3y
subject to 3x 2 y 2, x y 2, x y 8, 3x y 12, x y 0
Solution: We have 3x 2 y s1 2
x y s2 2
x y y s3 8
3x y s4 12
x, y, s1 , s2 , s3 , s4 0.
x Y s1 s2 s3 S4 b
-3 2 1 0 0 0 2
-1 1 0 1 0 0 2
T0
1 1 0 0 1 0 8
3 -1 0 0 0 1 12
2 3 0 0 0 0 0
Obj. Fun.
x y s1 s2 s3 s4 b
0 1 1 0 0 1 14
0 2 0 4 0 1 6
3 3
T1 0 4 0 0 1 1 4
3 3
1 1 0 0 0 1 4
3 3
0 11 0 0 0 2 -8
Obj. Fun. 3 3
x y s1 s2 s3 s4 b
0 0 1 0 3 5 11
4 4
T2
0 0 0 0 1 1 4
2 2
28
1 1 0 0 3 1 3
4 4
3 -1 0 0 1 1 5
4 4
0 0 0 0 11 1 -19
Obj. Fun.
4 4
0 0 1 5 1 0 1
2 2
0 0 0 2 -1 1 8
T3 0 1 0 1 1 0 5
2 2
1 0 0 1 1 0 3
2 2
0 0 0 1 5 0 -21
Obj. Fun.
2 2
Note that because we multiplied objective function by 1, we look for negative entries in the objective
function row. Here we have a choice since there are 3 negative entries. Suppose we choose -32, then the
circled 2 becomes the pivot determined as before. We then proceed to get T1.
x1 x2 X3 s1 s2 s3 b
-2 1 0 1 0 -1 8
-3 0 0 0 1 -2 12
T1:
3 1 1 0 0 1 7
2 2 2
Obj. Fun. 30 -4 0 0 0 16 224
Since there is still a negative entry in the objective function row, we make it a pivot column, thereby
choosing the circled 1 a pivot. So we get T2.
x1 x2 X3 s1 s2 s3 b
-2 1 0 1 0 -1 8
-3 0 0 0 1 -2 12
T2:
5 0 1 1 0 1 3
2 2
29
There are no negative entries in the objective function row. So we stop, as this is the final simplex table.
So the maximum value of z is 256 and it occurs when x1 = 0, x2 = 8 and x3 = 3. Note that the maximum is
read as its is
Exercises Solve the following linear programming problems using simplex method.
1) Maximize z 2 x1 3x2 ( 2) Maximize z 6 x1 3x2 x3
Subject to 4 x1 2 x2 9 Subject to 4 x1 5 x2 2 x3 11
x1 3x2 7 x1 3x2 x3 7
x1 , x2 0 3x1 x2 4 x3 8
x1 , x2 , x3 0
3) Maximize z 2 x1 5 x2 4 x3 ( 4) Maximize z 2 x2 4 x3
Subject to 3x1 2 x2 4 x3 12 Subject to 3x1 4 x2 7
5 x1 3x2 8 x3 16 2 x1 6 x3 5
x1 6 x2 2 x3 4 4 x1 7 x2 2 x3 13
x1 , x2 , x3 0 x1 , x2 , x3 0.
18w1 2 w2 12
4w1 2 w2 8
w1 , w2 0.
4 x1 8 x2 4 x3 s1 16
4 x1 2 x2 2 x3 s2 20
x1 x2 x3 s1 s2 b
-4 -8 4 1 0 16
T0
4 -2 2 0 1 20
10 12 -8 0 0 0
Obj. Fun.
x1 x2 x3 s1 s2 b
-1 -2 1 1 0 4
4
T1
6 2 0 1 1 12
2
2 -4 0 2 0 32
Obj. Fun.
x1 x2 x3 s1 s2 b
31
5 0 1 1 1 16
4
T2
3 1 0 1 1 6
4 2
4 0 0 1 2 56
Obj. Fun.
x1 x2 x3 s1 s2 b
From this optimal table, the maximum of z = 56 is at (x1, x2, x3) = (0, 6, 16)
We look in the slack variable columns. We take the numbers in the objective function row and
set (w1, w2) = (1, 2).
By direct substitution, we can verify that this is the feasible solution for the dual programme.
4 1 4 2 4 10
8 1 2 2 12
4 1 2 2 8
Thus (1, 2) is feasible. Furthermore, the dual objective function u = 16w1 + 20w2 has the value at (1, 2) of
U = 16(1) + 20(2) = 56. Since this is the value as was found for the primal objective function z, the
solution must be optimal for the dual.
Steps for Solving Dual Programs
Step 1: Adjoin slack variable to the maximum program and use simplex method to solve it.
Step 2: Obtain the optimal solution to the dual program from the objective function row of the slack
variables columns of the maximum program’s final table.
Example 4 Find the optimal solution of the linear program.
maximize z 6 x1 10 x2
subject to: 4 x1 6 x2 10
2 x1 4 x2 2
4 x1 2 x2 2
x1 , x2 0
Then, construct the dual of the program and find its optimal solution. Verify that the solution is feasible
and optimal.
Solutio:nWe adjoin the slack variable s1, s2, s3 and then get in initial table T0.
x1 x2 x3 s1 s2 b
4 -6 1 0 0 10
T0 2 -1 0 1 0 2
-4 2 0 0 1 2
-6 10 0 0 0 0
Obj. Fun.
x1 x2 x3 s1 s2 b
0 2 1 -2 0 6
1 -2 0 1 0 1
T1
2
0 -6 0 2 1 6
0 -2 0 3 0 6
Obj. Fun.
x1 x2 x3 s1 s2 b
0 1 1 -1 0 3
2
T2 1 0 1 3 0 7
2
0 0 3 -4 1 24
0 0 1 1 0 12
Obj. Fun.
x1 x2 x3 s1 s2 b
32
w1 , w2 , w3 0
We then take ( w1 , w2 , w3 1,1,0 from the objective function row of slack variable columns.
We check that it is feasible for the dual constraints as follows:
4 1 2 1 4 0 6, and 6 1 4 1 2 0 10
Finally, we calculate the dual objective function value U 10 1 2 1 2 0 12
These coincide with z = 12 and thus the solution is optimal.
subject to: 6 x1 x2 2 x2 8
6 x1 3 x2 6 x3 12
x1.x2 , x3 0.
w1 , w2 0.
With slack variables s1 + s2 we apply simplex method to get T0.
x1 x2 x3 s1 s2 b
16 1 2 1 0 8
T0
6 3 -6 0 1 12
2 -12 12 0 0 0
Obj. Fun.
x1 x2 x3 s1 s2 b
-8 0 1 1 4
4 3
T1
2 1 -2 0 1 4
3
Obj. Fun. 26 0 -12 0 4 48
33
x1 x2 x3 s1 s2 b
-2 0 1 1 1 1
4 12
T2
-2 1 0 1 1 6
2 6
2 0 0 3 3 60
Obj. Fun.
x1 x2 x3 s1 s2 b
Thus, we obtain w1 = 3, w2 = 3 as the optimal solution to the given minimum program and the minimum
value is u = 60.
Exercise Find the maximum program for which the given minimum program is the dual. Solve the
maximum program and obtain the optimal solution for the given program from the final simplex table.
1) minimize U 3w1 6 w2 21w3
3w1 6 w2 8w3 1
3w1 3w2 6 w3 9
w1 , w2 , w3 0.
2) minimize U 3w1 15w2 3w3
3w1 9 w2 3w3 12
6 w1 10 w2 3w3 2
w1 , w2 , w3 0.
3w1 6 w2 2 w3 4
w1 , w2 , w3 0.
34
We begin with what looks like a detour (round about way). To avoid having to make separate statements
for the two-and three variable cases, we will use vector notation. Throughout the discussion, f will be a
function of two or three variables continuously differentiable on some open set U.
We take C: r(t), t I, as a curve which lies entirely in U and has at each point a non-zero tangent vector
r(t). The basic result is thus:
if x0 maximizes (or minimizes) f(x) or C, then f (x0) is perpendicular to C at x0.
on the hyperbola x 2 y 2 1.
Solution: We set g x, y x 2 y 2 1 0 . The point of interest must satisfy the Lagrange condition.
f x, y g x, y together with g x, y 0.
Here f x, y 2 xi 2 y 2 y j and g x, y 2 xi 2 y j
The condition f x, y g x, y gives 2 x 2 x, 2 y 2 2 y
which we can simplify to x x, y 2 y
The point of interest must therefore satisfy the following three equations:
35
x x, y 2 y, x2 y 2 1 0
The last equation shows that x cannot be zero. So dividing x = x by x gives = 1. This means that
y – 2 = -y and therefore y = 1, with y = 1, the last equation gives x 2. so; the points to be checked
are therefore
2,1 , 2,1 . At each of these points f takes on the value 3. This is the desired
minimum.
Example 3 Maximize f x, y, z xyz
Subject to x2 y 3 z 3 1, for x, y, z 0.
Solution: We set g x, y , z x 3 y 3 z 3 1 0
We seek for (x,y,z) that satisfy Lagrange condition simultaneously.
i.e. f x, y, z g x, y , z and g x, y , z 0.
we get f x, y, z zi xz j xyk , and g x, y , z 3x 2 i 3 y 2 j 3z 2 k
Setting f x, y , z g x, y , z we get yz 3x 2 , xz 3 y 2 , xy 3z 2
Multiplying the first equation by x and second by y and third by z
We get xyz 3x3 , xyz 3 y 2 , xyz 3z 3
and consequently. x3 y 3 z 3
We can exclude = 0 because if = 0 then at least one of the other variables would have to be zeros.
That would force xyz to be zero, which is obviously not a maximum.
Having excluded = 9, we can divide by to get x3 = y3 = z3 and thus x = y = z.
1 1 1
1 3 1 3 1 3
the side condition x + y + z = 1 now give x ,
3 3 3
y , z
3 3 3
1
The desired maximum is
3
Exercises (1) Maximize x2 + y2 on the hyperbola xy = 1
(2) Maximize xy on the ellipse b2 x 2 a 2 y 2 a 2b 2 (3) Maximize xy2 on a unit circle x 2 y 2 1
(4) Maximize xyz on a unit sphere x 2 y 2 z 2 1 (5) Minimise x + 2y+ 4z x + y2 + z2 = 7
(6) Maximize 2x + 3y + 5z on the sphere x2 + y2 + z2 =19
(7) Minimize x4 + y4 + z4 on the plane x + y + z = 1.
36
xo+4h – x4 y4
Central differences
δy½ = y1 – yo
y 3 y 2 y1
2
y n1
δy + 1 – yn = y 2
2 n 1
2
δ2y1 =
y y
3 1
2 2
37
Table
X Y δy δ2y δ2y δ4y
xo yo y 1 δy1 y 3 δy2
2 2
x1 y1 y 3 δy2 y 3
2 2
x2 y2 y 5 δy2 y 5
2 2
x3 y3 y 7 Δy3
2
x4 y4
Example
1. Evaluate the first forward difference of ex
2. Evaluate ∆2(3ex) = D.(∆3rx) = ∆3(∆ex)
= 3∆(ex(eh-1)
= 3(eh-1) (ex(eh-1)
= 3ex (eh-1)2
3. Evaluate ∆(e log3x)
2x
g ( x)
- f (x th) g (x th) f(x)
g ng
f(x) - g(x) f (x) th)
= g(x)th)
g ( xth) g (x)
The shift operation E
Xf
Єyr = yrth
Є2yr = Yr t2h
Єnyr = yr + 2h
Unveue shift operation
Є-1 yr = yr t(-h) = yr-h
∆yr = yr th - yr = Єyr –yr
= gn (Є -1) yr
∆yr = (Є -1) yr
= ∆≡ Є – 1 ----------------(1)
38
Є=∆+1
Є-1 = 1 - --------------(1)
Є-1 = 1 -
Proof of
yr = yr – yr – h
= yr – Є-1 yr
= 1 –Є-r
(3) Є = ∆ -------(3)
(4) Є = ∆ ------(4)
(5) => Є = Є = ∆ -----------------------(5)
(6) ∂ = Є1/2 - Є1/2 = Є1/2 - Є-1/2 -----------------(6)
Prof + 3
Є yr = Є (yr – yr-h) = Єyr – Єyr-h
= yrth - yr-hth
= yrth – yn
= ∆yr
= Є yr = ∆yr
=Є =∆
(7) E f(x) = f(xth)
= f(x) + hf(x) t h2 f11(x + ……….Talorcens
∞ h k 20 hk
k 0 1 D k f ( x) k o 1 D k f(x)
ko ko
= Єf(x) = ehD
Fundamental theme of Difference calculus if f(x) in a polynormial of degree in α the nth difference of f
in constant ie ∆nf = content
And ∆ntif(x) = O
Factional function
The production of the form
X(x – h) (x – 2h) ………(x –(n-1)h) is called a factions function denoted as x(n)
That is, x(n) = x (x –h) (x -2h) ……….. (x – (x -1)h)
Example
f(a + nh) = f(a) + oC1 ∆ f(a) + nC2 ∆2 f(a) + nen Dnf(a)
Examples
Represent the function x3 + 3x2 + 5x + 12 in factional notations
X3 + 3x2 + 5x + 12 = Ax(3) + βx(C)+ c(e) + D
= A (x (x -1) (x -2) + β(x(x-1) + C x + D
X + 3x2 + 5n + 12 = Ax (x- 1) (x -2) + βx (x – 1) + ( x + Dx20, D = 12
3
X = 1, 1 + 3 + 5 + 12 = C + D
(12). C = 24 -12 = 9
X 22 8 + 12 + 10 + 12 = 12β + 18 + 12
42 - 30 12
6
2 2
X =3 27 + 27 + 15 + 12 = A (3(2) (1) + β (3) (2) + 3C + ∆
= 81 = 6A + 6B + 3C + ∆
81 = 6A + 36 + 27 + 12
A = 66/6 = 1
£ f(x) = x3 + 3x2+ + sx + 12 x(3) + 6 x(12). + 9 x (1) + 12
∆f = 3x(4) + 12x(1) + 9x
∆2f = 6x + 24
39
∆3f = 6
∆4f = 0
Find the function whole form difference y (1) x3 + 3x2 + sx + 12 (5) 9x2 + units
Change f(x) to factional notation
Fex = 9x2 t ux + s = Ax(2) + Bx (1) + C
= C = S, B = 20 A = 9
F(x) = gx2 + 20x(1) + 5
∆f(x) = 9x(2) + 20x (1) + 5
9 20
Intepraly x (3) x 2 5 x C
3 2
f(x) = 3x + 10 x + 5x (1) + C
(3) (2)
= 3x (x -1) + 10 (x(x-1) + 5x + C
=3x (x2 - 2x- x + 2) + 10x2 – 10x + snec
=3x2 + x2 + x + c
8n3 + x2 + x + c
Miscellaneous Exercises
1. (a) Find the maximum program for which the given minimum program is the dual.
(b) Solve the maximum program and obtain the optimal solution for the (i) primal
program and (ii) dual program from the final simplex table.
3w1 9 w2 3w3 12
6 w1 10 w2 3w3 2
w1 , w2 , w3 0.
2. Transform the augmented matrix of the following linear system to Echelon form. By back
substitution, find the solution of the systems
x 2 y 3z w 2
3 x 8 y 4 z 4 5
2 x 4 y 5 z 5w 7
2 x 4 y 4 z 2w 10