Jump to content

Differential Equations Examples

From UBC Wiki
This article is part of the MathHelp Tutoring Wiki


Initial Value Problem

Example 1 :
Question:

Solve the following initial value problem.
y=3t24 , y(0) = 5
Given that the general solution is f(t)=t34t+C
Solution:
Since we know y(0) = 5.
That means t = 0.
Therefore f(0)=034(0)+C=5
00+C=5
C=5
The desired solution is f(t)=t34t+5.


Example 2 :
Question:

Solve the following initial value problem.
y=2y , y(0) = 3
Given that the general solution is y=Ce2t
Solution:
Since we know y(0) = 3.
That means t = 0.
Therefore y(0)=Ce2(0)=3
C(1)=3
C=3
The desired solution is y=3e2t.

First-Order Linear Differential Equations

To solve first-order differential equations, you'll need to know the following facts:
  • A first-order linear differential equation in standard form is y' + a(t)y = b(t).
  • Find an integrating factor by integrating e^(∫a(t)dt) which will become the integrating factor in the form eA(t).
  • After find the integrating factor, multiply the first-order linear differential equation by the integrating factor.
  • Then be able to recognize how to combine terms in y' and y into a single term after multiplying the differential equation by the integrating factor, for example:
  1. ety+ety=ddt(ety)
  2. t2y+2ty=ddt(t2y)
  • After combining the terms into a single term, integrate both sides to solve for y.
  • By solving y, you can find the general solution for y.

Example 1 :
Question:

Solve t2y+ty.
Solution:
Divide both sides by t2 to ensure the differential equation is in its standard form (y' + a(t)y = b(t)).
So the differential equation turns into y+1ty=2t2
Find the integrating factor by integrating e^(∫a(t)dt) = e^(∫1tdt)=eln(t)
Then the integrating factor is eA(t)=eln(t)=t.
Multiply the differential equation by the integrating factor t.
(t)y+(t)1ty=(t)2t2=ty+y=2t
Recognize that the left hand side has the terms y' and y and you can combine them into a single term.
After combining it into a single term, it is ddt(ty)=2t.
You'll probably notice that you can combine the terms by recognizing that the single term is y times integrating factor = eA(t) and in this example, it is yt.
Now integrate both sides and you'll get ty = ∫2tdt=2lnt+C.
Now isolate y and get y=2lnt+Ct.
The general solution is y=2lnt+Ct.


Example 2 :
Question:

Solve y+y=1.
Solution:
We know that a(t) = 1 and b(t) = 1.
Integrating factor = e^(∫1dt) = et.
ety+ety=et
ddt(ety)=et
ety=etdt+C
ety=et+C
y=et+Cet
y=1+Cet
y=1+etC
The general solution is y=1+etC or y=1+Cet.