MATH383: A first course in differential equationsJanuary 24, 2019

Practice Test 1

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 solution procedure.

  1. Verify that

    y={ ex-1, x0, 1-e-x, x<0, .

    is a solution of y'=|y|+1.

    Solution. For x>0, y(x)=ex-1>0, which substituted in the differential equation y'=y+1 gives ex=ex-1+10=0, verified. For x<0, y(x)=1-e-x<0, which substituted in the differential equation y'=-y+1 gives e-x=-1+e-x+10=0, verified. Consider now the limiting behavior as x0 of y(x), and

    y'={ ex, x>0, e-x, x<0. .

    Since limx0,x<0y(x)=limx0,x>0y(x)=y(0)=0, deduce that y(x) is continuous everywhere, and a solution of y'=|y|+1. Note that limx0,x<0y'(x)=limx,x>0y'(x)=1=|y(0)|+1, hence the derivative y' is also continuous everywhere and y'=|y|+1 for all x, and the above is indeed a solution.

  2. Use variation of parameters and separation of variables to solve

    y'+y=2xe-x1+yex.

    Solution. Solve the homogeneous equation y'+y=0 to obtain yh=e-x. By variation of parameters, assume solution is of form y=uyh. Replace in above to obtain

    (uyh)'+(uyh)=u'e-x-ue-x+ue-x=u'e-x=2xe-x1+u(1+u)u'=2x.

    The differential equation in u is separable and a solution is found by integration

    (1+u)du=2xdxu+u22=x2+cu2+2u-2(x2+c)=0.

    Solutions of the quadratic equation are

    u=-1±(1+2(x2+c))1/2,

    so the differential equation has two solutions y=e-x[-1±(1+2(x2+c))1/2]

  3. Find all (x0,y0) for which the initial value problem

    y'=tanyx-1,y(x0)=y0

    has a unique solution on some open interval that contains x0.

    Solution. For the IVP to have a unique solution f(x,y)=tany/(x-1) must be continuous with a continuous derivative in y, fy=sec2y/(x-1)=1/[(x-1)cos2y]. Both f and fy are discontinuous at when cosy=0y=(2k+1)π/2,k. Furthermore f is also discontinuous at x=0. For the IVP to have an unique solution for some open interval that contains x0, we must have x00 and y(2k+1)π,k.

  4. Find all functions M such that M(x,y)dx+(x2-y2)dy=0 is exact.

    Solution. The differential M(x,y)dx+N(x,y)dy=0 is exact if My=Nx, or

    My=My=Nx=2xM=2xy+f(x),

    with f(x) some arbitrary (differentiable) function of x.