Numerical Methods
Numerical Methods
Chapter 6
Numerical Methods
@getstudyfeverbot
CHAPTER HIGHLIGHTS
value
@getstudyfeverbot
SOLVED EXAMPLES 3 3
f ′( x ) = ⇒ f ′(0) =
2 1 + 3x 2
Example 1
π 11 −9 −9
If the number = 0.785398163 is approximated by , f ′′( x ) = 3
⇒ f ′′(0) =
4 14 4
then 4(1 − 3 x ) 2
(i) Find the number of digits upto which, this approxima- 27 1
tion is accurate. and f ′′′( x ) = × 5
8
(ii) Find the absolute and the percentage errors. (1 + 3 x ) 2
\ Substituting these in (2), we get
Solution
3 9 x2
π f ( x) = 1 + 3x ≈ 1 + × −
Given = 0.785398163 2 4 2!
4
π 11 3 9
Let x = = 0.785398163 (Exact value) and x = = 1 + × − x2
4 14 2 8
π x3
= 0.785714285 Approximate value of Truncation error = f ′′′(0)
4 3!
π 11 1 Max x3
(i) | x − x | = − ≤
4 14 3! 0 ≤ x ≤ 1
= | 0.785398163 - 0.785714285 |
27
= 3.16122 × 10-4 Max
0 ≤ x ≤1 8(1 + 3 x )
5 / 2
≤ 5 × 10-4
11 π 1 27
\ The approximation to is accurate upto three = (1)
3! 8
⋅
14 4
significant digits
= 0.5625.
(ii) Absolute error = | x − x |
11 π Methods for Finding the Real Roots
=− = 3.16122 × 10 −4
14 4 (Zeros) of f (x) = 0
|x−x | The equation of the form f (x) = 0 is called an Algebraic
Percentage error = × 100 = 0.04%. or Transcendental according as f (x) is purely a polynomial
x
in x or contains some other functions such as exponential,
logarithmic and trigonometric functions etc.
Example 2
Examples:
Using the Taylor’s series expansion about x = 0, find a s econd
degree polynomial approximation to f ( x ) = 1 + 3x . Also 1. x9 + 8x5 - 4x3 - 11x + 3 = 0 → Algebraic equation
find the maximum error for this approximation when 2. 10x4 - log(x2 - 3) + e-xsin x + tan2 x = 0 → Transcen
x ∈ [0, 1]. dental equation
In this chapter, we obtain the solution of an equation f (x)
Solution
= 0, i.e., we mean to find the zeros of f (x).
We know that the Taylor’s series expansion of f(x) about x We shall now discuss few methods to find the real roots
= 0 is of both algebraic (with numerical coefficients) and tran-
x2 scendental equations.
f ( x ) = f (0) + xf ′(0) + f ′′(0) We first find an approximate value of the root of the given
2!
equation and then successively improve it to some desired
x3
+ f ′′′(0) + + ∞ (1) degree of accuracy.
3! We start with an initial approximate value, say x0, and
\ Considering the terms upto second degree, we have then find the better approximations successively x1, x2, x3 …,
x2 xn by repeating the same method.
f ( x ) ≈ f (0) + x f ′(0) + f ′′(0) (2) If the successive approximations at each step of a method
2!
approach the root more and more closely, we say that the
Here f ( x ) = 1 + 3 x ⇒ f (0) = 1 method converges.
NOTE
In bisection method, the convergence is very slow but Convergence of Regula Falsi Method
definite. The order of convergence is linear or of first order. The order of convergence of the method of false position is
greater than 1.
3
= = 0.6557.
4.5747 f(x 0)
Newton–Raphson Method 1 a
= (b − 1) xn + b −1
Let x0 be the approximate root of f (x) = 0 and let x1 = x0 + h b xn
be the correct root. Then f (x1) = 0
⇒ f (x0 + h) = 0 (1) Newton’s Iterative Formula to Find a
Expanding Eq. (1) using Taylor’s theorem, Reciprocal of a Number N
We get f (x0) + hf ′ (x0) + … = 0 The iterative formula is given by
− f ( x0 ) xi+1 = xi (2 - xiN)
⇒ h= ,
f ′( x0 )
Example 8
f ( x0 )
\ x1 = x0 − Find a real root of the equation -4x + cos x + 2 = 0, by
f ′( x0 )
Newton–Raphson method upto four decimal places assum-
Now x1 is the better approximation than x0. Proceeding ing x0 = 0.5
this way, the successive approximations x2, x3,…, xn+1 are
f ( xn ) Solution
given by xn +1 = xn −
f ′( xn ) Let f (x) = -4x + cos x + 2 and
This is called Newton–Raphson formula. f ′(x) = -4 - sin x
@getstudyfeverbot
Example 9
Least Squares Approximation
Obtain the cube root of 14 using Newton–Raphson method,
with the initial approximation as 2.5. Least squares approximation method is one of the best
methods available for curve fitting.
Solution Let (x1, y1), (x2, y2), …, (xn, yn) be the pairs of observed
We know that, the iterative formula to find b
a is set of values of x and y. Let y = f (x) be the functional rela-
tionship sought between the variables x and y where f (x)
1 a consists of some unknown parameters. We need to find the
xn +1 = (b − 1) xn + b −1
b xn relationship y = f (x) by using the observed values.
Here b = 3 and a = 14 and let x0 = 2.5 Procedure
1 14 1. Find the residual di = yi - f (xi) (i = 1, 2, …, n) for
∴ x1 = 2 x0 + 2
3 x0 every pair of observed value yi and f(xi), the value of
1 14 the functional relation f (x) at x = xi
x1 = 2( 2.5) +
3 ( 2.5) 2 2. Find the sum of the squares of residuals corresponding
to all pairs of values of yi and f(xi) and let it be S
1 14 1
= 5 + = {5 + 2.24} = 2.413 n
3 6.25 3 i.e., S = ∑ ( yi − f ( x )) 2 .
i =1
1 14
x2 = 2( 2.413) + 3. Find the values of the parameters in f(x) such that S is
3 ( 2.413) 2 minimum.
1 14
= 4.826 + . Fitting a Straight Line Let y = a + bx be a straight line to
3 5.822569 . be fitted to the data (x1 y1), (x2 y2), …, (xn yn).
1 \ Residual = di = yi - (a + bxi), i = 1, 2, …, n
= {4.826 + 2.4044} = 2.410
3 Sum of the squares of the residuals = S = ∑(yi - (a + bxi ))2
\ The approximate cube root of 14 is 2.41. Now we have to find the parameters a and b such that S is
minimum
Example 10
∂S
Find the reciprocal of 24 using Newton–Raphson method = ∑ 2[ yi − ( a + bxi )( −1)] and
∂a
with the initial approximation as 0.041.
∂S
= ∑ [2( yi − ( a + bxi ))( − xi )]
Solution ∂b
1 For S to be minimum,
The iterative formula to find is,
N
∂S ∂S
= 0 and =0
xn+1 = xn(2 - xnN) ∂a ∂a
⇒ ∑ [−2( yi − ( a + bxi ))] = 0 and The required values in the normal equations can be found
using the following table
∑ [2( yi − (a + bxi ))(− xi )] = 0 xi yi xi yi xi2
⇒ ∑ yi = n a + b∑ xi (1) 1 4 4 1
2 11 22 4
and ∑ xi yi = a∑ xi + b∑ xi 2 (2)
3 35 105 9
Eqs. (1) and (2) are known as normal equations.
4 100 400 16
By solving these equations, we get the values of ‘a’ and b
NOTES and D4 y0 = D3 y1 - D3 y0
= (y4 - 3y3 + 3y2 - y1) - (y3 - 3y2 + 3y1 - y0)
1. Newton’s forward interpolation formula is
used to interpolate (estimate) the values y = \ D4 y0 = y4 - 4y3 + 6y2 - 4y1 + y0
f(x) near the beginning of the set of tabulated From the above discussion, one can observe that the coef-
values given or for estimating the value of y = ficients of yi s are nothing but the binomial coefficients with
f(x) to the left of the beginning. positive and negative signs alternatively.
2. Newton’s backward interpolation formula is \ Dn y0 = yn - nC1 yn-1 + nC2 yn-2 + … + (-1)ny0 .
used to interpolate (estimate) the values y =
f(x) near the end of the set of tabulated values Example 14
or for estimating the values of y = f(x) to the A function y = f (x) is given by the following table
right of the last tabulated value yn.
x 5 10 15 20 25
When the values x0, x1, x2, …, xn of x are not equally y = f(x) 31 42 51 62 76
spaced, then we can’t make use of Newton’s forward
as well as backward interpolation formulae. In such Using Newton’s forward interpolation formula, find the
situations, the following two interpolation formulae value of y at x = 7.
will be helpful.
Solution
3. Newton’s divided difference formula: If the function
First let us form the forward difference table:
y = f(x) takes the values y0, y1, y2, …, yn corresponding
to the values x0, x1, x2, …, xn (need not be equally x y = f(x) Dy D2y D3y D4y
spaced) of x, then the Newton’s divided difference 5 31
interpolation polynomial is given by 11
10 42 -2
y (x) = f (x) = y0 + (x - x0) [x0, x1] + (x - x0) (x - x1) 9 4
[x0, x1, x2] +…+ (x - x0)(x - x1)…(x - xn-1) [x0, x1, … 15 51 2 -3
11 -1
xn]
20 62 3
4. Lagrange’s interpolation formula: If the function y 14
= f (x) takes the values y0, y1, …, yn respectively at the 25 76
points x0, x1, x2, …, xn (need not be equally spaced)
of x, then the Lagrange’s interpolation polynomial is By Newton’s forward difference formula,
given by y (x) = f(x) = p( p −1) 2 p( p − 1)( p − 2) 3
yp = y0 + pD y0 + D y0 + D y0 +
( x − x1 )( x − x2 ) ( x − xn ) 2! 3!
y0 p( p − 1)( p − 2)( p − 3) 4
( x0 − x1 )( x0 − x2 ) ( x0 − xn ) ∆ y0 + (1)
4!
( x − x0 )( x − x2 ) ( x − xn )
+
y1 Here x0 = 5; h = 5 and x = 7
( x1 − x0 )( x1 − x2 ) ( x1 − xn )
x − x0 7 − 5
( x − x0 )( x − x1 ) ( x − xn −1 ) ∴p= = = 0.4
+ +
yn . h 5
( xn − x0 )( xn − x1 ) ( xn − xn −1 )
Substituting these in Eq. (1), we have
y(7) = 31 + (0.4) × 11 +
Example 13
(0.4)(0.4 − 1) (0.4)(0.4 − 1)(0.4 − 2)
If D denotes the forward difference operator, then show that × ( −2) +
2! 3!
D4 y0 = y4 - 4y3 + 6y2 - 4y1 + y0
(0.4)(0.4 − 1)(0.4 − 2)(0.4 − 3)
Hence find the general expression for Dny0 in terms of y0, y1, ×4+ × ( −3)
4!
…, yn that does not involve the difference operators.
= 31 + 4.4 + 0.24 + 0.256 + 0.1248 = 36.0208
Solution \ The value of y at x = 7 is 36.0208.
We know that Dy0 = y1 - y0 Example 15
D2 y0 = Dy1 - D y0 Following table shows the values of a function y = f(x) at 0,
= (y2 - y1) - (y1 - y0) 2, 5 and 9
= y2 - 2y1 + y0 x 0 2 5 9
D y0 = D y1 - D y0
3 2 2 y = f(x) 6 15 27 40
= (y3 - 2y2 + y1) - (y2 - 2y1 + y0) = y3 - 3y2 + 3y1 - y0 Using the Lagrange’s interpolation formula, find y(6).
Solution dy 1 ( 2 p − 1) 2
∴ = ∆y0 + ∆ y0
Given values of y = f (x) are dx h 2!
x 0 2 5 9 (3 p 2 − 6 p + 2) 3
+ ∆ y0 +
Y = f(x) 6 15 27 40 3!
By Lagrange’s interpolation formula, we have dy
∴ at x = x0
( x − x1 )( x − x2 )( x − x3 ) dx
f ( x) = y0
( x0 − x1 )( x0 − x2 )( x0 − x3 ) 1 1 1 1 1
= ∆y0 − ∆ 2 y0 + ∆3 y0 − ∆ 4 y0 + ∆50 …
( x − x0 ( x − x2 )( x − c3 ) h 2 3 4 5
+ y1
( x1 − x0 )( x1 − x2 )( x1 − x3 ) ( At i = x0; p = 0)
∴
( x − x0 )( x − x1 )( x − x3 ) d2 y d dy d dy dp 1
+ y2
And = = =
( x2 − x0 )( x2 − x1 )( x2 − x3 ) dx 2 dx dx dp dx dx h
( x − x0 )( x − x1 )( x − x2 )
+ y3 2 6p−6 3 12 p 2 − 36 p + 22 4 1
( x3 − x0 )( x3 − x1 )( x3 − x2 ) ∆ y0 + ∆ y0 + ∆ y0
3! 4! h
( x − 2)( x − 5)( x − 9) ( x − 0)( x − 5)( x − 9)
∴ f ( x) = ×6 + × d2 y 1 2 6p−6 3 12 p 2 − 36 p + 22
(0 − 2)(0 − 5)(0 − 9) ( 2 − 0))( 2 − 5)( 2 − 9) 2 = 2 ∆ y0 + ∆ y0 +
dx h 3! 1!
( x − 0)( x − 2)( x − 9) ( x − 0)( x − 2)( x − 5)
15 + × 27 + × 40
(5 − 0)(5 − 2)(5 − 9) (9 − 0)(9 − 2)(9 − 5) ∆ 4 y0
(6 − 2)(6 − 5)(6 − 9)
Now, y(6) = f(6) = d2 y
( −2) × ( −5) × ( −9)
2
dx at x = x0
(6 − 0)(6 − 5)(6 − 9) (6 − 0)(6 − 2)(6 − 9)
×6+ × 15 + × 1 2 11 4 5 5
2 x( −3) × ( −6) −5 x − 3 x( −4) = ∆ y0 − ∆ y0 + 12 ∆ y0 − 6 ∆ y0 +
3
h2
(6 − 0)(6 − 2)(6 − 5) 4 45 162 80
2+ × 40 = − + + = 30.5807. \ By using Newton’s forward interpolation formula,
9× 7× 4 5 7 5 21 the first and second derivatives of y = f (x) at x = x0 are
dy
given by
Numerical Differentiation dx x = x0
In numerical differentiation, we find the derivatives by using 1 1 1 1 1
the interpolation formulae. = ∆y0 − ∆ 2 y0 + ∆3 y0 − ∆ 4 y0 + ∆5 y0 …
h 2 3 4 5
1. Derivatives using newton’s forward difference
interpolation formula: We know that the Newton’s and
forward difference interpolation formula is
p( p −1) 2 p( p − 1)( p − 2) d2 y 1 2 11 4 5 5
y = y0 + pD y0 + D y0 + 2 = 2 ∆ y0 − ∆ y0 + 12 ∆ y0 − 6 ∆ y0 + …
3
2! 3! dx x = x0 h
D 3y0 +…
Differentiating both sides wrt p, 2. Derivatives using newton’s backward difference
interpolation formula: We know that the Newton’s
dy 2 p −1 2 3 p2 − 6 p + 2 3 backward difference interpolation formula is y = yn +
= ∆y0 + ∆ y0 + ∆ y0 +
dp 2! 3! p( p +1) 2 p( p + 1)( p + 2)
p∇ yn + ∇ yn + + ∇3yn …
x − x0 dp 1 2! 3!
As p = = =
h dx h Differentiating on both sides wrt p,
dy dy dp ( 2 p − 1) 2 dy 2 p +1 2 3 p2 + 6 p + 2 3
Now = = [∆y0 + ∆ y0 = ∇yn + ∇ yn + ∇ yn +
dx dp dx 2! dx 2 3!
3 p2 − 6 p + 2 1 x − xn dp 1
+ ∆y0 + ] As p = =
3! h h dx h
dy dy dp Solution
∴ =
dx dp dx As we have to find the first two derivatives of y = f (x) at x
= 7, (end point of the given data), we use the derivatives’
2 p +1 2 3 p2 + 6 p + 2 3 1 formulae obtained from Newton’s backward interpolation
= ∇yn + ∇ yn + ∇ yn + formula.
2 ! 3 ! h
The backward difference table for the given data is
dy 1 2 p +1 2 3 p2 + 6 p + 2
∴ = ∇yn + ∇ yn + X y = f(x) Dy D2y D3y D4y D5y
dx h 2! 3!
2 4
4
3 ∇ yn + 3 8 3
7 -2
4 15 5 6
dy
dx 12 -8 2
x = xn 5 27 -3 8
9 0
1 1 1 1 1 6 36 -3
= ∇yn + ∇ 2 yn + ∇3 yn + ∇ 4 yn + ∇5 yn + ... 6
h 2 3 4 5
7 42
( At x = xn; p = 0)
∴
x y = f(x) First divided differences Second divided differences Third divided differences Fourth divided differences
5 100
294 − 100
= 97 202 − 97
7−5 = 21
7 294 10 − 5 27 − 21
900 − 294 =1
= 202 11 − 5
10 − 7 310 − 202 1−1
10 900 = 27 =0
11 − 7 33 − 27 13 − 5
1210 − 900 =1
= 310
11 1,210 11 − 10 13 − 7
409 − 310
= 33
2028 − 1210 13 − 10
= 409
13 2,028 13 − 11
y0 y1 y2 3h
yn−1 yn = ( y0 + 3 y1 + 3 y2 + y3 )
8
Similarly,
x
O x0 x1 x2 xn−1 xn
x6
3h
Geometrically, the curve y = f (x) is replaced by n straight ∫ f ( x )dx =
8
( y3 + 3 y4 + 3 y5 + y6 ) and so on.
line segments joining the points (x0, y0) and (x1, y1); (x1, y1) x3
and (x2, y2); …, (xn-1, yn-1) and (xn, yn). The area bounded by
the curve y = f (x) is then approximately equal to the sum of Adding all these integrals from x0 to xn where ‘n’ is a
the areas of n trapeziums as shown in the figure. multiple of 3, we get
xn
3h
∫ f ( x )dx = [(y0 + yn) + 3(y1 + y2 + y4 + y5 + …+ yn-2)
Simpson’s One-third Rule x0
8
[Three-point Quadrature] + 2(y + y + y + … + y )]
3 6 9 n-3
Substituting n = 2 in the Newton–Cotes quadrature formula
taking the curve through (x0, y0), (x1, y1) and (x2, y2) as a 3
The above rule is called Simpson’s rule which is
parabola, so that the differences of order higher than 2 8
becomes zero, we get applicable only when ‘n’ is a multiple of 3.
x0 + 2 h
1 Example 18
∫ f ( x )dx = 2h y0 + ∆y0 + ∆ 2 y0
6 2
x0
Evaluate: ∫ 1 + x 2 dx taking h = 0.2 using
h 0
= ( y0 + 4 y1 + y2 )
3 (i) Trapezoidal rule and
Similarly, 1
(ii) Simpson’s rd rule
x0 + 4 h
h 3
∫ f ( x )dx =
3
( y2 + 4 y3 + y4 )
Solution
x0 + 2 h
Here, a = 0, b = 2, h = 0.2
x0 + nh
h
∫ f ( x )dx =
3
( yn − 2 + 4 yn −1 + yn )
So, n =
b−a 2−0
= = 10
x0 + ( n − 2 ) h h 0.2
1 1.0198 1.077 1.1661 1.2806 1.414 1.562 1.7204 1.8867 2.059 2.236
y = 1 + x2 y0 y1 y2 y3 y4 y5 y6 y7 y8 y9 y10
2 Single-step Methods
∫ + x 2 dx
1 1. Taylor’s series method
0
2. Picard’s method of successive approximation
h ( y0 + y10 ) + 4( y1 + y3 + y5 + y7 + y9 ) Multi-step Methods
=
3 + 2( y2 + y4 + y6 + y8 ) 1. Euler’s method
0.2 2. Modified euler’s method
=
[(1 + 2.236) + 4(1.0198 + 1.1661 + 1.414
3 3. Runge–Kutta method
+ 1.7204 + 2.059) + 2(1.077 + 1.2806 + 1.562 + 4. Predictor–Corrector methods
[Milne’s and Adam’s]
1.8867)]
∴ In general, Solution
h2 f (x, y) = 1 + xy
y n+1 = yn + hyn′ + y ″ +… will be the iterative formula. x0 = 0, y0 = 1
2! n
x
Example 22 The first approximation y1 = y0 + ∫ f ( x, y0 )dx
dy x0
Given = x - y2 with the initial condition y(0) = 1 x x
dx = 1 + ∫ 1 + xdx
1+ ∫ 1 + xy0 dx
Find y (0.1) using Taylor series method with step size 0.1. x0 0
x2
Solution y1 = 1 + x +
2
f (x, y) = x - y2 (0.1) 2
x = 0.1, x0 = 0, y0 = 1, h = 0.1 At x = 0.1, y1 = 1 + (0.1) + = 1.105
2
y′ = x - y2 ⇒ y′(0) = x0 - y02 = - 1; The second approximation y2,
y″ = 1 - 2yy′ ⇒ y″(0) = 1 - 2y0y0′ x
dy x0
Given the differential equation = f (x, y)(1) x
dx
⇒ y3 = 1 + ∫ (1 + xy2 )dx.
Integrate Eq. (1) from x0 to x, we get
0
x x
x
⎛ ⎡ x 2 x 3 x 4 ⎤⎞
∫ dy = ∫ f ( x, y)dx 1+ ∫ ⎜⎝1 + x ⎢⎣1 + x + + + ⎥⎟ dx
x0 x0
0
2 3 8 ⎦⎠
x
x
⎛ x3 x 4 x5 ⎞
⇒ y( x ) − y( x0 ) = ∫ f ( x, y)dx 1+ ∫ ⎜⎝1 + x + x 2 + + + ⎟ dx
x0
0
2 3 8⎠
x
x2 x3 x 4 x5 x6
⇒ y( x ) = y( x0 ) + ∫ f ( x, y)dx (2) =1+x+ + + + +
x0 2 3 8 15 48
Put y = y0, we get the first approximation, At x = 0.1,
x
(0.1) 2 (0.1)3 (0.1) 4 (0.1)5 (0.1)6
y3 = 1 + (0.1) +
∫
yn = y0 + f ( x, yn −1 )dx.
2
+
3
+
8
+
15
+
48
x0
(0.1) 2 (0.1)3 (0.1) 4 (0.1)5 (0.1)6
Example 23 + + + +
2 3 8 15 48
dy = 1 + 0.1 + 0.005 + 0.0003 + 0.0000125 +
Given = 1 + xy and y (0) = 1. Evaluate y (0.1) by Picard’s
dx 0.0000006 + 0.00000002
method upto three approximations. y3 = 1.105313
Exercises
1. Three of the roots of the equation x4 + lx3 + mx2 + nx + 3. If the equation x6 + 5x5 + 11x4 + 34x2 + 20x + 24 = 0 has
24 = 0 are 3, 1 and -2. Which of the following could be exactly four non-real roots, then the number of negative
the value of l + m - n? roots is
(A) 0 (B) 1 (A) 1 (B) 0
(C) 2 (D) 3 (C) 3 (D) 2
4. A student finds, by trial, two negative and one posi-
2. If one of the roots of the equation x3 + 5x2 - 12x - 36 = tive root(s) of the equation x5 + 5x4 + 2802x + 3024
0 is thrice another root, then the third root is = 103x3 + 329x2. How many non-real roots does the
(A) -6 (B) 3 equation have?
89 (A) 0 (B) 1
(C) -2 (D) −
13 (C) 2 (D) 4
5. If the equation 3x4 - 13x3 + 7x2 + 17x + a - 10 = 0 has 15. The Newton’s iterative formula to find the value of 3
N
exactly three positive roots, then a can be is
(A) 11 (B) 4 N
(A) xi +1 = 2 xi − 2
(C) 13 (D) 12 xi
6. If two of the roots of the equation x3 + 3x2 - 10x - 24 = 1 N
0 are such that one is twice the other, then the third root (B) xi +1 = xi − 2
3 xi
is
(A) -4 (B) -3 1 N
(C) xi +1 = 2 xi + 2
(C) -2 (D) 3 3 xi
7. If 2.236146 is an approximation to 5, then the rela- 1 N
(D) xi +1 = 2 xi − 2
tive error is 3 xi
(A) 3.4883 × 10-5 (B) 4.8383 × 10-5
16. Find the second approximation to the cube root of 24
(C) 8.3483 × 10 -4
(D) 5.8438 × 10-4
correct to three decimal places using Newton’s iterative
8. The least number of terms required to be considered formula.
1 (A) 2.695 (B) 2.885
in the Taylor’s series approximation of f ( x ) =
(2 + x) (C) 3.001 (D) None of these
about x = 0 such that the truncation error is at most 5 × 17. The Newton’s iterative formula to find the value of
10-4 for x ∈ [0, 1] is 1
(A) 3 (B) 5 is
N
(C) 6 (D) 8 (A) xi+1 = xi(2 + xiN)
9. Let f (x) = x3 - x - 5 = 0. By bisection method first two (B) xi+1 = xi(2 - xiN)
approximations x0 and x1 are 1.5 and 2.25 respectively, (C) xi+1 =xi2(2 + xiN)
then x2 is (D) None of these
(A) 1.625 (B) 1.875
18. Find the reciprocal of 22 using Newton–Raphson
(C) 1.999 (D) None of these
method.
10. Find the fourth approximation of the root of the equa- (A) 0.0454545 (B) 0.4504504
tion x3 + x - 11 = 0, between 2 and 3, using Bisection (C) 0.54054 (D) None of these
method. 19. If the first approximation of the root of x3 - 3x - 5 = 0
(A) 1.925 (B) 2.832 is (x0 =) 2, then find x1 by Newton–Raphson method.
(C) 2.5215 (D) 2.0625
(A) 2.2806 (B) 2.2790
11. The absolute error bisection method is (C) 2.3333 (D) None of these
1 20. Find the first approximation of the real root by Newton–
(A) 2n (B) n |b - a|
2 Raphson method for x4 + x3 - 7x2 - x + 5 = 0 by taking
1 x0 = 2.
(C) (D) |b - a|2n
|b−a| (A) 2.066 (B) 2.981
(C) 2.819 (D) None of these
12. If the first two approximations x0 and x1 to a root of x3
- x - 4 = 0 are 1.666 and 1.780 respectively, then find 21. If y = 2.6 + 0.7x is a line that fits the data:
x2 by Regula–Falsi method. x -2 -1 0 1 2
(A) 1.974 (B) 1.794 y 1 2 3 K 4
(C) 1.896 (D) None of these
Then the value of K is
13. Find the second approximation to the root of the equa- (A) 3 (B) 5
tion 2x - 5 = 3sin x between (2, 3) using the method of (C) 6 (D) 7
false position.
(A) 2.2523 (B) 2.012 22. If a curve y = abx is fitted to the following data, then the
value of ‘b’ is
(C) 2.8804 (D) None of these
x -2 -1 0 1 2
14. For N = 28 and x0 = 5.5, the first approximation to N
by Newton’s iteration formula is y 11 13 20 25 34
23. For a set of 5 pairs of values (x0, y0), (x1, y1), (x2, y2) (x3, 3
1
y3) and (x4, y4) of (x, y), if D3y0 = 4 and D3y1 = 10, then 29. Find the value of ∫ 1 + x 2 dx taking four intervals by
2
the value of ∇4y4 is trapezoidal rule and also find the error when compared
(A) 4 (B) 6 to its exact value.
(C) 10 (D) 14 (A) 0.1759, 0.000004 (B) 0.1826, 0.04
24. The value of y(1.5) computed from the following data (C) 0.1953, 0.004 (D) 0.1423, -0.0004
using Newton’s forward interpolation formula is 1
x2
x 1 2 3 4 5
30. Find ∫ 1 + 8 x3 dx using Trapezoidal rule by taking 4
0
y 6 7 12 21 34 strips.
(A) 6 (B) 6.5 (A) 0.0911 (B) 0.9011
(C) 0.1901 (D) None of these
(C) 7 (D) 7.5 1.5
dx
25. The Lagrange’s interpolation polynomial correspond- 31. The estimate of ⋅
∫ x
obtained using Simpson’s rule
ing to the pairs of values of x and y given in the follow- 0.5
ing table is with three point function evaluation exceeds the exact
value by
x 1 3 4 7 (A) 0.235 (B) 0.068
y 36 16 9 72 (C) 0.024 (D) 0.012
6
(A) x3 - 6x2 + 9x + 36
(B) x3 - 6x2 + 18x - 45
32. Find the value of ⋅
∫ x log xdx taking 4 strips by
2
(C) 3x3 + 4x2 - 5x + 27 1
Simpson’s rd rule upto four decimals.
(D) x3 - 7x2 + 5x + 37 3
(A) 21.8901 (B) 22.8661
dy d2 y (C) 23.6581 (D) None of these
26. The values of and at x = 5 from the following
dx dx 2 π /2
table respectively are 1
33. Evaluate ∫ sin x dx by Simpson’s
3
rule using six
0
x 0 1 2 3 4 5 intervals.
y = f(x) 1 4 9 16 21 28 (A) 0.97768 (B) 0.98869
(C) 0.99968 (D) None of these
(A)15.00 and 26.45
(B)13.73 and 23.33 34. Find the maximum error in evaluating the above when
compared to its exact value.
(C)17.13 and 31.42
(A) 0.000032 (B) 0.00032
(D)21.64 and 43.00 (C) 0.00000032 (D) 0.0032
dy 3
1 3
27. The value of at x = 12 from the table given below is 35. Evaluate ∫ dx by using Simpson’s rule by
dx 2+ x 2 8
0
x 10 15 20 25 taking 3 strips.
y = f(x) 354 332 291 260 (A) 0.507 (B) 0.5007
(C) 0.7839 (D) None of these
(A) -3.9427 (B) 4.6125 dy
(C) -0.4652 (D) 1.3549 36. If = 1 - 3xy2, y (0) = 0, then by Taylor’s method y
dx
dy (0.1) =
28. The magnitude of error when at x = 2 is found by
dx (A) 0.02 (B) 0.001
1 (C) 0.05 (D) 0.1
Newton’s forward interpolation formula for y = y =
x dy
using the following data is 37. If = 2x + y, y (0) = 1, the Picard’s approximate of y
dx
upto second degree terms is
x 2 4 6 8
x2
y = 1/x 0.5000 0.2500 0.1667 0.1250 (A) 1 + x + x2 (B) 1 + x +
2
(A) 0.0005 (B) 0.0025 x2
(C) 1 - x - (D) None of these
(C) 0.0125 (D) 0.0625 2
38. If y0 = 1, f (x0, y0) = 1.2, f (x1, y1(0)) = 1.9312, h = 0.3, by 42. For the above problem find y(0.8) using Milne’s correc-
modified Euler’s formula y1 = (1) tor formula.
(A) 1.4696 (B) 1.2015 (A) 0.3046 (B) 0.4036
(C) 1.325 (D) 1.525 (C) 0.436 (D) None of these
39. Using Euler’s modified method, find a solution of the
dy Direction for questions 43 and 44:
equation = x + y with y(0) = 1 at y(0.2).
dx 43. Find using the Adams–Bashforth corrector formula y
(A) 1.3902 (B) 1.2309 dy 1
(0.4), for the differential equation = xy , given
(C) 1.3092 (D) None of these dx 2
dy y(0.1) = 1.01, y(0.2) = 1.022, y (0.3) = 1.023, y01 = 0, y11
40. Find k1, by Runge–Kutta method of fourth order if
dx = 0.0505, y21 = 0.1022, y31 = 0.1535.
= 2x + 3y2 and y(0.1) = 1.1165, h = 0.1.
(A) 0.3993 (B) 0.9393 (A) 1.5418 (B) 1.0410
(C) 0.3939 (D) None of these (C) 1.4100 (D) None of these
44. For the above differential equation find y(0.5) using
Direction for questions 41 and 42: Adams–Bashforth predictor formula.
dy (A) 1.00463 (B) 1.06463
41. Find y(0.8) by Milne’s predictor formula, given =
dx (C) 1.00599 (D) None of these
x - y2, y2 = 0.0795, y (0.6) = 0.1762, y0 = 0.0000, y11 =
0.1996, y21 = 0.3937, y31 = 0.5689, h = 0.2 45. The Runge–Kutta methods has the error of order _____.
(A) 0.9304 (B) 0.4930 (A) 1 (B) 3
(C) 0.3049 (D) None of these (C) 5 (D) 2
7. In Newton–Raphson iterative method, the initial 9. For step-size, Dx = 0.4, the value of following integral
guess value (xinj) is considered as zero while finding 1
using Simpson’s rule is ________.
the roots of the equation: f (x) = -2 + 6x - 4x2 + 0.5x3. 3
The correction, Dx, to be added to xinj in the first itera- 0.8
tion is ______. [GATE, 2015] ∫ (0.2 + 25 x − 200 x 2 + 675 x3 − 900 x 4 + 400 x5 )dx
8. The quadratic equation x - 4x + 4 = 0 is to be solved
2 0
Answer Keys
Exercises
1. D 2. B 3. D 4. A 5. B 6. D 7. A 8. C 9. B 10. D
11. B 12. B 13. C 14. A 15. C 16. B 17. B 18. A 19. C 20. A
21. A 22. C 23. B 24. A 25. D 26. B 27. A 28. D 29. D 30. A
31. D 32. B 33. C 34. B 35. C 36. D 37. A 38. A 39. B 40. C
41. C 42. A 43. B 44. B 45. C
@getstudyfeverbot