Docsity

Math 371 Homework 2: Rootfinding and Linear Algebra - Prof. Robert Krasny, Assignments of Mathematics

Toggle sidebar
bg1
Math 371 Fall 2008 Homework 2 due: Tues Sept 30
chapter 2, rootfinding
1. Consider f(x) = x3−2. Since f(1) <0 and f(2) >0, it follows that f(x) has a root pin
the interval [1,2].
a) Compute an approximation to the root by taking 4 steps of the bisection method.
b) Repeat using fixed-point iteration with g1(x) = 2/x2and g2(x) = x−f(x)/3.
c) Repeat using Newton’s method. Take x0= 1.5 for the starting value.
Take x0= 1.5 as the starting value for each method. Present the results in the form of a
table with columns as below. Present at least 8 decimal digits in the results.
column 1 : n(step)
column 2 : xn(approximation)
column 3 : f(xn) (residual)
column 4 : |p−xn|(error)
2. In class we discussed the example, “Volume of Chlorine Gas” on page 102. This example
uses Newton’s method to compute the volume of a gas given by van der Waal’s equation of
state, where the initial guess V0is given by the ideal gas law. By comparing V1and V2, we
saw that V1has 5 correct digits. How many correct digits does V2have?
3. Consider the following system of nonlinear equations.
f(x, y) = 2x2−2xy + 2y2−x−y= 0
g(x, y) = 4x−y+ 2 = 0
Find an approximate solution by taking one step of Newton’s method starting from (x0, y0) =
(2,0). Present the iterates (xi, yi) and residual values f(xi, yi), g(xi, yi) for i= 0,1.
chapter 3, linear algebra
4. page 148, problem 4a,b , 7a (matrix operations)
5. page 149, problem 14b (hint: show that AA−1=I)
6. Let Abe a 3×3 matrix. Express the following operations in the form EA for a suitable
matrix E.
(a) multiply row 2 by 5 and subtract the result from row 1
(b) interchange row 2 and row 3
7. page 157, problem 1 (Gaussian elimination)
8. page 159, problem 13 (electric circuit)
announcement
The 1st midterm exam will be on Thursday Oct 16 in class. A review sheet with sample
problems will be distributed before the exam. Calculators are not allowed, but you may use
one sheet of notes (i.e. one side of one page, 8.5 in ×11 in). Exam booklets will be provided.

Partial preview of the text

Download Math 371 Homework 2: Rootfinding and Linear Algebra - Prof. Robert Krasny and more Assignments Mathematics in PDF only on Docsity!

Math 371 Fall 2008 Homework 2 due: Tues Sept 30

chapter 2, rootfinding

  1. Consider f (x) = x 3 − 2. Since f (1) < 0 and f (2) > 0, it follows that f (x) has a root p in the interval [1, 2].

a) Compute an approximation to the root by taking 4 steps of the bisection method.

b) Repeat using fixed-point iteration with g 1 (x) = 2/x^2 and g 2 (x) = x − f (x)/3.

c) Repeat using Newton’s method. Take x 0 = 1.5 for the starting value.

Take x 0 = 1.5 as the starting value for each method. Present the results in the form of a table with columns as below. Present at least 8 decimal digits in the results. column 1 : n (step) column 2 : x (^) n (approximation) column 3 : f (x (^) n ) (residual) column 4 : |p − x (^) n | (error)

  1. In class we discussed the example, “Volume of Chlorine Gas” on page 102. This example uses Newton’s method to compute the volume of a gas given by van der Waal’s equation of state, where the initial guess V 0 is given by the ideal gas law. By comparing V 1 and V 2 , we saw that V 1 has 5 correct digits. How many correct digits does V 2 have?
  2. Consider the following system of nonlinear equations.

f (x, y) = 2x 2 − 2 xy + 2y 2 − x − y = 0 g(x, y) = 4x − y + 2 = 0

Find an approximate solution by taking one step of Newton’s method starting from (x 0 , y 0 ) = (2, 0). Present the iterates (x (^) i , y (^) i ) and residual values f (x (^) i , y (^) i ), g(x (^) i , y (^) i ) for i = 0, 1.

chapter 3, linear algebra

  1. page 148, problem 4a,b , 7a (matrix operations)
  2. page 149, problem 14b (hint: show that AA −^1 = I)
  3. Let A be a 3×3 matrix. Express the following operations in the form EA for a suitable matrix E.

(a) multiply row 2 by 5 and subtract the result from row 1

(b) interchange row 2 and row 3

  1. page 157, problem 1 (Gaussian elimination)
  2. page 159, problem 13 (electric circuit)

announcement The 1st midterm exam will be on Thursday Oct 16 in class. A review sheet with sample problems will be distributed before the exam. Calculators are not allowed, but you may use one sheet of notes (i.e. one side of one page, 8.5 in × 11 in). Exam booklets will be provided.