Mathematical Methods for Numerical Analysis and Optimization

Size: px
Start display at page:

Download "Mathematical Methods for Numerical Analysis and Optimization"

Transcription

1 Biyani's Think Tank Concept based notes Mathematical Methods for Numerical Analysis and Optimization (MCA) Varsha Gupta Poonam Fatehpuria M.Sc. (Maths) Lecturer Deptt. of Information Technology Biyani Girls College, Jaipur

2 Published by : Think Tanks Biyani Group of Colleges Concept & Copyright : Biyani Shikshan Samiti Sector-, Vidhyadhar Nagar, Jaipur-0 0 (Rajasthan) Ph : 04-87, Fa : acad@biyanicolleges.org Website : ISBN : First Edition : 009 While every effort is taken to avoid errors or omissions in this Publication, any mistake or omission that may have crept in is not intentional. It may be taken note of that neither the publisher nor the author will be responsible for any damage or loss of any kind arising to anyone in any manner on account of such errors and omissions. Leaser Type Setted by : Biyani College Printing Department

3 Mathematical Methods for Numerical Analysis and Optimization Preface I am glad to present this book, especially designed to serve the needs of the students. The book has been written keeping in mind the general weakness in understanding the fundamental concepts of the topics. The book is selfeplanatory and adopts the Teach Yourself style. It is based on questionanswer pattern. The language of book is quite easy and understandable based on scientific approach. This book covers basic concepts related to the microbial understandings about diversity, structure, economic aspects, bacterial and viral reproduction etc. Any further improvement in the contents of the book by making corrections, omission and inclusion is keen to be achieved based on suggestions from the readers for which the author shall be obliged. I acknowledge special thanks to Mr. Rajeev Biyani, Chairman & Dr. Sanjay Biyani, Director (Acad.) Biyani Group of Colleges, who are the backbones and main concept provider and also have been constant source of motivation throughout this Endeavour. They played an active role in coordinating the various stages of this Endeavour and spearheaded the publishing work. I look forward to receiving valuable suggestions from professors of various educational institutions, other faculty members and students for improvement of the quality of the book. The reader may feel free to send in their comments and suggestions to the under mentioned address. Author

4 4 Syllabus B.C.A. Part-II Mathematical Methods for Numerical Analysis and Optimization Computer arithmetics and errors. Algorithms and programming for numerical solutions. The impact of parallel computer : introduction to parallel architectures. Basic algorithms Iterative solutions of nonlinear equations : bisection method, Newton-Raphson method, the Secant method, the method of successive approimation. Solutions of simultaneous algebraic equations, the Gauss elimination method. Gauss-Seidel Method, Polynomial interpolation and other interpolation functions, spline interpolation system of linear equations, partial pivoting, matri factorization methods. Numerical calculus : numerical differentiating, interpolatory quadrature. Gaussian integration. Numerical solutions of differential equations. Euler's method. Runge-Kutta method. Multistep method. Boundary value problems : shooting method.

5 Mathematical Methods for Numerical Analysis and Optimization 5 Content S.No. Name of Topic. Computer Arithmetic and Errors. Bisection Method. Regula Falsi Method 4. Secant Method 5. Newton Raphson Method 6. Iterative Method 7. Gauss Elimination Method 8. Gauss Jordan Elimination Method 9. Matri Inversion Method 0. Matri Factorization Method. Jacobi Method. Gauss Seidel Method. Forward Difference 4. Backward Difference 5. Newton Gregory Formula for Forward Interpolation

6 6 S.No. Name of Topic 6. Newton s Formula for Backward Interpolation 7. Divided Difference Interpolation 8. Lagrange s Interpolation 9. Spline Interpolation 0. Quadratic Splines. Cubic Splines. Numerical Differentiation. Numerical Integration 4. Euler s Method 5. Euler s Modified Method 6. Rungs Kutta Method 7. Shooting Method

7 Mathematical Methods for Numerical Analysis and Optimization 7 Chapter- Computer Arithmetic and Errors Q.. An approimate value of is given by = /7 =.4857 and its true value is = Find the absolute and relative errors. Ans.: True value of () =.4596 Approimate value of () =.4857 Absolute error is given by Ea = = = Relative error is given by Er = = = = Q.. Let = find the absolute error if is truncated to three decimal digits.

8 8 Ans.: = = [in normalized floating point form] = [after truncating to three decimal places] Absolute error = = = = E = 0.59 E 5 Q.. Let the solution of a problem be a = 5.5 with relative error in the solution atmost % find the range of values upto 4 decimal digits, within which the eact value of the solution must lie. Ans.: We are given that the approimate solution of the problem is (a) = 5.5 and it has relative error upto % so 5.5 < 0.0 = -0.0 < 5.5 < 0.0 Case-I : if -0.0 < < < < ( + 0.0) 5.5 < (.0) 5.5 < < > _ ()

9 Mathematical Methods for Numerical Analysis and Optimization 9 Case-II: if 5.5 < < < < 5.5 < < _ () From equation () and () we have < < The required range is (4.5588, 5.969)

10 0 Chapter- Bisection Method Q.. Find real root of the equation upto three decimal digits. Ans.: Here ƒ() = 5 + ƒ(0) = = ƒ(0) (say) ƒ() = 5 + = = ƒ() (say) Since ƒ(0), ƒ() < 0 so the root of the given equation lies between 0 and So, = = = 0.5 Now, ƒ() = ƒ(0.5) = (0.5) 5 (0.5) + = = 0.65 (which is positive) ƒ().ƒ() < So, = = = 0.75 Now, ƒ() = ƒ(0.75) = (0.75) 5 (0.75) + = = 0.8 (which is negative) ƒ().ƒ() < 0

11 Mathematical Methods for Numerical Analysis and Optimization So, 4 = = = 0.65 Now, ƒ(4) = ƒ(0.65) = (0.65) 5 (0.65) + = = 0.9 (which is positive) ƒ().ƒ(4) < So, 5 = = = Now, ƒ(5) = ƒ(0.687) = (0.687) 5 (0.687) + = 0.08 (which is negative) ƒ(4).ƒ(5) < So, 6 = = = Now, ƒ(6) = ƒ(0.656) = (0.656) 5 (0.656) + = 0.00 (which is positive) ƒ(5).ƒ(6) < So, 7 = = = 0.67 Now, ƒ(7) = ƒ(0.67) = (0.67) 5 (0.67) + = (which is negative) ƒ(6).ƒ(7) < So, 8 = = = 0.66 Now, ƒ(8) = ƒ(0.66)

12 ƒ(6).ƒ(8) < 0 = (0.66) 5 (0.66) + = = 0.0 (which is negative) So, 9 = = = Now, ƒ(9) = ƒ(0.659) ƒ(6).ƒ(9) < 0 = (0.659) 5 (0.659) + = (which is negative) So, 0 = = = Now, ƒ(0) = ƒ(0.657) ƒ(6).ƒ(0) < So, = = (0.657) 5 (0.657) + = (which is negative) = Now, ƒ() = ƒ(0.656) ƒ().ƒ(0) < So, = = (0.656) 5 (0.656) + = = = (which is positive) = = Since and both same value. Therefore if we continue this process we will get same value of so the value of is which is required result.

13 Q.. Mathematical Methods for Numerical Analysis and Optimization Find real root of the equation cos - e = 0 correct upto four decimal places. Ans.: Since, ƒ() = cos - e So, And ƒ(0) = cos0 0e 0 = (which is positive) ƒ() = cos e = (which is negative) ƒ(0).ƒ() < 0 Hence the root of are given equation lies between 0 and. let ƒ(0) = ƒ(0) and ƒ() = ƒ() So, = = = 0.5 Now, ƒ() = ƒ(0.5) ƒ(0.5) = cos(0.5) (0.5)e 0.5 ƒ().ƒ() < 0 = 0.05 (which is positive) So, = = Now, ƒ() = ƒ(0.75) ƒ().ƒ() < 0 = cos(0.75) (0.75)e 0.75 =.5 = 0.75 = (which is negative) So, 4 = = = 0.65 ƒ(4) = ƒ(0.65) ƒ().ƒ(4) < 0 = cos(0.65) (0.65)e (0.65) = 0.56 (which is negative) So, 5 = = = 0.565

14 4 Now, ƒ() = ƒ(0.565) = cos(0.565) 0.565e = 0.49 (which is negative) ƒ().ƒ(5) < So, 6 = = = 0.5 Now, ƒ(6) = ƒ(0.5) = cos(0.5) (0.5)e 0.5 = (which is negative) ƒ().ƒ(6) < So, 7 = = = Now, ƒ(7) = ƒ(0.556) = cos(0.556) (0.556)e = (which is positive) ƒ(6).ƒ(7) < So, 8 = = = 0.5 Now, ƒ(8) = ƒ(0.5) = cos(0.5) (0.5)e 0.5 = (which is negative) ƒ(7).ƒ(8) < So, (9) = = = 0.59 Now, ƒ(9) = ƒ(0.59) = cos(0.59) (0.59)e 0.59 = (which is negative)

15 Mathematical Methods for Numerical Analysis and Optimization 5 ƒ(7).ƒ(9) < So, (0) = = = Now, ƒ(0) = ƒ(0.575) ƒ(9).ƒ(0) < So, = = cos(0.575) (0.575)e = (which is positive) = Now, ƒ() = ƒ(0.585) ƒ(0).ƒ() < So, = = cos(0.585) (0.585)e = = (which is negative) = = Hence the root of the given equation upto decimal places is = 0.58 Thus the root of the given equation is = 0.58

16 6 Chapter- Regula Falsi Method Q.. Find the real root of the equation log0. = 0 correct upto four decimal places. Ans.: Given ƒ() = log0. _ () In this method following formula is used - ( n- n ) f ( n) n+ = n ( f( ) f( )) Taking = in eq.() ƒ() =. log0. Taking = in eq.() n n = (which is negative) ƒ() =. log0. Taking = in eq.() = (which is negative) ƒ() =. log0. ƒ().ƒ() < 0 = 0. (which is positive) _ () So the root of the given equation lies between and. let = and = ƒ() = ƒ() =

17 Mathematical Methods for Numerical Analysis and Optimization 7 And ƒ() = ƒ() = 0. Now we want to find so using eq.() ( - ) f ( ) = f( ) f( ) = = (- ) (0.) 0. ( ) = =.7 ƒ() = ƒ(.7) ƒ().ƒ() < 0 =.7 log0.7. = (which is negative) Now to find 4 using equation () Now ( - ) f ( ) 4 = f( ) f( ) =.7 = (.7 - ) (-0.070) ( ) = =.740 ƒ(4) = ƒ(.740) ƒ().ƒ(4) < 0 =.740 log = (which is negative) Now to find 5 using equation ()

