Docsity

Numerical Analysis - Midterm 2 - Spring 2009 | MATH 128A, Exams of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
UCB Math 128A, Spring 2009: Midterm 2
April 6, 2009
Name:
SID:
GSI:
•No books, no notes, no calculators
•Justify all answers
•Do all of the 4 problems
•Exam time 50 minutes
Grading
1 / 25
2 / 25
3 / 25
4 / 25
/100
1
pf3
pf4
pf5

Partial preview of the text

Download Numerical Analysis - Midterm 2 - Spring 2009 | MATH 128A and more Exams Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

UCB Math 128A, Spring 2009: Midterm 2

April 6, 2009

Name:

SID:

GSI:

  • No books, no notes, no calculators
  • Justify all answers
  • Do all of the 4 problems
  • Exam time 50 minutes

Grading 1 / 25 2 / 25 3 / 25 4 / 25 /

Consider the initial-value problem with exact solution y(t) = e−^2 t^ + t:

y′^ = 2(t − y) + 1, 0 ≤ t ≤ 2 , y(0) = 1 (a) Approximate y(2) using Euler’s method with step size h = 0.5. (b) Find the value of h necessary for an error at most 10−^5 in y(2), using the error bound below (notation as in the textbook). |y(ti) − wi| ≤ hM 2 L

[

eL(ti−a)^ − 1

]

Show how to use Newton’s method to solve the equation below for x: ∫ (^) x −x^ e

sin t (^) dt = 1.

Use the Composite Simpson’s rule with n = 4 intervals for the integral. You do not have to perform any numerical calculations.

(a) Determine the constants a, b, α such that the quadrature rule ∫ (^1) − 1 f^ (x)^ dx^ ≈^ af^ (−1) +^ af^ (1) +^ bf^ (α) +^ bf^ (−α) has the highest possible degree of precision. Clearly state the degree of precision of the resulting rule.

(b) Use the quadrature rule to approximate the integral below. You can use a, b, α instead of the values calculated in (a). ∫ (^4) 0 e

√x (^) dx.