Bisection Method
Bisection Method
Bisection Method
EXERCISE 1. Solve the following problems using bisection method and show the graph of a
function. Use separate sheet for the solutions.
GRAPH:
2.) a. Sketch the functions y = x2 and y = x + 1 on the same graph.
ANSWER:
x = 0; x = 0
x = -0.6180; x = 1.6180
c. This equation also has a positive root. Between which two positive integers does
this root lie?
ANSWER:
The root lies between the positive integers of x=1 and x=2.
d. Use the bisection method to find the positive root to 1 decimal places.
ANSWER:
ANSWER:
3.) Use the bisection method to solve the equation x3 − 5 = 0 to 2 decimal places given that
a solution exists between 1.65 and 1.8.
ANSWER:
Approximate root of the equation x3 − 5 = 0 using Bisection Method is 1.71 (After 11
iterations)
ANSWER:
GRAPH:
5.) Louise invests some of the profits from a business. In order to understand one
particular investment, she needs to find a solution greater than 1 to the equation: x 8 − 11x +
10 = 0
a. Show that this equation has a solution between x = 1.05 and x = 1.15
ANSWER:
f(1.05) = -0.073 and f(1.15)=0.409 shows that the graph crosses the x-axis
between x=1.05 and x=1.15
b. Calculate two iterations of the bisection method to solve the equation starting with the
interval [1.05, 1.15].
ANSWER:
Approximate Root of the equation x8 − 11x + 10 = 0 using Bisection method is 1.09 (After 9iterations)
6.) Consider the function f(x) = 2ex − 2x − 3
a. Show that there is a root to the equation f(x) = 0 in the interval [0, 2]
ANSWER:
Approximate Root of the equation 2ex − 2x − 3 using Bisection method is 0.86 (After 12 iterations)
GRAPH:
b. Using [0, 2] as the starting interval, calculate two iterations of the bisection method
to solve the equation f(x) = 0. State the interval obtained at the end of the second
iteration.
ANSWER:
Interval: [0,1];
Root is: 0.5
7.) Use the bisection method to find the root of the function f(x) = x- e-x with an accuracy of
0.0001.
ANSWER:
n a f(a) b f(b) c = (a + b)/2 f(c)
1 0 -1 1 0.6321 0.5 -0.1065
2 0.5 -0.1065 1 0.6321 0.75 0.2776
3 0.5 -0.1065 0.75 0.2776 0.625 0.0897
4 0.5 -0.1065 0.625 0.0897 0.5625 -0.0073
5 0.5625 -0.0073 0.625 0.0897 0.5938 0.0415
6 0.5625 -0.0073 0.5938 0.0415 0.5781 0.0172
7 0.5625 -0.0073 0.5781 0.0172 0.5703 0.005
8 0.5625 -0.0073 0.5703 0.005 0.5664 -0.0012
9 0.5664 -0.0012 0.5703 0.005 0.5684 0.0019
10 0.5664 -0.0012 0.5684 0.0019 0.5674 0.0004
ANSWER:
Approximate Root of the equation cos(x)-x=0 using Bisection method is 0.73925781 (After 10 iterations)
GRAPH:
9.) Find the root of the function f(x) = x3 – 6x2 + 11x − 6
ANSWER:
0.999996
GRAPH:
Roots: x
=3
x =2
x =1
10.) Find the root of the function f(x) = x4 − 16
ANSWER:
Initial guesses (0 and 4)
Iterati xl xr xu f(xl) f(xr) f(xu) f(xl)*f(xu)
on
0 0 4 2 -16 240 0 0
GRAPH:
11.) Find the root of the function f(x) = x6 − x − 1
ANSWER:
equation f(x) = x6 − x −
1.1347.
GRAPH:
Roots:
x = 1.1347 + 0.0000i
x = 0.4511 + 1.0024i
x = 0.4511 - 1.0384i
x = -0.6294 + 0.7358i
x = -0.6294 - 0.7358i
x = -0.7781 + 0.0000 i