18 8 ( 4- ) f ( 4) 5 = 4 [ f( ) f( )] 4 (.740 ) =.740 ( ) ( ) = = ( 0.598)( ) 0.7 (0.0007) 0.7 = =.7406 ƒ(5) = ƒ(.7406) ƒ().ƒ(5) < 0 =.7406 log = (which is negative) To find 6 using equation () ( 5- ) f ( 5) 6 = 5 f( ) f( ) = ( ) ( ) ( ) (0.) = =.7406 The approimate root of the given equation is.7406 which is correct upto four decimals. Q.. Find the real root of the equation 5 = 0 correct upto four decimal places. Ans.: Given equation is ƒ() = 5 _ ()

19 Mathematical Methods for Numerical Analysis and Optimization 9 In this method following formula is used :- ( n- n ) f ( n) n+ = n [ f( ) f( )] n n _ () Taking = in equation () ƒ() = 5 = 6 (which is negative) Taking = in equation () ƒ() = = (which is negative) Taking = ƒ() = = 6 (which is positive) Since ƒ().ƒ() < 0 So the root of the given equation lies between and. Let = and = ƒ() = ƒ() = and ƒ() = ƒ() = 6 Now to find using equation () = ( - ) f( ) - f( ) = ( - ) = 6 7 =.0588 f ( ) ƒ() = (.0558) (.0588) 5 = = 0.9 (which is negative) ƒ().ƒ() < 0

20 0 Now to find 4 using equation () ( - ) 4 = [ f( ) f( )] f ( ) =.0588 ( ) (-0.9) = ( 0.94) ( 0.9) 6.9 ƒ(4) = So ƒ(). ƒ(4) < 0 = 0.48 (which is negative) Now using equation () to find 5 ( 4- ) 5 = 4 [ f( ) f( )] 4 f ( ) =.08 (.08 - ) (-0.48) ( ) =.08 + = =.0896 ( 0.988) ( 0.48) 6.48 ƒ(5) = (5 - ) f ( 5) f( ) - f( ) 4 5 = (which is negative) ƒ().ƒ(5) < 0 Now using equation () to find 6 ( 5- ) f ( 5) 6 = 5 f( ) f( ) = (.0896 ) ( ) (-0.055) =

21 Mathematical Methods for Numerical Analysis and Optimization = (0.0505) =.097 ƒ(6) = So ƒ().ƒ(6) < 0 = (which is negative) Now using equation () to find 7 ( 6- ) 7 = 6 f( ) f( ) =.097 = f ( ) ( ) (-0.007) ( ) (-0.907) (-0.007) = =.098 Now ƒ(7) = So ƒ().ƒ(7) < 0 = (which is negative) Now using equation () to find 8 ( 7- ) 8 = 7 f( ) f( ) =.098 = f ( ) ( ) ( ) ( ) (-0.906) ( ) = =

22 ƒ(8) = So ƒ().ƒ(8) < 0 = (which is negative) Now using equation () to find 9 ( 8- ) 9 = 8 f( ) f( ) =.0947 =.0947 = f ( ) 8 ( ) (-0.004) ( ) ( ) (-0.004) The real root of the given equation is.094 which is correct upto three decimals.

23 Mathematical Methods for Numerical Analysis and Optimization Chapter-4 Secant Method Note : In this method following formula is used to find root Q.. n+ = n ( n n ) f ( n ) f ( ) f ( ) n n _ () Find the root of the equation [use Secant Method] correct upto four decimals. Ans.: Given ƒ() = _ () Taking = 0 in equation () ƒ(0) = 0 Now taking = ƒ() = = Since ƒ(0) = 0 (positive) and ƒ() = (which is negative) so the root of the given equation lies between 0 and. Let = 0 and = ƒ() = 0 and ƒ() = using equation () to find ( - ) = f( ) f( ) f ( )

24 4 = = + = 0.95 ( - 0) (-) (-) - 0 () = =- (- ) - ƒ() = ƒ(0.95) = (0.95) 5 (0.95) 7 (0.95) + 0 = = 0.40 (which is positive) Using equation () to find 4 ( - ) 4 = f( ) f( ) = 0.95 = 0.95 f ( ) ( ) [ (-)] ( ) (0.40) (.40) 0.40 = = ƒ(4) = (0.958) 5 (0.958) 7 (0.958) + 0 = = (which is positive) ( 4- ) 5 = 4 f( ) f( ) = = f ( ) ( ) (0.000) - (0.40) Hence the root of the given equation is which is correct upto four decimal.

25 Q.. Mathematical Methods for Numerical Analysis and Optimization 5 Given that one of the root of the non-linear equation cos e = 0 lies between 0.5 and.0 find the root correct upto three decimal places, by Secant Method. Ans.: Given equation is ƒ() = cos e And = 0.5 and =.0 ƒ() = cos (0.5) (0.5) e 0.5 = = 0.05 Now ƒ() = cos () () e = =.780 Now to calculate using equation () ( - ) = f( ) f( ) = = f ( ) ( 0.5) (.780) ( ) = = (0.5) (.780). ƒ() = ƒ(0.59) = cos (0.59) (0.59)e 0.59 = = Now for calculating 4 using equation () ( - ) 4 = f( ) f( ) f ( )

26 6 = 0.59 = 0.59 (0.59- ) (0.767) - (-.780) = = = ( ) (0.0767).9567 ƒ(4) = cos (0.5584) (0.5584)e = = (which is positive) Now for calculating 5 using equation () ( 4- ) 5 = 4 f( ) f( ) = = f ( ) ( ) ( ) (-0.085) = = = ( ) Now ƒ(5) = cos (0.578) (0.578)e = = = (upto four decimals) Hence the root of the given equation is = (which is correct upto four decimal places) This process cannot be proceed further because ƒ(5) vanishes.

27 Mathematical Methods for Numerical Analysis and Optimization 7 Chapter-5 Newton Raphson Method Hint : Formula uses in this method is Q.. n+ = n f ( n ) f '( ) n Find the root of the equation 5 + = 0 correct upto 5 decimal places. (use Newton Raphson Method.) Ans.: : Given ƒ() = 5 + = 0 Taking = 0 Taking = ƒ(0) = (which is positive) ƒ() = 5 + = (which is negative) ƒ(0). ƒ() < 0 The root of the given equation lies between 0 and Taking initial approimation as = Since = = 0.5 ƒ() = 5 + f' () = 5 ƒ() = (0.5) 5(0.5) +

28 8 = = 0.5 f' () = (0.5) 5 = 5 = 4 Now finding = 0.5 ( 0.5) 4 = = ƒ() = (0.475) 5(0.475) + = = f' () = (0.475) 5 Now finding = 4.5 f ( ) = f ( ) = ( 4.5) = = ƒ() = (0.4844) 5(0.4844) + = = f'() = (0.4844) 5 = 4.

29 Mathematical Methods for Numerical Analysis and Optimization 9 f ( ) 4 = f ( ) = ( 4.) = = Hence the root of the given equation is which is correct upto five decimal places. Q.. Apply Newton Raphson Method to find the root of the equation cos = 0 correct the result upto five decimal places. Ans.: Given equation is Taking = 0 ƒ() = cos ƒ(0) = (0) cos 0 = Now taking = ƒ() = () cos () = =.4597 Taking initial approimation as = At = = 0.5 ƒ() = cos f'() = + sin ƒ() = (0.5) cos (0.5) =

30 0 = f'() = sin (0.5) =.4794 Now to find using following formula f ( ) = f '( ) = 0.5 ( ) (.4794) = = ƒ() = (0.6085) cos (0.6085) = = f'() = + sin (0.6085) Now finding =.5765 = ( ) (.5765) = = ƒ() = (0.6070) cos (0.6070) = = f' () = + sin (0.6070) = =.5704 Now to find 4 using following formula

31 Mathematical Methods for Numerical Analysis and Optimization f ( ) 4 = f '( ) = ( ).5704 = = Which is same as Hence the root of the given equation is = which is correct upto five decimal places.

32 Chapter-6 Iterative Method Q.. Find a root of the equation + = 0 in the interval (0,) with an accuracy of 0-4. Ans.: Given equation is ƒ() = + = 0 Rewriting above equation in the form = () The given equation can be epressed in either of the form : (i) + = 0 + = ( + ) = = = + ( ) _ () (ii) + = 0 = = ( + ) (/) _ () (iii) + = 0 = = ( ) / _ ()

33 Mathematical Methods for Numerical Analysis and Optimization Comparing equation () with g () = 0 we find that g() = ( ) g() = ( + ) -/ g'() = ½ ( + ) -/ g'() = ½ ( + ) / = / ( + ) < Now comparing equation () with g() = 0 We find that g() = ( ) / g'() = ½ ( + ) -/ (- ) = - g'() = 0 (- ) Which is not less than one. / Now comparing equation () with g() = 0 g() = ( ) / g'() = ( ) -/ ( ) = ( - ) / g'() = / ( ) Which is not less than one. Hence this method is applicable only to equation () because it is convergent for all (0, )

34 4 Now taking initial approimation = 0 = 0.5 So = (+ ) [using iteration scheme n+ = ( n ) ] = Similarly = 4 = 5 = 6 = 7 = 8 = 0.5 =.5 = ( ) = ( ) = ( ) 4 = ( ) 5 = ( ) 6 = ( ) 7 = = = = = = = Hence the approimate root of the given equation is = Q.. Find the root of the equation = cos + correct upto decimal places. Ans.: Given equation is ƒ() = cos = 0 Rewriting above equation in the form = g() = cos + = cos + _ ()

35 Mathematical Methods for Numerical Analysis and Optimization 5 Comparing above equation with the following equation = g() we find the g() = cos + g'() = For (, ) sin g'() = sin sin < = cos Hence the iterative scheme n+ = cos ( ) + n Now taking initial approimation =.5 = = 4 = 5 = 6 = 7 = 8 = cos + = cos ( ) + = cos ( ) + = cos ( 4) + = cos ( 5) + = cos ( 6) + = cos ( 7) + = Which is same as 7 cos (.5) + =.55 cos (.55) + =.577 cos (.577) + =.565 cos (.565) + =.5 cos (.5) + =.54 cos (.54) + =.50 cos (.50) + =.5 is convergent. Hence the root of the given equation is =.5 (which is correct upto decimals)

36 6 Q.. Find the root of the equation e = in the internal (0, ) (use iterative Method) Ans.: Given equation is e = 0 Rewriting above equation in the form of = g () e = 0 e = = e - Comparing it with the equation = g () we find that g() = e - g' () = -e - g' () = e - < Hence the iterative scheme is n+ = e n Now taking initial approimation = 0.5 = e = = e = 4 = e = 4 5 = e = 5 6 = e = 6 7 = e = 7 8 = e = 8 9 = e = 9 0 = e = (0.5) e = (0.6065) e = (0.545) e = e = e = 0.57 (0.57) e = (0.5648) e = (0.5684) e = (0.5664) e =

37 Now Mathematical Methods for Numerical Analysis and Optimization 7 0 = e = = e = = e = 4 = e = e = e = (0.567) e = (0.567) e = Hence the approimate root the given equation is = 0.567

