You are on page 1of 5

Assignment NO.

1 MTH603 (Fall 2020)

BC100400527
Safi Ur Rahman

Question NO.1
Solution:

f ( x)  x3  x 2  x  1
f (0)  (0)3  (0)2  0  1
 0  1  1
f (1)  (1)3  (1) 2  1  1
2
f (0) , f (1)  0
f(1) is positive and f(0)is negative
Hence the root lies between is
xo  0and , x1  1
xo  x1
x2 
2
0 1

2
1

2
 0.5
f (0.5)  (0.5)3  (0.5) 2  0.5  1
 0.125  0.25  0.5  1
 0.125
f (0.5)  0

f(0.5) is negative and f(1) is positive


The root lies between 0.5 and 1
0.5  1
x3 
2
1.5
  0.75
2
f (0.5)  (0.75)3  (0.75) 2  0.75  1
 0.421875  0.5625  0.75  1  0.734375
f (0.75)  0

f(0.75) is positive and f(0.5) is negative


The root lies between 0.75&0.5
0.75  0.5
x4 
2
1.25
  0.625
2
f (0.625)  (0.625)3  (0.625) 2  0.625  1
 0.244141  0.391  0.625  1  0.260141
f (0.625)  0
f(0.625) is positive and f(0.5) is negative
The root lies between 0.625 &0.5
0.625  0.5
x5 
2
1.125
  0.5625
2
f (0.5625)  (0.5625)3  (0.5625) 2  0.5625  1
 0.17798  0.31641  0.5625  1  0.05689
f (0.5625)  0
f(0.5625) is positive and f(0.5) is negative
The root lies between 0.5625&0.5
0.5625  0.5
x6 
2
1.0625
  0.53125
2
f (0.53125)  (0.53125)3  (0.53125) 2  0.53125  1
 0.149933  0.28223  0.53125  1  0.036587
f (0.53125)  0

f(0.53125) is negative and f(0.5625) is positive


the root lies between 0.53125&0.5625
0.53125  0.5625
x7 
2
1.09375
  0.546875
2
f (0.5469)  (0.5469)3  (0.5469) 2  0.5469  1
 0.1636  0.2991  0.5469  1  0.0096
f (0.5469)  0
f(0.5469) is negative and f(0.5469) is positive
The root is lie between 0.5469 and 0.53125

0.5469  0.5312
x8 
2
1.0781
  0.539
2
f (0.54)  (0.54)3  (0.54) 2  0.54  1
 0.1575  0.2916  0.54  1  0.0109
f (0.54)  0
f(0.54) is negative and f(0.5469)
The root is lie between 0.54 and 0.5469
0.54  0.5469
x9 
2
1.0869
  0.543
2
f (0.543)  (0.543)3  (0.543) 2  0.543  1
 0.1601  0.293  0.543  1  0.0039
f (0.543)  0
f(0.543) is negative and f(0.5469) is positive.
0.543  0.5469
x10 
2
1.0899

2
 0.5449
f (0.5449)  (0.5449)3  (0.5449) 2  0.5449  1
 0.1618  0.297  0.5449  1
 0.0037
f (0.5449)  0
f(0.543) is negative and f(0.5449) is positive
The root lies between 0.543 and 0.5469
0.543  0.5449
x11 
2
1.0879

2
 0.544

Approximate root of given equation using bisection method is 0.54 correct up to two decimals

Question NO.2
Solution:

2x  y  z  9
3x  2y  4z  9
x  y  2z  3 

2 1 1 9
A   3 2 4 9 
1 1 2 3
 1 1 2 3
  3 2 4 9  R1 int oR3
 2 1 1 9 
1 1 2 3 
  0 5 10 0  R2  (3R1 )andR3  (2 R1 )
 0 1 5 3
1 1 2 3 
  0 1 5 3 R2 changeR1
 0 5 10 0 
1 1 2 3 

  0 1 5 3  R3  (5R2 )
 0 0 15 15
x  y  z  3 1
 y  5z  3  2
15 z  15  3
15 z  15
z 1
Put value of z in (2)

-y+5=3
-y=3-5
-y=-2
Y=2
Put y, z value in 1
X+2-2=3
X=3
Thus x=3, y=2, z=1

You might also like