Docsity

Mathematics 128A Final Exam, Lecture notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
UCB Math 128A, Spring 2014: Final Exam
Prof. Persson, May 14, 2014
Name:
SID:
Section: Circle your discussion section below:
Sec Time GSI
101 Tue 8 - 9am C. Melgaard
102 Tue 11 - 12pm D. Anderson
103 Tue 12 - 1pm D. Anderson
104 Tue 1 - 2pm M. Fortunato
105 Tue 2 - 3pm M. Pejic
106 Tue 3 - 4pm M. Pejic
107 Tue 4 - 5pm C. Melgaard
108 Tue 5 - 6pm M. Fortunato
Other/none, explain:
Grading
1 / 4
2 / 4
3 / 4
4 / 4
5 / 4
6 / 8
7 / 5
8 / 6
9 / 6
/45
Instructions:
•No notes, no books, no calculators.
•Exam time 180 minutes, do all of the problems.
•You must justify your answers for full credit.
•Write your answers in the space below each problem.
•If you need more space, use reverse side or scratch pages.
Indicate clearly where to find your answers.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Mathematics 128A Final Exam and more Lecture notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

UCB Math 128A, Spring 2014: Final Exam

Prof. Persson, May 14, 2014

Name:

SID:

Section: Circle your discussion section below:

Sec Time GSI

101 Tue 8 - 9am C. Melgaard

102 Tue 11 - 12pm D. Anderson

103 Tue 12 - 1pm D. Anderson

104 Tue 1 - 2pm M. Fortunato

105 Tue 2 - 3pm M. Pejic

106 Tue 3 - 4pm M. Pejic

107 Tue 4 - 5pm C. Melgaard

108 Tue 5 - 6pm M. Fortunato

Other/none, explain:

Grading

Instructions:

  • No notes, no books, no calculators.
  • Exam time 180 minutes, do all of the problems.
  • You must justify your answers for full credit.
  • Write your answers in the space below each problem.
  • If you need more space, use reverse side or scratch pages.

Indicate clearly where to find your answers.

  1. (4 points) Let g(x) = 2 − e

−x

. Show that the fixed point iteration pn+1 = g(pn)

converges for any p 0 ∈ [1, 3].

  1. (4 points) Use Composite Simpson’s rule with n = m = 2 to approximate

π

0

π

0

cos

2 (x + y) dx dy

  1. (4 points) Find a function r(x) that is at least twice differentiable, and a number s,

such that

∫ 1

0

cos x

x 3 / 4

dx =

1

0

r(x) dx + s

(which can be used to approximate the integral using the composite trapezoidal rule,

but you do not have to do that).

  1. Consider the backward Euler method

wi+1 = wi + hf (ti+1, wi+1).

a) (3 points) Show that the method has a local trunction error O(h).

b) (3 points) Apply the method with stepsize 2h:

wi+1 = wi− 1 + 2hf (ti+1, wi+1),

and use Richardson extrapolation to derive a more accurate method.

Clearly indicate the order of the local trunction error of the new method.

c) (2 points) Is this new method convergent?

  1. (5 points) Consider the following MATLAB code for multiplying two lower triangular

matrices L1 and L2 of size n × n:

L = zeros(n,n);

for i = 1:n

for j = 1:i

for k = j:i

L(i,j) = L(i,j) + L1(i,k) * L2(k,j);

end

end

end

Find the total operation count of the algorithm (that is, the number of additions

and multiplications), leading term only.

  1. (6 points) Find all values of α, if any, such that the matrix below is positive definite.

A =

3 α 1

α 3 − 1

(Scratch Paper 1)