Numerical Methods Qualification Exam Problems and Solutions (University of Maryland)/January 2006

From testwiki
Jump to navigation Jump to search

Problem 1

Let f be continuous on [0,1]. A polynomial p of degree not greater than n is said to be a best (or Chebyshev) approximation to f if p minimizes the expression

E(p)=maxx[0,1]|f(x)p(x)|

Problem 1a

Show that a sufficient condition for p to be a best approximation is that there exists points x0<x1<<xn+1in[0,1] such that

f(xi)p(xi)=[f(xi+1)p(xi+1)]=±E(p),i=0,1,2,,n.

Solution 1a

Assume there exists qΠn such that


E(q)<E(p)


Then for i=0,1,,n


|f(xi)q(xi)||f(xi)p(xi)|


Let e(q)=f(x)q(x) and e(p)=f(x)p(x).


Then ee(q(x))e(p(x)) takes on the sign of e(p) since


|e(p(xi))||e(q(xi))|


Since e(p) changes signs n+1 times (by hypothesis), e has n+1 zeros.


However e=pq and thus can only have at most n zeros. Therefore e0 and p=q

Problem 1b

Compute the best linear approximation to x2in[0,1]. [Hint: Drawing a line through the parabola will allow you to conjecture where two points of oscillation must lie. Use conditions from (a) to determine the third point and coefficients of p.]

Solution 1b

First we need to find the roots of T2(x) in [0,1], which are given by


xk=12+12cos(2k14π)


So our points at which to interpolate are


x1=12+12cos(π4)


x2=12+12cos(3π4)=1212cos(π4)


Our linear interpolant passes through the points (x1,x12) and (x2,x22), which using point-slope form gives the equation


yx12=x22x12x2x1(xx1)


or


y=x18

Problem 2

We will be concerned with the least squares problem of minimizing

ρ2(x)=bAx2.

Here A is an m×n matrix of rank n (which implies mn) and is the Euclidean vector norm. Let

A=(Q1Q2)(R0)

be the QR decomposition of A. Here Q1,Q2andR are respectively m×n,m×(mn),andn×n.

Problem 2a

Show that the solution of the least squares problem satisfies the QR equation Rx=Q1Tb and that the solution is unique. Further show that ρ(x)=Q2Tb.


Solution 2a

The two problems are equivalent

First notice

A=(Q1Q2)(R0)=Q1R


Then we can write

bAx=bQ1Rx=Q1TbQ1TQ1Rx=Q1TbRx


Note that multiplying by orthogonal matrices does not affect the norm.


Then solving minxbAx2 is equivalent to solving minxQ1TbRx2, which is equivalent to solving Rx=Q1Tb. Note that a solution exists and is unique since R is n-by-n and non-singular.

Show that ρ(x)=Q2Tb

Similarly

bAx=bQ1Rx=Q2TbQ2TQ10Rx=Q2Tb

Then

ρ2(x)=bAx2=Q2Tb2, or simply ρ(x)=Q2Tb, as desired.

Problem 2b

Use the QR equation to show that the least squares solution satisfies the normal equations (ATA)x=ATb.

Solution 2b

ATAx=(Q1R)TQ1Rx=RTQ1TQ1Rx=RTRxATb=(Q1R)Tb=RTQ1TbRx=RTRx

Problem 3

Let A be real symmetric and let u00 be given. For k=1,2,, define uk+1 as the linear combination of the vectors Auk,uk,,u0 with the coefficient of Auk equal to one and orthogonal to the vectors uk,,u0; i.e.

 uk+1=Aukαkukβkuk1γkuk2       

Problem 3a

Find formulas for αk and βk

Solution 3a

Using Gram Schmidit, we have

αk=(Auk,uk)uk2βk=(Auk,uk1)uk12

Problem 3b

Show that γk=δk==0 Where do you use the symmetry of A?

Solution 3b

Since

γk=(Auk,uk2)uk22

, if γk=0, then

(Auk,uk2)=0


Since A is symmetric,

(Auk,uk2)=(uk,ATuk2)=(uk,Auk2)


From hypothesis, (ui,uj)={1if i=j0if ij

Also from hypothesis,

Auk=uk+1+αkuk+βkuk1+γkuk2+Auk2=uk1+αk2uk2+βk2uk3+γk2uk4+


Using the above results we have,

(Auk,uk2)=(uk,Auk2)=(uk,uk1+αk2uk2+βk2uk3+γk2uk4+)=(uk,uk1)+αk2(uk,uk2)+βk2(uk,uk3)+γk2(uk,uk4)+)=0

Problem 3c

For which non-zero vectors u0 does u1=0 hold?

Solution 3c

For k=0,

u1=Au0α0u0


If u1=0, then

Au0=α0u0


Since α0 is a scalar, u0 is an eigenvector of A.


Template:Reflist

Template:BookCat