5.chapter-5 Numerical Methods Questions
5.chapter-5 Numerical Methods Questions
CHAPTER- 5
NUMERICAL METHODS QUESTIONS
1. Given the differential equation y’ = x-y with initial conditions y(0) = 0. The value of
y(0.1) calculated numerically up to the third place of decimal by the second order Runge-
Kutta method with step size h = 0.1 is (GATE-1993-All)
dy
2. Back ward Euler method for solving the differential equation = f ( x, y ) is specified by
dx
(GATE-1994-CS)
(a) y n+1 = y n + hf ( xn , y n ) (b) y n+1 = y n + hf ( xn+1 , y n+1 )
5. Let f ( x ) = x − cos x . using Newton Raphson method at the (n+1)th iteration. The point
x n +1 is Computed from x n as (GATE-1995-CS)
6. The formula used to compute an approximation for the second derivative of a function f
at a point x0 is (GATE-1996-CS)
f ( x0 + h ) + f ( x0 − h ) f ( x0 + h ) + f (x0 − h )
(a) (b)
2 2h
f ( x0 + h ) + 2 f ( x0 ) + f ( x0 − h ) f ( x0 + h ) − 2 f ( x 0 ) + f ( x0 − h )
(c) (d)
h2 h2
7. The Newton-Raphson iteration formula for finding 3 c , where c > 0 is,
3 3
2 xn + 3 c 2 xn − 3 c
(a) x n +1 = 2
(b) x n +1 = 2
(GATE-1996-CS)
3xn 3xn
3 3
2 xn + c 2 xn − c
(c) x n +1 = 2
(d) x n +1 = 2
3xn 3xn
8. The Newton-Raphson method is used to find the root of the equation x2-2. If the
iterations are started from -1, then the iteration will (GATE-1997-CS)
(a) converges to -1 (b) converges to √2
(c) converges to - √2 (d) not converge 2
9. The Newton- Raphson method is to be used to find the root of the equation and f’(x) is
(GATE-1999)
(a) always (b) only if f is a polynomial
(c) only if f(x0)<0 (d) none of the above
10. Given a>0, we wish to calculate its reciprocal value 1/a by using Newton-Raphson
method for f(x) = 0. For a=7 and starting wkith x0 = 0.2. the first 2 iterations will be
(GATE-2005)
(a) 0.11, 0.1299 (b) 0.12, 0.1392 (c) 0.12, 0.1416 (d) 0.13, 0.1428
11. Given a>0, we wish to calculate its reciprocal value 1/a by using Newton-Raphson
method for f(x) = 0. The Newton-Raphson algorithm for the function will be
(GATE-2005)
1 a a 2
(a) x k +1 = x k + (b) xk +1 = xk + xk
2 xk 2
2 a 2
(c) xk +1 = 2 xk − axk (d) xk +1 = xk − xk
2
12. Starting from x0=1, one step of Newton-Raphson method in solving the equation
x 3 + 3 x − 7 = 0 Gives the next value x1 as (GATE-2005)
(a) x1 = 0.5 (b) x1 = 1.406 (c) x1= 1.5 (d) x1 = 2
13. For solving algebraic and transcendental equation which one of the following is used?
(GATE-2005)
(a) Coulomb’s theorem (b) Newton-Rapson method
(c) Euler’s method (d) Stroke’s method
14. Newton-Raphson formula to find the roots of an equation f(x) = 0 is given by
(GATE-2005)
f ( xn ) f ( xn )
(a) xn+1 = xn − (b) xn+1 = xn +
f ' ( xn ) f ' ( xn )
f ( xn ) xn f ( xn )
(c) xn+1 = (d) xn+1 =
xn f ' ( xn ) f ' ( xn )
15. The real root of the equation xe x = 2 is evaluated using Newton-Raphson’s method. If the
first approximation of the value of x is 0.8679 the second approximation of the value of x
correct to three decimal places is (GATE-2005)
(a) 0.865 (b) 0.853 (c) 0.849 (d) 0.838
16. Match the following and choose the correct combination (GATE-2005)
Group-I Group-П
E. Newton-Raphson method non-linear equations 1. Solving
F. Rungue-kutta method linear simultaneous equations 2. Solving
G. Simpson’s Rule ordinary differential equations 3. Solving
H. Gauss elimination integration method 4. Numerical
5. Interpolation
6. Calculation of Eigen values
(a) E-6, F-1, G-5, H-3 (b) E-1, F-6, G-4, H-3
(c) E-1, F-3, G-4, H-2 (d) E-5, F-3, G-4, H-1
17. The polynomial P(x) = x5+x+2 has (GATE-2007)
(a) All real roots (b) 3 real and 2 complex roots
(c) 1 real and 4 complex roots (d) all complex roots
18. Identify the Newton-Raphson iteration scheme for finding the square root of 2
(GATE-2007)
1 2 1 2
(a) x n +1 = x n + (b) x n +1 = x n −
2 xn 2 xn
2
(c) x n +1 = (d) xn+1 = 2 + xn
xn
19. Given that one root of the equation x 3 − 10 x 2 + 31 x − 30 = 0 is 5 then other roots are
(GATE-2007)
(a) 2 and 3 (b) 2 and 4 (c) 3 and 4 (d) -2 and -3
20. The following equation needs to be numerically solved using the Newton-Raphson
method x 3 + 4 x − 9 = 0 . The iterative equation for this purpose is (k indicates the iteration
level) (GATE-2007)
3 3
2 xk + 9 3xk + 9
(a) x k +1 = 2
(b) x k +1 = 2
3 xk + 4 2 xk + 4
2
3 2 4 xk + 3
(c) xk +1 = xk − 3xk + 4 (d) x k +1 = 2
9 xk + 2
21. Match the exercise and choose the correct one out of the alternatives A,B,C,D
(GATE-2007)
Group-I Group-П
P. Second order differential equations 1. Runge-kutta method
Q. Non-linear algebraic equations 2. Newton-Raphson method
R. Linear algebraic equations 3. Gauss elimination
S. Numerical integration 4. Simpson’s rule
(a) P-3, Q-2, R-4, S-1 (b) P-2, Q-4, R-3, S-1
(c) P-1, Q-2, R-3, S-4 (d) P-1, Q-3, R-2, S-4
22. The equation x 3 − x 2 + 4 x − 4 = 0 is to be solved using the Newton- Raphson method. If
x = 2 taken as the initial approximation of the solution then the next approximation using
this method will be (GATE-2007)
(a) 2/3 (b) 4/3 (c) 1 (d) 3/2
23. Equation e x − 1 = 0 is required to be solved using Newton’s method with an initial guess
x0 = −1. Then after one step of Newton’s method estimate x1 of the solution will be given
by (GATE-2008)
(a) 0.71828 (b) 0.36784 (c) 0.20587 (d) 0.0000
24. It is known that two roots of the non-linear equation x 3 − 6 x 2 + 11 x − 6 = 0 are 1 and 3.
The third Root will be (GATE-2008)
(a) j (b) – j (c) 2 (d) 4
25. The recursion relation to solve using Newton-Raphson method is (GATE-2008)
(a) xn+1 = e − xn (b) xn+1 = xn − e − xn
=
(1 + xn )e − x n
x − (1 + xn )e − xn − 1
2
(c) xn+1 (d) x n +1 = n
(1 + e ) − xn
x n − e − xn
1 R
26. The Newton-Raphson iteration x n +1 = x n + can be used to compute the
2 xn
(GATE-2008)
1 117 117
(a) x k +1 = x k + (b) x k +1 = x k −
2 x k x k
x 1 117
(c) xk +1 = xk − k (d) x k +1 = x k − x k +
117 2 x k
28. During the numerical solution of a first order differential equation using the Euler (also
known as Euler Cauchy) method with step size h, the local truncation error is of the order
of (GATE-2009)
(a) h2 (b) h3 (c) h4 (d) h5
dy (x )
29. Consider a differential equation − y (x ) = x with initial condition y (0 ) = 0 . Using
dx
euler’s first order method with a step size of 0.1 then the value of y(0.3) is
(GATE-2010)
(a) 0.01 (b) 0.031 (c) 0.0631 (d) 0.1
30. Newton-Rap son method is used to compute a root of the equation x 2 − 13 = 0 with 3.5 as
the initial value the approximation after one iteration is (GATE-2010)
(a) 3.575 (b) 3.677 (c) 3.667 (d) 3.607
1 N 1 2 N
(a) xi +1 = xi + (b) xi +1 = xi + 2
2 xi 2 xi
1 N2 1 N
(c) xi +1 = x
i + (d) xi +1 = xi −
2 xi 2 xi
33. Solution, the variable x1 and x 2 for the following equations is to be obtained by
employing the Newton-Raphson iteration method (GATE-2011)
10 x 2 − sin x1 − 0.8 = 0
Equation 2
10 x 2 − 10 x 2 − cos x1 − 0.6 = 0
Assuming the initial values x1 = 0.0 and x2 = 1.0 the Jacobean matrix is
10 − 0.8 10 0 0 − 0.8 10 0
(a) (b) (c) (d)
0 − 0.6 0 10 10 − 0.6 10 −10
1.5
dx
34. The estimate of ∫ x obtained using simpson’s rule with three-point function evaluation
0.5
39. The iteration step in order to solve for the cube roots of a given number ‘N’ using the
Newton-Raphson’s method is
1 1 N
(a) xk +1 = xk +
3
( N − xk3 ) (b) xk +1 = 2 xk +
3
xk2
1 1 N
(c) xk +1 = xk −
3
( N − xk3 ) (d) xk +1 = 2 xk −
3
xk2
40. The real root of the equation 5 x − 2cos x = 0 (up to two decimal accuracy) is
dy
41. Consider an ordinary differential equation = 4t + 4. If x = x0 at t = 0 , the increment
dx
in x calculated using Runge-Kutta fourth order multi-step method with a step size of
∆t = 0.2 is
(a) 0.22 (b) 0.44 (c) 0.66 (d) 0.88
If the equation sin ( x ) = x is solved by Newton Raphson’s method with the initial guess
2
42.
of x = 1, then the value of x after 2 iterations would be
3 9
45. Simpson’s 1 rule is used to integrate the function f(x) = x 2 + b/w x =0 and x =1
3 5 5
using least numbers of subintervals the value of integral is (GATE – ME-15)
46. The values of the function f(x) at 5 discrete points are given below (GATE – ME-15)
x 0 0.1 0.2 0.3 0.4
f(x) 0 10 40 90 160
0.4
Using Trapezoidal rule with step size of 0.1, the value of ∫
0
f ( x ) dx
47. Using a unit stpe size the value of ∫ x ln xdx by trapezoidal rule
1
(GATE – ME-15)
48. N-R method is used to find the roots the equation x3 + 2 x 2 + 3x − 1 = 0 . If the initial
guesses x0 =1, then value of x after 2nd iterations is (GATE – ME-15)
∫ (0.2 + 25 x − 200 x
2
+ 675 x 3 − 900 x 4 + 400 x 5 )dx (GATE – CE-15)
0
(GATE – ME-16)
55. Gauss-Seidel method is used to solve the following equations (as per the given order):
j1 + 2j2 + 3j3 = 5
2j1 + 3j2 + j3 = 1
3j1 + 2j2 + j3 = 3
Assuming initial guess as j1 = j2 = j3 = 0, the value of j3 after the first iteration is ____
(GATE – ME-16)
56.Numerical integration using trapezoidal rule gives the best result for a single variable
function, which is (GATE – ME-16)
(A) linear (B) parabolic (C) logarithmic (D) hyperbolic
57.The error in numerically computing the integral þU j + j j using the trapezoidal
ù
rule with three intervals of equal length between 0 and û is __________ (GATE – ME-16)
58. Consider the first order initial value problem (GATE – EC-16)
y' = y + 2x − x 2 , y (0) = 1, (0 ≤ x < ∞ )
with exact solution y( x) = x 2 + e x . For x = 0.1 the percentage difference between the exact
solution and the solution obtained using a single iteration of the second-order Runge-Kutta
method with step-size h = 0.1 is _______
Given y = x − y.......(1)
1
dy
= f ( x, y ) where f ( x, y ) = x − y
dx
Also given y ( 0 ) = 0.......( 2 )
and h = 0.1
y ( 0.1) = ?
1
Let 2nd order rungue-Kulta method is given by y1 = y ( x1 ) = y0 + ( k1 + k2 )
2
where k1 = hf ( x0 , y0 ) and k2 = hf ( x0 + h, y0 + k1 )
k1 = ( 0.1) [ x0 − y0 ] = ( 0.1)( 0 − 0) = 0
k2 ( 0.1) ( x0 + h ) − ( y0 + k1 )
1
y1 = y ( 0.1) = 0 + ( 0 + 0.01)
2
0.01 1 1
= = =
2 2 × 100 200
2Sol. (a)
(
Back ward Euler method is given by yn+1 = yn + hf xn−1, yn−1 )
3Sol. (b)
Let f ( x ) = x − cos x = 0
−π 0 π 2π
The curves y = x and y = cos x intersect at only one point in the interval ( 0, π )
Let x = b ( or ) x 2 − b = 0
Let f ( x ) = x − b and f ( x) = 2x
2 1
f ( xn )
xn +1 = xn − 1 = xn −
( xn2 − b )
f ( xn ) 2 xn
⇒ f 1 ( x ) = 1 + sin x
Newton-Raphson method is given by
f ( xn )
X n +1 = xn −
f 1 ( xn )
xn − cos ( xn )
xn +1 = xn −
1 + sin ( xn )
6Sol. (d)
The finite difference approximation for the 2nd derivative of a function f at a apint x0 is
f ( x0 + h ) − 2 f ( x0 ) + f ( x0 − h )
f 11 ( x ) =
h2
7Sol. (c)
3
Let x = 3 c then x − c = 0
⇒ f ( x ) = x3 − c = 0 and f 1 ( x ) = 3x2
Newton-Raphson method is givne by
f ( xn )
xn+1 = xn −
f 1 ( xn )
= xn −
(x 3
n − c)
=
3 xn3 − xn3 + c
3 xn2 3 xn2
2 xn3 + c
xn +1 =
3 xn2
8sol. (c)
Let f ( x ) = x − 2 and x0 = −1
2
f ( xn )
xn+1 = xn −
f 1 ( xn )
= xn −
(x 2
n − 2)
=
(x 2
n + 2)
2 xn 2 xn
xn+1 =
(x 2
n + 2)
2 xn
x02 + 2 1 + 2 −3
x1 = = = = −.15
2 x0 −2 2
x 2 + 2 ( −1.5 ) + 2
2
x2 = 1 =
2 x1 2 ( −1.5 )
9 17
+2
=4 = 4 = −1.4166
−3 −3
x22 + 2 ( −1.4166 ) + 2
2
x3 = =
2 x2 2 ( −1.4166 )
2.0067 + 2
= = −1.4141
−2.8332
Continuous like this, the value convency ~ −1.4141
9Sol. (d)
Newton Raphson formula converges provided the initial approximation x0 is chosen
sufficiently close to the root
10Sol. (b)
1 1
Let x = ( or ) − a = 0
a x
1
Taking f ( x ) = −a
x
1
⇒ f 1 ( x) = −
x2
Newton Raphson formula gives
f ( xn )
xn+1 = xn −
f 1 ( xn )
1
− a
x
= xn − n −2 = 2 xn − axn2
− xn
x1 = 0.12
= 0.24 − 7 ( 0.0144 )
= 0.24 − 0.1008 = 0.1392
∴ x2 = 0.1392
11Sol. (c)
1 1
Let x = ( or ) − a = 0
a x
1 1
Then take f ( x ) = − a and f 1 ( x ) = − 2
x x
f ( Xn )
Now the Newton Raphson formula gives X n+1 = X n −
f 1( Xn )
1
− a
X
= Xn − n = X + 1 − a X 2
1 n n
− 2 Xn
Xn
f ( X0 ) f (1)
X1 = X 0 − =1− 1
f ( X0 )
1
f (1)
= 1−
( −3) = 3 = 1.5
6 2
∴ X 1 = 1.5
13Sol. (b)
Newton Raphson method is one of the method to solve algebraic and transcendental
equations.
14Sol. (a)
Newton-Raphson formula is
f ( Xn )
X n+1 = X n − n = 0,1,2,3,.......
f 1( Xn )
15Sol. (b)
Given f ( x ) = xe − 2 = 0
x
and x1 = 0.8679 (Q f ( x ) = xe
1 x
+ ex )
f ( x1 )
x2 = x1 −
f 1 ( x1 )
= 0.8679 −
( 0.8679e 0.8679
− 2)
( 0.8679e 0.8679
+ e 0.8679 )
= 0.853
16Sol. (c)
E − 1, F − 3, G − 4, H − 2
17Sol. (c)
Given p ( x ) = x + x + 2
5
The signs of all the terms p ( x ) are same. Then p ( x ) = 0 does one change of sign
from − to +
∴ p ( x ) = 0 has at most one negative root
The degree of p ( x ) = 0 is odd then the equation has at least one real root.
But the total roots of p ( x ) = 0 are five. Out of five roots one is negative real root and
remaining 4 are complex roots.
18Sol. (a)
Let x = 2 ( or ) x 2 − 2 = 0
Taking f ( x ) = x − 2 and f ( x ) = 2x
2 1
Newton-Raphson’s formula is
f ( Xn )
X n+1 = X n −
f 1( Xn )
= Xn −
(X 2
n − 2)
=
2 X n2 − X n2 + 2
2Xn 2Xn
X n2 + 2 1 2
∴ X n−1 = = Xn +
2Xn 2 Xn
19Sol. (a)
By verification, 2 and 3 are the roots of a given equation
x 3 − 10 x 2 + 31x − 30 = 0
i.e. f ( 2 ) = 23 − 10 ( 2 ) + 31( 2 ) − 30 = 0
3
and f ( 3) = 3 − 10 ( 3) + 31( 3) − 30 = 0
3 2
( x − 5) ( x 2 − 5x + 6 ) = 0
( x − 5) ( x − 3)( x − 2 ) = 0
∴ x = 5,3, 2
20Sol. (a)
Given f ( x ) = x + 4 x − 9 = 0
3
⇒ f 1 ( x ) = x2 + 4
Newton-Raphson formula is
f ( Xk )
X k +1 = X k −
f 1( Xk )
= Xk −
( X + 4 X − 9)
3
k k
(3 X + 4) 2
k
3 X k3 + 4 X k − X k3 − 4 X k + 9
=
( 3 X k2 + 4 )
2 X k3 + 9
∴ X k +1 =
3 X k2 + 4
21Sol. (c) P-1, Q-2, R-3, S-4
(1) Simpson’s Rule is one of the numerical integration technique (method).
(2) Gauss-elimination method is used to solve only system of linear algebraic equations
(3) Runge-Kutta method is used to solve the ordinary differential equations.
(4) Newton-Raphson method is used to solve the linear and non-linear algebraic equation
22Sol. (b)
Newton-Raphson formula
f ( Xn )
is X n+1 = X n −
f 1( Xn )
Given f ( x ) = x − x + 4 x − 4 = 0 and x0 = 2
3 2
f ' ( x ) = 3x 2 − 2 x + 4
f ( X0 )
X1 = X 0 −
f 1 ( X0 )
X1 = 2−
(2 3
− 22 + 4 ( 2 ) − 4 )
3( 2 ) − 2 ( 2 ) + 4
2
8
= 2−
12
4
∴ x1 =
3
23Sol. (a)
Given f ( x ) = e − 1 = 0 and x0 = −1
x
⇒ f 1 ( x ) = ex
Newton-Raphson’s formula is
f ( Xn )
X n+1 = X n −
f 1( Xn )
f (X )
X 1 = X 0 − 1 0 = −1 −
( e − 1) −1
f ( X0 ) e −1
1
− 1
e
= −1 = −1 − (1 − e )
1
e
x1 = −2 + e
x1 = 0.71828
24Sol. (c)
d
For the equation ax 3 + bx 2 + cx + d = 0 , product of roots =
a
∴ For the given equation let X be the third root
∴ 1× 3 × X = 6
∴ X =2
25Sol. (c)
Given f ( x ) = x − e
−x
=0
⇒ f 1 ( x ) = 1 + e− x
Newton – Raphson formula is
f ( Xn )
X n+1 = xn −
f 1( Xn )
= Xn −
(X −e ) n
− Xn
(1 + e ) − Xn
X n + X ne− X n − X n + e− X n
=
(
1 + e− X n )
e − X n (1 + X n )
=
(1 + e )
− Xn
26Sol. (c)
1 R
The given Newton’s iterative formulae X n +1 = Xn +
2 Xn
Let us suppose the formula converges to the root after n iterations
Then X n = X n +1 = x ( root )
1 R
The formula becomes X = X +
2 X
∴ X= R
27Sol. (a)
Given f ( x ) = x − 117 = 0
2
⇒ f 1 ( x ) = 2x
Newton-Raphson’s formula is
f ( xk )
xk +1 = xk −
f 1 ( xk )
xk +1 = xk −
(x2
k − 117 )
2 xk
1 117
∴ xk +1 = xk +
2 xk
28Sol. (a)
( )
In the Euler method, the truncation error is proportional to h 2 denoted as 0 b 2
29Sol. (b)
dy
Given − y = x → (1)
dx
and y ( 0 ) = 0 → ( 2 )
x2 = x0 + 2h = 0 + 2 ( 0.1) = 0.2
x3 = x0 + 3h = 0 + 3 ( 0.1) = 0.3
Euler’s first order method is given by
dy
y1 = y0 + hf ( x0 , y0 ) = y0 + h
dx p
y2 = y1 + hf ( x1 , y1 )
y3 = y2 + hf ( x2 , y2 )
Newton-Raphson formula is
f ( Xn )
X n+1 = X n −
f 1( Xn )
f ( X0 )
X1 = X 0 −
f 1( X0 )
( 3.5)2 − 13
= 3.5 − Q f 1 x = 2x
( ( ) )
2 ( 3.5)
Given f ( x ) = x + x − 3 = 0 & x0 = 2
1
f 1 ( x) = 1+
2 x
Newton-Raphson formula is
f ( Xn )
X n+1 = X n −
f 1( Xn )
f ( X0 )
⇒ X1 = X 0 −
f 1( X0 )
= 2−
(2 + 2 −3 ) = 1.6939
1
1 +
2 2
X1 = 1.6939
32Sol. (a)
Given f ( x ) = x − N = 0
2
⇒ f 1 ( x ) = 2x
Newton-Raphson formula is
f ( Xi )
X i +1 = X i −
f 1 ( Xi )
= Xi −
(X i
2
− N)
=
2 X i2 − X i2 + N
2Xi 2Xi
1 N
X i +1 = Xi +
2 Xi
33Sol. (b)
Given 10 x2 sin x1 − 0.8 = 0
u x u x2
Jk = 1
vx1 vx2
10 0
J =
0 10
34Sol. (d)
X 0.5 1 1.5
1 2
f (X) = 2 1
X 3
1.5
1 h
By simpson’s rule ∫ X dx = 3 ( y
0.5
0 + 4 y1 + y2 )
1
= ( 2 + 4 + 0.666 ) = 1.111
6
By direct integration
1.5
1
∫ X dX = log
0.5
e 3
Given f ( x ) = x + 2 x − 1 = 0
2
⇒ f 1 ( x ) = 3x 2 + 2 x
x0 = 1.2
The Newton-Raphson iterative formula is
f ( xn ) 1
xn+1 = xn = − f ( xn ) ≠ 0 & n0,1,2,.....
f 1 ( xn )
f (x ) (1.2 ) + 2 (1.2 ) − 1 3
x1 = x0 − 1 0 = 1.2 −
f ( x0 ) 3(1.2 ) + 2
2
= 0.705
36Sol. (d)
dy
= −2 xy 2 = f ( x, y )
dx
f ( 0,1) = 0
y1p = y0 + hf ( x0 , y0 ) = 1 + 0.2 ( 0) = 1
h
y1c = y0 + f ( x0 , y0 ) + f ( x1 , y1p )
2
0.2
= 1+ ( 0 − 0.4 ) = 0.96
2
37Sol. (b)
The Numerical methods described the corresponding applications
38Sol. (0.06)
f '( x ) = ex
f ( x0 ) e −1 1
x1 = x0 − = 1− =
f ' ( x0 ) e e
f ( x1 )
x2 = x1 −
f ' ( x1 )
1 e1/ e − 1
= − 1/ e = 0.06
e e
39Sol. (b)
3
Let N = 3 x ⇒ x = N
Let f ( x ) = x − N = 0
3
f ' ( x ) = 3x 2
f ( xn )
∴ xn +1 = xn −
f ' ( xn )
= xn −
(x 3
n − N)
3 xn2
1 2 xn3 + N
=
3 xn2
40Sol. (0.54)
Let f ( x ) = ( 5 x − 2cos x − 1)
f ' ( x ) = 5 + 2sin x
Apply Newton-Raphson method iteration formula
f ( xn )
xn+1 = xn −
f ' ( xn )
x2 = 0.5426, x3 = 0.5425
41Sol. (d)
dx
Given that = ( 4t + 4 )
dt
At t = 0, x = x0 = 0
h = 0.2, f ( t , x ) = ( 4t + 4 )
By R-K fourth order method
1
x1 = x0 + ( K1 + 2K 2 + 2K3 + K 4 )
6
where
K1 = hf ( t0 , x0 ) = 0.2 × 4 = 0.8
h K
K 2 = hf t0 + , x0 + 1
2 2
h K
K 3 = hf t0 + , x0 + 2
2 2
K4 = hf ( t0 + h, x0 + K3 )
1
∴ x1 = 0 + 0.8 + 2 ( 0.88) + 2 ( 0.88 ) + 0.96 = 0.88
6
42Sol. (0.73)
f ( x ) = x 2 − sin x
f ' ( x ) = 2 x − cos x
x0 = 1
f ( x0 ) 1 − sin1
∴ x1 = x0 − =1− = 0.8915
f ' ( x0 ) 2 − cos1
f ( x1 )
x2 = x1 −
f ' ( x1 )
1 − sin ( 0.89 )
= 0.8915 − = 0.73 (approximately)
2 − cos ( 0.89 )
43Sol. (a)
Let f ( x ) = k ( x − 1)( x − 2 )( x − 3)( k ≠ 0 )
∴ f ( 0). f ( 4) < 0
44Sol. (a)
( )
Let f ( x ) = 0.75 x 3 − 2 x 2 − 2 x + 4 = 0
f ' ( x ) = ( 2.25 x 3 − 4 x − 2 )
given x0 = 2
f ( x0 )
x1 = x0 − =0
f ' ( x0 )
Similarly x2 = x3 = 0, x4 = 2, x5 = 0.....
45. Sol:
X 0 1 1
2
Y 9 39 12
5 20 5
1 1
2 . 9 + 12 + 4 39 = 0.0208
∫0 ydx =
2 5 5
20
46 Sol: By Trapezoidal rule
0.4
h 0.1
∫ f ( x) dx = ( y0 + y4 ) + 2 ( y1 + y2 + y3 ) = ( 0 + 160 ) + 2(10 + 40 + 90) = 22
0
2 2
47. Sol:
X 1 2
xlnx 0 2ln2
2
1
By trapezoidal rule ∫ x ln xdx = 2 [0 + 2 ln 2 ] = ln 2 = 0.69
1
f ( x0 )
48. Sol: By N-R method x1 = x0 − = 1− 5 = 1
f ′( x0 ) 10 2
f ( x1 )
2nd iteration x2 = x1 − = 0.3043
f ′( x1 )
49. Sol: f ( x) = x 2 − 4 x + 4 , x0 =3 f ′( x) = 2 x − 4
f ( x0 ) 1
By N-R method x1 = x0 − = 3 − = 2.5
f ′( x0 ) 2
For secant method x0 = 2.5 and x1 =3
By secant method
x1 − x0 (3 − 2.5) 0.5
x2 = x1 − f ( x1 ) = 3 − × f (3) = 3 − ×1 = 2.333
f ( x1 ) − f ( x0 ) f (3). f (2.5) 1 − 0.25
50. Sol: f ( x) = −2 + 6 x − 4 x 2 + 0.5 x3 , f(0)=-2
f ′( x) = 6 − 8 x + 1.5 x 2 , f ′(0) =6
f ( x0 ) (−2)
By N-R method x1 = x0 − = 0− = 0.333
f ′( x0 ) 6
+
ù W.8µCT
G µ.UT%%
⇒ =1.564
55. Ans: (– 6)
Sol: Let x + 2y +3z =5
2x + 3y + z = 1
3x+2y + z = 3 and x0 = 0, y0 = 0, z0 = 0
Then first iteration will be
x1 = 5– 2y0 – 3z0 = 5 – 0 –0 = 5
1 1
j8 = l% = 1 − 2j% − U = 1 − 10 − 0 = −3
3 3
X3 = z1 = 3- 3x1 – 2y1 = 3 – 15 + 6 = -6
∴ x3 = -6
f(x) 1 3 3 -1
2 2
− û−0 û
ℎ= = =
3 3
By trapezoida, rule, we have
ù
ℎ
> øjj = ?l + lA + 2l% + l8 @
2 U
U
û √3 √3
= 11 − 1 + 2 + 3
6 2 2
= 1.813799364 (approximate value)
By Exact method
ù
M = >sinj + cosjj
U
= ?− cosj + j@ùU
= cos(0) – cos(π)+sin(π) – sin 0
= 1-(-1)= 2 (Exact value)
∴ Error = Exact value – approximate value
= 2- 1.813799364 = 0.1862
58.Ans: 0.06
dy
Sol: = y + 2x − x2 y (0) = 1, (0 ≤ x < ∞ )
dx
Given f ( x, y) = y + 2 x − x 2 , x0 = 0, y0 = 1, h = 0.1
k1 = hf(x 0 , y 0 ) = 0.1(1 + 2(0) − 0 2 ) = 0.1
k 2 = hg(x 0 + h, y 0 + k1 ) = 0.1(y 0 + k1 ) + 2(x 0 + h) − (x 0 + h) 2 )
f ( x0 )
x1 = x 0 −
f ' ( x0 )
Soln:
f ( 0.333)
x1 = 0.333 −
f ' ( 0.333)
0.0693
∴ x1 = 0.333 +
2.5499
= 0.333 + 0.02717
= 0.3601