38 8 Chapter-7 Gauss Elimination Method Q.. Use gauss elimination method to solve : + y + z = 7 + y + 4z = 4 + y + z = 6 Ans.: Since in the first column the largest element is in the second equation, so interchanging the first equation with second equation and making as first pivot. + y + 4z = 4 _ () + y + z = 7 _ () + y + z = 6 _ () Now eliminating form equation () and equation () using equation () - equation () + equation (), equation () equation () we get - - y - z = - + y + 4z = 4 and z + y + 4z = 4 _ (4) z = _ (5) y z = 0 _ (6) 6 y 9z y 8z 48 y z 0 = y - z = 0

39 Mathematical Methods for Numerical Analysis and Optimization 9 Now since the second row cannot be used as the pivot row since a = 0 so interchanging the equation (5) and (6) we get + y + 4z = 4 _ (7) y z = 0 _ (8) z = _ (9) Now it is upper triangular matri system. So by back substitution we obtain. z = From equation (8) y = 0 y = y = From equation (7) + () + 4 () = = = 4 = 9 = Hence the solution fo given system of linear equation is =, y =, z = Q.. Solve the following system of linear equation by Gauss Elimination Method : = + = + = 6 Ans.: Since in the first column the largest element is in the second row, so interchanging first equation with second equation and making as first pivot.

40 = _ () = _ () + = 6 _ () Eliminating form equation () and equation () using equation () - equation () + equation () and + equation () equation () 6 = = 4 and 8 7 = + = 8 + = = = = -4 So the system now becomes : + = _ (4) = _ (5) = 4 _ (6) Now eliminating from equation (6) using equation (5) {8 equation (6) equation (5)} 8-8 = = - -5 = -45 = So the system of linear equation is + = _ (7) = _ (8) = _ (6) Now it is upper triangular system so by back substitution we obtain =

41 Mathematical Methods for Numerical Analysis and Optimization 4 From equation (8) 8 + 7() = 8 = 8 = 8 = From equation (9) +( ) () = = = 6 = Hence the solution of the given system of linear equation is : =, =, =

42 4 Chapter-8 Gauss-Jordan Elimination Method Q.. Solve the following system of equations : = 9 _ () + 0 = 44 _ () = _ () Use Gauss Jordan Method. Ans.: Since in the given system pivoting is not necessary. Eliminating from equation () and equation () using equation () 5 equation () equation (), 5 equation () + equation () = = 9 98 = 9 and Now the system of equation becomes = 9 _ (4) 98 = 9 _ (5) + = 7 _ (6) = = = 9 = + = 7 Now eliminating from equation (4) and (6) using equation (5)

43 Q.. Mathematical Methods for Numerical Analysis and Optimization 4 98 equation (6) equation (5), 49 equation (4) - equation (5) = = 9 05 = = = = 670 = = = 67 Now the system of equation becomes : = 67 _ (7) 98 = 9 _ (8) = _ (9) Hence it reduces to upper triangular system now by back substitution. = From equation (8) 98 = 9 98 = = 96 = From equation (7) () = = = 49 = Thus the solution of the given system of linear equation is =, =, = Solve the following system of equation using Gauss-Jordan Elimination Method. + 5 = _ () = 0 _ () + = 0 _ () Ans.: Solve this question like question no. 7.

44 44 Chapter-9 Matri Inversion Method Q.. Solve the given system of equation using Matri inversion Method = = = Ans.: The given system of equations cab be written in the form of AX = B A = , X =, B = 7 7 The solution can be given by X = A - B so to find the solution first we have to find A - using Gauss-Jordan Method. The inverse of matri A that is A - is obtained by reducing the argumented matri [A/I] into the matri [I/A - ] The argumented matri is given by R R

45 Mathematical Methods for Numerical Analysis and Optimization R 7R - R, R 7 6 R - R R R + R, R R + R R R 6 + R, R 4 R + R R 04 R, R 4 46 R, R R

46 R 4 04 R, R 46 R, R R Hence A - = Thus the matri A is reduced to identity matri Hence the solution of the given system of equations is X =A - B Q.. Solve the following system of linear equations using matri inversion method = = =

47 Mathematical Methods for Numerical Analysis and Optimization 47 Ans.: The given system of linear equations can be written in the form of AX = B The solution can be given by X = A - B. for this we have to first find the value of A - using Gauss Jordan Method. The inverse of the matri A using Gauss Jordan method is obtained by reducing the argumented matri [A/I] in the form of[i/a - ]. The argumented matri is given as follows : Here pivoting is not necessary. R = R R, R = R R R R = 4 R + R, R = R + R R + R, R 7 5 R + R

48 48 = Now R = Hence A - = R, R 7 R, R 7 R Thus the solution of given matri is given by i.e. X = A - B = = = Hence = 9, = 7 9, = 6 9

49 Mathematical Methods for Numerical Analysis and Optimization 49 Chapter-0 Matri Factorization Method Q.. Solve the following system of linear equation using Matri Factorization Method = = = 6 Ans.: Above system of equation can be written in the form AX = B where A = ; B = Let us assume that A = LU and X = 0 0 Where L = l 0 l l and U = U U U 0 U U 0 0 U 0 0 LU = l 0 l l U U U 0 U U 0 0 U U U U l U l U +U l U +U l U l U + l U l U + l U +U

50 50 Since A = LU so comparing both matrices. U = _ () U = 5 _ () U = _ () l U = 0 _ (4) l U + U = 8 _ (5) l U + U = _ (6) l U = 6 _ (7) l U + l U = _ (8) l U+ l U + U = 8 _ (9) l U = 0 l = 0 l = 0 _ (0) l U = 6 l = 6 l = 6/ l = _ () Now from equation (5) l U + U = 8 0 U + U = 8 U = 8 _ () From equation (6) l U + U = 0 U + U = U = _ () From equation (8) l U + U =

51 Mathematical Methods for Numerical Analysis and Optimization L 8 = l 8 = 0 = 8 l = From equation (9) l U+ l U + U = 8 + ( ) + U = U = U = 6 L = and U = Since the given system of equation can be written as AX = B [Here A = LU] LUX = B _ (4) Now let UX = Y _ (5) LY = B _ (6) y y y 8 = 7 6 y y y y y = On comparing both matrices, we get y = 8, y = 7 and y y + y = y = 6 y = 6 6 7

52 5 y = Y = 8 7 From equation (5) UX =Y = = 8 7 Comparing both matrices = 8 _ (7) 8 + = -7 _ (8) 6 = _ (9) From equation (9) 6 = = From equation (8) 8 + = = 7 8 = 8 = = 7

53 Mathematical Methods for Numerical Analysis and Optimization 5 From equation (7) = 8 = = = 4 Thus the solution of given system of equation is = 4, = and = Q.. Solve the following system of linear equation using Matri Factorization Method. + y + z = 4 + y + z = + y + z = Ans.: Above system of equation can be written in the form of AX = B where A = ; B = Let us assume that A = LU where 4 and X = y z 0 0 L = l 0 l l and U = U U U 0 U U 0 0 U LU = U U U l U l U +U l U +U l U l U + l U l U + l U +U Since A = LU so comparing both sides we get U = _ () U = _ ()

54 54 U = _ () l U = _ (4) l U + U = _ (5) l U + U = _ (6) l U = _ (7) l U + l U = _ (8) l U+ l U + U = _ (9) From equation () l U = l = l = _ (0) From equation (5) l U + U = + U = U = 6 U = 5 _ () From equation (6) l U + U = + U = U = 9 U = 7 _ () From equation (7) l U = l = l = _ () From equation (8) l U + l U =

55 Mathematical Methods for Numerical Analysis and Optimization 55 + l (- 5) = l ( 5) = 4 l = 5 _ (4) From equation (9) l U + l U + U = + 5 (- 7) +U = U = U = = = U = L = We know that AX = B and U = _ (5) LUX = B where [A = LU] _ (6) Now let UX = Y _ (7) So LY = B _ (8) y y + y y y y = y + y y 5 4 = 4

56 56 Comparing both sides we get y = 4 _ (9) y + y = _ (0) y + y + y = _ () 5 From equation (0) y + y = 4 + y = y = 4 y = From equation () (4) + (-) + y = y = y = y = y = y = Y =

57 Mathematical Methods for Numerical Analysis and Optimization 57 Since UX = Y y = z 54 5 y z 0 5y 7z z 5 = y + z = 4 _ () 5y 7z = _ () 8 5 z = 54 5 z = z = From equation () 5y + 7z = 5y + 7 = 5y = = 0 y = From equation () + y + z = = 4 = 4 = Thus the solution of the given system of equation is = ; y = and z = _ (4)

58 58 Chapter- Jacobi Method Q.. Solve the following system of equation by Jacobi Method = = = 7 Ans.: Since the given system of equation is = 95 _ () =04 _ () = 7 _ () The diagonal elements in the given system of linear equations is not zero so the equation (), () and () can be written as : (n+) = 8 (n+) = 5 (n+) = 9 (n) [95 (n) [04 7 (n) [7 + 4 (n) ] (n) 8 (n) ] ] and Now taking initial approimation as : (0) = 0 ; (0) = 0 and (0) = 0

59 Mathematical Methods for Numerical Analysis and Optimization 59 Now for first approimation : () = 8 () = 5 () = 9 [95 (0) [04 7 (0) [7 (0) + 4 (0) ] =.446 (0) ] = 8 (0) ] =.448 Similarly second approimation : () = 8 [95 () + 4 () ] = [95 () + 4(.448)] = () = 5 [04 7 () () ] = [04 7(.446) (.448)] =.8 5 () = 9 [7 () 8 () ] = [7 (.446) 8 ] = Now the third iteration : () = 8 [95 () + 4 () ] = [95 (.8) + 4(.778)] = () = 5 [04 7 () () ] = [04 7 (0.9975) (.778)] = 5 5 [7.90] =.4

60 60 () = 9 [7 () 8 () ] = [7 (0.9975) 8 (.8)] = Similarly other iterations are : (4) =.058 (4) =.55 (4) =.9459 (5) =.0588 (5) =.78 (5) =.9655 (6) =.0575 (6) =.66 (6) =.960 (7) =.0580 (7) =.676 (7) =.960 (8) =.0579 (8) =.67 (8) =.966 (9) =.0579 (9) =.67 (9) =.966

61 Mathematical Methods for Numerical Analysis and Optimization 6 Thus the values obtained by successive iteration is given by following table : (n) (n) (n) (n+) (n+) (n+) Thus the solution is =.0579 ; =.67 and =.966

62 6 Chapter- Gauss Seidel Method [This method is also called the method of successive displacement] Q.. Solve the following linear equation : + = =0 + = 7 (Use Gauss Seidel Method) Ans.: Above system of equations can be written as : + = 5 _ () + = 7 _ () + + =0 _ () Iterative equations are : (n+) = (n) [5 + (n) ] _ (4) (n+) = (n+) [7 + (n) ] _ (5) (n+) = (n+) [0 (n+) ] _ (6) Taking initial approimations as : (0) = 0 ; (0) = 0 and (0) = 0

