MATH 661.FA21 Practice Final Examination 1

Solve the problems for your appropriate course track. Problems probe understanding of the course concepts. Formulate your answers clearly and cogently. Sketch out an approach on scratch paper first. Then briefly transcribe the approach to the answer you turn in, followed by appropriate calculations and conclusions, within allotted time. Use concise, complete English sentences in the description of your approach.

Each question is meant to be completely answered and transcribed from proof to final copy within thirty minutes. Concentrate foremost on clear exposition of the concept underlying your approach.

1Track 1

  1. Consider the ballistic missile trajectory problem of national defense interest. From measurements of the positions xi=x(ti) at successive times ti, i=0,...,n predict the target reached at time T>tn. Formulate a procedure to predict x(T), assuming the missile is known to follow a parabolic trajectory.

    Solution. The parabolic trajectory is expressed through a quadratic approximant

    x(t)=c0+c1t+c2t2.

    The coefficients a,b,c are the solution of the least squares problem

    min𝒄||𝑨𝒄-𝒙||2,

    with

    𝒕j=[ t0j t1j tnj ],𝑨=[ 𝒕0 𝒕1 𝒕2 ],𝒄=[ c0 c1 c2 ],𝒙=[ x0 x1 xn ].

    To solve the least squares problem:

  2. Construct a quadrature formula for integrals of the form

    0e-αtf(t)dt.

    Solution. Assuming sampling data 𝒟={(ti,fi=f(ti)),i=0,1,..,n}, find the weights wi of the quadrature

    0e-αtf(t)dti=0nwifi

    by imposing the moment conditions

    0e-αttjdt=i=0nwitij,k=0,1,..,n

    a linear system with a Vandermonde system matrix

    𝑽𝒘=𝒃.

    The moments are analytically evaluated through integration by parts

    bj=0e-αttjdt=jα0e-αttjdt=jαbj-1=j!aj+1,b0=1α.
  3. Find the best approximant in the least squares sense of sint within span{1,t,t2}.

    Solution. Orthonormalize {1,t,t2} using Gram-Schmidt in a Hilbert space with scalar product

    (f,g)=-ππf(t)g(t)dt.

    Obtain the orthonormal set {p0(t),p1(t),p2(t)}. The least squares approximant g is

    g(t)=(sin,p0)p0(t)+(sin,p1)p1(t)+(sin,p2)p2(t).

    Gram-Schmidt calculations:

    p0(t)=1(1,1)=12π.
    q1(t)=t-(t,p0)p0=t
    p1(t)=q1(t)(q1,q1)=32π3t
    q2(t)=t2-(t2,p1)p1(t)-(t2,p0)p0(t)=t2-π23
    p2(t)=q2(t)(q2,q2)=458π5(t2-π23).

    Coefficient of sint on orthonormal basis (use fact that sin is odd, p0,p2 are even)

    (sin,p0)=0,(sin,p2)=0
    (sin,p1)=6π.

    The best approximant is

    sint6π32π3t=3π2t.
  4. Find the best inf-norm approximant of f:[0,1], f(t)=e-t by a first-degree polynomial.

    By equioscillation theorem g(t)=a+bt satisfies the alternating difference conditions

    e0-g(0)=δ,g(ξ)-e-ξ=δ,e-1-g(1)=δ,

    and the stationarity condition

    [ddt(g(t)-e-t)]t=ξ=0.

    These lead to the system

    1-a=δ,a+bξ-e-ξ=δ,e-1-(a+b)=δ,b+e-ξ=0.

    Eliminaing δ,ξ leads to a system for a,b with solution

    b=1-ee,ξ=1-ln(e-1),a=12[1+e-ξ-ξ1-ee],

    defining the best inf-norm linear approximant of e-t

    Figure 1.

  5. Propose a scheme to solve the integro-differential equation

    dydt+y=0tsin(t-τ)y(τ)dτ,

    for y:. Apply all relevant course concepts to analyze the scheme.

    Solution. Consider an equidistant sampling at ti=ih, yiy(ti), and discretize the derivative through forward differencing (forward Euler, second-order one-step error)

    yi+1-yi=-hyi+j=1i+1tj-1tjsin(t-τ)y(τ)dτ.

    Over [tj-1,tj] approximate the integrand the scond-order accurate trapezoid rule (to maintain Euler one-step error)

    yi+1-yi=-hyi+h2j=1i+1[sin(ti-tj-1)yj-1+sin(ti-tj)yj]
    yi+1-yi=-hyi+h2[j=0isin(ti+1-tj)yj+j=1i+1sin(ti-tj)yj]
    yi+1-yi=-hyi+h2sin(ti+1)y0+h2j=1i[sin(ti+1-tj)+sin(ti-tj)]yj+h2sin(ti-ti+1)yi+1
    (1+hsinh2)yi+1=(1+h)yi++h2sin(ti+1)y0+hcoshj=1isin[2(i-j)h+1]yj.

    The above scheme has one step error of 𝒪(h2), overall error of 𝒪(h).

