• No results found

root2.5

N/A
N/A
Protected

Academic year: 2020

Share "root2.5"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

Chapter 5

Roots of Equations

Lecture 5.4

Books: (1)

Numerical Methods for Engineer and Scientists, by Joe D, Hoffman, McGraw Hill Publication

(ii) Numerical Method by Faires and Burden

(iii) Elemental Numerical Analysis, An Algorithm approach by S.D Conte and Carl de Boor, McGraw Hill Publication

(2)

Roots of simultaneous linear equation:

Here we shall discuss about the solution of simultaneous linear equation.

One physical example of this static

spring-mass

system as shown in fig.

It consist of masses m1 to m3

Having weight W1 to W3 and interconnected by springs having

(3)

Masses are supported by the forces F1 to F3 which are equal to the weight W1 to W3 so the system is in static equilibrium.

(4)
(5)

To solve above system we assume:

K1 = 40 N/m, K2 = K3 = K4 = 20 N/m, K5 = 90 N/m

And solution of above system

(6)

The system of linear equation are of following form:

Constant coefficients of unknown variables Unknown variables

(7)

System of linear algebraic Eqns. arise in many problems e.g.

In electric networks

Fitting approximating functions

(8)

We can solve the Eq. Using either Direct elimination method

e.g. Gauss elimination method, Gauss Jordan method, matrix inverse method and Doolittle factorization

And

Iterative methods

(9)
(10)
(11)

Three row operations mostly used:

(i) Any row (equation) may be multiplied by a constant

to scale, if necessary

(ii) The order of rows may be interchanged (pivoting).

This step is used to prevent the division by zero

and to reduce the round off errors

(iii) Any row (equation) can be replaced by a weighted

linear combination of that row (Eq.) with any other row

(Eq.) (used to perform elimination process) .

Gauss Elimination method: It involve two steps

(12)

Matrix in upper triangular form

(13)

Example: Consider set of linear eqns

---(1)

The elimination involve

(i) The normalizing the Eq. Above the element to be eliminated By the element immediately above the element to be eliminated (known as Pivot element)

(ii) Multiply the normalized eqn by the element to be eliminated

(14)

Above operations to the example are summarized below

---(2)

Note that, in above, we want the elimination of elements -20 (in 2nd and 3rd row) of 1st column. So we normalized row R1

By dividing it by 80 and multiply result with -20 and then subtract This result from R2.

And after operation we get,

(15)

Now we have to eliminate the element below major diagonal in the second columns so we have to apply follwing operation

---(4)

And we will get

---(5)

(16)

Now we have to do back substitution to get the roots.

In present case, we get x3 from last row of Eq. (5) and put it in 2nd row of same Eq. And we get the value of x

2 and

Then put these values of x3 and x2 in 1st row of same eq. To get

x1.

Thus in this way we obtained the roots of our set of Eqns. (1).

(17)

It may be noted that we need not to write the roots xj and we can simply write the constant coefficient matrix A and augmenting it with column vector b and then performing the row operations and finally back substitution.

For the last discussed example (Eq. 1) we can write

(18)

Multiple b vectors: If we have multiple b vectors corresponding to given A then simply augment these with A.

Example: Suppose we have two vectors b1 and b2

---(1)

After performing elimination we get

---(2)

And finally the roots are

(19)

Pivoting: The element on the major diagonal are known as pivot Element.

If first pivot element or any subsequent pivot element ai,i becomes Zero then we need to modify the elimination procedure

discussed so for.

It maybe noted that, there may not be zero on major diagonal

in the original matrix A, but these can arise during the elimination procedure.

To get rid of above problem, we interchange the Eqns (row) or variables (column) before applying elimination so that the element of largest

magnitude is on major diagonal.

This process is called pivoting.

Interchanging both rows and columns is called full pivoting.

(20)

Pivoting also help in reducing the round off errors. Since pivot element is used as divisor And larger the magnitude of divisor smaller will be the error.

Example: Solve following Ax = b with partial pivoting

Sine the 1st element on the major diagonal is zero so we need

pivoting. Note that the element of largest magnitude is 4 in 2nd

row, So we interchange 2nd and 1st row and then apply the

(21)

So, we apply the operations

And result is,

Now note that we have no zero on major diagonal. But the element of Largest magnitude is in 3rd row. Now interchange 2nd and 3rd rows

And then apply the elimination. Note that we cannot interchange 1st and 2nd row. So apply the pivoting only with the rows below the

(22)

So, we need to apply following process

And we get

Solution is

References

Related documents

The fig.3.1 shows the formability limit of the sheet metal in which it can be observed that the formability limit is within the prescribed limit, it means the sheet metal can be

For increased numerical stability, make sure the largest possible pivot element is used.. This requires searching in the partial column below the

The method of claim 1 wherein partitioning the array includes determining a pivot element of the array, wherein numbers in the first portion are less than or equal to the

Fortunately, in our case, we have three linearly independent vectors {m 1 , m 2 , m 3 }, and Gaussian Elimination, when modified to search for a pivot element that is relatively

When parked cars are separated by a large gap, approaching vehicles can move to the left of their lane to allow the oncoming vehicles to drive down the centre line.. Once they

Pivoting – to pivot a matrix about a given element, called the pivot element, is to apply certain row operations so that the pivot element is replaced by a 1 and all other entries in

Using the same data as for the pivot table, create a pivot chart with the doctor seen as the page field, the month as the series field, no of visits as data items and patient name

• Pivot Charts: we want column chart for example 7. – Select any cell inside