63 Mathematical Methods for Numerical Analysis and Optimization 6 First approimation is : () = [5 + (0) (0) ] = [ ] = 5 =.5 () = [7 () + (0) ] = [ ] = (4.5) =.5 () = () [0 () ] = [0.5.5] =.5 Now second approimation : () = [5 + () () ] = [5 + (.5).5] =.5 () = [7 () + () ] = [7.5 + (.5)] =.5 () = () [0 () ] = [0.5.5] = 0.8 () = [5 + () () ] = [ ] =.

64 64 () = [7 () + () ] = [ ] =.7777 () = () [0 () ] = [ ] =.07 () =., (4) = [5 + () () ] () =.7777, () =.07 = [ ] =.870 (4) =.0679 (4) = (4) =.870, (4) =.0679, (4) = Now (5) =.05 (5) =.9870 (5) = (6) =.9950 (6) =.9997 (6) =.009

65 Mathematical Methods for Numerical Analysis and Optimization 65 (7) =.9989 (7) =.006 (7) = (8) =.00 (8) =.999 (8) =.000 (9) =.9994 (9) =.000 (9) = (0) =.000 (0) =.9999 (0) = () =.9999 () = () = () = () = () =

66 66 () = () = () = Hence the solution of the given system of linear equation is : =, =, =

67 Mathematical Methods for Numerical Analysis and Optimization 67 Chapter- Forward Difference Q.. Ans.: Construct a forward difference table for the following given data y y y y y

68 68 Chapter-4 Backward Difference Q.. Construct a backward difference table form the following data : sin 0 = , sin 5 = 0.576, sin 40 = 0.648, sin 45 = Assuming third difference to be constant find the value of sin 5. Ans.: y y 5? y y y0 =? y5 =? y40 =? Since we know that y should be constant so y40 = y40 y5 = y5 =

69 Mathematical Methods for Numerical Analysis and Optimization 69 y5 = = Again y5 = y5 y0 = y0 = y0 = = Again y0 = y0 y5 = y5 = y5 = = 0.45 Hence sin 5 = 0.45

70 70 Chapter-5 Newton Gregory Formula for Forward Interpolation Q.. Ans.: Use Newton formula for interpolation to find the net premium at the age 5 from the table given below : Age Annual net premium Age () ƒ() ƒ() ƒ() ƒ() Here a = 0, h = 4 and = a + hu = a + hu 5 = u 5 = 4u u =.5

71 Mathematical Methods for Numerical Analysis and Optimization 7 Using following Newton s Gregory forward interpolation formula : ƒ(a + hu) = ƒ(a) + u () ƒ(a) + () u! ƒ(a) + () u! ƒ(a) + _.5 (0.5) ( 0.75) ƒ(5) = (0.0054) + ( ).5 (0.5) (0.0007) + ƒ(5) = = Q.. From the following table find the number of students who obtained less than 45 marks : Marks No. of Students Ans.: Marks () No. of Students ƒ() Less than 40 Less than Here a = 40, h = 0 and a + hu = u = 45 ƒ() ƒ() ƒ() 4 ƒ() Less than Less than Less than 80 90

72 7 0u = 5 u = using following forward interpolation formula : ƒ() = ƒ(a) + u () ƒ(a) + () u! ƒ(a) + () u! ƒ(a) + _ ƒ(45) = ƒ(40) + ƒ(40) +! ƒ(40) +! ƒ(40) + 4! 4 ƒ(40) Q.. = + (4) + (9) + = = = 48 (approimately) (-5) (7) Hence the no. of students who obtained less than 45 marks are 48. Find the cubic polynomial which takes the following values 0 ƒ() 0 0 Find ƒ(4) Ans.: Here we know that a = 0, h = then form Newton s Gregory forward interpolation formula. Pn () = ƒ(0) + c ƒ(0) + c ƒ(0) + _ cn n ƒ(0) ()

73 Mathematical Methods for Numerical Analysis and Optimization 7 () ƒ() ƒ() ƒ() ƒ() ƒ(4) 7 = 6 0 ƒ(4) 9 (it should be constant) ƒ(4) 0 4 ƒ(4) Substituting the values in equation () from above table : P () = + (-) + ( ) () + ( )( ) (6) P () = = + Hence the required polynomial of degree three is + Again ƒ(4) 7 = 6 ƒ(4) =

74 74 Chapter-6 Newton s Formula for Backward Interpolation Q.. The population of a town in decennial census was as given below : Ans.: Year () Year Population (in thousands) Estimate the population for the year 95. Population (in thousand) ƒ() ƒ() ƒ() ƒ() 4 ƒ()

75 Mathematical Methods for Numerical Analysis and Optimization 75 Here = 95, h = 0, a = 89 and a + nh = 9 (a + hn) + uh = uh = 95 uh = 95 9 = Now using Newton s Backward interpolation formula : ƒ(a + nh + uh) = ƒ(a + nh) + u! 4 ƒ(a + nh) ƒ(a + nh) + + u(u +) (u +) (u +) 4! ƒ(95) = 0 + (-0.6) 8 + ( 0.6)(0.4)! + (-0.6) (0.4) (.4) (.4) (-) 4! = (- 4) + = thousand (approimately) (-0.6) (0.4) (.4)! (- )

76 76 Chapter-7 Divided Difference Interpolation Q. Construct a divided difference table from the following data : 4 7 ƒ() Ans.: ƒ() ƒ() ƒ() ƒ() 4 ƒ() 0 = = = 6 (.6 6) 7 = = (.6) = = 8.75 (.6) 0.55 =

77 Mathematical Methods for Numerical Analysis and Optimization 77 ƒ() ƒ() ƒ() ƒ() 4 ƒ() = = Q.. By means of Newton s divided difference formula find the value of ƒ(), ƒ(8) and ƒ(5) from the following table : ƒ() Ans.: Newton s divided difference formula for 4, 5, 7, 0,, is : ƒ() = ƒ(4) + ( 4) 5 ƒ() + ( 4) ( 5) 5,7 ƒ(4) + ( 4) ( 5) ( 7) ƒ(4) 5,7,0 + ( 4) ( 5) ( 7)( 0) 4 5,7,0, ƒ(4) + () So constructing the following divided difference table : ƒ() ƒ() ƒ() ƒ() 4 ƒ() = = = =

78 78 ƒ() ƒ() ƒ() ƒ() 4 ƒ() = = = = = = = = 409 Substituting the values from above table in equation () ƒ() = ( 4) + 5 ( 4) ( 5) + ( 4) ( 5) ( 7) = ( ) _() Now substituting =, 8 and 5 in equation () ƒ() = 4 ( -) = 4 ƒ(8) = 64 (8 ) = 448 ƒ(5) = 5 (5 ) = 50 Q.. Find the polynomial of the lowest possible degree which assumes the values,, 5, - when has values,,, - respectively.

79 Mathematical Methods for Numerical Analysis and Optimization 79 Ans.: Constructing table according to given data ƒ() ƒ() ƒ() ƒ() Substituting the values in Newton s divided difference formula : ƒ() = ƒ(0) + ( 0) ƒ(0, ) + ( 0) ( ) _ ( n-) + ƒ(0,,..n) = - + { (-)} 8 + { (-)} ( ) (-7) + { (-)} ( ) ( ) () =

80 80 Chapter-8 Lagrange s Interpolation Q.. Given that ƒ() =, ƒ() = 4, ƒ() = 8, ƒ(4) = 6, ƒ(7) = 8 Find the value of ƒ(5) with the help of Lagrange s interpolation formula. Ans.: According to question 0 =, =, =, = 4, 4 = 7, and ƒ(0) =, ƒ() = 4, ƒ() = 8, ƒ() = 6, and ƒ(4) = 8, Using Lagrange s formula for = 5 ƒ(5) = = (5 )(5 )(5 4)(5 7) (5 )(5 )(5 4)(5 7) + 4 ( )( )( 4)( 7) ( )( )( 4)( 7) + (5 )(5 )(5 4)(5 7) (5 )(5 )(5 )(5 7) ( )( )( 4)( 7) (4 )(4 )(4 )(4 7) + (5 )(5 )(5 )(5 4) 8 (7 )(7 )(7 )(7 4) =.9 Hence ƒ(5) =.9 Q.. Find the form of function given by the following table : - ƒ() 5 -

81 Mathematical Methods for Numerical Analysis and Optimization 8 Ans.: According to question 0 =, =, = and = - ƒ(0) =, ƒ() =, ƒ() = 5 and ƒ() = - Now substituting above values in Lagrange s formula : ƒ() = ( )( )( + ) ( )( )( + ) + ( )( )( ) ( )( )( ) + ( )( )( + ) ( )( )( ) 5 + ( )( )( ) ( )( )( ) = 8 ( + ) -4 ( + ) ( ) ( 6 + 6) ƒ() = Q.. By means of Lagrange s formula prove that : y0 = (y + y-) - 8 [ (y y) - (y- y-)] Ans.: Here we are given y-, y- y and y and we have to evaluate y0. Using Lagrange s formula (0 )(0 )(0 ) (0 )(0 )(0 ) y0 = y + y ( )( )( ) ( )( )( ) Hence proved. (0 )(0 )(0 ) (0 )(0 )(0 ) y + y ( )( )( ) ( )( )( ) 9 9 = y y y y = y y y- y y - y 6 = y y y- y y - y 8

82 8 Chapter-9 Spline Interpolation Q.. Given the set of data points (, 8), (, ) and (, 8) satisfying the function y = ƒ(). find the linear splines satisfying the given data. Determine the approimate values of y(.5) and y (.0). Ans.: Let the given points be A (, 8), B (, ) and C (, 8) equation of AB is s () = -8 + ( ) 7 = = 7-5 And equation of BC is s () = - + ( ) (9) = [si() = yi- + mi ( i-)] = 9 9 _ () Since =.5 belongs to the interval [, ] we have y (.5) = s (.5) = -9(.5) -9 = 8.5 And y () = +9 [from equation ()] Here we note that the splines si () are continuous in the interval [, ] but their slopes are discontinuous.

83 Mathematical Methods for Numerical Analysis and Optimization 8 Chapter-0 Quadratic Splines Q.. Given the set of data points (, 8), (, ) and (, 8) satisfying the function y = ƒ(). find the quadratic splines satisfying the given data. Find also the approimate values of y(.5) and y' (.0). Ans.: Since we know that mi- + mi = we have h = taking i = taking i = h m0 + m = 4 m + m = 8 i (yi - yi-) [i =,. n] Since m0 = m we obtain m0 = m = 7 and m = using following equation si () = s () = = ( i ) ( ) h h i i- i m i- mi yi- mi- ( ) ( ) m m y m ( ) ( ) 7 (7) ()