2Track 2

  1. Construct an approximant of e𝑨(t) where 𝑨(t)m×m is a symmetric positive definite matrix-valued function of t.

    Solution. Many approaches are possible; the question tests understanding of the overall course material to the level of proposing a viable technique.

    Simplest approach. 𝑨(t) s.p.d. implies it is unitarily diagonalizable, i.e., t, 𝑸(t)m×m, 𝑸𝑸T=𝑸T𝑸=𝑰 such that

    𝑨(t)=𝑸(t)𝚲(t)𝑸T(t).

    By definition

    e𝑨(t)=𝑰+11!𝑨(t)+12!𝑨2(t)+=𝑸(t)[𝑰+11!𝚲(t)+12!𝚲2(t)+]𝑸T(t)=𝑸(t)e𝚲(t)𝑸T(t).

    Introduce a piecewise constant approximation of 𝑨(t)𝑨k for t[tk-1,tk) (0-degree B-spline basis). Then

    e𝑨(t)=𝑸ke𝚲k𝑸kT=𝑸kdiag(λ1k,..,λmk)𝑸kT.

    Extension to a piecewise linear approximation

    𝑨(t)=𝑨k-1+(t-tk-1tk-tk-1)(𝑨k-𝑨k-1)

    is not immediate since 𝑨k-𝑨k-1 is not guaranteed to be s.p.d.

    Differential system approach. Recall that y'=ay has solution y(t)=eaty0, and y'=a(t)y has solution

    y(t)=exp[0ta(τ)dτ]y0.

    With 𝑩(t)=𝑨'(t), ODE system

    𝒚'=𝑩𝒚 (1)

    has solution

    𝒚(t)=exp[0t𝑩(τ)dτ]𝒚0=exp[0t𝑨'(t)dτ]𝒚0=exp[𝑨(t)-𝑨(0)]𝒚0=e𝑨(t)𝒚0-e𝑨0𝒚0.

    Column j of e𝑨(t) is obtained as

    e𝑨(t)𝒆j,

    i.e., the action of e𝑨(t) on the jth column vector of the identity matrix. This can be obtained by any numerical scheme to solve the ODE system (1) starting from initial condition 𝒚0=𝒆j, amd adding e𝑨0𝒚0 to the result.

  2. Construct a quadrature formula for integrals of the form

    0e𝑨(t)𝒇(t)dt,

    where 𝑨(t)m×m is a symmetric negative definite matrix-valued function of t, and 𝒇:m has Riemann integrable components.

    Solution. 𝑨(t) admits an orthogonal diagonalization

    𝑨(t)=𝑸(t)𝚲(t)𝑸T(t)

    with 𝚲(t)=diag(λ1,..,λm), λi<0, and the matrix exponential is

    e𝑨(t)=𝑸(t)𝒆𝚲(t)𝑸T(t).

    Define the scalar product

    (𝒇,𝒈)𝑨=0𝒈T(t)e𝑨(t)𝒇(t)dt=0𝒈T(t)𝑸(t)𝒆𝚲(t)𝑸T(t)𝒇(t)dt.

    Approximate 𝒇(t),𝒈(t) on the 𝑸(t) basis

    𝒇(t)𝑸(t)𝒄(t)𝒄(t)=𝑸T(t)𝒇(t),𝒈(t)𝑸(t)𝒅(t)𝒅(t)=𝑸T(t)𝒈(t),

    and obtain

    (𝒇,𝒈)𝑨=(𝒄,𝒅)𝚲=0𝒅T(t)𝒆𝚲(t)𝒄(t)dt.

    Denote by θj the average value of λj(t), 𝚯=diag(θ1,..,θm) such that, by mean value theorem

    (𝒇,𝒈)𝑨=(𝒄,𝒅)𝚲=0𝒅T(t)𝒆𝚲(t)𝒄(t)dt=0𝒅T(t)𝒆𝚯𝒄(t)dt.

    Interpret above as stating that standard Gauss-Laguerre quadrature formulas

    I(f)=0e-tf(t)dti=0nwifi=Q(f)

    are applicable to the individual components of

    𝒄(t)=𝑸T(t)𝒇(t),

    using scale transformation

    0e-θtf(t)dt=1θ0e-sf(s/θ)ds=1θ0e-sg(s)ds=1θQ(g).
  3. Find the best approximant of 𝒚m within C(𝑨), 𝑨m×n in a space with scalar product

    (𝒖,𝒗)=𝒖T𝑷𝒗,

    and norm

    ||𝒖||=(𝒖,𝒖)1/2,

    where 𝑷m×m is symmetric positive definite. Verify the correspondence principle that for 𝑷=𝑰 standard least-squares projection is obtained.

    Solution. Construct an orthogonal factorization 𝑨=𝑸𝑹 using Gram-Schmidt and the specified scalar product

    Algorithm 1

    for i=1:n

    𝒒i=𝒂i

    for j=1:i-1

    rji=𝒒jT𝑷𝒒i

    𝒒i=𝒒i-rji𝒒j

    end

    rii=𝒒iT𝑷𝒒i

    𝒒i=𝒒i/rii

    end

    The matrix 𝑸=[ 𝒒1 𝒒n ] satisfies orthogonality relationship 𝑸T𝑷𝑸=𝑰

    [ 𝒒1T 𝒒nT ]𝑷[ 𝒒1 ... 𝒒n ]=[ 𝒒1T 𝒒nT ][ 𝑷𝒒1 ... 𝑷𝒒n ]=[ 𝒒1T𝑷𝒒1 𝒒1T𝑷𝒒2 ... ]=𝑰n

    The residual 𝒓=𝒚-𝑨𝒙 is orthogonal to C(𝑨)

    (𝒒j,𝒚-𝑨𝒙)=0𝑸T𝑷(𝒕-𝑨𝒙)=0𝑸T𝑷𝑨𝒙=𝑸T𝑷𝒚
    𝑸T𝑷𝑸𝑹𝒙=𝑸T𝑷𝒚𝑹𝒙=𝑸T𝑷𝒚.

    The best approximant is 𝒛=𝑨𝒙=𝑸𝑹𝒙=𝑸𝑸T𝑷𝒚. For 𝑷=𝑰, the Euclidean projection 𝒛=𝑸𝑸T𝒚

    is obtained.

  4. Find the best inf-norm approximant of f:[0,), f(t)=e-tcost by a first-degree polynomial.

    Solution. The approximation error is

    ε(t)=e-tcost-(at+b)

    and the problem is stated as

    mina,b||ε||=mina,bsupt|ε(t)|.

    Since a0 leads to infinitely large error, simplify the problem to

    minbsupt|e-tcost-b|.

    The derivative

    f'(t)=e-t(-sint-cost)=-2e-tsin(t+π4)

    has a root at ξ=3π/4 at which point

    f(3π/4)=-e-3π/4/2.

    Equioscillation theorem is satisfied by

    b=12(1-e-3π/4/2).
  5. Consider the half-derivative operator H defined as

    H2f=H(Hf)=Df

    where D=d/dt is the derivative operator. Propose a numerical scheme to evaluate Hf that can be used to solve fractional differential equations.

    Solution. The differentiation operator D is approximated to order k in terms of the backward finite difference operator =E0-E-1=I-E-1 by

    H2Dk=1h(+22+33++kk),

    where (Ekf)(x0)=f(x0+kh) is the argument translation operator.

    Consider k=1

    H1h1/2=1h(I-E-1)1/2,

    and apply the generalized binomial expansion

    (a+b)r=k=0( r k )ar-kbk,

    for a=I, b=-E-1, r=1/2. Obtain

    hH( r 0 )(-E-1)0+( r 1 )(-E-1)1+( r 2 )(-E-1)2+
    hHI-12E-1-18E-2-116E-3-5128E-4-.

    Apply the above to fractional equation Hf=g, and obtain the scheme

    fi-12fi-1-18fi-2-116fi-3-5128fi-4=hgi.