Docsity

Differential Equations Practice Problems: Answers and Solutions, Exercises of Differential Equations

Toggle sidebar
bg1
DIFFERENTIAL EQUATIONS PRACTICE PROBLEMS: ANSWERS
1. Find the solution of y0+2xy =x,withy(0) = −2.
This is a linear equation. The integrating factor is eR2xdx=ex2. Multiplying through by this, we get
y0ex2+2xex2y=xex2
(ex2y)0=xex2
ex2y=Rxex2dx =1
2ex2+C
y=1
2+Ce−x2.
Putting in the initial condition gives C=−5/2,soy=1
2−5
2e=x2.
2. Find the general solution of xy0=y−(y2/x).
A number of substitutions will work here. The simplest is y=ux,soy0=u+u0x.Rewritingtheequation
with uand xeventually gives a separable equation:
x(u+u0x)=ux −u2x2
x=ux −u2x
du
dxx2=−u2x
Z−u−2du =Z1
xdx
1
u=lnx+C
u=1
ln x+C
y=x
ln x+C.
3. Suppose that the frog population P(t)of a small lake satisfies the differential equation dP
dt =kP(200 −P).
(a) Find the equilibrium solutions. Sketch them and using the equation, sketch several solution curves,
choosing some with initial points above and between the equilibrium solutions.
The equilibrium solutions are P=0(unstable) and P= 200 (stable).
1
pf3
pf4
pf5

Partial preview of the text

Download Differential Equations Practice Problems: Answers and Solutions and more Exercises Differential Equations in PDF only on Docsity!

DIFFERENTIAL EQUATIONS PRACTICE PROBLEMS: ANSWERS

  1. Find the solution of y^0 + 2xy = x, with y(0) = − 2.

This is a linear equation. The integrating factor is e

R

2 x dx (^) = ex^2. Multiplying through by this, we get

y^0 ex

2

  • 2xex

2 y = xex

2

(ex

2 y)^0 = xex

2

ex

2 y =

R

xex

2 dx =

ex

2

  • C

y =

  • Ce−x

2 .

Putting in the initial condition gives C = − 5 / 2 , so y =

e=x

2 .

  1. Find the general solution of xy^0 = y − (y^2 /x).

A number of substitutions will work here. The simplest is y = ux, so y^0 = u + u^0 x. Rewriting the equation with u and x eventually gives a separable equation:

x(u + u^0 x) = ux −

u^2 x^2 x

= ux − u^2 x du dx

x^2 = −u^2 x Z −u−^2 du =

Z

x

dx

1 u

= ln x + C

u =

ln x + C y =

x ln x + C

  1. Suppose that the frog population P (t) of a small lake satisfies the differential equation dPdt = kP (200 − P ).

(a) Find the equilibrium solutions. Sketch them and using the equation, sketch several solution curves, choosing some with initial points above and between the equilibrium solutions.

The equilibrium solutions are P = 0 (unstable) and P = 200 (stable).

(b) In the year 2000, its population was 100 and growing at the rate of 5 per year. Predict the lake’s frog population in 2008.

μ Note :

P (200 − P )

P

(200 − P )

This is a separable equation: Z 1 P (200 − P ) dP =

Z

k dt Z 1 200

μ 1 P

200 − P

Z

k dt

1 200

(ln(P ) − ln(200 − P )) =

Z

k dt

ln(200 − P ) − ln(P ) = ln

μ 200 − P P

= − 200 kt + C

200 P

− 1 = Ke−^200 kt.

Taking 2000 as the base year, the initial condition P (0) = 100 gives K = 1. Putting P = 100 and dP dt

t=

= 5 gives k =

. Thus:

P

− 1 = e−^200

5 10 , 000 (8)^ = e−^4 /^5

P =

1 + e−^4 /^5

  1. Find the general solution of the differential equation y^00 − y^0 = ex^ − 9 x^2.

Using the differential operator D, the homogeneous equation y^00 − y^0 = 0 becomes D^2 − D = 0 which has solutions D = 1 and D = 0, corresponding to Dy = y (y = ex) and Dy = 0 (y = constant). Thus, the general solution to the homogeneous equation is yh = c 1 + c 2 ex. We now find a particular solution to the original equation using undetermined coefficients. Our guess might be yp = Aex^ + Bx^2 + Cx + D, But ex duplicates part of the homogeneous solution as does the derivative of Cx (the constant c 1 ). So we multiply by a high enough power of x to avoid this; x will do:

yp = Axex^ + Bx^3 + Cx^2 + Dx y^0 p = Axex^ + Aex^ + 3Bx^2 + 2Cx + D y^00 p = Axex^ + 2Aex^ + 6Bx + 2C y p^00 − y^0 p = Aex^ − 3 Bx^2 + (6B − 2 C)x + (2C − D).

