Bisection Method Homework: a=-2, b=2, Is b-a=1?

2 replies · 2K views · last reply
fonseh
Messages
521
Reaction score
2

Homework Statement


In the first photo , interval [-2 ,2 ] means a = -2 , b = 2 , am i right ?
So , how to show that b-a = 1 ?

Homework Equations

The Attempt at a Solution


IMO , b-a = 2+ 2 = 4

for part b , why b - a = -1-(-2) ?
Is there anything wrong with this question ?
 
Attachments
  • Worked example from a textbook: graph of g(x)=e^x and h(x)=cos x over [-2,2], with bisection method table of a_i, c_i, b_i and function values, converging to the negative root c ≈ -1.298.
    540.jpg
    63.2 KB · Views: 491
  • Handwritten derivation for a bisection error bound: 0.02 ≤ (b − a)/2^(i+1), with a circled (−1 − (−2))/2^(i+1), then taking ln gives i ≤ 4.644, so i = 4, next to a table of bisection iterates for a_i, c_i, b_i and f values.
    541.jpg
    51.7 KB · Views: 433
fonseh said:
interval [-2 ,2 ] means a = -2 , b = 2 , am i right ?
Not so: b and a play different roles.
Refer to example 2.3 for how to choose ##[a,b]##
 
##[-2,2]## is the interval for which the functions are considered.
The exercise suggests to apply the bisection method on another interval, namely ##[-2,-1]## because you don't need to consider the entire range. For the second question ##|b-a|=|-1-(-2)|=|1|=1##.
 
  • Like
Likes   Reactions: fonseh