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.....................................................................................................12
2.4 Determinants....................................................................................................................... 13
2.4.1 Determinant of (nn) Matrix............................................................................................13
2.5 Elementary Operations and Determinants...........................................................................15
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.......................................................................................................21
3.1 Determination of the Zeros of Function by Iteration...........................................................21
3.2 Method of Chord.................................................................................................................23
Theme 4: Optimization: Linear programming...............................................................................26
4.1 Geometric View..................................................................................................................26
4.2 The Simplex method :.........................................................................................................27
4.3 Duality of Linear Programming..........................................................................................31
4.3.1 Solving Dual Programs:...................................................................................................32
4.4 Solving minimum programmes:..........................................................................................34
Theme 5: Optimization- Lagrange method....................................................................................36
Theme 6: Calculus of finite differences.........................................................................................38
(2)
For example, the general form of a (3 3) system of linear equation is
A solution of system (2) is a sequence s1, s2… sn of numbers that is simultaneously a solution for
each equation in the system.
The double subscripts notation used for the coefficients is necessary to provide an “address” for
each coefficient. For example, a32 appears in the third equation as the coefficient of x2.
Example 1: Display the system of equations with coefficients
Verify that is a solution
for the system.
Solution: The system is:
Substitute gives
We shall see that two processes are involved in solving the general (m n) system (2).
1. Reduction of the system (i.e. elimination of variables).
2. Description of the set of solution.
We start with the first one and treat the second one later.
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
Solution:
3
Note that, Theorem I assure us that this last system of equations has the same solution set as the given
system.
(3)
Solution:
(4)
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).
Solution:
4
Solving, we get
Example: 5Use Gaussian elimination to show that the (33) system of linear equations
(5)
has no solution.
Solution:
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?
2) In the following numbers, display the system and verify that the given values constitute a solution.
(4) Use Gaussian elimination procedure to verify that the following systems do not have solutions
(5) Find all values of which the given system has no solution.
Example
Give the geometric representation for each of the following systems of equations.
x2 x2 x2
3 3 3
2
2 2
1 1 1
12 3 x1 12 3 x1 -1 1 2 3 x1
Remark: A (mn) system of linear equations has infinitely many solutions, no solution or unique
solution.
Note that attempts to simplify the system by eliminating a variable actually result in no further
simplification.
For example, suppose x3 is eliminated with the operation of E1 + E2, we have
Now, eliminate x2 from the second equation with the operation E2 – E1 to get or
From this, we see that no progress has been made towards describing the solution. Actually, (7) as given,
is already satisfactorily reduced according to the Gaussian elimination procedure. We are unable to
eliminate another variable because the system has infinitely any solutions, and at least, one from
parameter (unconstrained or independent variable) is required in order to describe the solutions.
Fro system (7),
In this case, x3 is a free parameter and specific solutions to the system are obtained by assigning values to
x3. For example, setting x3 = 1 yields the solution.
The system is already reduced according to Gaussian elimination procedure. If the coefficients
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 being free
parameters then xm is determined from the last equation of (9) by
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
Example 2: Describe the solution set for (35) system.
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.
Finally, we substitute for x2 and x3 in the first equation and solve for x1 to get
Thus the solution is
(10)
Solution: Gaussian elimination proceeds as follows:
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.
Solution:
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.
Finally, if system (11b) is back-solved by expressing x2, x3 and x4 in terms of x1, the solution to system
(11a) is described by
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
Solution:
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.
8
Example 7:
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.
2) Back solve the reduced system and describe the solution set by using the procedure illustrated in
3) In each of parts (a) – (c) below, exhibit a solution set for the system in Exercise 2 above that satisfies
the given constraints.
1. In each of part (a) – (d) below, exhibit a solution for the system in (4a) above that satisfies the
given constraints.
(1)
Thus an (mn) matrix has a rows and n columns. The subscripts for the entry aij indicate that the number
appears in the ith row and jth column of A. For example a32 is the entry in the third row and second
column of A. We will frequently use the notation A = (aij) to denote a matrix A with entries aij.
Example 1 Display the (23) matrix A = (aij) where a11 = 6, a12 = 3, a13 = 7, a21 = 2, a22 = 1 and a23 = 4.
Solution:
(2)
If we display the coefficients and the constants for the system (2) in matrix we have
In this way, we have expressed compactly and naturally all the essential information from (2). The matrix
B is called the augmented matrix for (2).
In general, with the (mn) system of linear equations
(3a)
The (mn) matrix A = (aij) as given in (1) is called the coefficient matrix for the system (3a), and the (mn
+ 1) matrix.
is called the augmented matrix for (3a). The matrix B is usually denoted by where A is the
coefficient matrix of (3a) and
Example 2 Display the coefficient matrix A and the augmented matrix B for the system.
10
Solution :
Augmented Matrix:
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
From the above definition and example, we see that the goal of the Gaussian elimination process was to
reduce an augmented matrix to echelon form.
Reduction to Echelon Form (for (mn) matrix)
Step 1: Locate the first (leftmost) column that contains a non-zero entry
Step 2: If necessary interchange the first row with another row so that the first non-zero column contains
a non-zero entry in the first row
Step 3: Add appropriate multiples of the first row to each of the succeeding rows so that the first non-zero
column has a no-zero entry in the first row.
Step 4: Temporarily ignore the first row of this matrix and repeat the process on the remaining rows.
Example 4Use the elementary row operations to find a matrix C such that C is in echelon form and is row
equivalent to
Solution:
The matrix C is the echelon form and row equivalent to the matrix B.
12
This last matrix is in reduced echelon form and the given system is equivalent to the system.
2) Either state that the matrix is in echelon form or use elementary row operation to transform it to
echelon form:
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:
2.4 Determinants
For notational purposes, the determinant is often expressed by using vertical bars
Solution:
Definition: Let be an (nn) matrix and let Mrc denote the [(n – 1) (n – 1)] matrix obtained by
deleting the rth rows and the cth column from A. Then Mrc is called a minor matrix of A and the number
det (Mrc) is the minor of the (r, c)th entry arc. In addition, the numbers
Example 2 Determine the minor matrices M11, M23, M32 for the matrix A given by
. Similarly,
Solution:
Here, we saw that the determinant of the lower triangular matrix T was the product of the diagonal entries.
i.e.
This simple relationship is valid for any lower triangular matrix.
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).
15
Verification: Let B denote the matrix obtained by interchanging the first and second columns of A. Thus
B is given by
Now,
Thus
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)
Similarly,
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
Proof: Exercise
Thus:
Example 10 Given that det (B) = 22 and det (C) = 29, find det (A), where
Solution
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)
16
Solution:
Solution: As in Gaussian elimination, column interchanges are sometimes desirable and serve to keep
order in the computation. Consider
Exercises: (A) Use elementary column operation to create zeros in the last two entries in the first row
and then calculate the determinant of the original matrix
B) Use only column interchange to produce a triangular matrix and then determine then determine the
determinant of the original matrix.
17
C) Use elementary column operations to create zeros in the (1,2), (1,3), (1,4), (2,3), (2,4) positions.
Then calculate the original determinant.
On the other hand, B is singular because the vector is a non trivial solution of BX = 0.
Equivalently, the columns of B are linearly independent because .
From (*)
18
Example: Find the adjoint matrix for the given matrix A and then the inverse the A.
Cofactors of A are A11 = 4, A12 = -3A21 = -2, A22 = 1
So,
So,
Exercise:s Find the adjoint matrix of the given matrix A; hence find the inverse of the matrix
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
Solution
y
x0 A3(x3,0) A2(x,0) A1(x1,0) 20
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.
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.
So
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 ,
21
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:
Repeating
Solution:
n
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 which is near to x = 3.
2. Solve 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 .
y
P1 (x1, f(x1))
x4
x2 x3
x1 x
x0
P2 (x2, f(x2))
22
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.
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.
Example 2
Solution: Let . So
x = 0 is local maxi.
2
P2
2 1 P3 0 1 2 3 P3
1
So, its graph crosses x – axis at three points. We look for separation intervals for each of these points.
1
n xn
which is called objective function, be minimized or maximized subject to constraints of the form.
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.
6
x=3
5
x1 + x2 = 4
4
2
(0,1) (3, 1)
1
2 1 (0, 0) 1 23(3, 0) 4 5x
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
26
At (2, 2) F=2–2=0
At (3, 1) F = 1 – 3 = -2
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
subject to
2) Find the optimal values, of x and y by the graphical method that maximize F = 2x + 3y
subject to
3) Find the optimal values of x and y by the graphical methods, that
(a) maximize z = x + 3y
subject to
(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.
In this column, we have two positive entries, but noting that is less than we make 2 a pivot pint
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 0 0 1
T1: 0 1 0 3
1 0 0 0 1 3
0 0 0 -1
Obj. Fun. H
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.
Selecting 2, we make the circled 1 a pivot since is less than . We get T1 by the process of elimination.
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
Solution:
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 0 4 0 6
T1 0 0 0 1 4
1 0 0 0 4
0 0 0 0 -8
Obj. Fun.
x y s1 s2 s3 s4 b
29
0 0 1 0 11
0 0 0 0 4
T2
1 1 0 0 3
3 -1 0 0 5
0 0 0 0 -19
Obj. Fun.
0 0 1 0 1
0 0 0 2 -1 1 8
T3 0 1 0 0 5
1 0 0 0 3
0 0 0 0 -21
Obj. Fun.
Solution:
x1 x2 X3 s1 s2 s3 b
1 2 2 1 0 0 22
T0: 3 2 4 0 1 0 40
3 4 2 0 0 1 14
Obj. Fun. -18 -20 -32 0 0 0 0
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:
1 0 0 7
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.
30
x1 x2 X3 s1 s2 s3 b
-2 1 0 1 0 -1 8
-3 0 0 0 1 -2 12
T2:
0 1 0 1 3
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.
The original program is called the primal program. We now state the primal dual connections.
Primal Dual Connection
1) The constraint constants of one program are the objective function coefficients of the other program.
2) The constraint matrix is replaced by its transpose. Then if one program has m constraints and n
variables, the other program will have n constraints and m variables.
3) Maximization is performed subject to constraints and minimization is performed subject to
constraints.
Example 2 Find the dual of the maximum program
Solution: Since there are 2 constraints, we introduce 2 nonnegative variables w1, w2. We form the dual
program as follows: The new objective is formed from the constraint constants 16 and 20. We have
So we get
The complete dual program is therefore as follows:
x1 x2 x3 s1 s2 b
-4 -8 4 1 0 16
T0
4 -2 2 0 1 20
Obj. Fun. 10 12 -8 0 0 0
32
x1 x2 x3 s1 s2 b
-1 -2 1 0 4
T1
6 2 0 1 12
2 -4 0 2 0 32
Obj. Fun.
x1 x2 x3 s1 s2 b
5 0 1 1 16
T2
3 1 0 6
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.
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.
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 0 1
T1
0 -6 0 2 1 6
0 -2 0 3 0 6
Obj. Fun.
x1 x2 x3 s1 s2 b
33
0 1 -1 0 3
T2 1 0 1 0 7
0 0 3 -4 1 24
Obj. Fun. 0 0 1 1 0 12
x1 x2 x3 s1 s2 b
We then take ( from the objective function row of slack variable columns.
We check that it is feasible for the dual constraints as follows:
Solution: We introduce variables x1, x2, x3 and construct the dual program.
x1 x2 x3 s1 s2 b
-8 0 1 4
4
T1
2 1 -2 0 4
26 0 -12 0 4 48
Obj. Fun.
x1 x2 x3 s1 s2 b
-2 0 1 1
T2
-2 1 0 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.
35
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.
At the first and fourth points, f takes on the value of At the second and third points, f takes on the
The condition
which we can simplify to
The point of interest must therefore satisfy the following three equations:
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 so; the points to be checked
are therefore At each of these points f takes on the value 3. This is the desired
minimum.
Example 3
Solution: We set
We seek for (x,y,z) that satisfy Lagrange condition simultaneously.
i.e.
we get
Setting
Multiplying the first equation by x and second by y and third by z
We get
and consequently.
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.
xo+4h – x4 y4
38
Central differences
δy½ = y1 – yo
δy 3 = y 2− y 1
2
δy n+1
δy 22n−1
δy + 1 – yn = 2
δy 3 −δy 1
δ y1 =
2 2 2
Table
X Y δy δ2y δ2y δ4y
xo yo δy1 δy2
x1 y1 δy2
x2 y2 δy2
x3 y3 Δy3
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) + f(x) g(x th) – f(x th) g(x) –f(x th) g(x) f(xg xth)
gu g
gu g
Xf
Єyr = yrth
Є2yr = Yr t2h
Єnyr = yr + 2h
= gn (Є -1) yr
∆yr = (Є -1) yr
= ∆≡ Є – 1 ----------------(1)
Є=∆+1
Є-1 = 1 - --------------(1)
Є-1 = 1 -
Proof of
yr = yr – yr – h
= yr – Є-1 yr
= 1 –Є-r
40
(3) Є = ∆ -------(3)
(4) Є = ∆ ------(4)
Prof + 3
= yrth - yr-hth
= yrth – yn
= ∆yr
= Є yr = ∆yr
=Є =∆
= Єf(x) = ehD
Fundamental theme of Difference calculus if f(x) in a polynormial of degree in α the nth difference of f
And ∆ntif(x) = O
Factional function
Example
Examples
X = 1, 1 + 3 + 5 + 12 = C + D
(12). C = 24 -12 = 9
X 22 8 + 12 + 10 + 12 = 12β + 18 + 12
= 81 = 6A + 6B + 3C + ∆
81 = 6A + 36 + 27 + 12
A = 66/6 = 1
∆f = 3x(4) + 12x(1) + 9x
∆2f = 6x + 24
∆3f = 6
∆4f = 0
Find the function whole form difference y (1) x3 + 3x2 + sx + 12 (5) 9x2 + units
= C = S, B = 20 A = 9
= 3x (x -1) + 10 (x(x-1) + 5x + C
=3x2 + x2 + x + c
8n3 + x2 + x + c
42
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.
2. Transform the augmented matrix of the following linear system to Echelon form. By back
substitution, find the solution of the systems