Docsity

Solving Initial Value Problems of Differential Equations, Study notes of Mathematics

Toggle sidebar
bg1
1.3 Initial Conditions; Initial-Value Problems
As we noted in the preceding section, we can obtain a particular solution of an nth order differential
equation simply by assigning specific values to the nconstants in the general solution. However, in
typical applications of differential equations you will be asked to find a solution of a given equation
that satisfies certain preassigned conditions.
Example 1. Find a solution of
y0=3x2−2x
that passes through the point (1,3).
SOLUTION In this case, we can find the general solution by integrating:
y=Z3x2−2xdx =x3−x2+C.
The general solution is y=x3−x2+C.
To find a solution that passes through the point (2,6), we set x= 2 and y= 6 in the general
solution and solve for C:
6=2
3−22+C=8−4+Cwhich implies C=2.
Thus, y=x3−x2+ 2 is a solution of the differential equation that satisfies the given condition.
In fact, it is the only solution that satisfies the condition since the general solution represented all
solutions of the equation and the constant Cwas uniquely determined.
Example 2. Find a solution of
x2y00 −2xy0+2y=4x3
which passes through the point (1,4) with slope 2.
SOLUTION As shown in Example 4 in the preceding section, the general solution of the differential
equation is
y=C1x2+C2x+2x3.
Setting x= 1 and y= 4 in the general solution yields the equation
C1+C2+ 2 = 4 which implies C1+C2=2.
The second condition, slope 2 at x= 1, is a condition on y0. We want y0(1) = 2. We calculate
y0:
y0=2C1x+C2+6x2,
and then set x= 1 and y0= 2. This yields the equation
2C1+C2+ 6 = 2 which implies 2C1+C2=−4.
Now we solve the two equations simultaneously:
11
pf3
pf4
pf5

Partial preview of the text

Download Solving Initial Value Problems of Differential Equations and more Study notes Mathematics in PDF only on Docsity!

1.3 Initial Conditions; Initial-Value Problems

As we noted in the preceding section, we can obtain a particular solution of an nth order differential equation simply by assigning specific values to the n constants in the general solution. However, in typical applications of differential equations you will be asked to find a solution of a given equation that satisfies certain preassigned conditions.

Example 1. Find a solution of y′^ = 3x^2 − 2 x

that passes through the point (1, 3).

SOLUTION In this case, we can find the general solution by integrating:

y =

3 x^2 − 2 x

dx = x^3 − x^2 + C.

The general solution is y = x^3 − x^2 + C.

To find a solution that passes through the point (2, 6), we set x = 2 and y = 6 in the general solution and solve for C:

6 = 2^3 − 22 + C = 8 − 4 + C which implies C = 2.

Thus, y = x^3 − x^2 + 2 is a solution of the differential equation that satisfies the given condition. In fact, it is the only solution that satisfies the condition since the general solution represented all solutions of the equation and the constant C was uniquely determined. 

Example 2. Find a solution of x^2 y′′^ − 2 xy′^ + 2y = 4x^3

which passes through the point (1, 4) with slope 2.

SOLUTION As shown in Example 4 in the preceding section, the general solution of the differential equation is y = C 1 x^2 + C 2 x + 2x^3.

Setting x = 1 and y = 4 in the general solution yields the equation

C 1 + C 2 + 2 = 4 which implies C 1 + C 2 = 2.

The second condition, slope 2 at x = 1, is a condition on y′. We want y′^ (1) = 2. We calculate y′: y′^ = 2C 1 x + C 2 + 6x^2 ,

and then set x = 1 and y′^ = 2. This yields the equation

2 C 1 + C 2 + 6 = 2 which implies 2 C 1 + C 2 = − 4.

Now we solve the two equations simultaneously:

C 1 + C 2 = 2

2 C 1 + C 2 = − 4

We get: C 1 = − 6 , C 2 = 8. A solution of the differential equation satisfying the two conditions is

y(x) = − 6 x^2 + 8x + 2x^3.

It will follow from our work in Chapter 3 that this is the only solution of the differential equation that satisfies the given conditions. 

INITIAL CONDITIONS Conditions such as those imposed on the solutions in Examples 1 and 2 are called initial conditions. This term originated with applications where processes are usually observed over time, starting with some initial state at time t = 0.

Example 3. The position y(t) of a weight suspended on a spring and oscillating up and down is governed by the differential equation y′′^ + 9y = 0.

(a) Show that the general solution of the differential equation is: y(t) = C 1 sin 3t + C 2 cos 3t.

(b) Find a solution that satisfies the initial conditions y(0) = 1, y′^ (0) = −2.

SOLUTION

