Ode 1 Storder
Ode 1 Storder
03, R05
F (x, y, y 0 ) = 0.
A solution of the differential equation is a function y = y(x) that satisfies the equation. A
differential equation has infinitely many solutions.
3. An initial value problem consists of a differential equation and an initial condition y(x0 ) =
y0 . It has a unique solution, which√
has to be a function (provided F doesn’t have problems
at that point). For instance y = ± x cannot be the solution of an i.v.p.
A. Separable Equations
dy
= f (x)g(y)
dx
dy
1. Separate the variables: = f (x)dx.
g(y)
Z Z
dy
2. Integrate both sides: = f (x)dx and get G(y) = C + F (x).
g(y)
3. Solve for y (if possible).
4. If it is an initial value problem, plug in the given values and solve for C.
B. Linear equations
dy
+ P (x)y = Q(x)
dx
1. Write the equation in the above form.
R
P (x)dx
2. Compute the integrating factor I(x) = e .
dy
3. Multiply both sides of the equation by this integrating factor: I(x) + I(x) · P (x)y =
dx
I(x) · Q(x).
R
4. Integrate both sides and get I(x)y = C + I(x)Q(x)dx.
5. Solve for y.
6. If it is an initial value problem, plug in the given values and solve for C.
C. Homogeneous Equations
dy y
=F
dx x
1
MA 18.03, R05
y dy dv
1. Make the substitution v = . Attention: =x· + v.
x dx dx
2. Solve the new equation, not forgetting the constant involved. (It will probably be a sepa-
rable equation.)
3. Find y(x) = xv(x).
4. If it is an initial value problem, make sure you find the constant.
D. Bernoulli Equations
dy
+ P (x)y = Q(x)y n
dx
1. Make the substitution v = y 1−n .
dv
2. Solve the new linear equation: + (1 − n)P (x)y = (1 − n)Q(x).
dx
3. Find y(x).
4. If it is an initial value problem, make sure you find the constant.
E. Other Substitutions
Some equations need some other substitution to transform them in a known type. These sub-
stitutions vary greatly and there are no general formulas that can help. However, the more you
practice, the better your intuition becomes in these matters.
z 0 + kz = Beiωt (∗∗)
The general idea is that the solutions to (∗) are of the form
y = yp + yh ,
where yp is a particular solution of the original equation (∗), and yh is the general solution to
the associated homogeneous equation (see below).
2
MA 18.03, R05
G. General strategy
If you are asked to solve a first order ODE and no method is specified, go through the following
steps in order to determine what method to apply.
1. Is it separable?
3. Is it homogeneous? Reducible?
4. Is it a Bernoulli equation?
5. Can you think of a substitution that would put it in a form you recognize?
In order to apply the SE method with step of size h starting at the point (x0 , y0 ) and ending at
the point (xN , yN ) for the ODE
y 0 = f (x, y)
you’ll need to fill out the following table.
n xn yn An hAn
0 x0 y0 f (x0 , y0 ) hA0
1 x1 = x0 + h y1 = y0 + hA0 f (x1 , y1 ) hA1
..
.
N xN = xN −1 + h yN = yN −1 + hAN −1
The relevant formulas are
The value you obtain for yN will approximate the solution to the given ODE that satisfies the
initial conditon y(x0 ) = y0 . The approximation will be too high if the solution y(x) is concave
down and too low if the solution is concave up. In order to determine if y is concave up or down,
you need to compute y 00 (chain rule and product rule!) starting with the fact that y 0 = f (x, y).
Lectures 1 and 8.
Lecture 9.