Sample MATH 258 questions
  1. Separable and Linear First-Order Equations · Multiple choice · 1 mark

    The solution of the initial value problem y′=xyy' = \dfrac{x}{y}, y(0)=−2y(0) = -2 is

    1. y=x2+4y = \sqrt{x^2 + 4}

    2. y=−x2−4y = -\sqrt{x^2 - 4}

    3. y=−x2+4y = -\sqrt{x^2 + 4}

    4. y=−x2+2y = -\sqrt{x^2 + 2}

    Show solution

    Answer: (C)

    Separating, y dy=x dxy\,dy = x\,dx, so 12y2=12x2+C\tfrac12 y^2 = \tfrac12 x^2 + C, i.e. y2=x2+C1y^2 = x^2 + C_1. The condition y(0)=−2y(0)=-2 gives C1=4C_1 = 4, so y2=x2+4y^2 = x^2+4. The initial value is negative, so we take the negative root: y=−x2+4y=-\sqrt{x^2+4}. The positive root ignores the sign of y(0)y(0); x2−4x^2-4 comes from putting C1=y(0)C_1=y(0) instead of y(0)2y(0)^2; and x2+2x^2+2 forgets to double the constant.

  2. Homogeneous Linear Equations · Short answer · 2 marks

    Solve y′′−4y′+4y=0y''-4y'+4y=0, y(0)=1y(0)=1, y′(0)=5y'(0)=5.

    y(t)=y(t)=    

    Show solution

    Answer: (1+3t)e2t(1+3t)e^{2t}

    The characteristic equation (r−2)2=0(r-2)^2=0 has the repeated root 22, so y=(c1+c2t)e2ty=(c_1+c_2t)e^{2t}. Then y(0)=c1=1y(0)=c_1=1 and y′(0)=2c1+c2=5y'(0)=2c_1+c_2=5 gives c2=3c_2=3, so y=(1+3t)e2ty=(1+3t)e^{2t}.

  3. Linear Systems and Phase Portraits · Multiple choice · 1 mark

    With x1=yx_1=y and x2=y′x_2=y', the equation y′′+5y′+6y=0y''+5y'+6y=0 becomes x′=Ax\mathbf{x}'=A\mathbf{x} where AA equals

    1. (01−6−5)\begin{pmatrix}0&1\\-6&-5\end{pmatrix}

    2. (0165)\begin{pmatrix}0&1\\6&5\end{pmatrix}

    3. (01−5−6)\begin{pmatrix}0&1\\-5&-6\end{pmatrix}

    4. (0−61−5)\begin{pmatrix}0&-6\\1&-5\end{pmatrix}

    Show solution

    Answer: (A)

    x1′=x2x_1'=x_2 and x2′=y′′=−6y−5y′=−6x1−5x2x_2'=y''=-6y-5y'=-6x_1-5x_2, so the rows are (0, 1)(0,\ 1) and (−6, −5)(-6,\ -5). The option with (6,5)(6,5) drops the signs, the option with (−5,−6)(-5,-6) swaps the two coefficients, and the last option is the transpose.

  4. Laplace Transforms · Problem · 4 marks

    A damped system is started and then struck at time π\pi:

    y′′+2y′+2y=δ(t−π),y(0)=0,y′(0)=1. y''+2y'+2y=\delta(t-\pi),\qquad y(0)=0,\quad y'(0)=1 .

    1. Find Y(s)=L{y(t)}Y(s)=\mathcal{L}\{y(t)\}. [1]

    2. Find y(t)y(t) and write it separately for 0≤t<π0\le t<\pi and t≥πt\ge\pi. [2]

    3. Show that y′y' jumps by exactly 11 at t=πt=\pi while yy is continuous there. [1]

    Show solution

    (a) (s2+2s+2)Y=1+e−πs(s^{2}+2s+2)Y=1+e^{-\pi s}, so Y(s)=1+e−πs(s+1)2+1Y(s)=\dfrac{1+e^{-\pi s}}{(s+1)^{2}+1}.

    (b) L−1{1(s+1)2+1}=e−tsin⁡t\mathcal{L}^{-1}\left\{\dfrac1{(s+1)^{2}+1}\right\}=e^{-t}\sin t, so y(t)=e−tsin⁡t+uπ(t) e−(t−π)sin⁡(t−π)=e−tsin⁡t−uπ(t) e−(t−π)sin⁡ty(t)=e^{-t}\sin t+u_{\pi}(t)\,e^{-(t-\pi)}\sin(t-\pi)=e^{-t}\sin t-u_{\pi}(t)\,e^{-(t-\pi)}\sin t. Hence y=e−tsin⁡ty=e^{-t}\sin t for 0≤t<π0\le t<\pi and y=(1−eπ)e−tsin⁡ty=(1-e^{\pi})e^{-t}\sin t for t≥πt\ge\pi.

    (c) At t=πt=\pi both pieces vanish, so yy is continuous. Differentiating, y1′(π)=e−π(cos⁡π−sin⁡π)=−e−πy_{1}'(\pi)=e^{-\pi}(\cos\pi-\sin\pi)=-e^{-\pi} and y2′(π)=(1−eπ)e−π(−1)=1−e−πy_{2}'(\pi)=(1-e^{\pi})e^{-\pi}(-1)=1-e^{-\pi}. The jump is (1−e−π)−(−e−π)=1\left(1-e^{-\pi}\right)-\left(-e^{-\pi}\right)=1.

  5. Mechanical Vibrations and Resonance · Multiple choice · 1 mark

    An undamped system satisfies x¨+4x=3cos⁡2t+5\ddot x+4x=3\cos2t+5. Which is the correct form of a particular solution for the method of undetermined coefficients?

    1. xp=Acos⁡2t+Bsin⁡2t+Cx_p=A\cos2t+B\sin2t+C

    2. xp=t(Acos⁡2t+Bsin⁡2t+C)x_p=t(A\cos2t+B\sin2t+C)

    3. xp=t(Acos⁡2t+Bsin⁡2t)+Cx_p=t(A\cos2t+B\sin2t)+C

    4. xp=t(Acos⁡2t+Bsin⁡2t)+Ctx_p=t(A\cos2t+B\sin2t)+Ct

    Show solution

    Answer: (C)

    The homogeneous solutions are cos⁡2t\cos2t and sin⁡2t\sin2t. The term 3cos⁡2t3\cos2t duplicates them, so its trial function gets a factor tt: t(Acos⁡2t+Bsin⁡2t)t(A\cos2t+B\sin2t). The constant forcing 55 does not duplicate anything (r=0r=0 is not a root), so its trial function is just CC, with no factor tt. The form without any tt fails at the resonant term, and multiplying the constant by tt (in either of the last two forms) is unnecessary.

About MATH 258 practice exams

MATH 258 practice exams

Differential Equations for Mechanical Engineering · University of British Columbia (UBC, UBC Vancouver) · also written MATH258

Make a free, printable MATH 258 practice exam: choose the topics, the length and the difficulty above, and get an exam-style PDF with a full answer key. Each paper draws on 350 original questions and skips the ones you have already seen.

Looking for MATH 258 past exams?

Start with the past exams and tests your instructor or the UBC library shares: they show what your course actually asks. Most courses only have a few, so once you have worked through them, make fresh MATH 258 practice exams here on the same topics, with full answer keys, as many as you need. The questions here are original, not copies of past exams.

Topics covered

  • Separable and Linear First-Order Equations · 50 questions
  • Homogeneous Linear Equations · 50 questions
  • Nonhomogeneous Equations · 50 questions
  • Linear Systems and Phase Portraits · 50 questions
  • Laplace Transforms · 50 questions
  • Nonlinear Systems and Stability · 50 questions
  • Mechanical Vibrations and Resonance · 50 questions

More UBC courses

questionbank.dev is independent and not affiliated with University of British Columbia. Course codes only say which topics a paper covers; papers are original practice material, not past or upcoming exams.