Level 2 — RecallOrdinary Differential Equations

Ordinary Differential Equations

30 minutes40 marksprintable — key stays hidden on paper

Level: 2 — Recall & Standard Techniques Time limit: 30 minutes Total marks: 40

Answer all questions. Show working where indicated.

Q1. (3 marks) State the order and degree of each ODE, and say whether it is linear or nonlinear: (a) (d2ydx2)3+ydydx=x\left(\dfrac{d^2y}{dx^2}\right)^3 + y\dfrac{dy}{dx} = x (b) dydx+p(x)y=q(x)\dfrac{dy}{dx} + p(x)y = q(x)

Q2. (4 marks) Solve the separable equation dydx=xy\dfrac{dy}{dx} = \dfrac{x}{y} with y(0)=2y(0) = 2. Give the explicit solution.

Q3. (5 marks) Solve dydx+2y=ex\dfrac{dy}{dx} + 2y = e^{-x} using an integrating factor. State the integrating factor explicitly.

Q4. (5 marks) Find the general solution of y5y+6y=0y'' - 5y' + 6y = 0.

Q5. (4 marks) Find the general solution of y+4y=0y'' + 4y = 0 in terms of real functions.

Q6. (4 marks) Verify Mdx+Ndy=0M\,dx + N\,dy = 0 with M=2xyM = 2xy, N=x2+3y2N = x^2 + 3y^2 is exact, and find the implicit solution.

Q7. (4 marks) Compute L{e3t}\mathcal{L}\{e^{3t}\} and L{sin(2t)}\mathcal{L}\{\sin(2t)\}, stating regions of convergence.

Q8. (4 marks) Find the inverse Laplace transform of s+1s2+4s+13\dfrac{s+1}{s^2 + 4s + 13}.

Q9. (4 marks) State the Picard–Lindelöf existence and uniqueness theorem.

Q10. (3 marks) For dydx+y=y2\dfrac{dy}{dx} + y = y^2, state the substitution that linearises it and write the resulting linear ODE.

Answer keyMark scheme & solutions

Q1. (3 marks) (a) Highest derivative yy''order 2. Highest power of yy'' is 3 → degree 3. Contains yyy\,y' (product of yy and derivative) → nonlinear. (1.5) (b) Order 1, degree 1, linear — coefficients depend only on xx, yy appears to first power. (1.5)

Q2. (4 marks) Separate: ydy=xdxy\,dy = x\,dx. (1) Integrate: y22=x22+C\tfrac{y^2}{2} = \tfrac{x^2}{2} + Cy2=x2+C1y^2 = x^2 + C_1. (1) Apply y(0)=2y(0)=2: 4=0+C1C1=44 = 0 + C_1 \Rightarrow C_1 = 4. (1) Explicit: y=x2+4y = \sqrt{x^2 + 4} (positive root since y(0)=2>0y(0)=2>0). (1)

Q3. (5 marks) Integrating factor μ=e2dx=e2x\mu = e^{\int 2\,dx} = e^{2x}. (1) Multiply: (e2xy)=e2xex=ex(e^{2x}y)' = e^{2x}e^{-x} = e^{x}. (2) Integrate: e2xy=ex+Ce^{2x}y = e^{x} + C. (1) Solution: y=ex+Ce2xy = e^{-x} + Ce^{-2x}. (1)

Q4. (5 marks) Characteristic equation: r25r+6=0r^2 - 5r + 6 = 0. (2) Factor: (r2)(r3)=0r=2,3(r-2)(r-3)=0 \Rightarrow r = 2, 3. (2) General solution: y=C1e2x+C2e3xy = C_1 e^{2x} + C_2 e^{3x}. (1)

Q5. (4 marks) Characteristic: r2+4=0r=±2ir^2 + 4 = 0 \Rightarrow r = \pm 2i. (2) Complex roots α±iβ\alpha \pm i\beta with α=0,β=2\alpha=0,\beta=2. (1) y=C1cos2x+C2sin2xy = C_1\cos 2x + C_2\sin 2x. (1)

Q6. (4 marks) M/y=2x\partial M/\partial y = 2x, N/x=2x\partial N/\partial x = 2x → equal, so exact. (1) F=Mdx=x2y+g(y)F = \int M\,dx = x^2 y + g(y). (1) F/y=x2+g(y)=N=x2+3y2g(y)=3y2g=y3\partial F/\partial y = x^2 + g'(y) = N = x^2 + 3y^2 \Rightarrow g'(y)=3y^2 \Rightarrow g=y^3. (1) Implicit solution: x2y+y3=Cx^2 y + y^3 = C. (1)

Q7. (4 marks) L{e3t}=1s3\mathcal{L}\{e^{3t}\} = \dfrac{1}{s-3}, ROC s>3s>3. (2) L{sin2t}=2s2+4\mathcal{L}\{\sin 2t\} = \dfrac{2}{s^2+4}, ROC s>0s>0. (2)

Q8. (4 marks) Complete square: s2+4s+13=(s+2)2+9s^2+4s+13 = (s+2)^2 + 9. (1) Rewrite numerator: s+1=(s+2)1s+1 = (s+2) - 1. (1) s+2(s+2)2+9133(s+2)2+9\dfrac{s+2}{(s+2)^2+9} - \dfrac{1}{3}\cdot\dfrac{3}{(s+2)^2+9}. (1) Inverse: e2tcos3t13e2tsin3te^{-2t}\cos 3t - \tfrac{1}{3}e^{-2t}\sin 3t. (1)

Q9. (4 marks) If f(x,y)f(x,y) is continuous on a rectangle RR containing (x0,y0)(x_0,y_0) (1), and satisfies a Lipschitz condition in yy (equivalently f/y\partial f/\partial y continuous) on RR (2), then there exists a unique solution y(x)y(x) to the IVP on some interval xx0<h|x-x_0|<h (1).

Q10. (3 marks) Bernoulli with n=2n=2; substitution v=y1n=y1v = y^{1-n} = y^{-1}. (1) Then v=y2yv' = -y^{-2}y'; dividing original by y2y^2 and substituting gives (1): dvdxv=1\dfrac{dv}{dx} - v = -1. (1)

[
  {"claim":"Q2 IVP solution y=sqrt(x^2+4) satisfies ODE and IC","code":"x=symbols('x'); y=sqrt(x**2+4); ode=simplify(diff(y,x)-x/y); ic=y.subs(x,0)-2; result=(ode==0) and (ic==0)"},
  {"claim":"Q3 general solution satisfies y'+2y=e^-x","code":"x,C=symbols('x C'); y=exp(-x)+C*exp(-2*x); result=simplify(diff(y,x)+2*y-exp(-x))==0"},
  {"claim":"Q4 roots of r^2-5r+6 are 2 and 3","code":"r=symbols('r'); result=set(solve(r**2-5*r+6,r))=={2,3}"},
  {"claim":"Q8 inverse Laplace gives e^-2t(cos3t - sin3t/3)","code":"s,t=symbols('s t',positive=True); F=(s+1)/(s**2+4*s+13); f=exp(-2*t)*(cos(3*t)-sin(3*t)/3); result=simplify(laplace_transform(f,t,s,noconds=True)-F)==0"}
]