Docsity

Math 151A Homework 1: Bisection Method and Graph Sketching, Assignments of Mathematics

Toggle sidebar
bg1
Math 151A
HW #1, due Friday, January 12
- Reading: sections 1.1, 1.3, 1.4 and the matlab code given below (com-
pare with algorithm 2.1. from the textbook, page 47).
- Problems from section 2.1: #1 (with a hand calculator), #2(a) (with
a hand calculator), #7(ab), #12, #15 (for the longer calculations, you can
use one of the codes posted on the class webpage).
#1 Use the Bisection method to find p3for f(x) = โˆšxโˆ’cos xon [0,1].
#2(a) Let f(x) = 3(x+ 1)(xโˆ’
1
2)(xโˆ’1). Use the Bisection method on
the following intervals to find p3:
(a) [โˆ’2,1.5]
#7
(a) Sketch the graphs of y=xand y= 2 sin x.
(b) Use the Bisection method to find an approximation to within 10โˆ’5to
the first positive value of xwith x= 2 sin x.
#12 Find an approximation to โˆš3 correct to within 10โˆ’4using the Bi-
section Algorithm (hint: consider f(x) = x2
โˆ’3).
#15 Find a bound for the number of iterations needed to achieve an
approximation with accuracy 10โˆ’4to the solution of x3
โˆ’xโˆ’1 = 0 lying
in the interval [1,2]. Find an approximation to the root with this degree of
accuracy.
1

Partial preview of the text

Download Math 151A Homework 1: Bisection Method and Graph Sketching and more Assignments Mathematics in PDF only on Docsity!

Math 151A HW #1, due Friday, January 12

  • Reading: sections 1.1, 1.3, 1.4 and the matlab code given below (com- pare with algorithm 2.1. from the textbook, page 47).
  • Problems from section 2.1: #1 (with a hand calculator), #2(a) (with a hand calculator), #7(ab), #12, #15 (for the longer calculations, you can use one of the codes posted on the class webpage).

#1 Use the Bisection method to find p 3 for f (x) =

x โˆ’ cos x on [0, 1].

#2(a) Let f (x) = 3(x + 1)(x โˆ’ 12 )(x โˆ’ 1). Use the Bisection method on the following intervals to find p 3 : (a) [โˆ’ 2 , 1 .5]

(a) Sketch the graphs of y = x and y = 2 sin x. (b) Use the Bisection method to find an approximation to within 10โˆ’^5 to the first positive value of x with x = 2 sin x.

#12 Find an approximation to

3 correct to within 10โˆ’^4 using the Bi- section Algorithm (hint: consider f (x) = x^2 โˆ’ 3).

#15 Find a bound for the number of iterations needed to achieve an approximation with accuracy 10โˆ’^4 to the solution of x^3 โˆ’ x โˆ’ 1 = 0 lying in the interval [1, 2]. Find an approximation to the root with this degree of accuracy.