We set this equal to ex^ − 9 x^2 , which gives: A = 1, B = 3, C = 9 and D = 18. Since the general solution to a linear DE is the general solution to the associated homogeneous equation + a particular solution to the original, the general solution is y = c 1 + c 2 ex^ + xex^ + 3x^3 + 9x^2 + 18x.

  1. A mass of 2 kg is attached to a spring with constant k = 8 Newtons/meter.

(a) Find the natural frequency of this system. The system equation (no driving force) is 2 x^00 + 8x = 0 or x^00 + 4x = 0. This gives D^2 + 4 = 0 so D = ± 2 i. Thus, the solution is x(t) = c 1 cos 2t + c 2 sin 2t, and the frequency is ω 0 = 2 (radians per second or 1 /π hertz). (b) If the motion is also subject to a damping force with c = 4 Newtons/(meter/sec), and the mass is initially pulled 1 meter beyond its equilibrium point and released (without initial velocity), find the motion, x(t). (You may leave your answer in any form.)

(b) Use your answer above to solve Ax = b where b = (1, 0 , −1).  

x 1 x 2 x 3

  1. The matrix

B =

has eigenvalues λ = 4, − 2. Find a basis of eigenvectors. We row reduce B − λI for λ = 4 and λ = − 2 :

B − 4 I =

z = s y = z = s x = z = s

B + 2I =

z = s y = t x = −s − t For λ = 4, letting s = 1 gives the eigenvector (1, 1 , 1) (as a column); for λ = − 2 , letting s = 0, t = − 1 gives (1, − 1 , 0) and letting s = − 1 , t = 0 gives (1, 0 , −1). Eigenvectors for distinct eigenvalues are always independent, and the two vectors for the eigenvalue λ = − 2 are clearly independent (neither is a multiple of the other). Thus, these three vectors are a basis for the eigenspace of B; this eigenspace is all of R^3.

  1. The reduced row echelon form for the matrix A below has been computed by Matlab:

A =

 (^) rref(A) =

Use this to find all solutions of

2 x 1 − 4 x 2 − x 3 = 2 − 3 x 1 + 6x 2 + x 3 = − 5 5 x 1 − 10 x 2 − 4 x 3 = − 1 and express your answer in vector form. Thinking of the row-reduced matrix as an augmented matrix we see that there is no restriction on x 2 , so let x 2 = s. The second row says x 3 = 4 and the first row says x 1 − 2 x 2 = 3 or x 1 = 3 + 2s. In vector form we have: (^) 

x 1 x 2 x 3

 (^) = s

  1. Let v 1 = (2, 1 , 3), v 2 = (1, 5 , 9), and w =(1, − 1 , −1). Is w in span(v 1 , v 2 )? Find a basis for span(v 1 , v 2 , w). What is the dimension of span(v 1 , v 2 , w)? We make these vectors into the column of a matrix A. A linear dependence among the vectors is then a solution to the equation AX = 0. So we row reduce to see if there is a non-trivial (X 6 = 0 ) one:  

z = s y = (1/3)s x = −(2/3)s

Thus, −(2/3)v 1 + (1/3)v 2 + w = 0 is a non-trivial dependency, allow us to solve for w in terms of v 1 and v 2. So Span(v 1 , v 2 , w) = Span(v 1 , v 2 ). Since v 1 and v 2 are clearly not multiples of one another, they are independent, hence form a basis for Span(v 1 , v 2 ). Thus, Span(v 1 , v 2 , w) has dimension 2.

  1. Consider the following system of first-order differential equations:

x^01 = 9 x 1 + 5x 2 x 1 (0) = 1 x^02 = − 6 x 1 − 2 x 2 x 2 (0) = 0

Use eigenvalues and eigenvectors to find the solution. In matrix form these equations become

x^01 x^02

A z· }| { 9 5 − 6 − 2

x 1 x 2

The characteristic polynomial for A is det(A − xI) =

9 − x 5 − 6 − 2 − x

¯ =^ x

(^2) − 7 x + 12 = (x − 3)(x − 4), so

the eigenvalues are λ = 3, 4.

A − 3I =

which gives v 3 =

A − 4I =

which gives v 4 =

So the general solution is

x 1 x 2

= c 1

e^3 t^ + c 2

e^4 t. Letting t = 0, the initial conditions give · 1 0

5 c 1 − 6 c 1

c 2 −c 2

or the equations 6 c 1 + c 2 = 0 and 5 c 1 + c 2 = 1, with solutions c 1 = − 1 and c 2 = 6. This gives the solution

x 1 = − 5 e^3 t^ + 6e^4 t x 2 = 6 e^3 t^ − 6 e^4 t.

  1. Here is a “sawtooth” function f (t):

t

f(t)

f(t) = t

The first “tooth” is the function f 1 (t) =

t for 0 ≤ t < 1 0 otherwise.

(a) From the definition L{f }(s) = F (s) =

Z ∞

0

f (t)e−st^ dt, show that F 1 (s) =

1 − e−s s^2

e−s s

. (Use integration by parts; you only have to integrate from 0 to 1 .)