Processing math: 96%
数值分析代写

This exam is scheduled for 120 minutes, and you have 10 minutes for uploading
your solutions to Gradescope.
You can use a single, double-sided page as a cheat sheet and a calculator, but
no other sources including lecture notes, textbooks, or web pages. Upload your
cheat sheet as problem 6.
Communication with others, using the internet, phones, tablets, a second computer
etc. are not permitted. You are not to discuss the exam with anyone else except the
instructor.
Give a complete explanation (with all intermediate steps) and show all work for all
problems; points will not be given for answers without a derivation/justi cation.
The total number of points is 60.

Problem 1.

Write down a table with short answers to the following questions. Below the table, include a brief justification/reasoning for your answer for each question (you will not get points without an explanation!).
(a) How many iterations does Newton’s method require to solve a linear equation?
(b) The 2-norm condition number of an n×n matrix with singular values σ1 σ2σn is …
(c) (3 pts) To leading order, how many FLOPs are required to solve an [n×n] linear system if we already know the SVD decomposition/factorization of the matrix. For full points, give the constant in front of the leading order term.
(d) (3 pts) Using the initial guess x0=[0,1,0]T, the power method applied to the matrix A=[400 020 001] will converge to what eigenvalue if exact arithmetic (no roundoff error) is used? (e) For the nodes x0=1,x1=0,x2=1, the Lagrange interpolation polynomial L0(x) corresponding to node x0 is 12x212x.
(f) True or false: The n+1 point Lagrange polynomial
pn(x)=nk=0exp(xk)Lk(x)+nk=0Lk(x)
interpolates the function exp(x).
(g) The Legendre polynomial of degree n is orthogonal to every polynomial with degree (n1) or less.
(h) True or False: The three point Simpsons rule and the three point Gauss(Legendre) quadrature formulas are equally accurate approximations of
11(x5+1)dx
(i) Let I=baf(x)dx, and let In be the result of the composite Simpson’s rule approximation to I with n+1 quadrature points, and denote en=|IIn|. For n large, what does e2n/en converge to?

Problem 2.

Matlab code

[10=3+3+2+2 pts ] Newton’s method computes the new iterate xk+1 as the x intercept of the “line of best fit” through the point (xk,f(xk)), i.e., the line that passes through (xk,f(xk)) and whose first derivative is f(xk). We will define a new method which finds the “quadratic of best fit” and uses it to compute the new iterate.
(a) Find the quadratic of best fit through the point (xk,f(xk)), i.e., find the quadratic that goes through (xk,f(xk)) and whose first and second derivatives at xk agree with f(xk) and f(xk), respectively.
(b) Write down a “quadratic Newton” method for finding roots by computing the x -intercept for the quadratic of best fit. To make the answer unique, use the root that is closes to xk. Hint: consider solving for xk+1xk instead of solving for xk+1 directly.
(c) Show that the method you wrote is a consistent method, that is if the method converges, it converges to a root of f.
(d) How many steps are required for this method to find the solution of f(x)=0, where f is a quadratic?

Problem 3.

[10=5+2+3pts] In this problem you will derive the most accurate quadrature rule possible that uses some values of the derivative of the function in addition to the values of the function.
(a) For an arbitrary/generic smooth function f(x), find the best values for the weights w1,w0, and w1 in the quadrature rule:
11f(x)dxw1f(1)+w0f(0)+w1f(1)
(b) Verify in some way that the weights you obtained are correct.
(c) Use this rule to estimate 11cos(πx/2)dx and compare to the answer from Simpson’s rule. Which rule is more accurate for this specific problem?

Problem 4.

[1+5+4pts] An inner product (f,g) for two real-valued functions f(x) and g(x) on an interval [a,b] defines a (non-unique) set of orthogonal polynomials with respect to (w.r.t.) that inner product. Consider the interval [1,1] and the inner product given by the n+1 -point Gaussian quadrature rule for approximating the standard L2 inner product f,g2=baf(x)g(x)dx, i.e.,
f,g=nk=0wkf(xk)g(xk)
where wk are the Gaussian quadrature weights and xk are the corresponding nodes. This inner product defines a new weighted l2 norm
|f|l2=nk=1wk|f(xk)|2.
Take n=2 for this problem.
Note that to answer the questions below you do not need to know the values of wk and xk and both part b ) and part c) can be answered with minimal to no algebraic calculations. If you do want them, they are x0=3/5,x1=0, x2=3/5,w0=w2=5/9 and w1=8/9
(a) For q0,q1,q2P2, give the definition of what it means to say that these polynomials are orthogonal with respect to , defined in (1). (b) Write down a basis for P2, the space of polynomials of degree at most two, that are orthogonal w.r.t. (1), and explain how you got it and why you know they are orthogonal. You will get 1/2 of the points for any answer that is an orthogonal basis. You will get full points only if you write down a basis where the degree of the polynomial increases, i.e., the first polynomial is of degree zero, the second of degree one, etc. Since orthogonal polynomials are only defined up to a constant, normalize your answers so that the coefficient in front of the highest power of x is unity.
(c) Given the three function values yk=f(xk),k=0,1,2, write down an explicit formula for the optimal polynomial approximation of f(x) in P2 w.r.t. the norm (2), i.e., find p2(x)=min
Note: You do not need to write one complete (long) formula, you can break it into pieces and define intermediate constants as appropriate, but make sure everything is defined before it is used, and the only input is y_{0}, y_{1} and
y_{2} .

数值分析代写认准UpriviateTA

BS equation代写

复分析Math301

量子力学代写

实分析代写

随机微积分代写