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+⁡c1⁡t+c2⁡t2⁡.

    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

    ∫0∞e-α⁡t⁡f(t)⁡dt.

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

    ∫0∞e-α⁡t⁡f(t)⁡dt≅∑i=0n⁡wi⁡fi

    by imposing the moment conditions

    ∫0∞e-α⁡t⁡tj⁡⁡dt=∑i=0n⁡wi⁡tij,k=0,1,..,n

    a linear system with a Vandermonde system matrix

    𝑽⁡𝒘=𝒃⁡.

    The moments are analytically evaluated through integration by parts

    bj=∫0∞e-α⁡t⁡tj⁡⁡dt=jα∫0∞e-α⁡t⁡tj⁡⁡dt=jα⁡bj-1=j!aj+1,⁡b0=1α.
  3. Find the best approximant in the least squares sense of sin⁡t 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π3⁡t
    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 sin⁡t 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

    sin⁡t≅6π32π3⁡t=3π2⁡t⁡.
  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+b⁡t 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=i⁡h, yi≅y(ti), and discretize the derivative through forward differencing (forward Euler, second-order one-step error)

    yi+1-yi=-h⁡yi+∑j=1i+1⁡∫tj-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=-h⁡yi+h2∑j=1i+1⁡[sin(ti-tj-1)yj-1+sin(ti-tj)yj]⇒
    yi+1-yi=-h⁡yi+h2⁡[∑j=0isin(ti+1-tj)yj+∑j=1i+1sin(ti-tj)yj]⇒
    yi+1-yi=-h⁡yi+h2⁡sin(ti+1)⁡y0+h2⁡∑j=1i[sin(ti+1-tj)+sin(ti-tj)]yj+h2⁡sin(ti-ti+1)⁡yi+1⇒
    (1+h⁡sin⁡h2)yi+1=(1+h)yi++h2⁡sin(ti+1)⁡y0+h⁡cos⁡h∑j=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)=𝑸k⁡e𝚲k⁡𝑸kT=𝑸k⁡diag(λ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'=a⁡y has solution y(t)=ea⁡t⁡y0, 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

    ∫0∞e𝑨(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)=∫0∞e-t⁡f(t)⁡d⁡t≅∑i=0n⁡wi⁡fi=Q(f)

    are applicable to the individual components of

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

    using scale transformation

    ∫0∞e-⁡θ⁡t⁡f(t)⁡d⁡t=1θ∫0∞e-⁡s⁡f(s/θ)⁡d⁡s=1θ∫0∞e-⁡s⁡g(s)⁡d⁡s=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

    rj⁡i=𝒒jT⁡𝑷⁡⁡𝒒i

    𝒒i=𝒒i-rj⁡i⁡𝒒j

    end

    ri⁡i=𝒒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-t⁡cos⁡t by a first-degree polynomial.

    Solution. The approximation error is

    ε(t)=e-t⁡cos⁡t-⁡(a⁡t+b)

    and the problem is stated as

    mina,b||ε||∞=mina,b⁡supt∈ℝ|ε(t)|⁡.

    Since a≠0 leads to infinitely large error, simplify the problem to

    minb⁡supt∈ℝ|e-t⁡cos⁡t-b|⁡.

    The derivative

    f'(t)=e-t(-sin⁡t-cos⁡t)=-2⁡e-t⁡sin(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

    H2⁡f=H(H⁡f)=D⁡f

    where D=d/dt is the derivative operator. Propose a numerical scheme to evaluate H⁡f 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

    H2≅Dk=1h(∇+∇22+∇33+⋯+∇kk),

    where (Ekf)(x0)=f(x0+k⁡h) is the argument translation operator.

    Consider k=1

    H≅1h⁡∇1/2=1h(I-E-1)1/2,

    and apply the generalized binomial expansion

    (a+b)r=∑k=0∞⁡( r k )ar-k⁡bk,

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

    h⁡H≅( r 0 )(-E-1)0+( r 1 )(-E-1)1+( r 2 )(-E-1)2+⋯⇒
    h⁡H≅I-12E-1-18⁡E-2-116E-3-5128⁡E-4-⋯⁡.

    Apply the above to fractional equation H⁡f=g, and obtain the scheme

    fi-12⁡fi-1-18⁡fi-2-116⁡fi-3-5128⁡fi-4=h⁡gi⁡.