84 84 = ( ) 5 (7) ( ) = 4 + Since.5 lies in the interval [, ] Hence y (.5) = s (.5) = (.5) 4 (.5) + = = 5.5 y' () = 4 4 y' () = 4 4 = 48 4 = 7.0

85 Mathematical Methods for Numerical Analysis and Optimization 85 Chapter- Cubic Splines Q.. Given the set of data points (, 8), (, ) and (, 8) satisfying the function y = ƒ(). find the cubic splines satisfying the given data. Determine the approimate values of y (.5) and y' (.0). Ans.: We have n = and p0 = p = 0 therefore from the following relation : 6 p i + 4p i + p i+= (y i y i + y i ) ( i,... n ) h gives p = 8 If s () and s () are respectively, the cubic splines in the intervals and, we obtain s () = ( - ) 8 ( ) 4 ( ) and s () = ( ) + 48 We therefore have y(.5) = s (.5) = = 7.75 and y (.0) = s (.0) =.0

86 86 Chapter- Numerical Differentiation Q.. From the following table of values of and y obtain dy/d and d y/d at = y Ans.: According to given question, h = 0., a = and =. Here. is close to the initial value so using Newton-Gregory forward difference formula. y = ƒ() y y y 4 y

87 Mathematical Methods for Numerical Analysis and Optimization 87 Newton s Gregory forward formula is : ƒ(a + h) = ƒ(a) + c ƒ(a) + c ƒ(a) + c ƒ(a) +... or ƒ(a + h) = ƒ(a) + ƒ(a) + ƒ(a) + ƒ(a) +. _ () 6 Differentiating both sides of the equation () w. r. t. hf' (a + h) = ƒ(a) + ( ) ƒ(a) + Again differentiating equation () w. r.t. ƒ(a) + _ () 6 6 h f' (a + h) = ƒ(a) + ( ) ƒ(a) +. _ () Here we have to find f' (.) and f'' (.) Substituting a =, h = 0. and = in equation () and () 0.f' (.) = (0.0480) + 0 Hence f' (.) = 0.60 _ (4) And (0.) f'' (.) = (0.0480) + 0 = 0.64 Hence f'' (.) = 6.60 _ (5) Q.. Using divided difference find the value of f' (8) given that : ƒ() Ans.: y = ƒ() y y y 0 =

88 88 y = ƒ() y y y = = =.58 Newton s divided difference formula is ƒ() = ƒ(0) + ( 0) ƒ(0) + ( 0) ( ) ƒ(0) + ( 0) ( ) ( ) ƒ(0) + ( 0) ( ) ( ) ( ) 4 ƒ(0) + _ () Differentiating both sides of equation () w. r.t. f'() = ƒ(0) + ( 0 ) ƒ(0) + [ (0 + + ) ] ƒ(0) _ () Now substituting = 8, 0 = 6, = 7, = 9, = in equation () f (8) = [ ] (-0.008) + [ 64 8 ( ) ](0.0005) = ( ) (0.0005) =

89 Mathematical Methods for Numerical Analysis and Optimization 89 Chapter- Numerical Integration Q.. Compute the value of following integral by Trapezoidal rule (sin log +e ) d e Ans.: Dividing the range of integration in equal intervals in the interval [0.,.4] sin 0. h log e y = sin log +e e y0 = y = y = y = y4 = y5 = y6 = Using following trapezoidal rule I = (sin log +e ) d e

90 90 = h [(y0 + y6) + (y + y + y +y4 +y5)] = 0. [ (6.4907)] = Q.. Calculate the value of the integral Ans.: First of all dividing the interval [4 5.] in equal parts h i yi = 5. 4 log = e log d by Simpson s rule. e log y0 = y = y = y = y4 = y5 = y6 = Using following Simpson s rule : I = h [(y0 + y6) + 4 (y + y + y5) + (y +y4)] = 0. [ ] = 0. [ ] =.87847

91 Q.. Evaluate Mathematical Methods for Numerical Analysis and Optimization 9 0 d + using Simpson s 8 rule : Ans.: Dividing the interval [0, ] into si equal intervals. 0 h 6 6 y = h ( ) 0 = 0 y0 = h = /6 y = (6/7) = h = /6 y = (6/40) = h = /6 y = (6/45) = h = 4/6 y4 = (6/5) = h = 5/6 y = (6/6) = h = y6 = (/) = Using following Simpson s /8 rule. 0 +nh 0 0 h yd = (y 0+ y n )+(y + y + y 4+ y 5+...)+(y + y ) 8 yd = (+ 0.5) + ( ) + (0.8) 6 = 6 [ ] =

92 9 Chapter-4 Numerical Solution for Differential Equations [Euler s Method] Q.. Use Euler s Method to determine an approimate value of y at = 0. from initial value problem d = + 4y y(0) = taking the step size dy h = 0.. Ans.: Here h = 0., n =, 0 = 0, y0 = Given d = + 4y dy Hence y = y0 + hƒ(0, y0) = + 0. [ 0 + 4y0] = + 0. [ ] = + 0. [ + 4] = =.5 Similarly y = y + hƒ(0 + h, y) = [ ] =.9

93 Mathematical Methods for Numerical Analysis and Optimization 9 Q.. Using Euler s Method with step-size 0. find the value of y(0.5) from the following differential equation d dy = + y, y(0) = 0 Ans.: Here h = 0., n = 5, 0 = 0, y0 = 0 and ƒ(, y) = + y Hence y = y0 + hƒ(0, y0) = 0 + (0.) [0 + 0 ] = 0 Similarly y = y + hƒ(0 + h, y) = 0 + (0.) [(0.) +0 ] = (0.) = 0.00 y = y + hf[0 + h, y] = (0.) [(0.) +(0.00) ] = [ ] = [ ] = y4 = y + hf[0 + h, y] = (0.) [(0.) +(0.005) ] = (0.) [ ] = 0.04 y5 = y4 + hf[0 + 4h, y4] = (0.) [(0.4) +(0.04) ] = (0.) [ ] = 0.0 Hence the required solution is 0.0

94 94 Chapter-5 Numerical Solution for Differential Equations [Euler s Modified Method] Q.. Using Euler s modified method, obtain a solution of the equation dy + y with initial conditions y = at = 0 for the range 0 d 0.6 in the step of 0.. Correct upto four place of decimals. Ans.: Here ƒ(, y) = + y 0 = 0, y0 =, h = 0. and n = 0 + nh (i) At = 0. First approimate value of y y () = y0 + hƒ(0, y0) = + (0.) [0 + ] =. Second approimate value of y y () = y0 + h [ƒ(0, y0) + ƒ(, y() )] = + 0. [(0 + ) + {0. +. }] =.95

