MATH383: A first course in differential equationsFebruary 20, 2019

Practice Test 2

Solve the following problems (3 course points each). Present a brief motivation of your method of solution. Explicitly state any conditions that must be met for solution procedure to be valid. Organize your computation and writing so the solution you present is readily legible.

No credit is awarded for statement of the final answer to a problem without presentation of the solution procedure.

  1. A benefactor wishes to establish a trust fund to pay a researcher's salary for T years. The salary is to start at S0 dollars per year and increase at a fractional rate of a per year. Find the amount of money P0 that the benefactor must deposit in a trust fund paying interest at a rate r per year. Assume that the researcher's salary is paid continuously, the interest is compounded continuously, and the salary increases are granted continuously.

    Solution. The salary increases as S'(t)=aS(t), with solution S(t)=eatS0. The trust fund rate of change is P'=rP-S(t)=rP-eatS0. Solve homogeneous equation P'=rP to find Ph(t)=uert, and apply variation of parameters, (uert)'=ruert-eatS0, to obtain the equation, u'=-e(a-r)tS0, solvable by direct integration to give

    u=-1a-re(a-r)tS0+C,

    leading to solution of trust fund balance

    P(t)=Cert-1a-reatS0.

    From initial condition P(0)=P0 obtain P0=C-S0/(a-r), hence

    P(t)=[P0+S0a-r]ert-1a-reatS0=P0ert+S0a-r(ert-eat).

    To ensure P(t)>0, i.e., there's always money in the trust fund the initial amount P0 must satisfy

    P0>S01-e(a-r)tr-a.

    Assuming the trust fund goes to zero balance after T years, P(T)=0

    0=P0+S0a-r(1-e(a-r)t)P0=S0r-a(1-e(a-r)t),

    is the necessary initial trust fund amount.

  2. A tank initially contains 100 liters of a salt solution with a concentration of .1 g/liter. A solution with a salt concentration of .3 g/liter is added to the tank at 5 liters/min, and the resulting mixture is drained out at the same rate. Find the concentration K(t) of salt in the tank as a function of time t.

    Solution. The tank always contains V=100 liters, and the salt in the tank is concentration times volume or S(t)=VK(t). With c=0.3 g/liter, Q=5 liters/minute, the amount of salt added in grams per minute is cQ. The amount of salt lost by tank drainage is QK, so the change in salt content is

    S'=cQ-QKVK'=(c-K)QK'+QVK=cQV.

    Solution of homogeneous equation K'+(Q/V)K=0, is Kh(t)=e-Qt/V. BY variation of parameters, try K(t)=u(t)Kh(t), and obtain

    u'=cQVeQt/V+C,K(t)=cQV+CeQt/V.

    Initial condition K(0)=K0=.1 g/liter gives K0=cQ/V+CC=K0-cQ/V, hence

    K(t)=cQV+(K0-cQV)eQt/V=0.35100+(0.1-0.35100)exp(0.35t100).

  3. Consider the functions 𝑭={f1(t),f2(t),f3(t),f4(t),f5(t)}={1,cost,sint,cos2t,sin2t}.

    1. Determine whether the functions are linearly independent on the interval [0,2π].

      Solution. Write a1f1+a2f2+a3f3+a4f4+a5f5=0, with a1,,a5,

      a1+a2cost+a3sint+a4cos2t+a5sin2t=0.

      Evaluate at t=-π,-π/2,0,π/2 to obtain

      a1-a2+a4=0 a1-a3-a4=0 a1+a2+a4=0 a1+a3-a4=0 ( 1 -1 0 1 1 0 -1 -1 1 1 0 1 1 0 1 -1 )( a1 a2 a3 a4 )=( 0 0 0 0 ).

      Solve system by Gaussian elimination

      ( 1 -1 0 1 0 1 0 -1 -1 0 1 1 0 1 0 1 0 1 -1 0 )( 1 -1 0 1 0 0 2 -1 -3 0 0 2 0 0 0 0 1 1 -2 0 )( 1 -1 0 1 0 0 2 0 0 0 0 2 -1 -3 0 0 1 1 -2 0 )( 1 -1 0 1 0 0 2 0 0 0 0 0 -1 -3 0 0 0 1 -2 0 )
      ( 1 -1 0 1 0 0 2 0 0 0 0 0 -1 -3 0 0 0 0 -5 0 )

      or a1=a2=a3=a4=0. Choose t=π/4 to then obtain that a5=0, so 𝑭 forms a linearly independent set.

    2. The functions f4,f5 can be stated in terms of f2,f3 through the identities sin2t=2sintcost, cos2t=cos2t-sin2t. Does this imply that they are linearly dependent?

      Solution. No, since sin2t=2sintcost, cos2t=cos2t-sin2t, are nonlinear relations between f1,,f5., and therefore furnish no information on linear dependence.

  4. Find and subsequently sketch the solution to the initial value problem

    y''+7y'+12y=-2cos2x+36sin2x,y(0)=-3,y'(0)=2.

    Solution. Try y=ert in the homogeneous equation y''+7y'+12y=0 to find

    r2+7r+12=(r+4)(r+3)=0,

    and the homogeneous solution yh=c1e-3x+c2e-4x. Try to find a particular solution of the inhomogeneous equation of the form yp=Asin2x+Bcos2x

    (Asin2x+Bcos2x)''+7(Asin2x+Bcos2x)'+12(Asin2x+Bcos2x)=-2cos2x+36sin2x
    (8A-14B)sin2x+(14A+8B)cos2x=-2cos2x+36sin2x
    { 4A-7B=18 7A+4B=-1 .A=1,B=-2.

    The solution is

    y=sin2x-2cos2x+c1e-3x+c2e-4x.

    Apply initial conditions

    y(0)=-3-2+c1+c2=-3 y'(0)=22-3c1-4c2=2 c1+c2=-1 3c1+4c2=0 c1=-4,c2=3.

    Solution is

    y=sin2x-2cos2x-4e-3x+3e-4x.