Course Test · University: first two years

Ordinary differential equations: independent answers

Each answer here was worked out by hand, without RatMath, before the RatMath code was written. Where the arithmetic is long, the working says how it was checked.

  1. 1.Separable
    Solve y′=xy2y' = xy^2, y(0)=1y(0) = 1.
    Answer
    −1/y=x2/2+C-1/y = x^2/2 + C, C=−1C = -1: y=22−x2y = \dfrac{2}{2 - x^2}.
  2. 2.Linear, integrating factor
    Solve y′+2y=e−xy' + 2y = e^{-x}, y(0)=0y(0) = 0.
    Answer
    (ye2x)′=ex(ye^{2x})' = e^x: y=e−x−e−2xy = e^{-x} - e^{-2x}.
  3. 3.Exact equation
    Solve (2xy+3) dx+(x2−1) dy=0(2xy + 3)\,dx + (x^2 - 1)\,dy = 0.
    Answer
    My=2x=NxM_y = 2x = N_x. ψ=x2y+3x−y=C\psi = x^2y + 3x - y = C.
  4. 4.Bernoulli
    Solve y′=y2−yy' = y^2 - y.
    Answer
    v=1/yv = 1/y: v′−v=−1v' - v = -1, v=1+Cexv = 1 + Ce^x: y=11+Cexy = \dfrac{1}{1 + Ce^x} (and y=0y = 0).
  5. 5.Homogeneous
    Solve y′=x+yxy' = \dfrac{x + y}{x} for x>0x > 0.
    Answer
    y=vxy = vx: v+xv′=1+vv + xv' = 1 + v, v=ln⁡x+Cv = \ln x + C: y=xln⁡x+Cxy = x\ln x + Cx.
  6. 6.Distinct real roots
    Solve y′′−5y′+6y=0y'' - 5y' + 6y = 0.
    Answer
    r2−5r+6=0r^2 - 5r + 6 = 0, r=2,3r = 2, 3: y=C1e2x+C2e3xy = C_1e^{2x} + C_2e^{3x}.
  7. 7.Repeated root
    Solve y′′+4y′+4y=0y'' + 4y' + 4y = 0, y(0)=1y(0) = 1, y′(0)=0y'(0) = 0.
    Answer
    y=(C1+C2x)e−2xy = (C_1 + C_2x)e^{-2x}; C1=1C_1 = 1, C2−2=0C_2 - 2 = 0: y=(1+2x)e−2xy = (1 + 2x)e^{-2x}.
  8. 8.Complex roots
    Solve y′′+2y′+5y=0y'' + 2y' + 5y = 0.
    Answer
    r=−1±2ir = -1 \pm 2i: y=e−x(C1cos⁡2x+C2sin⁡2x)y = e^{-x}(C_1\cos 2x + C_2\sin 2x).
  9. 9.Undetermined coefficients
    Find a particular solution of y′′−3y′+2y=4xy'' - 3y' + 2y = 4x.
    Answer
    yp=Ax+By_p = Ax + B: 2A=42A = 4, −3A+2B=0-3A + 2B = 0: yp=2x+3y_p = 2x + 3.
  10. 10.Resonance
    Find a particular solution of y′′+y=cos⁡xy'' + y = \cos x.
    Answer
    yp=x2sin⁡xy_p = \tfrac{x}{2}\sin x.
  11. 11.Variation of parameters
    Find a particular solution of y′′+y=sec⁡xy'' + y = \sec x.
    Answer
    yp=xsin⁡x+cos⁡xln⁡∣cos⁡x∣y_p = x\sin x + \cos x\ln|\cos x|.
  12. 12.Laplace transform
    Find L{t2e3t}\mathcal L\{t^2e^{3t}\}.
    Answer
    2(s−3)3\dfrac{2}{(s - 3)^3}.
  13. 13.Inverse Laplace transform
    Find L−1{s+1s2+4s+13}\mathcal L^{-1}\left\{\dfrac{s + 1}{s^2 + 4s + 13}\right\}.
    Answer
    (s+2)−1(s+2)2+9\dfrac{(s + 2) - 1}{(s + 2)^2 + 9}: e−2t(cos⁡3t−13sin⁡3t)e^{-2t}\left(\cos 3t - \tfrac13\sin 3t\right).
  14. 14.Step forcing
    Solve y′+y=u(t−1)y' + y = u(t - 1), y(0)=0y(0) = 0, where uu is the unit step.
    Answer
    Y=e−ss(s+1)Y = \dfrac{e^{-s}}{s(s + 1)}: y=u(t−1)(1−e−(t−1))y = u(t - 1)\left(1 - e^{-(t - 1)}\right).
  15. 15.Linear system
    Solve x′=(1221)x\mathbf x' = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix}\mathbf x and classify the origin.
    Answer
    Eigenvalues 3 with (1,1)(1, 1), −1-1 with (1,−1)(1, -1): x=c1e3t(1,1)+c2e−t(1,−1)\mathbf x = c_1e^{3t}(1, 1) + c_2e^{-t}(1, -1). A saddle, unstable.
  16. 16.Classifying an equilibrium
    Classify the origin for x′=yx' = y, y′=−x−yy' = -x - y.
    Answer
    Trace −1-1, determinant 1, discriminant 1−4<01 - 4 < 0: a stable spiral.
  17. 17.Nonlinear phase plane
    Find and classify the equilibria of x′=x(3−x−y)x' = x(3 - x - y), y′=y(x−1)y' = y(x - 1) with x,y≥0x, y \ge 0.
    Answer
    (0,0)(0, 0) saddle; (3,0)(3, 0) saddle; (1,2)(1, 2): Jacobian (−1−120)\begin{pmatrix} -1 & -1 \\ 2 & 0 \end{pmatrix}, trace −1-1, det 2: stable spiral.
  18. 18.Series solution
    Find the first terms of the power series solutions of Airy's equation y′′−xy=0y'' - xy = 0 about 0.
    Answer
    an+2=an−1(n+2)(n+1)a_{n+2} = \dfrac{a_{n-1}}{(n + 2)(n + 1)}: 1+x36+x6180+⋯1 + \tfrac{x^3}{6} + \tfrac{x^6}{180} + \cdots and x+x412+x7504+⋯x + \tfrac{x^4}{12} + \tfrac{x^7}{504} + \cdots.
  19. 19.Euler's method
    Use Euler's method with h=0.25h = 0.25 on y′=yy' = y, y(0)=1y(0) = 1 to estimate y(1)y(1).
    Answer
    yn+1=1.25 yny_{n+1} = 1.25\,y_n: 1.254=2.441406251.25^4 = 2.44140625 (true value e≈2.71828e \approx 2.71828).
  20. 20.Newton's law of cooling
    Coffee at 90° cools in a 20° room, T′=−k(T−20)T' = -k(T - 20). After 10 minutes it is 60°. What is it after 20 minutes?
    Answer
    T−20=70e−ktT - 20 = 70e^{-kt}, e−10k=47e^{-10k} = \tfrac47. At 20 minutes: 20+70⋅1649=3007≈42.86°20 + 70\cdot\tfrac{16}{49} = \tfrac{300}{7} \approx 42.86°.