95 Mathematical Methods for Numerical Analysis and Optimization 95 Third approimate value of y y () = y0 + h {ƒ(0, y0) + ƒ(, y() )} = + 0. [(0 + ) + { }] = + 0. [ ] =.09 Fourth approimate value of y y (4) = y0 + h {ƒ(0, y0) + ƒ(, y() )} = + 0. [(0 + ) + ( )] = + 0. [ ] =.09 Since the value of y () and y (4) is same Hence at = 0., y =.09 (ii) At = 0.4 First approimate value of y y () = y + hƒ(, y) =.09 + (0.) { } =.497 Second approimate value of y y () = y + h [ƒ(, y) + ƒ(, y() )] = [( ) + ( )] = [ (.67604] =.540

96 96 Third approimate value of y y () = y + h [ƒ(, y) + ƒ(, y() )] = [( ( )] = [ ] =.55 Fourth approimate value of y y (4) = y + h {ƒ(, y) + ƒ(, y() )} = [( ) + ( )] = { ] =.55 Hence at = 0.4, y =.55 (ii) At = 0.6 First approimate value of y y () = y + hƒ(, y) = [ ] =.85 Second approimate value of y y () = y + h {ƒ(, y) + ƒ(, y() )} = [( ) + ( )] =.8849

97 Mathematical Methods for Numerical Analysis and Optimization 97 Third approimate value of y y () = y + h {ƒ(, y) + ƒ(, y() )} = =.885 [( ) + ( )] Fourth approimate value of y y (4) = y + h {ƒ(, y) + ƒ(, y() )} = =.885 Hence at = 0.6, y =.885 [( ) + ( )]

98 98 Chapter-6 Numerical Solution for Differential Equations [Runge Kutta Method] Q.. Using Runge Kutta method find an approimate value of y for = 0. dy in step of 0. if + y given y = when = 0 d Ans.: Here ƒ(, y) = + y, 0 = 0, y0 = and h = 0. K = hƒ(0, y0) = 0.[0 + ] = 0.. _ () K = hƒ(0 + h, y0 + K) = 0. 0 (0.) 0.5 = 0.5 _ () K = hƒ(0 + h, y0 + K) = 0. 0 (0.) 0.5 = 0.68 _ ()

99 Mathematical Methods for Numerical Analysis and Optimization 99 K4 = hƒ(0 + h, y0 +K) = and = 0.47 _ (4) K = (K +K +K +K4) 6 = 6 0. (0.5) (0.68) 0.47 {using equation (), (), () and (4)} = 0.65 Hence y = y0 + K = =.65 _ (5) Again = 0 + h = 0., y =.65, h = 0. Now K = hƒ(, y) = (.65) = 0.47 _ (6) K = hf h, y K = (0.).65 (0.47) = 0.55 _ (7) K = hf h, y K = (0.).65 (0.55) = _ (8)

100 00 K4 = hf h, y K = (0.) and = 0.8 _ (9) K = (K +K +K +K4) 6 = (0.55) (0.576) 0.8 {using equation (6), = (7), (8) and (9)} Hence y(0.) = y = y + K = =.75 which is required solution. Q.. Use Runge-Kutta method to solve y' = y for =.4. Initially =, y = (tale h = 0.). Ans.: (i) Here ƒ(, y) = y, 0 =, y0 =, h = 0. K = hƒ(0, y0) = 0.[ ] = 0.4 K = hƒ(0 + h, y0 + K ) = [BCA Part II, 007]

101 Mathematical Methods for Numerical Analysis and Optimization 0 = = 0... = K = hƒ(0 + h, y0 + K ) = 0. = K4 = hƒ(0 +h, y0 +K) = = K = (K +K +K +K4) 6 = (0.484) (0.494) = y = y0 + K = =.4949 (ii) = 0 + h = + 0. =., y =.4949 and h = 0. K = hƒ(, y) = 0.[(.) (.4949)] = K = hƒ( + h, y + K )

102 0 = y = y + K = K = hƒ( + h, y + K ) = 0. = K4 = hƒ(0 +h, y0 +K) = = K = (K +K +K +K4) 6 = = =.675 y (.4) =.675

103 Mathematical Methods for Numerical Analysis and Optimization 0 Chapter-7 Boundary Valve Problem - Shooting Method Q. Solve the Boundary Value Problem y'' () = y () ; y(0) = 0 ; y() =.75 by the shooting method taking m0 = 0.7 and m = 0.8 Ans.: By Taylor s Series y() = y(0) + y'(0) + 4 y''(0) + y'''(0) y IV (0) y VI (0) + 70 _ () Since y''() = y() we have y''() = y'() and y IV () = y''() = y() y V () = y'() y VI () = y''() = y(). Putting = 0 in above we get y''(0) = y(0) = 0, y'''(0) = y'(0) y IV (0) = 0, y''(0) = y'(0) Substituting these values in equation () 5 yv (0) 0 y() = y I (0)

104 04 Since y(0) = 0 Hence y() = y'(0) _ () = y'(0)(.75) With y'(0) = m0 = 0.7 So equation () gives y() 0.86 Similarly y'(0) = m0 = 0.8 gives y() Using linear interpolation, we obtain m = (0.) = Which is closer to eact value of y'(0) = with this value of m, we solve the initial value problem y''() = y(), y(0) = 0, y'(0) = m _ () and continue the process as above until the value of y() is obtained to the desired accuracy.

Exact and Approximate Numbers:

Exact and Approximate Numbers: Eact and Approimate Numbers: The numbers that arise in technical applications are better described as eact numbers because there is not the sort of uncertainty in their values that was described above.

More information

BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination December, 2015 BCS-054 : COMPUTER ORIENTED NUMERICAL TECHNIQUES

BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination December, 2015 BCS-054 : COMPUTER ORIENTED NUMERICAL TECHNIQUES No. of Printed Pages : 5 BCS-054 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination December, 2015 058b9 BCS-054 : COMPUTER ORIENTED NUMERICAL TECHNIQUES Time : 3 hours Maximum Marks

More information

M.SC. PHYSICS - II YEAR

M.SC. PHYSICS - II YEAR MANONMANIAM SUNDARANAR UNIVERSITY DIRECTORATE OF DISTANCE & CONTINUING EDUCATION TIRUNELVELI 627012, TAMIL NADU M.SC. PHYSICS - II YEAR DKP26 - NUMERICAL METHODS (From the academic year 2016-17) Most Student

More information

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9 TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1 Chapter 01.01 Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9 Chapter 01.02 Measuring errors 11 True error 11 Relative

More information

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1.

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1. The Bisection method or BOLZANO s method or Interval halving method: Find the positive root of x 3 x = 1 correct to four decimal places by bisection method Let f x = x 3 x 1 Here f 0 = 1 = ve, f 1 = ve,

More information

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn Review Taylor Series and Error Analysis Roots of Equations Linear Algebraic Equations Optimization Numerical Differentiation and Integration Ordinary Differential Equations Partial Differential Equations

More information

Numerical Analysis. Introduction to. Rostam K. Saeed Karwan H.F. Jwamer Faraidun K. Hamasalh

Numerical Analysis. Introduction to. Rostam K. Saeed Karwan H.F. Jwamer Faraidun K. Hamasalh Iraq Kurdistan Region Ministry of Higher Education and Scientific Research University of Sulaimani Faculty of Science and Science Education School of Science Education-Mathematics Department Introduction

More information

Name of the Student: Unit I (Solution of Equations and Eigenvalue Problems)

Name of the Student: Unit I (Solution of Equations and Eigenvalue Problems) Engineering Mathematics 8 SUBJECT NAME : Numerical Methods SUBJECT CODE : MA6459 MATERIAL NAME : University Questions REGULATION : R3 UPDATED ON : November 7 (Upto N/D 7 Q.P) (Scan the above Q.R code for

More information

Subbalakshmi Lakshmipathy College of Science. Department of Mathematics

Subbalakshmi Lakshmipathy College of Science. Department of Mathematics ॐ Subbalakshmi Lakshmipathy College of Science Department of Mathematics As are the crests on the hoods of peacocks, As are the gems on the heads of cobras, So is Mathematics, at the top of all Sciences.

More information

Numerical Analysis & Computer Programming

Numerical Analysis & Computer Programming ++++++++++ Numerical Analysis & Computer Programming Previous year Questions from 07 to 99 Ramanasri Institute W E B S I T E : M A T H E M A T I C S O P T I O N A L. C O M C O N T A C T : 8 7 5 0 7 0 6

More information

MATHEMATICAL METHODS INTERPOLATION

MATHEMATICAL METHODS INTERPOLATION MATHEMATICAL METHODS INTERPOLATION I YEAR BTech By Mr Y Prabhaker Reddy Asst Professor of Mathematics Guru Nanak Engineering College Ibrahimpatnam, Hyderabad SYLLABUS OF MATHEMATICAL METHODS (as per JNTU

More information

Page No.1. MTH603-Numerical Analysis_ Muhammad Ishfaq

Page No.1. MTH603-Numerical Analysis_ Muhammad Ishfaq Page No.1 File Version v1.5.3 Update: (Dated: 3-May-011) This version of file contains: Content of the Course (Done) FAQ updated version.(these must be read once because some very basic definition and

More information

SBAME CALCULUS OF FINITE DIFFERENCES AND NUMERICAL ANLAYSIS-I Units : I-V

SBAME CALCULUS OF FINITE DIFFERENCES AND NUMERICAL ANLAYSIS-I Units : I-V SBAME CALCULUS OF FINITE DIFFERENCES AND NUMERICAL ANLAYSIS-I Units : I-V Unit I-Syllabus Solutions of Algebraic and Transcendental equations, Bisection method, Iteration Method, Regula Falsi method, Newton

More information

Numerical Methods. Scientists. Engineers

Numerical Methods. Scientists. Engineers Third Edition Numerical Methods for Scientists and Engineers K. Sankara Rao Numerical Methods for Scientists and Engineers Numerical Methods for Scientists and Engineers Third Edition K. SANKARA RAO Formerly,

More information

Virtual University of Pakistan

Virtual University of Pakistan Virtual University of Pakistan File Version v.0.0 Prepared For: Final Term Note: Use Table Of Content to view the Topics, In PDF(Portable Document Format) format, you can check Bookmarks menu Disclaimer:

More information

Applied Numerical Analysis

Applied Numerical Analysis Applied Numerical Analysis Using MATLAB Second Edition Laurene V. Fausett Texas A&M University-Commerce PEARSON Prentice Hall Upper Saddle River, NJ 07458 Contents Preface xi 1 Foundations 1 1.1 Introductory

More information

Preface. 2 Linear Equations and Eigenvalue Problem 22

Preface. 2 Linear Equations and Eigenvalue Problem 22 Contents Preface xv 1 Errors in Computation 1 1.1 Introduction 1 1.2 Floating Point Representation of Number 1 1.3 Binary Numbers 2 1.3.1 Binary number representation in computer 3 1.4 Significant Digits

More information

PARTIAL DIFFERENTIAL EQUATIONS

PARTIAL DIFFERENTIAL EQUATIONS MATHEMATICAL METHODS PARTIAL DIFFERENTIAL EQUATIONS I YEAR B.Tech By Mr. Y. Prabhaker Reddy Asst. Professor of Mathematics Guru Nanak Engineering College Ibrahimpatnam, Hyderabad. SYLLABUS OF MATHEMATICAL

More information

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK KINGS COLLEGE OF ENGINEERING MA5-NUMERICAL METHODS DEPARTMENT OF MATHEMATICS ACADEMIC YEAR 00-0 / EVEN SEMESTER QUESTION BANK SUBJECT NAME: NUMERICAL METHODS YEAR/SEM: II / IV UNIT - I SOLUTION OF EQUATIONS

More information

Computational Methods

Computational Methods Numerical Computational Methods Revised Edition P. B. Patil U. P. Verma Alpha Science International Ltd. Oxford, U.K. CONTENTS Preface List ofprograms v vii 1. NUMER1CAL METHOD, ERROR AND ALGORITHM 1 1.1

More information

Unit I (Testing of Hypothesis)

Unit I (Testing of Hypothesis) SUBJECT NAME : Statistics and Numerical Methods SUBJECT CODE : MA645 MATERIAL NAME : Part A questions REGULATION : R03 UPDATED ON : November 07 (Upto N/D 07 Q.P) Unit I (Testing of Hypothesis). State level

More information

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat.

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat. Numerical Methods for Engineers An Introduction with and Scientists Applications using MATLAB Third Edition Amos Gilat Vish- Subramaniam Department of Mechanical Engineering The Ohio State University Wiley

More information

B.Tech. Theory Examination (Semester IV) Engineering Mathematics III

B.Tech. Theory Examination (Semester IV) Engineering Mathematics III Solved Question Paper 5-6 B.Tech. Theory Eamination (Semester IV) 5-6 Engineering Mathematics III Time : hours] [Maimum Marks : Section-A. Attempt all questions of this section. Each question carry equal

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad 1 P a g e INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 04 Name : Mathematics-II Code : A0006 Class : II B. Tech I Semester Branch : CIVIL Year : 016 017 FRESHMAN ENGINEERING

More information

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad MECHANICAL ENGINEERING TUTORIAL QUESTION BANK

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad MECHANICAL ENGINEERING TUTORIAL QUESTION BANK Course Name Course Code Class Branch INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad - 500 043 Mathematics-II A30006 II-I B. Tech Freshman Engineering Year 016 017 Course Faculty MECHANICAL ENGINEERING

More information

UNIT II SOLUTION OF NON-LINEAR AND SIMULTANEOUS LINEAR EQUATION

UNIT II SOLUTION OF NON-LINEAR AND SIMULTANEOUS LINEAR EQUATION UNIT II SOLUTION OF NON-LINEAR AND SIMULTANEOUS LINEAR EQUATION. If g x is continuous in a, b, then under what condition the iterative method x = g x has a unique solution in a, b? g x < in a, b. State

More information

MTH603 FAQ + Short Questions Answers.

MTH603 FAQ + Short Questions Answers. Absolute Error : Accuracy : The absolute error is used to denote the actual value of a quantity less it s rounded value if x and x* are respectively the rounded and actual values of a quantity, then absolute

More information

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b) Numerical Methods - PROBLEMS. The Taylor series, about the origin, for log( + x) is x x2 2 + x3 3 x4 4 + Find an upper bound on the magnitude of the truncation error on the interval x.5 when log( + x)

More information

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 4

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 4 2.29 Spring 2015 Lecture 4 Review Lecture 3 Truncation Errors, Taylor Series and Error Analysis Taylor series: 2 3 n n i1 i i i i i n f( ) f( ) f '( ) f ''( ) f '''( )... f ( ) R 2! 3! n! n1 ( n1) Rn f

More information

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam Jim Lambers MAT 460/560 Fall Semester 2009-10 Practice Final Exam 1. Let f(x) = sin 2x + cos 2x. (a) Write down the 2nd Taylor polynomial P 2 (x) of f(x) centered around x 0 = 0. (b) Write down the corresponding

More information

The iteration formula for to find the root of the equation

The iteration formula for to find the root of the equation SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY, COIMBATORE- 10 DEPARTMENT OF SCIENCE AND HUMANITIES SUBJECT: NUMERICAL METHODS & LINEAR PROGRAMMING UNIT II SOLUTIONS OF EQUATION 1. If is continuous in then under

More information

NUMERICAL ANALYSIS SYLLABUS MATHEMATICS PAPER IV (A)

NUMERICAL ANALYSIS SYLLABUS MATHEMATICS PAPER IV (A) NUMERICAL ANALYSIS SYLLABUS MATHEMATICS PAPER IV (A) Unit - 1 Errors & Their Accuracy Solutions of Algebraic and Transcendental Equations Bisection Method The method of false position The iteration method

More information

SOLUTION OF EQUATION AND EIGENVALUE PROBLEMS PART A( 2 MARKS)

SOLUTION OF EQUATION AND EIGENVALUE PROBLEMS PART A( 2 MARKS) CHENDU COLLEGE OF ENGINEERING AND TECHNOLOGY (Approved by AICTE New Delhi, Affiliated to Anna University Chennai. Zamin Endathur Village, Madurntakam Taluk, Kancheepuram Dist.-603311.) MA6459 - NUMERICAL

More information

Linear Algebraic Equations

Linear Algebraic Equations Linear Algebraic Equations Linear Equations: a + a + a + a +... + a = c 11 1 12 2 13 3 14 4 1n n 1 a + a + a + a +... + a = c 21 2 2 23 3 24 4 2n n 2 a + a + a + a +... + a = c 31 1 32 2 33 3 34 4 3n n

More information

Numerical and Statistical Methods

Numerical and Statistical Methods F.Y. B.Sc.(IT) : Sem. II Numerical and Statistical Methods Time : ½ Hrs.] Prelim Question Paper Solution [Marks : 75 Q. Attempt any THREE of the following : [5] Q.(a) What is a mathematical model? With

More information

Numerical and Statistical Methods

Numerical and Statistical Methods F.Y. B.Sc.(IT) : Sem. II Numerical and Statistical Methods Time : ½ Hrs.] Prelim Question Paper Solution [Marks : 75 Q. Attempt any THREE of the following : [5] Q.(a) What is a mathematical model? With

More information

UNIT - 2 Unit-02/Lecture-01

UNIT - 2 Unit-02/Lecture-01 UNIT - 2 Unit-02/Lecture-01 Solution of algebraic & transcendental equations by regula falsi method Unit-02/Lecture-01 [RGPV DEC(2013)] [7] Unit-02/Lecture-01 [RGPV JUNE(2014)] [7] Unit-02/Lecture-01 S.NO

More information

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by 1. QUESTION (a) Given a nth degree Taylor polynomial P n (x) of a function f(x), expanded about x = x 0, write down the Lagrange formula for the truncation error, carefully defining all its elements. How

More information

Numerical Methods for Engineers

Numerical Methods for Engineers Numerical Methods for Engineers SEVENTH EDITION Steven C Chopra Berger Chair in Computing and Engineering Tufts University Raymond P. Canal Professor Emeritus of Civil Engineering of Michiaan University

More information

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004 Department of Applied Mathematics and Theoretical Physics AMA 204 Numerical analysis Exam Winter 2004 The best six answers will be credited All questions carry equal marks Answer all parts of each question

More information

CS 257: Numerical Methods

CS 257: Numerical Methods CS 57: Numerical Methods Final Exam Study Guide Version 1.00 Created by Charles Feng http://www.fenguin.net CS 57: Numerical Methods Final Exam Study Guide 1 Contents 1 Introductory Matter 3 1.1 Calculus

More information

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by Numerical Analysis A Comprehensive Introduction H. R. Schwarz University of Zürich Switzerland with a contribution by J. Waldvogel Swiss Federal Institute of Technology, Zürich JOHN WILEY & SONS Chichester

More information

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY, COIMBATORE- 10 DEPARTMENT OF SCIENCE AND HUMANITIES B.E - EEE & CIVIL UNIT I

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY, COIMBATORE- 10 DEPARTMENT OF SCIENCE AND HUMANITIES B.E - EEE & CIVIL UNIT I SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY, COIMBATORE- 10 DEPARTMENT OF SCIENCE AND HUMANITIES B.E - EEE & CIVIL SUBJECT: NUMERICAL METHODS ( SEMESTER VI ) UNIT I SOLUTIONS OF EQUATIONS AND EIGEN VALUE PROBLEMS

More information

Numerical Analysis for Engineers and Scientists

Numerical Analysis for Engineers and Scientists Numerical Analysis for Engineers and Scientists Striking a balance between theory and practice, this graduate-level text is perfect for students in the applied sciences. The author provides a clear introduction

More information

Excel for Scientists and Engineers Numerical Method s. E. Joseph Billo

Excel for Scientists and Engineers Numerical Method s. E. Joseph Billo Excel for Scientists and Engineers Numerical Method s E. Joseph Billo Detailed Table of Contents Preface Acknowledgments About the Author Chapter 1 Introducing Visual Basic for Applications 1 Chapter

More information

5. Hand in the entire exam booklet and your computer score sheet.

5. Hand in the entire exam booklet and your computer score sheet. WINTER 2016 MATH*2130 Final Exam Last name: (PRINT) First name: Student #: Instructor: M. R. Garvie 19 April, 2016 INSTRUCTIONS: 1. This is a closed book examination, but a calculator is allowed. The test

More information

YEAR III SEMESTER - V

YEAR III SEMESTER - V YEAR III SEMESTER - V Remarks Total Marks Semester V Teaching Schedule Hours/Week College of Biomedical Engineering & Applied Sciences Microsyllabus NUMERICAL METHODS BEG 389 CO Final Examination Schedule

More information

AIMS Exercise Set # 1

AIMS Exercise Set # 1 AIMS Exercise Set #. Determine the form of the single precision floating point arithmetic used in the computers at AIMS. What is the largest number that can be accurately represented? What is the smallest

More information

Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn

Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn Today s class Linear Algebraic Equations LU Decomposition 1 Linear Algebraic Equations Gaussian Elimination works well for solving linear systems of the form: AX = B What if you have to solve the linear

More information

SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD

SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD BISECTION METHOD If a function f(x) is continuous between a and b, and f(a) and f(b) are of opposite signs, then there exists at least one root between a and b. It is shown graphically as, Let f a be negative

More information

Fundamental Numerical Methods for Electrical Engineering

Fundamental Numerical Methods for Electrical Engineering Stanislaw Rosloniec Fundamental Numerical Methods for Electrical Engineering 4y Springei Contents Introduction xi 1 Methods for Numerical Solution of Linear Equations 1 1.1 Direct Methods 5 1.1.1 The Gauss

More information

Engineering. Mathematics. GATE 2019 and ESE 2019 Prelims. For. Comprehensive Theory with Solved Examples

Engineering. Mathematics. GATE 2019 and ESE 2019 Prelims. For. Comprehensive Theory with Solved Examples Thoroughly Revised and Updated Engineering Mathematics For GATE 2019 and ESE 2019 Prelims Comprehensive Theory with Solved Examples Including Previous Solved Questions of GATE (2003-2018) and ESE-Prelims

More information

Engg. Math. II (Unit-IV) Numerical Analysis

Engg. Math. II (Unit-IV) Numerical Analysis Dr. Satish Shukla of 33 Engg. Math. II (Unit-IV) Numerical Analysis Syllabus. Interpolation and Curve Fitting: Introduction to Interpolation; Calculus of Finite Differences; Finite Difference and Divided

More information

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science EAD 115 Numerical Solution of Engineering and Scientific Problems David M. Rocke Department of Applied Science Taylor s Theorem Can often approximate a function by a polynomial The error in the approximation

More information

AN INTRODUCTION TO NUMERICAL METHODS USING MATHCAD. Mathcad Release 14. Khyruddin Akbar Ansari, Ph.D., P.E.

AN INTRODUCTION TO NUMERICAL METHODS USING MATHCAD. Mathcad Release 14. Khyruddin Akbar Ansari, Ph.D., P.E. AN INTRODUCTION TO NUMERICAL METHODS USING MATHCAD Mathcad Release 14 Khyruddin Akbar Ansari, Ph.D., P.E. Professor of Mechanical Engineering School of Engineering and Applied Science Gonzaga University

More information

Introduction to Numerical Analysis

Introduction to Numerical Analysis Introduction to Numerical Analysis S. Baskar and S. Sivaji Ganesh Department of Mathematics Indian Institute of Technology Bombay Powai, Mumbai 400 076. Introduction to Numerical Analysis Lecture Notes

More information

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel LECTURE NOTES on ELEMENTARY NUMERICAL METHODS Eusebius Doedel TABLE OF CONTENTS Vector and Matrix Norms 1 Banach Lemma 20 The Numerical Solution of Linear Systems 25 Gauss Elimination 25 Operation Count

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad Course Title Course Code INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 CIVIL ENGINEERING COURSE DESCRIPTION MATHEMATICS-II A30006 Course Structure Lectures Tutorials

More information

LECTURES IN BASIC COMPUTATIONAL NUMERICAL ANALYSIS

LECTURES IN BASIC COMPUTATIONAL NUMERICAL ANALYSIS Ax = b Z b a " 1 f(x) dx = h 2 (f X 1 + f n )+ f i #+ O(h 2 ) n 1 i=2 LECTURES IN BASIC COMPUTATIONAL NUMERICAL ANALYSIS x (m+1) = x (m) J(x (m) ) 1 F (x (m) ) p n (x) = X n+1 i=1 " n+1 Y j=1 j6=i # (x

More information

COURSE CONTRACT Course Name

COURSE CONTRACT Course Name COURSE CONTRACT Course Name Numerical Methods Course Code KPL Semester Odd /4 Days/ hours Tuesday/ 7.-. Place F8 Course Status compulsory Course Prerequisites. Calculus I. Calculus II. Linear Algebra 4.

More information

Engineering Mathematics through Applications

Engineering Mathematics through Applications 89 80 Engineering Mathematics through Applications Finite Differences, Numerical Differentiations and Integrations 8 8 Engineering Mathematics through Applications Finite Differences, Numerical Differentiations

More information

Solution of Nonlinear Equations

Solution of Nonlinear Equations Solution of Nonlinear Equations In many engineering applications, there are cases when one needs to solve nonlinear algebraic or trigonometric equations or set of equations. These are also common in Civil

More information

SOLVING EQUATIONS OF ONE VARIABLE

SOLVING EQUATIONS OF ONE VARIABLE 1 SOLVING EQUATIONS OF ONE VARIABLE ELM1222 Numerical Analysis Some of the contents are adopted from Laurene V. Fausett, Applied Numerical Analysis using MATLAB. Prentice Hall Inc., 1999 2 Today s lecture

More information

DonnishJournals

DonnishJournals DonnishJournals 204-89 Donnish Journal of Educational Research and Reviews. Vol 2() pp. 008-07 January, 205. http:///djerr Copyright 205 Donnish Journals Original Research Paper Solution of Linear Systems

More information

Previous Year Questions & Detailed Solutions

Previous Year Questions & Detailed Solutions Previous Year Questions & Detailed Solutions. The rate of convergence in the Gauss-Seidal method is as fast as in Gauss Jacobi smethod ) thrice ) half-times ) twice 4) three by two times. In application