(a) y = C 1 sin 3t + C 2 cos 3t y′^ = 3C 1 cos 3t − 3 C 2 sin 3t y′′^ = − 9 C 1 sin 3t − 9 C 2 cos 3t

Substituting into the differential equation, we get

y′′^ + 9y = (− 9 C 1 sin 3t − 9 C 2 cos 3t) + 9 (C 1 sin 3t + C 2 cos 3t) = 0.

Thus y(t) = C 1 sin 3t + C 2 cos 3t is the general solution.

(b) Applying the initial conditions, we obtain the pair of equations

y(0) = 1 = C 1 sin 0 + C 2 cos 0 = C 2 which implies C 2 = 1,

y′^ (0) = −2 = 3C 1 cos 0 − 3 C 2 sin 0 which implies C 1 = − 23.

A solution which satisfies the initial conditions is: y(t) = − 23 sin 3t + cos 3t. 

Any n-th order differential equation with independent variable x and unknown function y can be written in the form

F

x, y, y′, y′′,... , y(n−1), y(n)

The initial-value problems in Examples 1, 2, and 3 each had a unique solution; values for the arbitrary constants in the general solution were uniquely determined.

Example 4. The function y = x^2 is a solution of the differential equation y′^ = 2√y and y(0) = 0. Thus the initial-value problem y′^ = 2

y; y(0) = 0.

has a solution. However, y ≡ 0 also satisfies the differential equation and y(0) = 0. Thus, the initial-value problem does not have a unique solution. In fact, for any positive number a, the function

ya(x) =

0 , x ≤ a (x − a)^2 , x > a

is a solution of the initial-value problem. 

a

x

y

Example 5. The one-parameter family of functions y = Cx is the general solution of

y′^ = y x

There is no solution that satisfies y(0) = 1; the initial-value problem

y′^ = y x , y(0) = 1

does not have a solution. 

The questions of existence and uniqueness of solutions will be addressed in the specific cases of interest to us. A general treatment of existence and uniqueness of solutions of initial-value problems is beyond the scope of this course.

Exercises 1.

  1. (a) Show that each member of the one-parameter family of functions

y = Ce^5 x

is a solution of the differential equation y′^ − 5 y = 0.

(b) Find a solution of the initial value problem y′^ − 5 y = 0, y(0) = 2.

  1. (a) Show that each member of the two-parameter family of functions

y = C 1 e^2 x^ + C 2 e−x

is a solution of the differential equation y′′^ − y′^ − 2 y = 0.

(b) Find a solution of the initial value problem y′′^ − y′^ − 2 y = 0; y(0) = 2, y′(0) = 1.

  1. (a) Show that each member of the one-parameter family of functions

y =

Cex^ + 1 is a solution of the differential equation y′^ + y = y^2.

(b) Find a solution of the initial value problem y′^ + y = y^2 ; y(1) = − 1.

  1. (a) Show that each member of the three-parameter family of functions

y = C 2 x^2 + C 1 x + C 0

is a solution of the differential equation y′′′^ = 0.

(b) Find a solution of the initial value problem y′′′^ = 0; y(1) = 1, y′(1) = 4, y′′(1) = 2. (c) Find a solution of the initial value problem y′′′^ = 0; y(2) = y′(2) = y′′(2) = 0.

  1. (a) Show that each member of the two-parameter family of functions

y = C 1 sin 3x + C 2 cos 3x

is a solution of the differential equation y′′^ + 9y = 0.

(b) Find a solution of the initial value problem y′′^ + 9y = 0; y(π/2) = y′(π/2) = 1.

  1. (a) Show that each member of the two-parameter family of functions

y = C 1 x^2 + C 2 x^2 ln x

is a solution of the differential equation x^2 y′′^ − 3 xy′^ + 4y = 0.

(b) Find a solution of the initial value problem x^2 y′′^ − 3 xy′^ + 4y = 0; y(1) = 0, y′(1) = 1.

(c) Is there a member of the two-parameter family which satisfies the initial condition y(0) = y′^ (0) = 0?

  1. y = (C 1 + C 2 x)e^2 x
  2. y = C 1 x + C 2 x^2.
  3. y = C 1 x + C 2 x−^1.
  4. y = C 1 cos 3x + C 2 sin 3x.
  5. y = C 1 sin (3x + C 2 ).
  6. y = C 1 e^2 x^ cos (3x + C 2 ).
  7. y = C 1 + C 2 x + C 3 x^2.
  8. y = C 1 x + C 2 x^2 + C 3 x^3.
  9. Verify that the function ya(x) is a solution of the initial-value problem y′^ = 2

y, y(0) = 0.