Chapter-5-NUMERICAL METHOD -01-THEORY
5.1 Introduction.
The limitations of analytical methods have led the engineers and scientists to evolve graphical and numerical methods. The graphical methods, though simple, give results to a low degree of accuracy. Numerical methods can, however, be derived which are more accurate.
5.2 Significant digits and Rounding off of Numbers.
(1) Significant digits : The significant digits in a number are determined by the following rules :
(i) All non-zero digits in a number are significant.
(ii) All zeros between two non-zero digits are significant.
(iii) If a number having embedded decimal point ends with a non-zero or a sequences of zeros, then all these zeros are significant digits.
(iv) All zeros preceding a non-zero digit are non-significant.
Number Number of significant digits
3.0450 5
0.0025 2
102.030070 9
35.9200 6
0.0002050 4
20.00 4
2000 1
(2) Rounding off of numbers : If a number is to be rounded off to n significant digits, then we follow the following rules :
(i) Discard all digits to the right of the nth digit.
(ii) If the (n+1)th digit is greater then 5 or it is 5 followed by a nonzero digit, then nth digit is increased by 1. If the (n+1)th digit is less then 5, then digit remains unchanged.
(iii) If the (n+1)th digit is 5 and is followed by zero or zeros, then nth digit is increased by 1 if it is odd and it remains unchanged if it is even.
5.3 Error due to Rounding off of Numbers.
If a number is rounded off according to the rules, the maximum error due to rounding does not exceed the one half of the place value of the last retained digit in the number.
The difference between a numerical value X and its rounded value X1 is called round off error is given by .
5.4 Truncation and Error due to Truncation of Numbers.
Leaving out the extra digits that are not required in a number without rounding off, is called truncation or chopping off.
The difference between a numerical value X and its truncated value X1 is called truncation error and is given by .
The maximum error due to truncation of a number cannot exceed the place value of the last retained digit in the number.
Remark 1 : In truncation the numerical value of a positive number is decreased and that of a negative number is increased.
Remark 2 : If we round off a large number of positive numbers to the same number of decimal places, then the average error due to rounding off is zero.
Remark 3 : In case of truncation of a large number of positive numbers to the same number of decimal places the average truncation error is one half of the place value of the last retained digit.
Remark 4 : If the number is rounded off and truncated to the same number of decimal places, then truncation error is greater than the round off error.
Remark 5 : Round of error may be positive or negative but truncation error is always positive in case of positive numbers and negative in case of negative numbers.
Number Approximated number obtained by
Chopping off Rounding off
0.335217... 0.3352 0.3352
0.666666... 0.6666 0.6667
0.123451... 0.1234 0.1235
0.213450... 0.2134 0.2134
0.213950... 0.2139 0.2140
0.335750... 0.3357 0.3358
0.999999... 0.9999 1.0000
0.555555... 0.5555 0.5556
5.5 Relative and Percentage errors of Numbers .
The difference between the exact value of a number X and its approximate value X1, obtained by rounding off or truncation, is known as absolute error.
The quantity is called the relative error and is denoted by .
Thus . This is a dimensionless quantity.
The quantity is known as percentage error and is denoted by , i.e. .
Remark 1 : If a number is rounded off to n decimal digits, then
Remark 2 : If a number is truncated to n decimal places, then
Example: 1 The number of significant digits in 0.0001 is
(a) 5 (b) 4 (c) 1 (d) None of these
Solution: (c) 0.0001 has only one significant digit 1.
Example: 2 When a number is rounded off to n decimal places, then the magnitude of relative error does not exceed
(a) (b) (c) (d) None of these
Solution: (c) When a number is rounded off to n decimal places, then the magnitude of relative error i.e. does not exceed .
Example: 3 When the number 2.089 is rounded off to three significant digits, then the absolute error is
(a) 0.01 (b) –0.01 (c) 0.001 (d) –0.001
Solution: (d) When the number 2.089 is rounded off to three significant digits, it becomes 2.09. Hence, the absolute error that occurs is
5.6 Algebraic and Transcendental Equation.
An equation of the form f(x)=0, is said to an algebraic or a transcendental equation according as f(x) is a polynomial or a transcendental function respectively.
e.g. , etc., where a, b, c, d Q, are algebraic equations whereas ; etc. are transcendental equations.
5.7 Location of real Roots of an Equation.
By location of a real root of an equation, we mean finding an approximate value of the root graphically or otherwise.
(1) Graphical Method : It is often possible to write in the form and then plot the graphs of the functions and .
The abscissae of the points of intersection of these two graphs are the real roots of .
(2) Location Theorem : Let be a real-valued, continuous function defined on [a, b]. If and f(b)
have opposite signs i.e. f(a).f(b) < 0, then the equation f(x)=0 has at least one real root between a and b.
5.8 Position of Real Roots
If be a polynomial equation and are the consecutive real roots of , then positive or negative sign of the values of will determine the intervals in which the root of will lie whenever there is a change of sign from to the root lies in the interval .
Example: 4 If all roots of equation are real, then range of value of k
(a) (–2, 2) (b) [–2, 2] (c) Both (d) None of these
Solution: (a) Let , then and so . The values of f(x) at are :
If all roots of given equation are real, then and . Hence the range of k is (–2, 2)
Example: 5 For the smallest positive root of transcendental equation , interval is
(a) (0, 1) (b) (–1, 0) (c) (1, 2) (d) (2, 3)
Solution: (a) Let but and . Therefore root lie in (0,1).
Example: 6 The maximum number of real roots of the equation is
(a) 2 (b) 3 (c) n (d) 2n
Solution: (a) Let , then
Sign of at are
This show that there are two real roots of which lie in the interval and . Hence maximum number of real roots are 2.
5.9 Solution of Algebraic and Transcendental Equations
There are many numerical methods for solving algebraic and transcendental equations. Some of these methods are given below. After locating root of an equation, we successively approximate it to any desired degree of accuracy.
(1) Iterative method: If the equation f(x) = 0 can be expressed as x = g(x) (certainly g(x) is non-constant), the value g(x0) of g(x) at is the next approximation to the root . Let , then is a third approximation to . This process is repeated until a number, whose absolute difference from is as small as we please, is obtained. This number is the required root of , calculated upto a desired accuracy.
Thus, if is an approximation to , then the next approximation ........(i)
The relation (i) is known as Iterative formula or recursion formula and this method of approximating a real root of an equation is called iterative method.
(2) Successive bisection method : This method consists in locating the root of the equation between a and b. If f(x) is continuous between a and b, and f(a) and f(b) are of opposite signs i.e. f(a).f(b)<0, then there is (at least one) root between a and b. For definiteness, let f(a) be negative and f(b) be positive. Then the first approximation to the root .
Working Rule : (i) Find by the above formula.
(ii) Let be negative and be positive, then take .
(iii) If , then c is the required root or otherwise if is negative then root will be in and if is positive then root will be in .
(iv) Repeat it until you get the root nearest to the actual root.
Note : This method of approximation is very slow but it is reliable and can be applied to any type of algebraic or transcendental equations.
This method may give a false root if is discontinuous on [a, b].
Example: 7 By bisection method, the real root of the equation lying between and is nearer to
(a) 2.2 (b) 2.75 (c) 3.5 (d) 4.0
Solution: (b) Since and
Root will lie between 2 and 4.
At ,
Root lie between 2 and 3.
At , is –ive, root lies between 2.5 and 3
At and . Root is near to 2.75.
(3) Method of false position or Regula-Falsi method : This is the oldest method of finding the real root of an equation and closely resembles the bisection method. Here we choose two points and such that and are of opposite signs i.e. the graph of crosses the x-axis between these points. This indicates that a root lies between and consequently .
Equation of the chord joining the points and is
........(i)
The method consists in replacing the curve AB by means of the chord AB and taking the point of intersection of the chord with the x-axis as an approximation to the root. So the abscissa of the point where the chord cuts the x-axis is given by .........(ii)
which is an approximation to the root.
If now and are of opposite signs, then the root lies between and . So replacing by in (ii), we obtain the next approximation . (The root could as well lie between and and we would obtain accordingly). This procedure is repeated till the root is found to desired accuracy. The iteration process based on (i) is known as the method of false position.
Working rule
(i) Calculate and , if these are of opposite sign then the root lies between and .
(ii) Calculate by the above formula.
(iii) Now if , then is the required root.
(iv) If is negative, then the root lies in .
(v) If is positive, then the root lies in .
(vi) Repeat it until you get the root nearest to the real root.
Note : This method is also known as the method of false position.
The method may give a false root or may not converge if either a and b are not sufficiently close to
each other or is discontinuous on [a, b].
Geometrically speaking, in this method, part of the curve between the points P(a, f(a)) and Q (b, f(b)) is replaced by the secant PQ and the point of intersection of this secant with x-axis gives an approximate value of the root.
It converges more rapidly than bisection.
Example: 8 The root of the equation lies in interval (1, 2) after second iteration by false position method, it will be in
(a) (1.178, 2.00) (b) (1.25, 1.75) (c) (1.125, 1.375) (d) (1.875, 2.00)
Solution: (a)
and
Therefore, root lie in (1, 2).
Now, take ,
=1.125 and so
Hence, roots lie in (1.125, 2)
. So required root lie in (1.178, 2)
(4) Newton-Raphson method : Let be an approximate root of the equation . If be the exact root, then
Expanding by Taylor's series
Since h is small, neglecting and higher powers of h, we get
or ........(i)
A closer approximation to the root is given by
Similarly, starting with , a still better approximation is given by
In general, ........(ii)
Which is known as the Newton-Raphson formula or Newton's iteration formula.
Working rule : (i) Find and . If , then let , otherwise .
(ii) Calculate
(iii) is the required root if .
(iv) To find nearest to the real root, repeat it.
Note : Geometrically speaking, in Newton-Raphson method, the part of the graph of the function between the point and the x-axis is replaced by a tangent to the curve at the point at each step in the approximation process.
This method is very useful for approximating isolated roots.
The Newton-Raphson method fails if is difficult to compute or vanishes in a neighbourhood of the desired root. In such cases, the Regula-Falsi method should be used.
The Newton-Raphson method is widely used since in a neighbourhood of the desired root, it converges more rapidly than the bisection method or the Regula-Falsi method.
If the starting value a is not close enough to the desired root, the method may give a false root or may not converge.
If is not sufficiently small, this method does not work. Also if it work, it works faster.
Geometrical Interpretation
Let be a point near the root of the equation . Then the equation of the tangent at is .
It cuts the x-axis at
Which is a first approximation to the root . If is the point corresponding to on the curve, then the tangent at will cut the x-axis of which is nearer to and is, therefore, a second approximation to the root. Repeating this process, we approach to the root quite rapidly. Hence the method consists in replacing the part of the curve between the point and the x-axis by means of the tangent to the curve at .
Example: 9 The value of the root nearest to the 2, after first iteration of the equation by Newton-Raphson method is
(a) 2.321 (b) 2.125 (c) 1.983 (d) 1.871
Solution: (d) Let , then and
Thus roots lie in (1, 2). Also , So take
Also
By Newton's rule, the first iteration,
Example: 10 For finding real roots of the equation by Newton-Raphson method, choose , then the value of is
(a) –1 (b) 3 (c) (d) None of these
Solution: (c) Let . Given .
By Newton-Raphson method,
and . Now
;
Example: 11 The value of correct to 3 decimal places by Newton-Raphson method is given by
(a) 3.463 (b) 3.462 (c) 3.467 (d) None of these
Solution: (a) Let
i.e. –ive and i.e. +ive
Hence roots lie between 3 and 4. ,
First iteration ,
Now second iteration, ,
5.10 Numerical Integration
It is the process of computing the value of a definite integral when we are given a set of numerical values of the integrand f(x) corresponding to some values of the independent variable x.
If . Then I represents the area of the region R under the curve between the ordinates and the x-axis.
(1) Trapezoidal rule
Let be a function defined on [a, b] which is divided into n equal sub-intervals each of width h so that .
Let the values of for equidistant arguments be respectively.
Then
This rule is known as Trapezoidal rule .
The geometrical significance of this rule is that the curve is replaced by n straight lines joining the points and ; and ; and . The area bounded by the curve . The ordinate and and the x-axis, is then approximately equivalent to the sum of the areas of the n trapeziums obtained.
Example: 12 If , then by Trapezoidal rule
(a) 53.87 (b) 53.60 (c) 58.00 (d) None of these
Solution: (c)
x : 0 1 2 3 4
y : 1 2.72 7.39 20.09 54.60
By Trapezoidal rule,
Example: 13 By trapezoidal rule the value of the integral on dividing the interval into four equal parts is
(a) 42 (b) 41.3 (c) 41 (d) 40
Solution: (a)
x : 1 2 3 4 5
y : 1 4 9 16 25
Example: 14 If for , the approximate value of integral by Trapezoidal rule is , then
(a) (b) (c) (d)
Solution: (c)
, ,
By trapezoidal rule,
Obvious from above equation, .
(2) Simpson's one third rule : Let be a function defined on [a, b] which is divided into n (an even number) equal parts each of width h so that .
Suppose the function attains values at equidistant points , respectively. Then
= (one-third of the distance between two consecutive ordinates)
[(sum of the extreme ordinates)+4(sum of odd ordinates)+2(sum of even ordinates)]
This formula is known as Simpson's one-third rule. Its geometric significance is that we replace the graph of the given function by arcs of second degree polynomials, or parabolas with vertical axes. It is to note here that the interval [a, b] is divided into an even number of subinterval of equal width.
Simpson's rule yield more accurate results than the trapezoidal rule. Small size of interval gives more accuracy.
Example: 15 By Simpson's rule the value of the interval on dividing, the interval into four equal parts is
(a) 16 (b) 16.5 (c) 17 (d) 17.5
Solution: (d)
By Simpson's rule,
Example: 16 Considering six sub-interval, the value of by Simpson's rule is
(a) 1.3562 (b) 1.3662 (c) 1.3456 (d) 1.2662
Solution: (b)
and
By Simpson's rule ,
Example: 17 By Simpson's rule taking , the value of the integral is equal to
(a) 0.785 (b) 0.788 (c) 0.781 (d) None of these
Solution: (a)
and , , , and
.
Comments
Post a Comment