More information

Applied Linear Algebra in Geoscience Using MATLAB

Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in

More information

Introductory Numerical Analysis

Introductory Numerical Analysis Introductory Numerical Analysis Lecture Notes December 16, 017 Contents 1 Introduction to 1 11 Floating Point Numbers 1 1 Computational Errors 13 Algorithm 3 14 Calculus Review 3 Root Finding 5 1 Bisection

More information

MecE 390 Final examination, Winter 2014

MecE 390 Final examination, Winter 2014 MecE 390 Final examination, Winter 2014 Directions: (i) a double-sided 8.5 11 formula sheet is permitted, (ii) no calculators are permitted, (iii) the exam is 80 minutes in duration; please turn your paper

More information

Part IB Numerical Analysis

Part IB Numerical Analysis Part IB Numerical Analysis Definitions Based on lectures by G. Moore Notes taken by Dexter Chua Lent 206 These notes are not endorsed by the lecturers, and I have modified them (often significantly) after

More information

LU Factorization. Marco Chiarandini. DM559 Linear and Integer Programming. Department of Mathematics & Computer Science University of Southern Denmark

LU Factorization. Marco Chiarandini. DM559 Linear and Integer Programming. Department of Mathematics & Computer Science University of Southern Denmark DM559 Linear and Integer Programming LU Factorization Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark [Based on slides by Lieven Vandenberghe, UCLA] Outline

More information

School of Sciences Indira Gandhi National Open University Maidan Garhi, New Delhi (For January 2012 cycle)

School of Sciences Indira Gandhi National Open University Maidan Garhi, New Delhi (For January 2012 cycle) MTE-0 ASSIGNMENT BOOKLET Bachelor's Degree Programme Numerical Analysis (MTE-0) (Valid from st January, 0 to st December, 0) School of Sciences Indira Gandhi National Open University Maidan Garhi, New

More information

NUMERICAL METHODS FOR ENGINEERING APPLICATION

NUMERICAL METHODS FOR ENGINEERING APPLICATION NUMERICAL METHODS FOR ENGINEERING APPLICATION Second Edition JOEL H. FERZIGER A Wiley-Interscience Publication JOHN WILEY & SONS, INC. New York / Chichester / Weinheim / Brisbane / Singapore / Toronto

More information

Numerical Methods with MATLAB

Numerical Methods with MATLAB Numerical Methods with MATLAB A Resource for Scientists and Engineers G. J. BÖRSE Lehigh University PWS Publishing Company I(T)P AN!NTERNATIONAL THOMSON PUBLISHING COMPANY Boston Albany Bonn Cincinnati

More information

Numerical Mathematics

Numerical Mathematics Alfio Quarteroni Riccardo Sacco Fausto Saleri Numerical Mathematics Second Edition With 135 Figures and 45 Tables 421 Springer Contents Part I Getting Started 1 Foundations of Matrix Analysis 3 1.1 Vector

More information

Numerical methods. Examples with solution

Numerical methods. Examples with solution Numerical methods Examples with solution CONTENTS Contents. Nonlinear Equations 3 The bisection method............................ 4 Newton s method.............................. 8. Linear Systems LU-factorization..............................

More information

Introduction to Numerical Analysis

Introduction to Numerical Analysis J. Stoer R. Bulirsch Introduction to Numerical Analysis Second Edition Translated by R. Bartels, W. Gautschi, and C. Witzgall With 35 Illustrations Springer Contents Preface to the Second Edition Preface

More information

CAM Ph.D. Qualifying Exam in Numerical Analysis CONTENTS

CAM Ph.D. Qualifying Exam in Numerical Analysis CONTENTS CAM Ph.D. Qualifying Exam in Numerical Analysis CONTENTS Preliminaries Round-off errors and computer arithmetic, algorithms and convergence Solutions of Equations in One Variable Bisection method, fixed-point

More information

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method 54 CHAPTER 10 NUMERICAL METHODS 10. ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS As a numerical technique, Gaussian elimination is rather unusual because it is direct. That is, a solution is obtained after

More information

A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS

A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS Victor S. Ryaben'kii Semyon V. Tsynkov Chapman &. Hall/CRC Taylor & Francis Group Boca Raton London New York Chapman & Hall/CRC is an imprint of the Taylor

More information

NUMERICAL MATHEMATICS AND COMPUTING

NUMERICAL MATHEMATICS AND COMPUTING NUMERICAL MATHEMATICS AND COMPUTING Fourth Edition Ward Cheney David Kincaid The University of Texas at Austin 9 Brooks/Cole Publishing Company I(T)P An International Thomson Publishing Company Pacific

More information

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error In this method we assume initial value of x, and substitute in the equation. Then modify x and continue till we

More information

Matrices and Determinants

Matrices and Determinants Math Assignment Eperts is a leading provider of online Math help. Our eperts have prepared sample assignments to demonstrate the quality of solution we provide. If you are looking for mathematics help

More information

Chapter 6. Nonlinear Equations. 6.1 The Problem of Nonlinear Root-finding. 6.2 Rate of Convergence

Chapter 6. Nonlinear Equations. 6.1 The Problem of Nonlinear Root-finding. 6.2 Rate of Convergence Chapter 6 Nonlinear Equations 6. The Problem of Nonlinear Root-finding In this module we consider the problem of using numerical techniques to find the roots of nonlinear equations, f () =. Initially we

More information

MA1023-Methods of Mathematics-15S2 Tutorial 1

MA1023-Methods of Mathematics-15S2 Tutorial 1 Tutorial 1 the week starting from 19/09/2016. Q1. Consider the function = 1. Write down the nth degree Taylor Polynomial near > 0. 2. Show that the remainder satisfies, < if > > 0 if > > 0 3. Show that

More information

F I F T H E D I T I O N. Introductory Methods of Numerical Analysis. S.S. Sastry

F I F T H E D I T I O N. Introductory Methods of Numerical Analysis. S.S. Sastry F I F T H E D I T I O N Introductory Methods of Numerical Analysis S.S. Sastry Introductory Methods of Numerical Analysis Introductory Methods of Numerical Analysis Fifth Edition S.S. SASTRY Formerly,

More information

The Solution of Linear Systems AX = B

The Solution of Linear Systems AX = B Chapter 2 The Solution of Linear Systems AX = B 21 Upper-triangular Linear Systems We will now develop the back-substitution algorithm, which is useful for solving a linear system of equations that has

More information

Linear Algebraic Equations

Linear Algebraic Equations Linear Algebraic Equations 1 Fundamentals Consider the set of linear algebraic equations n a ij x i b i represented by Ax b j with [A b ] [A b] and (1a) r(a) rank of A (1b) Then Axb has a solution iff

More information

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns 5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns (1) possesses the solution and provided that.. The numerators and denominators are recognized

More information

Exam in TMA4215 December 7th 2012

Exam in TMA4215 December 7th 2012 Norwegian University of Science and Technology Department of Mathematical Sciences Page of 9 Contact during the exam: Elena Celledoni, tlf. 7359354, cell phone 48238584 Exam in TMA425 December 7th 22 Allowed

More information

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4 Linear Algebra Section. : LU Decomposition Section. : Permutations and transposes Wednesday, February 1th Math 01 Week # 1 The LU Decomposition We learned last time that we can factor a invertible matrix

More information

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF SCIENCE & HUMANITIES STATISTICS & NUMERICAL METHODS TWO MARKS

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF SCIENCE & HUMANITIES STATISTICS & NUMERICAL METHODS TWO MARKS SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF SCIENCE & HUMANITIES STATISTICS & NUMERICAL METHODS TWO MARKS UNIT-I HYPOTHESIS TESTING 1. What are the applications of distributions? * Test the hypothesis

More information

SCHEME OF WORK FOR LEVEL 5 MECHANICAL ENGINEERING

SCHEME OF WORK FOR LEVEL 5 MECHANICAL ENGINEERING Lesson 1: Working with matrix algebra Learning Outcome: 1 Be able to use matrix algebra to solve engineering problems. Suggested Teaching Time: 22 hours AC1.1 Perform operations in matrix algebra AC 1.2

More information

2.1 Gaussian Elimination

2.1 Gaussian Elimination 2. Gaussian Elimination A common problem encountered in numerical models is the one in which there are n equations and n unknowns. The following is a description of the Gaussian elimination method for

More information

Numerical Methods. King Saud University

Numerical Methods. King Saud University Numerical Methods King Saud University Aims In this lecture, we will... find the approximate solutions of derivative (first- and second-order) and antiderivative (definite integral only). Numerical Differentiation

More information

Review of matrices. Let m, n IN. A rectangle of numbers written like A =

Review of matrices. Let m, n IN. A rectangle of numbers written like A = Review of matrices Let m, n IN. A rectangle of numbers written like a 11 a 12... a 1n a 21 a 22... a 2n A =...... a m1 a m2... a mn where each a ij IR is called a matrix with m rows and n columns or an

More information

Numerical Methods for Engineers

Numerical Methods for Engineers Numerical Methods for Engineers S EVEN TH ED I TI O N Steven C. Chapra Berger Chair in Computing and Engineering Tufts University Raymond P. Canale Professor Emeritus of Civil Engineering University of

More information

MTH603 - Numerical Analysis Solved final Term Papers For Final Term Exam

MTH603 - Numerical Analysis Solved final Term Papers For Final Term Exam MTH603 - Numerical Analysis Solved final Term Papers For Final Term Exam Exact solution of 2/3 is not exists. The Jacobi s method is A method of solving a matrix equation on a matrix that has zeros along

More information

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 2. Predictor-Corrector Methods

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 2. Predictor-Corrector Methods Numerical Analysis by Dr. Anita Pal Assistant Professor Department of Matematics National Institute of Tecnology Durgapur Durgapur-7109 email: anita.buie@gmail.com 1 . Capter 8 Numerical Solution of Ordinary

More information

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places. NUMERICAL METHODS 1. Rearranging the equation x 3 =.5 gives the iterative formula x n+1 = g(x n ), where g(x) = (2x 2 ) 1. (a) Starting with x = 1, compute the x n up to n = 6, and describe what is happening.

More information

Next topics: Solving systems of linear equations

Next topics: Solving systems of linear equations Next topics: Solving systems of linear equations 1 Gaussian elimination (today) 2 Gaussian elimination with partial pivoting (Week 9) 3 The method of LU-decomposition (Week 10) 4 Iterative techniques:

More information