Problems Differential Equations
Problems Differential Equations
Problems
Author:
Second Year Biomedical
Engineering
Supervisor:
Carlos Oscar S. Sorzano
Chapter 1
Kreyszig, 1.1.2
Carlos Oscar Sorzano, Aug. 31st, 2014
y 0 + xe
Solution:
y0 =
x2
2
=0
x2
dy
= xe 2
dx
By separating variables
dy = xe
x2
2
dx
and integrating
xe
dy =
y = e
x2
2
x2
2
dx
+C
Kreyszig, 1.1.5
Carlos Oscar Sorzano, Aug. 31st, 2014
y 0 = 4ex cos(x)
Solution:
y0 =
dy
= 4ex cos(x)
dx
By separating variables
dy = 4ex cos(x)dx
and integrating
Z
dy =
4ex cos(x)dx
I1
2I1
I1
=
=
=
=
=
=
=
=
x
ex cos(x)dx
, dv = cos(x)dx]
R [u = e x
e sin(x) R sin(x)(e dx)
x
ex sin(x) + sin(x)ex dx [u
R = e , dv = sin(x)dx]
x
x
e sin(x) + e ( cos(x))R ( cos(x))(ex dx)
ex sin(x) ex cos(x) cos(x)ex dx
ex sin(x) ex cos(x) I1
ex sin(x) ex cos(x)
ex sin(x)cos(x)
2
Finally
y 00 = y
Solution:
y = ex
y 0 = ex
y 00 = 2 ex
Then, substituting these functions in the ODE
2 ex = ex
2 = 1 = i
So the two functions
y1 = eix
and
y2 = eix
are solutions of the ODE. Actually, any function of the form
y = c1 y1 + c2 y2 = c1 eix + c2 eix
is also a solution. In fact, it is the general solution of the ODE. Let us check
this statement
y 00 = y
c1 eix c2 eix = (c1 eix + c2 eix )
As can be easily seen the function
y = c1 eix + c2 eix + C
with
C 6= 0
y 0 = cosh(5.13x)
Solution:
dy
= cosh(5.13x)
dx
2
Consequently
dy = cosh(5.13x)dx
Integrating
Z
dy =
y=
cosh(5.13x)dx
1
sinh(5.13x) + C
5.13
Kreyszig, 1.1.8
Carlos Oscar Sorzano, Aug. 31st, 2014
y 000 = e0.2x
Solution:
Let us dene
y1 = y 0
y2 = y10 = y 00
y20 = e0.2x
whose solution is
dy2 = e0.2x dx
y2 =
1 0.2x
e
+ c1 = 5e0.2x + c1
0.2
y10 = y2 = 5e0.2x + c1
dy1 = (5e0.2x + c1 )dx
y1 = 25e0.2x + c1 x + c2
And, nally, the equation
y 0 = y1 = 25e0.2x + c1 x + c2
dy = (25e0.2x + c1 x + c2 )dx
c1
y = 125e0.2x + x2 + c2 x + c3
2
Since
c1
1
2 factor into
general solution is
y = 125e0.2x + c1 x2 + c2 x + c3
Kreyszig, 1.1.10
Carlos Oscar Sorzano, Aug. 31st, 2014
c1 , so that the
1. Verify that
y = ce2.5x
y 0 + 5xy = 0
2. Determine from
initial condition
y the particular
y(0) = .
Solution:
1. Let us calculate
y0
y 0 = 5cxe2.5x
2
2
5cxe2.5x + 5x ce2.5x = 0
2
5cxe2.5x + 5cxe2.5x = 0
0=0
So
c = .
tion is
2
yp = e2.5x
3. In MATLAB:
2.5
1.5
0.5
0
3
0
x
Kreyszig, 1.1.12
Carlos Oscar Sorzano, Aug. 31st, 2014
1. Verify that
y 2 4x2 = C
yy 0 = 4x
2. Determine from
initial condition
y the particular
y(1) = 4.
Solution:
1. Let us dierentiate the equation dening the implicit function
Dx (y 2 4x2 = C)
2yy 0 8x = 0
yy 0 = 4x
that is exactly the ODE, so the implicit function dened by
y 2 4x2 = C
y(1) = 4
we need
y 2 4x2 = C
(4)2 4(1)2 = C
C = 16 4 = 12
So the particular solution satisfying the given initial condition is
yp2 4x2 = 12
3. In MATLAB:
2
0
2
4
6
8
10
3
0
x
Kreyszig, 1.1.16
Carlos Oscar Sorzano, Aug. 31st, 2014
(y 0 )2 xy 0 + y = 0
is of this kind.
singular solution.
The ODE
y = cx c2
y = 14 x2 .
Solution:
y = cx c2 y 0 = c
Substituting in the ODE
(y 0 )2 xy 0 + y = 0
(c)2 x(c) + (cx c2 ) = 0
0=0
So the proposed solution is a solution of the ODE. However, the function
y=
1 2
4 x is also a solution as can be easily veried
1 2
1
x y0 = x
4
2
y=
(y 0 )2 xy 0 + y = 0
2
1
1 2
1
x x
x +
x =0
2
2
4
1 2 1 2 1 2
x x + x =0
4
2
4
0=0
The explanation of the proposed gure is the following.
correspond to dierent values of
y = cx c2
The function
y = 41 x2
Kreyszig, 1.1.18
228
Solution:
dA
= Kt
dt
whose general solution is
A(t) = A(0)eKt
Note that the units of
are
[time1 ].
t>0
as
A(t) = A(0)e
where the units of
are now
t>0
[time].
A(3.6) =
3.6
A(0)
= A(0)e
2
log(2) =
=
3.6
3.6
= 5.1937[days]
log(2)
365
365
Kreyszig, 1.1.19
Carlos Oscar Sorzano, Aug. 31st, 2014
y=
Solution:
1 2
gt
2
involved:
y(t)
y 0 (t)
y 00 (t)
y 00 = g
Let us dene the variable
v = y0
Then, the free fall ODE can be written as
v0 = g
dv = gdt
v = gt + c
But the object is at rest at
t = 0,
that is
v(0) = 0 = g(0) + c c = 0
Now we solve the equation
v = y0
for
y
dy = vdt = gtdt
1
y = gt2 + c
2
At time
t=0
y(0) = 0 =
1
g(0)2 + c c = 0
2
1 2
gt
2
y=
Kreyszig, 1.2.4
Carlos Oscar Sorzano, Aug. 31st, 2014
y 0 = 2y y 2
In the eld graph several solution curves by hand, particularly those passing
through the points
Solution:
In MATLAB
[x,y]=meshgrid(-1:0.25:5,-2:0.25:4);
f = @(x,y) 2*y-y.2;
dy=feval(f,x,y);
dx=ones(size(dy));
quiver(x,y,dx,dy);
axis([-1 5 -2 4])
8
xlabel('x')
ylabel('y')
hold on
% (0,0)
[xa,ya] = ode45(f,[0,5],0);
[xb,yb] = ode45(f,[0,-1],0);
plot(xa,ya,'b','LineWidth',2)
plot(xb,yb,'b','LineWidth',2)
% (0,1)
[xa,ya] = ode45(f,[0,5],1);
[xb,yb] = ode45(f,[0,-1],1);
plot(xa,ya,'r','LineWidth',2)
plot(xb,yb,'r','LineWidth',2)
% (0,2)
[xa,ya] = ode45(f,[0,5],2);
[xb,yb] = ode45(f,[0,-1],2);
plot(xa,ya,'k','LineWidth',2)
plot(xb,yb,'k','LineWidth',2)
% (0,3)
[xa,ya] = ode45(f,[0,5],3);
[xb,yb] = ode45(f,[0,-1],3);
plot(xa,ya,'g','LineWidth',2)
plot(xb,yb,'g','LineWidth',2)
2
1
2
x
Kreyszig, 1.2.5
Carlos Oscar Sorzano, Aug. 31st, 2014
y0 = x
1
y
In the eld graph several solution curves by hand, particularly that one passing
through the point
Solution:
(1, 12 ).
In MATLAB
[x,y]=meshgrid(-2:0.15:2,0.15:0.15:2);
f = @(x,y) x-1./y;
dy=feval(f,x,y);
dx=ones(size(dy));
quiver(x,y,dx,dy);
axis([-2 2 0.15 2])
xlabel('x')
ylabel('y')
hold on
% (1,0.5) [xa,ya] = ode45(f,[1,1.2],0.5);
[xb,yb] = ode45(f,[1,-2],0.5);
plot(xa,ya,'r','LineWidth',2)
plot(xb,yb,'r','LineWidth',2)
2
1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
2
1.5
0.5
0
x
0.5
1.5
Kreyszig, 1.2.11
Carlos Oscar Sorzano, Aug. 31st, 2014
f
y 0 = f (x, y)
For instance,
y 0 = sin2 (y)
10
y 0 = 5y 2
What will the level curves
f (x, y) = const
(also called
Solution:
x axis,
have the same inclination (slope of the tangent). For example, for the equation
y 0 = sin2 (y)
we would have in MATLAB
[x,y]=meshgrid(-pi:0.25:pi,-pi:0.25:pi);
f = @(x,y) (sin(y)).2;
dy=feval(f,x,y);
dx=ones(size(dy));
quiver(x,y,dx,dy);
axis([-pi pi -pi pi])
xlabel('x')
ylabel('y')
hold on
% Isoclines
contour(x,y,dy./dx,0.25,'r','LineWidth',2)
contour(x,y,dy./dx,0.75,'g','LineWidth',2)
3
3
0
x
Kreyszig, 1.2.15
Carlos Oscar Sorzano, Aug. 31st, 2014
g = 9.8[m/s2 ]
mg (m
is the
11
acceleration
v(t).
resultant of the
v(t)).
and the constant of proportionality equal to 1). Assume that the parachute
opens when
v = 10[m/s].
the limiting velocity? Would the parachute still be sucient if the air resistance
were only proportional to
Solution:
v(t)?
mv 0 = mg v 2
With
m = 1[kg]
and
= 1[N s2 /kg],
we have
v0 = g v2
If the parachute opens at
v = 10[m/s]
it means
v(0) = 10
we would have in MATLAB (see red curve)
[x,v]=meshgrid(0:0.1:2,0:0.5:10);
f = @(x,v) 9.8-v.2;
dv=feval(f,x,v);
dx=ones(size(dv));
quiver(x,v,dx,dv);
axis([0 2 0 10])
xlabel('t')
ylabel('v')
hold on
% Solution
[t10,v10]=ode45(f,[0 2],10);
plot(t10,v10,'r','LineWidth',2)
If the air resistance were proportional to
v(t),
v0 = g v
It can be seen that the decrease of speed is much slower:
12
10
9
6
5
4
3
0
0.5
1
t
1.5
Kreyszig, 1.2.17
lvaro Martn Ramos, Dec. 25th, 2014
y0 = y
with
h = 0.1
Solution:
y0
y1
y2
y3
...
and
y(0) = 1.
=
=
=
=
y(0) = 1
y0 + hf (x0 , y0 ) = 1 + 0.1(y0 ) = 1 + 0.1(1) = 1.1
y1 + hf (x1 , y1 ) = 1.1 + 0.1(y1 ) = 1.1 + 0.1(1.1) = 1.21
y2 + hf (x2 , y2 ) = 1.11 + 0.1(y2 ) = 1.21 + 0.1(1.21) = 1.331
Kreyszig, 1.2.20
Carlos Oscar Sorzano, Aug. 31st, 2014
y 0 = 5x4 y 2
with
h = 0.2.
y=
Solution:
y0
y1
y2
y3
y4
...
y(0) = 1
1
(1 + x)5
= y(0) = 1
= y0 + hf (x0 , y0 ) = 1 + 0.2(5x40 y02 ) = 1 + 0.2(5(0)4 (1)2 ) = 1
= y1 + hf (x1 , y1 ) = 1 + 0.2(5x41 y12 ) = 1 + 0.2(5(0.2)4 (1)2 ) = 0.9984
= 0.9729
= 0.8502
13
In MATLAB
f = @(x,y) -5*x.4.*y.2;
% Euler
y=zeros(10,1);
x=zeros(10,1);
x(1)=0; y(1)=1; % y(0)=1
h=0.2;
for k=1:length(y)-1
y(k+1)=y(k)+h*f(x(k),y(k));
x(k+1)=x(k)+h;
end
% ODE45
[xRK,yRK]=ode45(f,[0,1.8],1);
% True solution
xt=0:0.01:1.8;
yt=1./((xt+1).5);
plot(x,y,xRK,yRK,xt,yt)
legend('Euler solution','Runge-Kutta 45','True solution')
xlabel('x')
ylabel('y')
1
Euler solution h=0.2
RungeKutta 45
True solution
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0.2
0.4
0.6
0.8
1.2
Kreyszig, 1.3.2
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
y 3 + y 0 + x3 = 0
14
1.4
1.6
1.8
Solution:
x3
y = 3 =
y
0
3
x
y
y0 = f
y
x
u=
y
y = xu y 0 = u0 x + u
x
1
u0 x + u = 3
u
1
u4 + 1
u0 x = u + 3 =
u
u3
Separating variables
u3
1
du = dx
+1
x
u4
Integrating
Z
1
4
Solving for
u3
du =
4
u +1
1
dx
x
4u3
du = log |x| + C
u4 + 1
u
1
log |u4 + 1| = log |x| + C
4
1
|u4 + 1| 4 =
y 4
x
+1=
C
x4
y 4 + x4 = C
Kreyszig, 1.3.7
Carlos Oscar Sorzano, Nov. 2nd, 2014
Solve
xy 0 = y + 2x3 sin2
15
y
x
y
x =u
y
The change of variables
x = u implies
Solution:
y = ux
y 0 = u0 x + u
Substituting in the dierential equation we get
1
= x2 + C
tan(u)
1
C x2
1
u = arctan
C x2
tan(u) =
y = ux = x arctan
1
C x2
Kreyszig, 1.3.8
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
y 0 = (y + 4x)2
by making the change of variables
Solution:
y + 4x = v
y + 4x = v y 0 + 4 = v 0 y 0 = v 0 4
v0 4 = v2
v0 = v2 + 4
v0
=1
v2 + 4
Separating variables
dv
= dx
v2 + 4
Integrating
dv
=
2
v +4
16
Z
dx
1
dv
=x+C
4 ( v2 )2 + 1
Z
1
1
2 dv
=x+C
v 2
2
(2) + 1
1
v
atan = x + C
2
2
Solving for
v
v = 2 tan(2x + C)
y + 4x = 2 tan(2x + C)
y = 4x + 2 tan(2x + C)
Kreyszig, 1.3.19
Carlos Oscar Sorzano, Aug. 31st, 2014
is proportional
Solution:
A0 (t).
If it is propor-
A0 = A
whose solution can be obtained by separating variables
dA = Adt
dA
= dt
A
Integrating
log |A| = t + C
Solving for
A
A = Cet
A(t + 7) = 2A(t)
e7
Ce(t+7) = 2Cet
log(2)
=2=
= 0.0990
7
log(2)
14
7
log(2)
28
7
Kreyszig, 1.3.20
Carlos Oscar Sorzano, Aug. 31st, 2014
1. If the birth rate and death rate of the number of bacteria are proportional
to the number of bacteria present, what is the population as a function of
time.
2. What is the limiting situation for increasing time? Interpret it.
Solution:
1. The following model describes the situation
A0 = b A d A = (b d )A
Similarly to Problem 1.3.19, its solution is
A = Ce(b d )t = A(0)e(b d )t
2. If
b = d ,
t = 0.
If
b > d ,
b < d ,
Kreyszig, 1.3.23
Carlos Oscar Sorzano, Aug. 31st, 2014
V (P )
equals
Solution:
V0 =
V
P
V0
1
=
V
P
Separating variables
dV
dP
=
V
P
Integrating
C
log |V | = log |P | + C = log
P
V =
Kreyszig, 1.3.26
Carlos Oscar Sorzano, Aug. 31st, 2014
18
C
P
> 0),
where
y(t)
t.
y 0 = Ay log(y)
well with clinical observations. The declining growth rate with increasing
y>1
corresponds to the fact that cells in the interior of a tumor may die because
of insucient oxygen and nutrients. Use the ODE to discuss the growth and
decline of solutions (tumors) and to nd constant solutions.
ODE.
Solution:
y 0 = Ay log(y)
dy
= Adt
y log(y)
1
y dy
= Adt
log(y)
log | log(y)| = At + C
log(y) = CeAt
y = exp(Cexp(At)) = exp(log(y(0))exp(At))
The following gure shows the growth for
y(0) = 0.01
and
A=1
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
10
t
Kreyszig, 1.4.4
Carlos Oscar Sorzano, Nov. 2nd, 2014
Solve
e3 (dr + 3rd) = 0
Solution:
e3 dr + 3re3 d = 0
19
15
20
P dr + Qd = 0
To check if it is an exact equation we calculate
P
= 3e3
Q
= 3e3
r
Since both partial derivatives are equal, the equation is exact and we look for a
solution of the form
Z
U=
Z
P dr + C() =
C()
e3 dr + C() = e3 r + C()
U
= 3re3 + C 0 ()
and compare it to
Q
3re3 + C 0 () = Q
3re3 + C 0 () = 3re3
C 0 () = 0
C() = C
e3 r + C = 0
or explicitly
r = Ce3
Kreyszig, 1.4.8
Carlos Oscar Sorzano, Aug. 31st, 2014
ex (cos(y)dx sin(y)dy) = 0
Solution:
ex cos(y)dx ex sin(y)dy = 0
That is of the form
P
= ex ( sin(y))
y
20
Q
= ex sin(y)
x
Since
P
y
Q
x , the ODE is exact. To nd the solution,
u
=P
x
we integrate
with respect to
u(x, y)
If we now dierentiate
that satises
u
=Q
y
x
ex cos(y)dx = cos(y)ex + C(y)
with respect to
we should obtain
u
= ex ( sin(x)) + C 0 (y) = ex sin(y) C 0 (y) = 0 C(y) = C
y
So the solution to the problem are all functions of the form
Solution:
P
= 2e2x sin(y)
y
Q
= 2e2x sin(y)
x
Since
Q
P
=
x
y
u,
that satises
u
=P
x
u
=Q
y
we integrate
with respect to
Z
u(x, y) =
21
If we now dierentiate
with respect to
we should obtain
u
= sin(y)e2x + C 0 (y) = e2x sin(y) C 0 (y) = 0 C(y) = C
y
So the solution to the problem are all functions of the form
Solution:
cos(x + y)
is an integrating factor.
cos(x + y)
Py =
Qx =
Since
Py = Qx ,
P (x, y)
= cos(x + y) y sin(x + y)
y
Q(x, y)
= y sin(x + y) + cos(x + y)
x
Z
U (x, y) =
Z
P (x, y)dx =
We now dierentiate
with respect to
Q(x, y) =
y
U (x, y)
y
U (x, y) = 0
y sin(x + y) + C = 0
22
Kreyszig, 1.4.11
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
P
= 2 cosh(x)( sin(y))
y
Q
= cosh(x) sin(y)
x
Q
P
y 6= x , the ODE is not exact. For nding an integrating factor, we
start by calculating
Since
Qx Py
cosh(x) sin(y)
1
=
= tan(y)
P
2 cosh(x) cos(y)
2
is a function of
1
p
(2 cosh(x) cos(y)dx sinh(x) sin(y)dy) = 0
cos(y)
p
sin(y)
2 cosh(x) cos(y)dx sinh(x) p
dy = 0
cos(y)
At this point, the ODE is exact.
respect to
x
Z
u(x, y) =
p
p
2 cosh(x) cos(y)dx = 2 sinh(x) cos(y) + C(y)
we should obtain
FQ
u
sin(y)
sin(y)
= sinh(x) p
+ C 0 (y) = sinh(x) p
C 0 (y) = 0
y
cos(y)
cos(y)
23
with
p
u(x, y) = C = 2 sinh(x) cos(y)
Kreyszig, 1.5.7
Carlos Oscar Sorzano, Aug. 31st, 2014
xy 0 = 2y + x3 ex
Solution:
y0
2
y = x2 ex
x
y 0 + p(x)y = r(x)
This is a linear, non-homogeneous equation, whose solution is given by
Z
yh = eh ( eh rdx + C)
where
h =
h
e
=
R h
e rdx =
R
pdx = x2 dx = 2 log |x|
eR2 log |x| = x2
(x2 )(x2 ex )dx = ex
R
Finally
y = x2 (ex + C)
Kreyszig, 1.5.13
Carlos Oscar Sorzano, Aug. 31st, 2014
y 0 = 6(y 2.5)tanh(1.5x)
Solution:
y 0 6tanh(1.5x)y = 15tanh(1.5x)
That is of the form
y 0 + p(x)y = r(x)
This is a linear, non-homogeneous equation, whose solution is given by
yh = e
Z
( eh rdx + C)
where
h =
h
e
=
R h
e rdx =
= 4 log(cosh(1.5x))
tanh(1.5x)dx = 6 log(cosh(1.5x))
1.5
eR4 log(cosh(1.5x)) = cosh4 (1.5x)
(cosh4 (1.5x))(15tanh(1.5x))dx = cosh2.5
4 (1.5x)
R
pdx = 6
24
Finally
y = cosh4 (1.5x)
2.5
+C
cosh4 (1.5x)
Kreyszig, 1.5.15
Carlos Oscar Sorzano, Aug. 31st, 2014
Let
y 0 + p(x)y = 0
and
NH
y 0 + p(x)y = r(x)
Show that the sum of two solutions and of the homogeneous equation (H ) is a
solution of (H ), and so is a scalar multiple for any constant
a.
These properties
Solution:
Let
y1
and
y2
y10 + p(x)y1 = 0
y20 + p(x)y2 = 0
Adding both equations we have
y1 + y2
we have
a(y10 + p(x)y1 ) = 0
ay10 + ap(x)y1 = 0
(ay1 )0 + p(x)(ay1 ) = 0
which proves that
ay1
However, this is not true for the non-homogeneous problem. Let us assume
that
y1
and
y2
y1 + y2
y1 + y2
ay1
Kreyszig, 1.5.17
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
Let
yp
yh
yh0 + p(x)yh = 0
Let us check if
yp + yh
yp + yh
Kreyszig, 1.5.18
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
Let
y p1
and
y p2
y p1 y p2
yp1 yp2
Kreyszig, 1.5.21
Carlos Oscar Sorzano, Aug. 31st, 2014
Variation
of parameter. Another method of
R
eh ( eh rdx + C) of a non-homogeneous problem
y=
y 0 + p(x)y = r(x)
results from the following idea. Write the solution of the homogeneous problem
as
y = Ce
where
pdx
= Ceh = Cy
linear ODE
(y )0 + p(x)y = 0
Replace the arbitrary constant
26
y = uy
is a solution of the
Solution:
uy
must meet
(uy )0 + p(uy )
u0 y + u(y )0 + puy
u0 y + u((y )0 + py )
u0 y + u0
u0 y
r
=
=
=
=
=
u0 y = r u0 =
r
eh
= reh u =
reh dx + C
Z
re dx + C eh
h
y = uy =
Kreyszig, 1.5.24
Solve
y 0 + y = xy
Solution:
y 0 + p(x)y = g(x)y a
with
p(x) = 1, g(x) = x
a = 1.
and
u = y 1a = y 1(1) = y 2
Dierentiating
u0 = 2yy 0 = 2y(y xy 1 ) = 2y 2 2x = 2u 2x
u0 + 2u = 2x
This is now a linear, non-homogeneous equation system of the form
u0 + pu = r
whose solution is given by
Z
h=
u =
=
Z
pdx =
2dx = 2x
R
R 2x
eh ( eh rdx + C) = e2x
e (2x)dx + C
e2x xe2x 21 e2x + C = x 21 + Ce2x
r
2
y =
27
1
+ Ce2x
2
Kreyszig, 1.5.25
lvaro Martn Ramos, Dec. 25th, 2014
Solve
y 0 = 3.2y 10y 2
Solution:
y 0 3.2y = 10y 2
This is a Bernouilli equation of the form
y 0 + p(x)y = g(x)y a
with
and
a = 2.
u = y 1a = y 12 = y 1
Dierentiating
u0 = (y 1 )0 =
1 0
1
y = 2 (3.2y 10y 2 ) = 3.2y 1 + 10 = 3.2u + 10
y2
y
u0 + 3.2u = 10
u0 + pu = r
whose solution is given by
Z
h=
Z
(3.2)dx = 3.2x
pdx =
R
R
u = eh ( eh rdx + C) = e3.2x ( e3.2x 10dx + C)
3.2x
10
+ Ce3.2x
= e3.2x ( 10e3.2 + C) = 3.2
Now we undo the change of variable
y =
1
1
=
10
u
3.2
+ Ce3.2x
Kreyszig, 1.5.28
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
2xyy 0 + (x 1)y 2 = x2 ex .
Solution:
Hint: set
z = y2
z = y 2 z 0 = 2yy 0
then the ODE is transformed to
xz 0 + (x 1)z = x2 ex
28
z0 +
x1
z = xex
x
z 0 + pz = r
whose solution is given by
x1
dx = x log |x|
x
R
R xlog |x| x
= eh ( Reh rdx + C) =
ex+log |x|
e (xe )dx + C
= ex x e2x dx + C = ex x 21 e2x + C
= x2 ex + Cex
Z
h=
pdx =
y =
x x
e + Cex
2
Kreyszig, 1.5.33
Carlos Oscar Sorzano, Aug. 31st, 2014
Find and solve the model for drug injection into the bloodstream if, beginning at
t=0
a constant amount
A[g/min]
t.
Solution:
The ODE
A0 = Kin Kout A
A(0) = 0
A0 + Kout A = Kin
which is a linear, non-homogeneous ODE whose solution is
h =
A =
=
Kout
R dth = Kout t
R
eh
e rdt + C = eKout x eKo ut tKin dt + C
1
eKout t Kin Kout
eKout t + C =
Kin
Kout
+ CeKout t
A(0) = 0 =
Kin
Kin
+C C =
Kout
Kout
A(t) =
Kin
(1 eKout t )
Kout
Kreyszig, 1.5.34
29
(t > 0)
Solution:
The growth of
y 0 = ky(1 y) y(0) = y0
The two equilibrium solutions are
y=0
(unstable) and
y=1
(stable) as can
1.2
0.8
0.6
0.4
0.2
0.2
0.4
0.6
0.8
y 0 ky = ky 2
This is a Bernouilli equation of the form
y 0 + py = gy a
with
p = k , g = k , a = 2.
u = y 1a = y 12 = y 1
u0 = y 2 y 0 = y 2 (ky ky 2 ) = (ky 1 k) = k ku
u0 + ku = k
This is a linear, non-homogeneous equation whose solution is
R
h =
kdtR= kt
R kt
eh rdt + C = ekt
e kdt + C = ekt ekt + C = 1 + Cekt
u = eh
We undo now the change of variable
y=
1
1 + Cekt
30
y0 =
1
1
1 y0
C=
1=
1+C
y0
y0
Finally
y =
1
1+
1y0 kt
y0 e
y0
y0 + (1 y0 )ekt
y0 = 0.1, k = 0.8.
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
10
Kreyszig, 1.6.9
Carlos Oscar Sorzano, Jan. 13th, 2015
y = cex
Solution:
y 0 = 2xcex
y 0 = 2xy = f (x, y)
The set of orthogonal curves must fulll
y0 =
1
1
=
f (x, y)
2x
y
1
2x
1
yd
y = dx
2x
yy0 =
1 2
1
y = log(x) + C
2
2
31
y2 = log(x) + C
2
ey =
C
x
x = Cey
Kreyszig, 1.6.12
Carlos Oscar Sorzano, Aug. 31st, 2014
Electric eld.
same strength at
(1, 0)
and
(1, 0)
(1, 0)
and
(1, 0).
x2 + (y c)2 = 1 + c2 .
Show that the equipotential lines (which are orthogonal trajectories of those
circles) are the circles given by
(x + c )2 + y2 = (c )2 1
(dashed in the following gure).
Solution:
The curve
x2 + (y c)2 = 1 + c2
(1, 0)
and
(1, 0)
(1, 0)
and
(1, 0).
(1)2 + (0 c)2 = 1 + c2
(1)2 + (0 c)2 = 1 + c2
Obviously this family is a set of circles.
To nd the orthogonal trajectories, we dierentiate the curve
2x + 2(y c)y 0 = 0
x + (y c)y 0 = 0
32
x2 + y 2 + c2 2yc = 1 + c2
x2 + y 2 2yc = 1
c=
x2 + y 2 1
2y
x2 + y 2 1
x+ y
y0 = 0
2y
2yx + 2y 2 (x2 + y 2 1) y 0 = 0
2yx + y 2 x2 + 1 y 0 = 0
y0 =
2yx
= f (x, y)
y 2 x2 + 1
y0 =
1
y2 x2 + 1
1
1 1 x2 1
=
=
y +
y
f (x, y)
2
yx
2x
2 x
y0
1
1 1 x2 1
y =
y
2x
2 x
y0 + p(x)
y = g(x)y a
with
a = 1.
u = y1a = y1(1) = y2 u0 = 2
y y0
1 1 x2 1
1
y +
y
u0 = 2
y
2x
2 x
1 2 1 x2
y +
x
x
1
x2
1
u0 = u +
x
x
1
1
x2
u0 u =
x
x
u0 =
R 1
h =
x dx = log |x|
eh = e logR|x| = x1
h
u = eh
+ c
R e rdx
1 1x2
= x
dx + c
x
2 x
= x x x+1 + c
= x2 1 + c x
33
y2 = x2 1 + c x
y2 + x2 c x = 1
2
2
c
c
2
2
= 1 +
y + x c x +
2
2
2
2
c
c
y2 + x
= 1 +
2
2
2
y2 + (x c ) = 1 + (c )2
2
(x + c ) + y2 = (c )2 1
Kreyszig, 1.6.13
Carlos Oscar Sorzano, Aug. 31st, 2014
Temperature eld.
y>0
be given by
4x2 + 9y 2 = c.
.
Find the orthogonal trajectories (the curves along which heat will ow in
regions lled with heat-conducting material and free of heat sources or heat
sinks).
Solution:
4x2 + 9y 2 = c
4 2 9 2
x + y =1
c
c
!2
!2
x
y
+ c
=1
c
2
c
c
So they are ellipses of semiaxes
2 and 3 .
Their orthogonal trajectories can be determined by dierentiating the family
of curves:
8x + 18yy 0 = 0
4x + 9yy 0 = 0
y0 =
4x
= f (x, y)
9y
y0 =
9
y
1
=
f (x, y)
4x
d
y
dx
=
9
y
4x
34
1
1
log |
y | = log |x| + K
9
4
9
log |
y | = log |x| + K
4
9
y = Kx 4 = Kx2.25
In MATLAB:
close all
h=ezplot('y-x2.25',[-2 2 0 4])
set(h,'Color','red')
hold on
h=ezplot('y-2*x2.25',[-2 2 0 4])
set(h,'Color','red')
h=ezplot('y-0.5*x2.25',[-2 2 0 4])
set(h,'Color','red')
h=ezplot('4*x2+9*y2=1',[-2 2 0 4])
set(h,'Color','blue')
h=ezplot('4*x2+9*y2=8',[-2 2 0 4])
set(h,'Color','blue')
h=ezplot('4*x2+9*y2=20',[-2 2 0 4])
set(h,'Color','blue')
axis square
title
4
3.5
3
2.5
2
1.5
1
0.5
0
2
0
x
Problema
Carlos Oscar Sorzano, Nov. 4th, 2014
It starts snowing in the morning and continues steadily throughout the day.
A snow- plow that removes snow at a constant rate starts plowing at noon. It
plows 2 km in the rst hour, and 1 km in the second. What time did it start
snowing?
35
Solution:
[cm3 /h] and the snow falls at a xed rate k[cm3 /h]. Assume that the width of
the snowplow is equal to the road width w[cm]. Assume that it starts to snow
at t = t0 . Then, the height of the snow in the road must fulll the dierential
equation
dh
[cm/h] = k
dt
1[cm]w[cm]
whose solution is
h(t0 ) = 0
k
dt
w
k
h=C+ t
w
dh =
The constant
h(t0 ) = 0
k
kt0
t0 = 0 C =
w
w
C
So the height becomes
h=
Let us call
x(t)
k
(t + t0 )[cm]
w
t = 0.
The speed
of the snowplow depends on the amount of snow that it can remove by unit of
time
dx
[cm/h] = [cm3 /h]
dt
dx
=
=
dt
wh
wk(t + t0 )
w[cm]h[cm]
dx =
dt
wk t + t0
log |t + t0 | + C
wk
x(0) = 0 from which
x=
We have the initial condition
0=
log |t0 | + C C =
log |t0 |
wk
wk
x(t) =
(log |t + t0 | log |t0 |) =
log + 1
wk
wk
t0
x(1) = 2000
log t20 + 1
log t10 + 1
x(2) = 3000 =
wk
x(1) = 2000 =
wk
2
log
+
1
t0
3
=
2
log t10 + 1
36
and
x(2) = 3000,
that
1
2
3 log + 1 = 2 log + 1
t0
t0
3
2
2
1
log
+ 1 = log
+1
t0
t0
1
+1
t0
3
=
2
+1
t0
2
(1 + t0 )3
(2 + t0 )2
=
t30
t20
(1 + t0 )3 = t0 (2 + t0 )2
t30 + 3t20 + 3t0 + 1 = t30 + 4t20 + 4t0
(
t20 + t0 1 = 0 t0 =
1 5
2
51
2
t0 =
51
= 0.618[h] = 37[min]
2
Chapter 2
Kreyszig, 2.1.1
Carlos Oscar Sorzano, Aug. 31st, 2014
Show that
F (x, y 0 , y 00 ) = 0
can be reduced to a rst-order equation in
Solution:
z = y0 .
z = y 0 z 0 = y 00
Substituting in the original ODE, we have
F (x, z, z 0 ) = 0
that is a rst-order equation.
For example,
y 00 +
1 0
y = cosh(x)
x
z0 +
1
z = cosh(x)
x
Kreyszig, 2.1.2
37
Show that
F (y, y 0 , y 00 ) = 0
z = y0 .
Solution:
dy 0 dy
dz
=
z = zy z
dy dx
dy
z = y0 z0 =
F (y, z, zy z) = 0
that is a rst-order equation.
For example,
1
y 00 + y 0 + y 2 = 0
y
can be transformed into
1
zy z + z = y 2
y
Kreyszig, 2.1.4
Carlos Oscar Sorzano, Nov. 2nd, 2014
Solve
2xy 00 = 3y 0
Solution:
z = y0
z 0 = y 00
The dierential equation becomes
2xz 0 = 3z
z0
3
=
z
2x
dz
3dx
=
z
2x
Integrating
log |z| =
3
log |x| + C1
2
3
z = C1 x 2
Undoing the change of variable
3
y 0 = C1 x 2
38
y=
x 2 dx + C2
y = C1
5
2
C1 x 2 + C2
5
y = C1 x 2 + C2
Kreyszig, 2.1.5
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
yy 00 = 3(y 0 )2
Solution:
z = y0 z0 =
dy 0 dy
dz
=
z = zy z
dy dx
dy
y(zy z) = 3z 2
zy y = 3z
3dy
dz
=
z
y
log |z| = 3 log |y| + C1
z = C1 y 3
Now we solve
y 0 = C1 y 3
y 3 dy = C1 dx
1
= C1 x + C2
2y 2
C1 xy 2 + C2 y 2 = 1
Kreyszig, 2.1.12
Carlos Oscar Sorzano, Aug. 31st, 2014
Hanging cable.
y(x)
of an inextensible
y 00 = k
p
1 + (y 0 )2
Solution:
z = y 0 z 0 = y 00
39
z0 = k
1 + z2
dz
= kdx
1 + z2
asinh(z) = kx + c1
z = y 0 = sinh(kx + c1 )
Since the catenary is symmetric with respect to the middle point, at this point
we have no slope, that is
y 0 (0) = 0 = sinh(c1 ) c1 = 0
Now we solve the ODE
y 0 = sinh(kx)
Z
y=
sinh(kx)dx =
1
cosh(kx) + c2
k
y(1) = 0 =
1
1
1
cosh(k) + c2 c2 = cosh(k) = cosh(k)
k
k
k
y=
1
1
cosh(kx) cosh(k)
k
k
0.1
0.2
0.3
0.4
0.5
0.6
0.7
1
0.5
0
x
0.5
Kreyszig, 2.1.13
Carlos Oscar Sorzano, Aug. 31st, 2014
Motion.
velocity and acceleration equals a positive constant, how will the distance
depend on the initial velocity and position?
40
y(t)
Solution:
then
y 0 + y 00 = k
We make the change of variable
z = y 0 z 0 = y 00
Then the ODE becomes
z + z0 = k
whose solution is given by
h =
z =
1dxR = t
R
eh ( eh rdt + c1 ) = et ( et kdt + c1 ) = et (ket + c1 ) = k + c1 et
Now we solve
z = y 0 = k + c1 et
y = kt c1 et + c2
We now impose the initial conditions
y(0) = y0 = c1 + c2
y 0 (0) = v0 = k + c1 c1 = v0 k
c2 = y0 + c1 = y0 + v0 k
So the nal dependence of motion on the initial conditions is
y = kt + (k v0 )et + y0 + v0 k = y0 + kt + (k v0 )(et 1)
Kreyszig, 2.1.17
Carlos Oscar Sorzano, Aug. 31st, 2014
3
Verify that the functions
x2
and
x 2
4x2 y 00 3y = 0
Find the particular solution satisfying
Solution:
y(1) = 3, y 0 (1) = 0.
y1
= x2
y10
y100
y2
= x
y20
y200
= 12 x 2
1
3 2
2x
1
3 1 2
2 2x
1
2
= 34 x 2
( 12 )( 23 )x 2 = 34 x 2
We now substitute these two functions in the ODE to verify if they are solutions
of it
4x2 ( 34 x 2 ) 3x 2 = 3x 2 3x 2 = 0
4x2 ( 34 x 2 ) 3x 2 = 3x 2 3x 2 = 0
41
So they are two independent (one is not a multiple of the other) solutions of
a second-order ODE, consequently, they are a basis of solutions. The general
solution can be written as
y = c1 y1 + c2 y2 = c1 x 2 + c2 x 2
The solution satisfying the initial values must fulll
= 3 = c1 + c2
= 0 = 23 c1 12 c2
yp (1)
yp0 (1)
9
3
c1 = , c2 =
4
4
So
3 3
9 1
yp = x 2 x 2
4
4
2.95
3
3.05
3.1
3.15
3.2
3.25
3.3
3.35
3.4
3.45
0.5
1
x
1.5
Kreyszig, 2.1.19
lvaro Martn Ramos, Dec. 27th, 2014
ex cos(x), ex sin(x)
are a basis of the ODE
y 00 + 2y 0 + 2y = 0
Find the particular solution satisfying y(0)=0, y'(0)=15.
Solution:
y1
y10
y100
y2
y20
y200
=
=
=
=
=
=
=
=
ex cos(x)
ex cos(x) ex sin(x)
[ex cos(x) + ex sin(x)] [ex sin(x) + ex cos(x)]
2ex sin(x)
ex sin(x)
ex sin(x) + ex cos(x)
[ex sin(x) ex cos(x)] + [ex cos(x) ex sin(x)]
2ex cos(x)
We now substitute these two functions in the ODE to verify if they are solutions
of it
y = c1 y1 + c2 y2 = c1 ex cos(x) + c2 ex sin(x)
The solution satisfying the initial values must fulll
y(0) = 0 = c1
y 0 (0) = 15 = c1 [e0 cos(0) e0 sin(0)] + c2 [e0 sin(0) + e0 cos(0)] = c1 + c2
c1 + c2 = 15 c2 = 15
So
yp = 15ex sin(x)
Kreyszig, 2.2.11
lvaro Martn Ramos, Dec. 27th, 2014
y 00 4y 0 3y = 0
Solution:
42 4 3 = 0
whose solutions are
48
3
1
16 + 48
=
1 = , 2 =
8
8
2
2
y = c1 e 2 x + c2 e( 2 )x
Kreyszig, 2.2.16
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
e2.6x
and
e4.3x .
y 00 + ay 0 + by = 0
If the exponential
ex
P () = 2 + a + b = 0
43
= 2.6
and
= 4.3
y 00 + 1.7y 0 11.18y = 0
Kreyszig, 2.2.17
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
5x
and
xe
5x
can be factorized as
P () = (
5)2 = 2 2 5 + 5
y 00 2 5y 0 + 5y = 0
Kreyszig, 2.2.19
lvaro Martn Ramos, Dec. 27th, 2014
Solution:
e(2+i)x
and
e(2i)x .
y 00 + ay 0 + by = 0
If those are solutions of the ODE, it must fulll
P () = 2 + a + b = 0
We can solve it
p
1
a
w
(a + a2 4b) = + i
2
2
2
p
1
a
w
2 = (a a2 4b) = i
2
2
2
1 =
Where
w=
p
a2 4b
We now that the generic solutions of the dierential equation are of the form
a
y1 = e( 2 +i 2 )x
y2 = e( 2 i 2 )x
Our solutions are
e(2+i)x , e(2i)x
So
2 =
a
a=4
2
44
And
w
= 1 16 4b = 2 b = 3
2
y 00 + 4y 0 + 3y = 0
Kreyszig, 2.2.31
Carlos Oscar Sorzano, Aug. 31st, 2014
ekx
Solution:
and
xekx
Let us call
y1 = ekx
y2 = xekx
The two functions are linearly dependent if we can nd two constants, not all
of them zero, such that
c1 y 1 + c2 y 2 = 0
If
c1
If
c2
c2
y1
=
y2
c1
c1
y2
=
y1
c2
That is if they are linearly dependent, one function must be a multiple of the
other or 0. The ratio
y2
xekx
= kx = x
y1
e
is not constant, and consequently, the two functions are linearly independent.
Kreyszig, 2.2.33
lvaro Martn Ramos, Dec. 27th, 2014
x2
x2 ln(x)
and
Solution:
The ratio
x2
x2 ln(x)
is a function of
1
ln(x)
Kreyszig, 2.2.34
Carlos Oscar Sorzano, Aug. 31st, 2014
log(x)
and
log(x3 )
x > 1?
Solution:
The ratio
log(x3 )
3 log(x)
=
=3
log(x)
log(x)
45
is constant, and consequently, the two functions are linearly dependent (one is
a multiple of the other).
Kreyszig, 2.2.35
Carlos Oscar Sorzano, Aug. 31st, 2014
sin(2x)
cos(x) sin(x)
and
x < 0?
Solution:
The ratio
sin(2x)
2 cos(x) sin(x)
=
=2
cos(x) sin(x)
cos(x) sin(x)
is constant, and consequently, the two functions are linearly dependent (one is
a multiple of the other).
Kreyszig, 2.3.14
Carlos Oscar Sorzano, Aug. 31st, 2014
If
L = D2 + aD + bI
solution is
Solution:
Since
and
xex
and
ex ex
y=
Obtain from this a solution
by letting
s2 + as + b
and we know
that
(D2 + aD + bI)ex = 0
(D2 + aD + bI)ex = 0
Let us check whether the function
ex ex
is a solution of the ODE
y=
Ly = 0
(D2 + aD + bI)
So
x
ex e
1
=
(D2 + aD + bI)ex
1
1
= 0
0
= 0
1
2
(D
+ aD + bI)ex
is a solution.
ex ex
lim
as
=
=
=
=
=
lim
(e()x 1)ex
e()x 1
x
e lim
1+()x1
x
e lim
()x
x
e lim
xe
Kreyszig, 2.4.3
lvaro Martn Ramos, Dec. 27th, 2014
How does the frequency of the harmonic oscillation change if we (i) double
the mass, (ii) take a spring of twice the modulus?
46
Solution:
ky = my 00
y 00 +
k
y=0
m
r
k
k
+
= 0 = i
= i0
m
m
2
r
r
k
k
1
k
1
+
= 0 = i
= i
= i 0
2m
2m
2 m
2
2
1
So the frequency will be lower by a factor .
2
r
r
2k
k
k
= i 2
= i 2w0
+ 2 y = 0 = i
m
m
m
So the
Kreyszig, 2.4.5
Carlos Oscar Sorzano, Aug. 31st, 2014
Springs in parallel.
mass
Solution:
(ii) on a spring of
For the cases (i) and (ii), with a single spring, the dierential equa-
F = ky = my 00 y 00 +
k
y=0
m
The frequency of vibration comes from the analysis of the characteristic polynomial of the ODE
r
k
k
+
= 0 = i0 = i
m
m
2
k1
=
m
20[N/m]
= 2[s1 ]
5[Kg]
k2
=
m
45[N/m]
= 3[s1 ]
5[Kg]
01 =
In the second case
02 =
F1 + F2 = k1 y k2 y = my 00 y 00 +
47
k1 + k2
y=0
m
k1 + k2
=
m
03 =
65[N/m]
= 3.6[s1 ]
5[Kg]
Kreyszig, 2.4.6
Carlos Oscar Sorzano, Aug. 31st, 2014
Springs in series.
Solution:
F = ky = k(y1 + y2 )
On another side,
F = k1 y1 = k2 y2
Then we can write
y = y1 + y2
F
F
F
=
k
k1
k2
1
1
1
k1 k2
=
+
k=
k
k1
k2
k1 + k2
Then, we can calculate the frequency of oscillation as
r
0 =
k
=
m
k1 k2
=
(k1 + k2 )m
45 20
= 1.66[s1 ]
(45 + 20)5
Kreyszig, 2.4.7
Carlos Oscar Sorzano, Aug. 31st, 2014
Pendulum.
neglecting air resistance and the weight of the rod, and assuming
small that
Solution:
sin()
practically equals
F = ma
mg sin() = m(L)00
g sin() = (L)00
For a small angle
L,
to be so
sin()
g = (L)00
g
00 + = 0
L
2 +
g
=0
L
48
(L)00 ,
L.
and Newton's
r
g
= i0 = i
L
Kreyszig, 2.4.8
Carlos Oscar Sorzano, Nov. 2nd, 2014
Archimedian principle.
equals the weight of the water displaced by the body (partly or totally submerged).
oating in water with its axis vertical. When depressed downward in the water
and released, it vibrates with period 2 sec. What is its weight?
Solution:
Let
F = (r2 )y
where
and
my 00 = (r2 )y
my 00 + (r2 )y = 0
The oscillation frequency comes from the roots of the characteristic equation
m2 + (r2 ) = 0
r
2
= ir
= i0 =
m
T
where
T =
2
2
2
= p =
0
r
r m
we have
m=
r2 T 2
4
m=
r2 T 2
980[g/(cm2 s2 )]302 [cm2 ]22 [s2 ]
=
= 280.75[kg]
4
4
49
Kreyszig, 2.4.14
Carlos Oscar Sorzano, Aug. 31st, 2014
Shock absorber.
Solution:
[Kg]
[Kg/s2 ]?
my 00 = ky cy 0
whose characteristic polynomial is
m2 = k c
m2 + c + k = 0
c c2 4km
=
2m
Critical damping is attained if
c 3000[Kg/s],
Kreyszig, 2.4.18
Carlos Oscar Sorzano, Aug. 31st, 2014
Logarithmic decrement.
=
Find
Solution:
2a
.
0
y 00 + 2y 0 + 5 = 0.
dy
dt
=0
a cos(0 t ) + 0 sin(0 t ) = 0
a
0
a
0 t = atan
+ k
0
1
a
t=
atan
+ k
0
0
tan(0 t ) =
50
Let
t1
t1
1
0
atan
t2
1
0
atan
a
0
a
0
t2
+ k1
+ (k1 + 2) = t1 +
2
0
y(t1 )
= Ceat1 cos
(0 t1 )
= Ceat1 cos 0 10 atan a0 + k1
= Ceat1 cos atan a0 + k1
y(t2 ) = Ceat2 cos (
t )
0 2
2
a t1 +
2
0
= Ce
)
cos 0 (t1 +
0
=
2
a t1 +
0
Ce
2
a t1 +
= Ce
cos (0 t1 + 2)
cos (0 t1 )
y(t1 )
y(t2 )
Ceat1 cos(
0 t1 )
!
2
a t1 +
0
Ce
cos(0 t1 )
2a
= e 0
= log
2a
y(t1 )
=
y(t2 )
0
y 00 + 2y 0 + 5 = 0
is
2 + 2 + 5 = 0 = 1 2i = a i0
Consequently,
2(1)
=
2
e = 0.043
51
0.8
0.6
0.4
0.2
0.2
0.4
10
Kreyszig, 2.5.11
lvaro Martn Ramos, Dec. 27th, 2014
Solution:
x2 y 00 3xy 0 + 10y = 0
Which is an equation of the form
x2 y 00 + axy 0 + by = 0
The ODE is an Euler-Cauchy equation, so we try with a solution of the form
y = xm
whose derivatives are
y0
y 00
= mxm1
= m(m 1)xm2
m2 4m + 10 = 0 m1 , ,2 = 2 i 6
y = x2 (c1 cos
6 log(x) + c2 sin
6 log(x)
Kreyszig, 2.6.5
Carlos Oscar Sorzano, Aug. 31st, 2014
52
x2
and
x3
Solution:
The functions
y1 = x2
y2 = x3
1
y1
x2
= 3 =
y2
x
x
is not constant. This independence is conrmed because their Wronskian
y2 x2
=
y20 2x
y1
0
y1
is not 0 for all
x3
= 3x4 2x4 = x4 6= 0
3x2
x 6= 0.
Kreyszig, 2.6.12
Carlos Oscar Sorzano, Aug. 31st, 2014
x2
and
x2 log(x).
Show the linear independence of the two functions and solve the initial value
problem that satises
Solution:
y(1) = 4
and
y 0 (1) = 6.
double root at
m = 2.
m2 + (a 1)m + b = 0
must be equal to
(m 2)2 = 0 = m2 4m + 4
So
a = 3
and
b = 4.
x2 y 00 3xy 0 + 4y = 0
To show that the two functions are independent, we calculate their Wronskian
x2 log(x)
3 1
=x
2
2x log(x) + x
2
x
2x
log(x)
= x3
2 log(x) + 1
yp = c1 x2 + c2 x2 log(x)
yp (1) = 4 = c1
yp0 = 2c1 x + 2c2 x log(x) + c2 x
yp0 (1) = 6 = 2c1 + c2 = 8 + c2 c2 = 2
So the solution sought is
yp = x2 (4 2 log(x))
Kreyszig, 2.7.6
53
y 00 + y 0 + ( 2 + 14 )y = e 2 sin(x)
Solution:
istic polynomial
++ +
1
4
=0=
1 4 2 1
1
= i
2
2
yh = Ae 2 cos(x) + Be 2 sin(x)
x
e 2 sin(x)
yp
= K1 xe 2 cos(x) + K2 xe 2 sin(x)
yp0
yp00
x
1 2
2e x
1 2
4e
y 00 + y 0 + ( 2 + 41 )y
x
e 2
sin(x)
From where
K2 = 0
2K1 = 1 K1 =
1
2
yp =
1 x
xe 2 cos(x)
2
y = yp + yh = e 2
x
cos(x) + B sin(x)
2
Kreyszig, 2.7.13
Carlos Oscar Sorzano, Jan. 15th, 2015
54
Solution:
istic polynomial
1
1
1 1
82 6 + 1 = 0 = 8
= ,
4
2
4 2
The real general solution of the homogeneous problem is
yh = c1 e 2 + c2 e 4
The excitation function
6 cosh(x)
yp
yp0
yp00
=
=
=
A cosh(x) + B sinh(x)
A sinh(x) + B cosh(x)
A cosh(x) + B sinh(x)
y = c1 e 2 + c2 e 4 +
We need now to determine
c1
and
c2
4
6
cosh(x) + sinh(x)
5
5
y(0) = 0.2 = c1 + c2 + 54
y 0 (0) = 0.05 = 12 c1 + 41 c2 +
6
5
c1 = 4, c2 =
17
5
y = 4e 2 +
17 x
4
6
e 4 + cosh(x) + sinh(x)
5
5
5
Kreyszig, 2.8.13
Carlos Oscar Sorzano, Aug. 31st, 2014
Find the transient motion of the mass-spring system modeled by the ODE
Solution:
2 + 1 = 0 = i
So, the homogeneous response is of the form
yh = A cos(t) + B sin(t)
55
Note that the external excitation does not have the same frequency as the
internal natural frequency. For that reason, for the particular response to the
external excitation we look a solution of the form
yp = K1 cos(t) + K2 sin(t)
yp0
= K1 sin(t) + K2 cos(t)
1
, K2 = 0
1 2
y = yh + yp = A cos(t) + B sin(t) +
1
cos(t)
1 2
= 1.5, A = B = 1
10
15
x
20
25
30
Kreyszig, 2.8.24
Carlos Oscar Sorzano, Jan. 15th, 2015
Gun barrel.
where
F (t) =
Solve
y 00 + y = F (t)
1
0
t2
2
0t
otherwise
and
y(0) = 0, y 0 (0) = 0.
This models an
gure below), for instance, the force on a gun barrel when a shell is red, the
barrel being braked by heavy springs (and then damped by a dashpot, which
we disregard for simplicity). Hint: At
both
56
and
y0
must be continuous.
Solution:
2 + 1 = 0 = i
yh = c1 cos(t) + c2 sin(t)
In the interval
0t
yp
yp0
yp00
= A + Bt + Ct2
= B + 2Ct
= 2C
2C + (A + Bt + Ct2 ) = 1
t2
2
1
(2C + A) + Bt + Ct2 = 1 2 t2
2C + A = 1
1
2
B=0
A = 1 + 2 , B = 0, C = 2
1
C = 2
The general solution in this interval is of the form
y = c1 cos(t) + c2 sin(t) + 1 +
To determine
c1
c2
and
y(0)
y 0 (0)
2
t2
2
2
=
=
0 = c1 + 1 +
0 = c2
2
2
c1 = 1 +
2
2
y=
Note that at
t=
2
t2
1 + 2 (1 cos(t)) 2
we have
2
y() = 1 + 22 (1 cos()) 2 = 1 +
2
2
0
y () = 1 + 2 sin() 2 = 2
In the interval
t>0
4
2
t=
y = c1 cos(t) + c2 sin(t)
with the initial values
4
2
4
2
y = 1 + 2 cos(t) + sin(t)
Note that this solution is oscillatory and never vanishes because we have disregarded damping.
Finally we can write the solution to the initial problem as
y(t) =
2
1 + 22 (1
cos(t)) t 2
0t
1 + 42 cos(t) + 2 sin(t) otherwise
Kreyszig, 2.9.1
Carlos Oscar Sorzano, Aug. 31st, 2014
Model the RC circuit of the gure below. Find the current due to a constant
Solution:
To model the circuit we sum the drops of voltage along the RC loop
E(t) iR
1
E(t) iR
C
1
Q=0
C
Zt
i( )d = 0
Dierentiating
E 0 i0 R
i0 +
If is constant,
1
i=0
C
1
i = E0
RC
1
1
=0=
RC
RC
t
i(t) = Ae RC
If at
t=0
we have
i(0),
then
i(0) = A
58
Finally,
t
i(t) = i(0)e RC
Kreyszig, 2.10.6
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
(D2 + 6D + 9I)y = 16
e3x
x2 + 1
by variation of parameters.
Solution:
2 + 6 + 9 = 0 = 3, 3
So the homogeneous solution is
yh = c1 y1 + c2 y2 = c1 e3x + c2 xe3x
The Wronskian of the
e3x
W =
3e3x
y1
and
y2
functions is
xe3x
3x 2 1
= e
3
3xe3x + e3x
x
= e6x
3x + 1
yp
y1 r
y2 r
W dx + y23x W dx
3x
e
R xe 16 x2 +1
y1
=
=
=
R e3x 16 ex3x
2 +1
e3x R e6x
dx + xe3x
dx
R 1 e6x
x
3x
3x
16e
dx
+
16xe
dx
2
2
x +1
x +1
8e3x log(x2 + 1) + 16xe3x atan(x2 + 1)
Chapter 3
Kreyszig, 3.1.1
Carlos Oscar Sorzano, Aug. 31st, 2014
1, x, x2 , x3
are solutions of
y iv = 0
and form a basis on any interval.
Solution:
59
yi
yi0
yi00
yi000
yiiv
1
0
0
0
0
x
1
0
0
0
x2
2x
2
0
0
x3
3x2
6x
6
0
So, the proposed functions are solutions of the ODE. To see if they are linearly
independent, we calculate their Wronskian
W =
1
0
0
0
x
1
0
0
x2
2x
2
0
x3
3x2
6x
6
= 12
Since they are 4 independent solutions of a 4th order ODE, they are a basis of
solutions.
Kreyszig, 3.1.5
Carlos Oscar Sorzano, Aug. 31st, 2014
1, ex cos(2x), ex sin(2x)
are solutions of
y 000 + 2y 00 + 5y 0 = 0
and form a basis on any interval.
Solution:
y1 = 1
Dy = 0
while the functions
y2 = ex cos(2x)
and
y3 = ex sin(2x)
second
((D + 1)2 + 22 )y = 0
So, the proposed functions are solutions of the ODE. To see if they are
linearly independent, we calculate their Wronskian
1
W = 0
0
ex cos(2x)
x
e (cos(x) + sin(x))
2ex sin(x)
ex sin(2x)
x
e (cos(x) sin(x))
2ex cos(x)
= 2e2x
Kreyszig, 3.1.10
Carlos Oscar Sorzano, Jan. 15th, 2015
e2x , xe2x
and
x2 e2x
x 0?
60
Solution:
Let us call
and
f3 (x) = x2 e2x .
For
checking the linear dependence or not of the three functions we calculate the
Wronskian of the three functions
W (x)
Since
f1 (x)
f2 (x)
f3 (x) e2x
xe2x
2x
df1 (x)
df2 (x)
df3 (x)
(1 + 2x)e2x
= 2e
dx
dx
2
2
d2 fdx
2x
(x)
d
f
(x)
d
f
(x)
1
2
3
4e
4(1 + x)e2x
dx2
dx2
dx2
1
x
x2
6x
= 2e6x
2(1 + x)x
e 2 1 + 2x
4 4(1 + x) 2(2x2 + 4x + 1)
W (x) > 0
x 0,
for
f1 , f2
and
x2 e2x
2(1 + x)xe2x
2(2x2 + 4x + 1)e2x
f3
Kreyszig, 3.2.5
Solve
Solution:
4 + 102 + 9 = 0 = (2 )2 + (102 ) + 9
= i3, i
So the general solution is
Solution:
(2 + 4)2 = 0
( 2i)2 ( + 2i)2 = 0
The general solution of the dierential equation is
61
are linearly
Solution:
3 + 3.22 + 4.81 = 0
(2 + 3.2 + 4.81) = 0
= 0, 1.6 1.5i
The general solution of the dierential equation is
x=0
y(0) =
3.4 = c1 + c2
2.8
2.6
2.4
2.2
2
1.8
Kreyszig, 3.2.14
Carlos Oscar Sorzano, Aug. 31st, 2014
Reduction of order.
known,
y1 ,
y = uy1
62
y1
y2 = uy1
with
Z
u=
and
z(x)dx
obtained by solving
y1 = x
Solution:
1. Let us assume that
y = uy1
then
y0
y 00
y 000
=
=
=
=
=
u0 y1 + uy10
u00 y1 + u0 y10 + u0 y10 + uy100
u00 y1 + 2u0 y10 + uy100
u000 y1 + u00 y10 + 2u00 y10 + 2u0 y100 + u0 y100 + uy1000
u000 y1 + 3u00 y10 + 3u0 y100 + uy1000
y 000 + p2 y 00 + p1 y 0 + p0 y = 0
(u000 y1 + 3u00 y10 + 3u0 y100 + uy1000 )+p2 (u00 y1 + 2u0 y10 + uy100 )+p1 (u0 y1 +uy10 )+p0 uy1 = 0
(uy1000 ) + p2 (uy100 ) + p1 (u0 y1 + uy10 ) + p0 uy1 = 0
y1 u000 +(3y10 +p2 y1 )u00 +(3y100 +2p2 y10 +p1 y1 )u0 +(y1000 +p2 y100 +p1 y10 +p0 y1 )u = 0
Since
y1
z = u0
we can write the ODE as
63
2. Let us divide by
x3
y 000
3 00
y +
x
6
1
6
0
1
y
y=0
x2
x3
x
3
3
6
0
(x)z + 3(1) +
1 x z =0
x z + 3(0) + 2
(1) +
x
x
x2
00
xz 00 xz = 0
z 00 z = 0
whose characteristic polynomial is
2 1 = 0 = 1
So the solution is
z = c1 ex + c2 ex
Z
u=
Z
zdx =
(c1 ex + c2 ex )dx = c1 ex + c2 ex
y = c1 xex + c2 xex + c3 x
Kreyszig, 3.3.5
lvaro Martn Ramos, Jan. 4th, 2015
Solve
Solution:
x3 y 000 + x2 y 00 2xy 0 + 2y = x2
The homogeneous ODE is an Euler-Cauchy equation, so we try a solution of
the form
y
y0
y 00
y 000
=
=
=
=
xm
mxm1
m(m 1)xm2
m(m 2)(m 1)xm3
So
m = 2, 1, 1
The general
yh = c1 x + c2 x1 + c3 x2
For nding a particular solution of the non-homogeneous problem we use the
method of variation parameters whose solution is
yp =
3
X
Z
yk
k=1
Where
yk
Wk
rdx
W
W and Wk
x x1 x2
1 x2 2x = 2x2 8
x
3
2
0 2x1
0 x
x2
0 x2 2x = 3
3
1 2x 2 2
x 0 x
1 0 2x = x2 2x2
0 1 12
x x
0
1 x2 0 = 2
x
0 2x3 1
matrices
W1
W2
W3
1 00
2
2
y 2 y 0 + 3 y = x5
x
x
x
W1
rdx =
W
Z 2
x tanh1 ( x2 2)
x 2x2 5
W2
rdx =
x
dx
=
W
2x2 8
16x
Z
Z
W3
1
1
1
log(x)
2
rdx =
x5 dx =
log(x2 4) +
2
2
W
2x 8
16
32x
128
64
Z
yp
2
3x3 tanh1 ( x
2 )+6x +8
64x3
= x
1
= 12x
2
+ x1
x tanh1 ( x
2 2)
16x
+ x2 ( 1
16
y = c1 x + c2 x1 + c3 x2
Kreyszig, 3.3.6
65
1
12x2
1
32x2
1
128
log(x2 4) +
log(x)
64 )
Solve
Solution:
3 + 4 = 0 = (2 + 4) = 0, 2i
So the homogeneous solution is given by
yh = c1 + c2 cos(2x) + c3 sin(2x)
To nd a particular solution for non-homogeneous problem we try a function of
the form
yp = K1 cos(x) + K2 sin(x)
yp0 = K1 sin(x) + K2 cos(x)
yp00 = K1 cos(x) K2 sin(x)
yp000 = K1 sin(x) K2 cos(x)
Substituting in the ODE
y = c1 + c2 cos(2x) + c3 sin(2x)
1
sin(x)
3
Kreyszig, 3.3.7
lvaro Martn Ramos, Jan. 4th, 2015
Solve
Solution:
3 92 + 27 27 = 0 = ( 3)3 = 0 = 3(3
times)
yh = (c1 + c2 x + c3 x2 )e3x
To nd a particular solution for non-homogeneous problem we try a function of
the form
yp
yp0
yp00
yp000
=
=
=
=
K cos(3x) + M sin(3x)
3K sin(3x) + 3M cos(3x)
9K cos(3x) 9M sin(3x)
27K sin(3x) 27M cos(3x)
66
1
y = (c1 + c2 x + c3 x2 )e3x (cos(3x) sin(3x))
4
Kreyszig, 3.3.10
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
x3 y 000 + xy 0 y = x2
Solution:
y
y0
y 00
y 000
=
=
=
=
xm
mxm1
m(m 1)xm2
m(m 1)(m 2)xm3
m=1
yp =
3
X
Z
yk
k=1
where
yk
Wk
rdx
W
and
Wk
matrices
W1
W2
W3
x x log(x)
x log2 (x)
1 1 + log(x) 2 log(x) + log2 (x) = 2
1
2
2
0
x
x + x log(x)
2
0 x log(x)
x log (x)
0 1 + log(x) 2 log(x) + log2 (x) = x log2 (x)
1
2
2
1
x
x + x log(x)
2
x 0
x log (x)
1 0 2 log(x) + log2 (x) = 2x log(x)
2
2
0 1
x + x log(x)
x x log(x) 0
1 1 + log(x) 0 = x
1
0
1
x
x3 y 000 + xy 0 y = x2 y 000 +
We now calculate the integrals (with
R
R
R
W1
W rdx
W2
W rdx
W3
W rdx
R
=
R
= R
=
r=
1
1
1 0
y 3y =
x2
x
x
1
x)
yp
R 1
R 2
R W3
= y1 W
rdx + y2 W
W
W rdx + y3
W rdx
2
log(x)+2)
= x x(log (x)2
+
x
log(x)
(x(log(x)
1)) + x log2 (x) x2
2
2
= x
y = 3x log(x) +
11
x log2 (x) + x2
2
68
Chapter 4
Kreyszig, 4.1.1
Carlos Oscar Sorzano, Aug. 31st, 2014
Find out, without calculation, whether doubling the ow rate in the following
example has the same eect as halng the tank sizes.
Solution:
Original case:
y2
lb
gal
y1
lb
gal
2
2
100 gal
min
100 gal
min
y1
lb
gal
y2
lb
gal
y20 = inow-outow =
2
2
100 gal
min
100 gal
min
0
0
y1 = 0.02y1 + 0.02y2
y1
0.02 0.02
y1
=
y0 = Ay
y20 = 0.02y1 0.02y2
y20
0.02 0.02
y2
y10 = inow-outow =
y2
lb
gal
y1
lb
gal
= inow-outow =
4
4
100 gal
min
100 gal
min
lb
gal
lb
gal
y1
y2
y20 = inow-outow =
4
4
100 gal
min
100 gal
min
y10 = 0.04y1 + 0.04y2
y10
0.04 0.04
y1
=
y 0 = A1 y
y20 = 0.04y1 0.04y2
y20
0.04 0.04
y2
y10
gal
y1 lb
gal
y2 lb
= inow-outow =
2
2
50 gal
min
50 gal
min
y1 lb
gal
y2 lb
gal
0
y2 = inow-outow =
2
2
50 gal
min
50 gal
min
y10 = 0.04y1 + 0.04y2
y10
0.04 0.04
y1
=
y 0 = A2 y
0
y2 = 0.04y1 0.04y2
y20
0.04 0.04
y2
y10
Since
A1 = A2 ,
69
Kreyszig, 4.1.11
Solve
4y 00 15y 0 4y = 0
Solution:
of variables
y = y1
y10 = y2
So that the original ODE can be written as
15
y2 + y1
4
0
0
y1
=
y20
1
y1
15
y2
4
1
y0 = Ay
The eigenvalues and eigenvectors of
are:
1 = 4, v1 = (1, 4)T
2 = 41 , v2 = 1, 14
T
y = c1 v1 e1 x + c2 v2 e2 x = c1
x
1
1 4x
e + c2
e 4
4
41
Kreyszig, 4.1.12
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
y 000 + 2y 00 y 0 2y = 0
by solving it directly and by reducing it to an ODE system.
Solution:
3 + 22 + 2 = 0 = 2, 1, 1
So that the general solution is
y = c1 e2x + c2 ex + c3 ex
To convert the ODE into an ODE system we do the following changes of variables
y1
y2
y3
=
=
=
y
y10 = y 0
y20 = y 00
0
0
y1
y20 = 0
y30
2
0
y1
1 y2
2
y3
1
0
1
y0 = Ay
The eigenvalues and eigenvectors of
1 = 2
2 = 1
3 = 1
are
v1 = (1, 2, 4)T
v2 = (1, 1, 1)T
v3 = (1, 1, 1)T
=
=
=
Finally, remind that
x
c1 v1 e1
+ c2 v2 e2 x+ c3
v3 e3 x
1
1
1
c1 2 e2x + c2 1 ex + c3 1 ex
1
1
4 2x
c1 e
+ c2 ex + c3 ex
2c1 e2x c2 ex + c3 ex
4c1 e2x + c2 ex + c3 ex
y = y1 ,
that is
y = c1 e2x + c2 ex + c3 ex
That is, the same result as we obtained by the direct method.
Kreyszig, 4.3.1
Carlos Oscar Sorzano, Nov. 14th, 2014
y10
y20
Solution:
=
=
y1 + y2
3y1 y2
0
y1
1
=
y20
3
1
y1
1
y2
1
3
1
= (1 )(1 ) 3 = ( 2)( + 2) = 0
1
The eigenvector of
1 = 2
1
3
(A 2I)x = 0
1 0
1
3 0
0
71
1 0
0 0
whose eigenvector is
x1 = (1, 1).
2 = 2 comes
The eigenvector of
whose eigenvector is
from
(A + 2I)x = 0
3 1 0
3 1
3 1 0
0 0
0
0
x2 = (1, 3).
y = c1 x1 e1 t + c2 x2 e2 t = c1
c1 e2t c2 e2t
1 2t
1 2t
e + c2
e
=
c1 e2t + 3c2 e2t
1
3
Kreyszig, 4.3.6
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
0
y1
2
=
y20
2
2
y1
2
y2
y0 = Ay
The eigenvalues and eigenvectors of
1 = 2 + 2i
2 = 2 2i
are
v1 = (i, 1)T
v2 = (i, 1)T
1 x
= c1 v1 e
+ c2 v2 e2 x
i (2+2i)x
i (22i)x
= c1
e
+ c2
e
1
1
y1
y2
i (2+2i)x
=
e
1
i (22i)x
=
e
= y1
1
1
y
y1 +y2
2
2
y
y1 y2
2i
ie(2+2i)x
= Re{y1 } = Re
(2+2i)x
2x e
e cos(2x)
= Im{y1 } =
e2x sin(2x)
72
2x
e sin(2x)
=
e2x cos(2x)
1 +c2 y
2 = c1
y = c1 y
2x
e2x sin(2x)
e cos(2x)
2x c1 sin(2x) + c2 cos(2x)
+c2 2x
= e
e2x cos(2x)
c1 cos(2x) + c2 sin(2x)
e sin(2x)
Kreyszig, 4.3.7
Carlos Oscar Sorzano, Aug. 31st, 2014
y10 = y2
y20 = y1 + y3
y30 = y2
Solution:
0
y1
0
y20 = 1
y30
0
1
0
1
0
y
1 1
y2
0
y0 = Ay
The eigenvalues and eigenvectors of
1 =
0
2i
2 =
3 = 2i
are
v1 = (1, 0,
1)T
T
v2 = (i,
2, i)T
v2 = (i, 2, i)
=
=
1 x
x
2x
c1 v1 e
+ c2
v2 e
+ c3 v3 e3
i
i
1
c1 0 + c2 2 ei 2x + c3 2 ei 2x
1
i
i
y2
y3
= 2 ei 2x
i
i
= 2 ei 2x = y2
i
2
y
y2 +y3
2
3
y
y2 y3
2i
i
sin(
2x)
i
sin( 2x)
cos(
2x)
= Im{y2 } = 2 sin(
2x)
cos( 2x)
73
+c y
= c1 y1 + c2 y
2 3 3
cos( 2x)
sin(
2x)
1
c1+ c2 sin(
c3 cos( 2x)
2x)
= c2 2 cos( 2x)
+
c
3 2 sin( 2x)
Kreyszig, 4.3.18
Carlos Oscar Sorzano, Aug. 31st, 2014
Each of the two tanks contains 200 gal of water, in which initially 100 lb
(Tank
T1 )
T2 )
tion, and outow are shown in the gure below. The mixture is kept uniform
y1 (t)
Solution:
T1
in
and
y2 (t)
in
T2 .
y1
y2
= 200
16 + 200
4 + 0 12
y1
y2
= 200 16 200 (4 + 12)
y10
y20
Equivalently
0 16
y1
200
=
16
y20
200
4
200
16
200
y1
y2
3
1 = 25
,
1
2 = 25
,
v1 = ( 12 , 1)T
v2 = ( 12 , 1)T
y = c1 v1 e1 t + c2 v2 e2 t = c1
12
1
e 25 t + c2
y(0) =
100
200
e 25 t
t = 0 we have
1
1
2
= c1
+ c2 2 c1 = 0, c2 = 200
1
1
1
1
y = 200
1
74
e 25
Kreyszig, 4.4.1
lvaro Martn Ramos, Jan. 4th, 2015
y10 = y1
y20 = 2y2
Then nd a real general solution.
Solution:
0
1
y1
=
y20
0
0
2
y1
y2
det
1
0
0
2
= 2 3 + 2 = 0
p = 3, (> 0)
q = 2(> 0)
= p2 4q = 1(> 0)
So it is an unstable improper node. The general solution is
y1 = c1 et , y2 = c2 e2t
Kreyszig, 4.4.3
Carlos Oscar Sorzano, Aug. 31st, 2014
y10 = y2
y20 = 9y1
Then nd a real general solution and sketch or graph some of the trajectories
in the phase plane.
Solution:
0
y1
0
=
y20
9
Critical points are points at which
y 0 = 0,
1
y1
0
y2
in this case the only critical point is
y=0
whose eigenvalues and eigenvectors are
1 = 3i, v1 = ( 31 i, 1)
2 = 3i, v2 = ( 13 i, 1)
This corresponds to a center as can be clearly seen in the gure below
75
2
1.5
1
0.5
0
0.5
1
1.5
2
2
1.5
0.5
0
y1
0.5
1.5
1 x
y1
v1 e
y2
v2 e2 x
1
y
y1 +y2
2
2
y
y1 y2
2i
1
3 i i3x
=
e
1 1
i
= 3 ei3x
1
1
3
sin(3x)
= Re{y1 } =
cos(3x)
31 cos(3x)
= Im{y1 } =
sin(3x)
1 + c2 y
2 =
y = c1 y
c1 13 sin(3x) c2 31 cos(3x)
c1 cos(3x) + c2 sin(3x)
Kreyszig, 4.4.7
lvaro Martn Ramos, Jan. 4th, 2015
y10 = y1 + 2y2
y20 = 2y1 + y2
Then nd a real general solution.
Solution:
0
y1
1
=
y20
2
2
1
y1
y2
2 2 3 = 0
p = 2, (> 0)
q = 3(< 0)
76
1 = 3, v1 = (1, 1)T
2 = 1, v2 = (1, 1)T
The general solution is given by
y = c1 v1 e1 x + c2 v2 e2 x = c1
1 3x
1
e + c2
ex
1
1
Kreyszig, 4.4.14
Carlos Oscar Sorzano, Aug. 31st, 2014
Transformation of parameters.
y10 = y1
y20 = 2y2
if you introduce
= t
phase plane.
Solution:
0
y1
1
=
y20
0
0
2
y1
y2
dyi dt
dyi
dyi
=
=
d
dt d
dt
So the equation system becomes
dy1
d
dy2
d
1
=
0
0
y1
2
y2
That is the direction of motion changes, and the two eigenvalues become negative. Then we have
p = 1 + 2 < 0
and
q = 1 2 > 0,
consequently a stable
node.
Kreyszig, 4.4.17
Carlos Oscar Sorzano, Aug. 31st, 2014
Perturbation.
The system
y =
0
4
1
y
0
aij
by
aij + b.
Find values of
such that you get (a) a saddle point, (b) a stable and attractive node, (c) a
stable and attractive spiral, (d) an unstable spiral, (e) an unstable node.
Solution:
y =
b
1+b
y
4 + b
b
77
|A I| = (b )2 (1 + b)(4 + b) = 2 2b + 4 + 3b
This polynomial is of the form
2 p + q
so
p = 2b
q = 4 + 3b
Saddle point: to get a saddle point we need
4
3
Stable and attractive node: to get a stable and attractive node we need
p < 0, q = 0
q > 0, = p2 4q 0
2b < 0, 4 + 3b = 0
(node)
4
=b
3
b = 34 .
Stable and attractive spiral: to get a stable and attractive spiral we need
p < 0, q = 0
= p2 4q < 0, p 6= 0
2b < 0, 4 + 3b = 0, 2b 6= 0
(spiral)
4
=b
3
{ 34 } (1, 4) = ,
there is no
p>0
2b > 0
or
q<0
(unstable) and
= p2 4q < 0, p 6= 0
(spiral)
or
(, 34 ) (0, ) (1, 4) = (0, 4)
Unstable node: to get an unstable node we need
p>0
2b > 0
or
or
q<0
(unstable) and
q > 0, = p2 4q 0
(node)
(, 34 ) (0, ) ( 34 , 1] [4, ) = [4, )
78
Kreyszig, 4.5.5
Carlos Oscar Sorzano, Aug. 31st, 2014
Find the location and all critical points by linearization of the ODE
y10 = y2
y20 = y1 + 21 y12
Solution:
y2
y1 + 21 y12
y =
Case
y2
y1 + 12 y12
= 0 y1 = 0, 2; y2 = 0
!
f1
y2
f2
y2
f1
y1
f2
y1
A=
(0, 0)
we get
0
1
=
1
0 y =0
0
1 + y1
=
y=0
(0, 0)
1
0
as
y0 = Ay
A is
1
|A I| =
1
= 2 + 1 = 0
p = 0, q = 1 and = p2 4q = 4.
(p 0, q > 0) center (p = 0, < 0).
Case (y1 , y2 ) = (2, 0):
So,
Consequently,
(0, 0)
y1
y1 2
=
y2
y2
Then
0 =
y
y2
y1 + 2)2
(
y1 + 2) + 12 (
A =
f1
y1
f2
y1
!
f1
y2
f2
y2
=
y2
y1 + 21 y12
(
y1 , y2 ) = (0, 0)
=
0
1 + y1
=0
y
1
0
=
0 y =0
1
|A I| =
1
1
= 2 1 = 0
79
1
0
is a stable
p = 0, q = 1 and = p2 4q = 4.
< 0) saddle point (q < 0).
So,
(q
Consequently,
(2, 0)
is an unstable
Kreyszig, 4.5.9
Carlos Oscar Sorzano, Jan. 15th, 2015
Find the location and type of all critical points by rst converting the ODE
to a system and then linearizing it.
y 00 9y + y 3 = 0
Solution:
Let us dene
y1
y2
=
=
y
y10
y10
y20
= y2
= 9y1 y13 = y1 (3 y1 )(3 + y1 )
y = y1 = 0, 3, 3, y2 = 0.
Let us linearize
the ODE at the three points. For doing so, let us rewrite the ODE system as a
vector dierential equation:
y0 = F(y)
Case
y =
y = 0:
F1
y2
F2
y2
F1
y1
F2
y1
The eigenvalues of
y=
y1 =0,y2 =0
A =
0
9
1
0
1
0 y
0
9 3y12
y=
1 =0,y2 =0
0
9
1
y
0
are
1 = 3
2 = 3.
and
eigenvalues are real and of opposite sign, the critical point is a saddle point.
Case
y = 3:
whose
0
1
0
1
y =
y=
y
9 3y12 0 y =3,y =0
18 0
1
2
y = 3:
y0 =
0
9 3y12
1
0 y
y=
1 =3,y2 =0
0
18
1
y
0
Kreyszig, 4.6.3
y10 = y2 + e3t
80
eigenvalues
y20 = y1 3e3t
Solution:
0
0
y1
=
y20
1
1
0
y1
1
+
e3t
y2
3
1 = 1, v1 = (1, 1)T
2 = 1, v2 = (1, 1)T
So the general solution of the homogeneous problem is
t
1
1 t
e
t
e + c2
e =
1
1
et
y h = c1
et
et
c1
=Yc
c2
yp = Y u
Where
u0 = Y 1 g
So
et
Y
et
t
2t
1 e
e
e3t
e
0
=
u =
et
3e3t
2e4t
2 et
!
Z 2t
e2t
e
2
u=
dt =
e4t
2e4t
2
!
t
2t
e
e
et
0
2
yp = Y u =
= 3t
e4t
e
et et
1
et
et
t
1
=
2
Finally,
1
1 t
0
et + c2
e + 3t
1
1
e
y = yh + yp = c1
Kreyszig, 4.6.5
Solution:
y =
4
2
1
0.6t
y+
3
2.5t
81
1 = 5, v1 = (1, 1)T
2 = 2, v2 = (1, 2)T
So the general solution of the homogeneous problem is
yh = c1
1 5t
1 2t
e + c2
e
1
2
y = k0 + k1 t
Substituting into the ODE we get
k1 =
From where
4
2
1
0.6
(k0 + k1 t) +
t
3
2.5
1
0.6
0.43
k1 +
= 0 k1 =
3
2.5
1.12
4
2
and
k1 =
4
2
1
0.241
k0 k0 =
3
0.534
1 5t
1 2t
0.241
0.43
y = c1
e + c2
e +
+
t
1
2
0.534
1.12
Chapter 5
Kreyszig, 5.1.7
Carlos Oscar Sorzano, Aug. 31st, 2014
y 0 = 2xy
using the power series method.
Solution:
y=
am xm = a0 + a1 x + a2 x2 + a3 x3 + ...
m=0
Then
y0 =
m=1
Let us write the ODE as
y 0 + 2xy = 0
82
!
am mxm1
+ 2x
m=1
a1 + 2a2 x +
!
am xm
!
am mx
m1
+ 2a0 x +
a1 + 2a2 x +
!
m+1
2am x
m0 = m 2
!
am0 +2 (m + 2)x
m0 +1
+ 2a0 x +
m0 =1
!
2am x
m0 =1
a1 + 2(a0 + a2 )x +
2am xm+1 = 0
m=1
m=1
Since the whole series is 0, all its terms must be 0
a1 = 0
a0 + a2 = 0 a2 = a0
Let us analyze now the odd terms
m = 1 3a3 + 2a1 = 0 a3 = 0
m = 3 5a5 + 2a3 = 0 a5 = 0
...
So all odd terms are null. Let us analyze now the even terms
1
2
m = 2 4a4 + 2a2 = 0 a4 = a2 = a0
4
2
11
2
m = 4 6a6 + 2a4 = 0 a6 = a4 = a0
6
32
2
111
m = 6 8a8 + 2a6 = 0 a8 = a6 =
a0
8
432
...
m
m+1
m=1
a1 + 2(a0 + a2 )x +
=0
m=1
m=3
=0
m=0
even, we have
am = (1) 2
m a0
2!
1
1
1
y = a0 1 x2 + x4 x6 + x8 ...
2!
3!
4!
83
=0
y = a0 ex
Kreyszig, 5.1.11
lvaro Martn Ramos, Jan. 4th, 2015
y 00 y 0 x2 y = 0
using the power series method
Solution:
y=
am xm
m=0
Then
y0
y 00
m=1
am mxm1
am m(m 1)xm2
m=2
Substituting the series in the ODE
!
am m(m 1)x
m2
m=2
!
am mx
m1
+x
m=1
!
am x
=0
m=0
m0 = m + 1
m0 = m + 4
am m(m 1)xm2
m0 =2
m=2
am0 4 xm2 = 0
m0 =4
m=4
The whole series is 0, all terms must be 0
2a2 a1 = 0 a2 =
6a3 2a2 = 0 a3 =
a1
2
a2
a1
=
3
3!
When m=4
12a4 3a3 + a0 = 0 a4 =
3a3 a0
a1
a0
=
12
4!
12
When m=5
20a5 4a4 + a1 = 0 a5 =
=
a4
a1
4a4 a1
=
=
20
5
20
a1
a0
a1
a0
a1
6a1
a0
5a1
a0
a1
= +
=
=
5!
60 20
60
5!
5!
60
5!
60
4!
84
y = a0 (1
1 4
1
1
1
1
1
x x5 ...) + a1 (x + x2 + x3 + x4 x5 ...)
12
60
2!
3!
4!
5!
Kreyszig, 5.1.20
Carlos Oscar Sorzano, Aug. 31st, 2014
In numerics we use partial sums of power series. To get a feel for the accuracy
for various x, experiment with
sin(x).
Solution:
sin(x).
sin(x) =
sin(x)
is
x
x5
(1)
x2m+1 = x
+
...
(2m + 1)!
3!
5!
m=0
m
x=[-2*pi:0.001:2*pi]
M=5;
yp=zeros(M+1,length(x));
for m=0:M
yp(m+1,:)=(-1)m/factorial(2*m+1)*x.(2*m+1);
if m>0
yp(m+1,:)=yp(m+1,:)+yp(m,:);
end
end
plot(x,sin(x),'LineWidth',2)
axis([-2*pi 2*pi -2 2])
hold on
plot(x,yp)
legend('sin(x)','m=0','m=1','m=2','m=3','m=4','m=5')
2
sin(x)
m=0
m=1
m=2
m=3
m=4
m=5
1.5
0.5
0.5
1.5
85
Kreyszig, 5.2.2
Carlos Oscar Sorzano, Aug. 31st, 2014
Show that
y2 = x
with
n=1
becomes
y 2 = P1 = x
and
y1 = 1
with
n=1
becomes
1
1
1
y1 = 1 x2 x4 x6 ... = 1 x log(x)
3
5
2
Solution:
y2 = x
In particular for
y2 .
For a general
n, y2
is
y2 = x
it becomes
(0)(3) 3 (2)(0)(3)(5) 5
x +
x ... = x = P1 (x)
3!
5!
y1
is for any
y1 = 1
y1 = a0 + a2 x2 + a4 x4 + ...
In general, we have the recursion
am+2 =
which for
n=1
(n m)(n + m + 1)
am
(m + 2)(m + 1)
becomes
am+2 =
(m 1)
(1 m)(m + 2)
am =
am
(m + 2)(m + 1)
(m + 1)
a0
a2
a4
a6
a8
= 1
= 1
1 a0 = 1
= 31 a2 = 13
= 35 a4 = 35 31 = 15
= 57 a6 = 57 51 = 17
86
and, in general,
am =
y1
1
a0
m1
as
1
1
1
y1 = 1 x2 x4 x6 x8 ...
3
5
7
We know that the McLaurin series of
1
2
log
1+x
1x in the interval
1 < x < 1
1
1+x
x3
x5
x7
log
=x+
+
+
+ ...
2
1x
3
5
7
If we now calculate
1 21 x log
which is equal to
y1
1+x
1x
1x x+
1 x2
x3
3
x4
3
x5
5
x6
5
x7
7
x8
7
+ ...
...
Kreyszig, 5.2.11
Carlos Oscar Sorzano, Dec. 19th, 2014
Find a solution of
Solution:
u=
x
a
dy
dy du
dy 1
=
=
dx
du dx
du a
d2 y
d dy 1 du
d2 y 1
=
=
dx2
du du a dx
du2 a2
Substituting into the dierential equation, we get
(a2 a2 u2 )
d2 y 1
dy 1
2(au)
+ n(n + 1)y = 0
du2 a2
du a
(1 u2 )
d2 y
dy
2u
+ n(n + 1)y = 0
du2
du
y(x) = c1 y1
x
a
Kreyszig, 5.3.2
87
+ c2 y2
x
a
is
Solve
(x + 2)2 y 00 + (x + 2)y 0 y = 0
by the Frobenius method.
Solution:
z = x + 2.
z 2 y + z y y = 0
1
1
y + y 2 y = 0
z
z
We can apply the Frobenius method to this problem because it is of the form
y +
b(z) = 1
being
and
c(z) = 1
b(z)
c(z)
y + 2 y = 0
z
z
analytical functions at
y = zr
z = 0.
We look for a
am z m
m=0
Its derivatives are
y =
dy
dz
d2 y
dz 2
= z r1
=z
(m + r)am z m
m=0
P
r2
(m + r)(m + r 1)am z m
m=0
r2
!
(m + r)(m + r 1)am z
+z
r1
m=0
(m + r)am z
m=0
m=0
(m + r)am z m+r
m=0
!
m
m=0
am z m+r = 0
m=0
m=0
m=0
The indicial equation comes from the coecient of lowest degree, i.e.,
m=0
(r + 1)(r 1) = 0
whose solutions are
r1 = 1, r2 = 1
Case
r1 = 1
Substituting
r=1
m=0
88
!
am z
=0
which implies
a1 = a2 = a3 = ... = 0.
y = z r1
am z m = z(a0 )
m=0
is a solution of the dierential equation.
constant
a0 ,
for instance,
a0 = 1,
y1 = z
Case
r2 = 1
r2
and
r1
is an integer value
r2 r1 = 1 1 = 2
we must look for a solution of the form
y2
=
=
ky1 log(x) + z r2
am z m
m=0
kz log(z) + z 1
am z m
m=0
Let us rst calculate
y 2 = k(log(z) + 1) + z 2
(m 1)am z m
m=0
y2 = kz 1 + z 3
(m 1)(m 2)am z m
m=0
We now substitute into the dierential equation
(m 1)(m 2)am z
+ z k(log(z) + 1) + z
(m 1)am z
m=0
P
kz log(z) + z 1
am z m = 0
m=0
P
P
m1
m1
kz +
(m 1)(m 2)am z
+ kz log(z) + kz +
(m 1)am z
m=0
m=0
P
kz log(z) +
am z m1 = 0
kz
+z
m=0
2kz +
m=0
[(m 1)(m 2) + (m 1) 1] am z m1 = 0
m=0
2kz +
m(m 2)am z m1 = 0
m=0
(1)a1 + 2kz +
m(m 2)am z m1 = 0
m=3
So,
a1 = k = a3 = a4 = a5 = ... = 0. a0
and
a2
kind
y2 = z 1 (a0 + a2 z 2 ) = a0 z 1 + a2 z
is a solution of the dierential equation. Actually, we already knew that
a solution, so the only novelty brought by this solution is (with
y2 = z 1
89
a0 = 1).
was
y = c1 y1 + c2 y2 = c1 z +
c2
c2
= c1 (x + 2) +
z
x+2
Kreyszig, 5.4.3
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
Solution:
If
z=
x,
1
xy 00 + y 0 + y = 0
4
variable z =
x.
then
z0
y0
=
=
y 00
=
=
= 21 z 1
2 x
dy 0
dy 1 1
dz z = dz 2z
0
dy dz
1
2 dy
dz dx = 2 z
dz+
2
d
y
dy
1
2
3
4 z
dz 2 z
dz
z 1 ddzy2
1 1
2z
z2
1
4
z 2
d2 y
dy
z 3
2
dz
dz
1
dy 1
+ z 1
+ y=0
2
dz
4
1 d2 y 1 1 dy 1 1 dy 1
z
+ z
+ y=0
4 dz 2
4
dz
2
dz
4
2
1 d y 1 1 dy 1
+ z
+ y=0
4 dz 2
4
dz
4
Multiplying by
4z 2 ,
we get
z2
dy
d2 y
+z
+ z2y = 0
2
dz
dz
= 0.
Since
of form
y = c1 J (z) + c2 J (z)
Its general solution needs Bessel's functions of the second kind (that will be seen
in next section). However, for the sake of completeness we already point out
that the general solution is
y = c1 J0 (z) + c2 Y0 (z) = c1 J0 ( x) + c2 Y0 ( x)
Kreyszig, 5.4.5
Carlos Oscar Sorzano, Dec. 19th, 2014
Solve
x2 y 00 + xy 0 + (2 x2 2 )y = 0
by making the change of variables
x = z .
90
Solution:
Let us write the dierent elements we need from the change of vari-
ables
dz
dx
0
y
y 00
=
dy
dz
= dx
= dy
dz dx = y
2
d y
d
dz
= dx2 = dz (y)
dx
= (
y ) = 2 y
z
z2 2
( y) + (y)
+ (z 2 2 )y = 0
2
z 2 y + z y + (z 2 2 )y = 0
which is a Bessel's equation of parameter
Solve
x2 y 00 + 14 (x + 34 )y = 0
variable y = u x, z =
x.
Solution:
If
z=
x,
then
z0
2 x
= 12 z 1
y
y0
y 00
u x = uz
1 1
dy dz
du
dz dx = dz z + u 2 z
=
=
=
dy 0 dz
dzh dx
1
1 d2 u
2 z dz 2 z
du
du
dz + dz
1 2 d2 u
du
4z
dz 2 z + 2 dz
2
1 1 d u
1 2 du
4z
dz 2 + 2 z
dz
1 1 d2 u
1 2 du
4z
dz 2 + 4 z
dz
=
=
=
+ (z 2 )
14 z 3
du
dz z
i
+ u 12 z 1
du
dz z + u
1 2 du
1 3
u
4z
dz 4 z
1 3
z
u
4
z4
2
1 1 d u
4z
dz 2
2
1 3d u
4 z dz 2
Multiplying the
+ 14 z 2
du 1 3
4 z u + 41 (z 2 + 34 )uz = 0
dz
du 1
3
4 zu + 14 z 3 u + 16
uz = 0
dz
2
1 3d u
1 2 du
1 3
1
4 z dz 2 + 4 z dz + 4 z u 16 uz = 0
1
whole equation by 4z
, we get
+ 14 z 2
z2
d2 u
du
+z
+ z 2 u 41 u = 0
dz 2
dz
91
/ Z)
z2
du
d2 u
+z
+ z 2 14 u = 0
dz 2
dz
1
2 . Since
= c1 J 1 ( x) + c2 J
u = c1 J 1 (z) + c2 J
1 (z)
2
1(
2
x)
y = uz =
x
c1 J 1 ( x) + c2 J 1 ( x)
Kreyszig, 5.4.10
Carlos Oscar Sorzano, Jan. 13th, 2015
Solve
x2 y 00 + (1 2)xy 0 + 2 (x2 + 1 2 )y = 0
z = x .
Solution:
z
dz
dx
0
y 00
= x x = z
1
= x1 = z
1
dy
dz
)
= dx
= dy
dz dx
= y(z
d2 y
dxh2
= yz
= y 2 z
d
dz
22
y(z
dz
idx 1
1 1
+ y z
(z )
+ y(
1)z
z (
y 2 z
22
+ y(
1)z
) + (1 2)z (yz
) + 2 (z 2 + 1 2 )y = 0
(
y 2 z 2 + y(
1)z) + (1 2)(yz)
+ 2 (z 2 + 1 2 )y = 0
y 2 z 2 + y
2 z + 2 (z 2 + 1 2 )y = 0
z 2 y + z y + (z 2 ( 2 1))y = 0
This is Bessel's equation if
(if
/R
2 1 > 0,
) by
y = c1 J 2 1 (z) + c2 J 2 1 (z) = c1 J 2 1 (x ) + c2 J 2 1 (x )
Kreyszig, 5.5.1
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
x2 y 00 + xy 0 + (x2 16)y = 0
92
Solution:
= 4.
Since
is an integer value,
we have to write the general solution making use of Bessel's functions of second
kind:
y = c1 J4 (x) + c2 Y4 (x)
Kreyszig, 5.5.2
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
xy 00 + 5y 0 + xy = 0
by making the change of variable
Solution:
If
y = ux
y0
y 00
y=
u
x2 .
, then
2
+ u(2x3 )
= du
dx x
d2 u 2
3
3
= dx2 x + du
) + du
) + u(6x4 )
dx (2x
dx (2x
2
4
u
= x2 ddxu2 4x3 du
dx + 6x
x
d2 u
x2 2
dx
x1
4x
3 du
dx
+ 6x
du 2
3
u +5
x + u(2x ) + xux2 = 0
dx
d2 u
du
du
4x2
+ 6x3 u + 5x2
10x3 u + x1 u = 0
dx2
dx
dx
x1
du
d2 u
+ x2
+ (x1 4x3 )u = 0
2
dx
dx
x2
x3
d2 u
du
+x
+ (x2 4)u = 0
dx2
dx
= 2.
Since
solution is given by
u = c1 J2 (x) + c2 Y2 (x)
Undoing the change of variable
Chapter 6
Kreyszig, 6.1.4
Carlos Oscar Sorzano, Aug. 31st, 2014
cos2 (t).
93
Solution:
L{cos2 (t)}
0
R
cos2 (t)est dt
1+cos(2t) st
e dt
2
R
est dt + 21 cos(2t)est dt
h0
i 0 R
1 st
1
+ 12 cos(2t)est dt
2 s e
11
2s
1
2
1
2
L{cos(t)} =
s2
s
+ 2
to get
L{cos2 (t)} =
1
1
s
+
2
2s 2 s + (2)2
[Re{s} < 0]
Kreyszig, 6.1.20
Carlos Oscar Sorzano, Aug. 31st, 2014
Non-existence.
et
2
t
e M ekt
Solution:
For
k,
any
and
t>0
we have
we can nd
et > 0
so that
2
2
t
e = et .
such that
2
t2 > log(M ) + kt
t2 kt log(M ) > 0
Let us nd the point at which the curve crosses 0
t2 kt log(M ) = 0 t =
That is for
t>
k+
k2 +4 log(M )
we have that
2
2
et > M ekt
Kreyszig, 6.1.22
Carlos Oscar Sorzano, Aug. 31st, 2014
94
k 2 + 4 log(M )
2
Show that
L
=
Conclude from this that the conditions for existence are sucient but not necessary for the existence of the Laplace transform.
Solution:
1 st
e
t
t 2 est dt
R
0
= st t =
d
, dt =
s
s
1
2
s
e d
s =
1 R
1
s 2 2 e d
0
2 s 2 e s1 d
0
1
= s 2
1
So, there exists the Laplace transform of
t = 0.
1
2
= s 2
p
s
Kreyszig, 6.1.26
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
L1
5s+1
s2 25
5L1
s
s2 25
5s+1
s2 25
+ L1
1
s2 25
= 5 cosh(5t) +
1
5
cosh(at)
sinh(at)
s2 a2
a
s2 a2
Kreyszig, 6.1.29
lvaro Martn Ramos, Jan. 11th, 2015
12 228
6
s4
s
Solution:
L1 {
12 228
3!
228 1 5!
L { 6 } = 2t3 1.9t5
6 } = 2L1 { 4 }
s4
s
s
5!
s
Kreyszig, 6.1.30
lvaro Martn Ramos, Jan. 11th, 2015
4s + 32
s2 16
95
sinh(5t)
Solution:
L1 {
4s + 32
s
4
} = 4L1 { 2
} + 8L1 { 2
} = 4 cosh(4t) + 8 sinh(4t)
s2 16
s 16
s 16
Kreyszig, 6.1.33
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
t2 e3t
We know that
= s2!3
= F (s a)
L t2
L {eat f (t)}
Both together we have that
L t2 e3t
2!
(s+3)3
Kreyszig, 6.1.39
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
21
(s+ 2)4
We know that
n!
= sn+1
= F (s a)
L {tn }
L {e f (t)}
at
L1
21
and
L1
s4
21
(s+ 2)4
21 1
3! L
3!
s4
= 27 t3
7 3 2t
2t e
Kreyszig, 6.2.3
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
We know that
L{y}
L{y 0 }
L{y 00 }
= Y
= sY y(0)
= s2 Y sy(0) y 0 (0)
Y =
11s + 17
11s + 17
1
10
=
=
+
s2 s 6
(s 3)(s + 2)
s+2 s3
y = e2t + 10e3t
which is the particular solution of the IVP satisfying the initial conditions.
Kreyszig, 6.2.12
Carlos Oscar Sorzano, Aug. 31st, 2014
y 00 2y 0 3y = 0 y(4) = 3, y 0 (4) = 17
Solution:
Let us dene
t = t 4
Then
y 0 (t)
y 00 (t)
=
=
y0 (t)
y00 (t)
y00 2
y 0 3
y = 0 y(0) = 3, y0 (0) = 17
We know that
L{
y}
L{
y0 }
L{
y 00 }
= Y
= sY y(0)
y (0) y0 (0)
= s2 Y s
Y = 2
s 2s 3
(s 3)(s + 1)
2s3
2 s+1
Its inverse Laplace transform is
7 13
y(t) = e3t et
2
2
which is the particular solution of the IVP satisfying the initial conditions. If
we undo now the time shift, we get
y(t) = y(t 4) =
7 3(t4) 13 (t4)
e
e
2
2
97
Kreyszig, 6.2.15
lvaro Martn Ramos, Jan. 11th, 2015
y 00 + 3y 0 4y = 6e2t3
Solution:
y(1.5) = 4, y 0 (1.5) = 5
t = t 1.5 t = t + 1.5
Then
y 0 (t) = y0 (t)
y 00 (t) = y00 (t)
Then, we can rewrite the IVP as
y00 (t) + 3
y 0 (t) 4
y (t) = 6e2t y(0) = 4, y0 (0) = 5
Making the Laplace transform of both sides we get
(s2 Y 4s 5) + 3(sY 4) 4Y =
(s2 + 3s 4)Y 4s 17 =
6
s2
6
s2
6
+ 4s + 17
s2
3
1
Y =
+
s1 s2
(s + 4)(s 1)Y =
which is the particular solution of the IVP satisfying the initial conditions. If
we undo now the time shift,we get
t cos(4t)
f = t cos(at) Let us
Solution:
Let us dene
dierentiate
f 0 = cos(at) at sin(at)
f 00 = a sin(at) a sin(at) a2 t cos(at) = 2a sin(at) a2 t cos(at)
If we now take the Laplace transform of
L{f 00 } = 2a
s2
f 00
we get
a
2a2
a2 L{t cos(at)} = 2
a2 F
2
+a
s + a2
98
f (0) = 0, f 0 (0) = 1
we get
L{f 00 } = s2 F 1
Equating both expressions for
L{f 00 }
we get
2a2
a2 F = s2 F 1
+ a2
s2
Solving for
F =
In particular, for
a=4
s2 a2
(s2 + a2 )2
L{t cos(4t)} =
s2 42
(s2 + 42 )2
Kreyszig, 6.2.24
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
We may factorize
20
s3 2s2
as
F =
1 20
s2 s 2
20
1
2t
. The factor 2 translates into
s2 is 20e
s
a double time integral. Let's do it one by one:
The inverse Laplace transform of
1 20
s s 2
Zt
=
20e2 d = 20
e2t 1
2
1 20
s2 s 2
Zt
=
20 2
20
(e
1)d =
2
2
Kreyszig, 6.3.3
lvaro Martn Ramos, Jan. 11th, 2015
t 2(t > 2)
Solution:
f (t) = (t 2)u(t 2)
99
e2t 1
t +
2
e2s
s2
Kreyszig, 6.3.5
Carlos Oscar Sorzano, Aug. 31st, 2014
2
Let us write the function to transform as
Solution:
et
f (t) = et u(t) u t
0<t<
= et u(t) et u t
L{et u(t)} =
1
s1
n
n
o
o
L et u t 2 = L et 2 e 2 u t 2
= e 2 L et 2 u t 2
= e 2 e 2 s
1
s1
Altogether
L{f } =
1
1
1
e 2 e 2 s
=
1 e 2 (s1)
s1
s1
s1
Kreyszig, 6.3.8
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
t2
(1 < t < 2)
2
2
1
+
+
s3
s2
s
2
4
4
L{t2 u(t 2)} = e2s L{(t + 2)2 } = e2s L{t2 + 4t + 4} = e2s
+
+
s3
s2
s
L{t2 u(t 1)} = es L{(t + 1)2 } = es L{t2 + 2t + 1} = es
L{f } = e
is
2
2
1
+ 2+
s3
s
s
e
Kreyszig, 6.3.13
lvaro Martn Ramos, Jan. 11th, 2015
6(1 es )
s2 + 9
100
2s
2
4
4
+ 2+
s3
s
s
Solution:
L1
6(1es )
s2 +9
= L1
6
s2 +9
L1
6es
s2 +9
= 2 sin(3t) 2 sin(3(t ))
Kreyszig, 6.3.17
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
s+1
(1 + e2(s+1) ) (s+1)
2 +1
G(s) = (1 + e2s )
s
s
s
= 2
+
e2s
s2 + 1
s + 1 s2 + 1
F (s) = G(s + 1)
whose inverse Laplace transform is
Solution:
y(0) = 0
and
y 0 (0) = 0,
we have
L{y 0 } = sY
L{y 00 } = s2 Y
Then the ODE becomes
s2 Y + 6sY + 8Y =
1
1
s+3 s+5
(s2 + 6s + 8)Y =
s + 5 (s + 3)
(s + 3)(s + 5)
(s + 4)(s + 2)Y =
2
(s + 3)(s + 5)
Y =
2
(s + 2)(s + 3)(s + 4)(s + 5)
101
Since
Y =
1
3
s+2
1
1
1
+
3
s+3 s+4 s+5
y(t) =
1 2t
1 5t
3t
4t
e
e
+e
e
u(t)
3
3
Kreyszig, 6.4.3
Carlos Oscar Sorzano, Jan. 15th, 2015
y 00 + 4y = (t ) y(0) = 8, y 0 (0) = 0
Solution:
y(t) = 8 cos(2t) +
1
sin(2(t ))u(t )
2
10
8cos(2t)
y(t)
8
6
4
2
0
2
4
6
8
10
4
t
Kreyszig, 6.5.6
102
Solution:
Let us dene
F (s)G(s)
1
1
sa sb
1
1
1
1
ab sa
+ ba sb
1
1
1
ab sa
sb
1
(eat ebt )
ab
f (t) ? g(t) =
Kreyszig, 6.5.12
Zt
y(t) +
y( ) cosh(t )d = t + et
Solution:
1
1
s
= 2+
s2 1
s
s1
1
1
s
= 2+
Y 1+ 2
s 1
s
s1
Y +Y
Y =
1
s2
1
s1
s
s2 1
1+
s1+s2
s2 (s1)
s2 1+s
s2 1
Y =
Y =
s+1
s2
L {s + 1}
L s+1
s
L
s+1
s2
et
Rt
e d = 1 et
Rt
(1 e )d = t + et 1 = t sinh(t) + cosh(t) 1
Finally,
y = t + et 1
103
Kreyszig, 6.5.18
Carlos Oscar Sorzano, Aug. 31st, 2014
1
(sa)2
Solution:
Let us write
F =
1
1
sasa
eat ? eat
Rt
ea ea(t ) d
= eat
Rt
d = teat
0
Finally
1
(s a)2
= teat
Kreyszig, 6.6.2
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
3t sinh(4t)
L{3 sinh(4t)} = 3
s2
4
= F (s)
42
d
L{3t sinh(4t)} = F (s) =
ds
0
4
3 2
s 42
= 3
8s
(s2 42 )2
Kreyszig, 6.6.3
lvaro Martn Ramos, Jan. 11th, 2015
1 3t
te
2
Solution:
L{e3t } =
1
s+3
1
1
1
1 d
L{ te3t } = L{te3t } = (F 0 (s)) =
2
2
2
2 ds
104
1
s+3
=
1
2(s + 3)2
Kreyszig, 6.6.20
Carlos Oscar Sorzano, Aug. 31st, 2014
Solution:
log
s+a
s+b
Let us dene
F (s) = log
s+a
= log(s + a) log(s + b)
s+b
G(s) = F 0 (s) =
1
1
s+a s+b
f (t) =
g(t)
eat ebt
=
t
t
Kreyszig, 6.7.2
Carlos Oscar Sorzano, Aug. 31st, 2014
y10 + y2 = 0
y1 + y20 = 2 cos(t)
with
y1 (0) = 1, y2 (0) = 0.
Solution:
(sY1 y1 (0)) + Y2 = 0
Y1 + (sY2 y2 (0)) = 2 s2s+1
Taking into account the initial values
sY1 1 + Y2 = 0
Y1 + sY2 = 2 s2s+1
which can be rewritten as
Y1
Y2
s
1
1
1
Y1
=
2 s2s+1
s
Y2
1
1
s 1
2 s2s+1
1
s
1
s 1
= s211
2 s2s+1
1 s
s
s2 +1
=
1
s2 +1
105
y1
cos(t)
=
y2
sin(t)
Kreyszig, 6.7.3
Carlos Oscar Sorzano, Dec. 19th, 2014
y10 = y1 + 4y2
y20 = 3y1 4y2
with
y1 (0) = 3, y2 (0) = 4.
Solution:
sY1 3 = Y1 + 4Y2
sY2 4 = 3Y1 4Y2
which can be rewritten as
Y1 =
Y2 =
s + 1 4
Y1
3
=
3 s + 4
Y2
4
3 4
4 s+4
3s + 28
3s + 28
=
=
2
2
s + 5s + 16
s + 1 4
s + 25 +
3
s+4
s+1 3
3 4
4s + 13
4s + 13
=
=
2
2
s
+
5s
+
16
s + 1 4
s + 25 +
3
s+4
39
4
39
4
y1 (t)
3s
28
+L
2
(s+ 52 )+ 39
4
39
s
2
1
1
2
= 3L
+ 28 39 L
2
5 2
39
(s+ 25 ) + 39
4
(s+ 2) + 4
= 3 cos 239 t + 5639 sin 239 t
4s+13
1
y2 (t) = L
5 2
39
(s+ 2 ) + 4
4s
13
1
1
= L
+L
2
5 2
39
(s+ 52 )+ 39
4
(s+ 2 ) + 4
39
s
2
1
1
2
= 4L
+ 13 39 L
2
2
s+ 5 + 39
(s+ 25 ) + 39
4
4
( 2) q
39
sin
t
= 4 cos 239 t + 26
3
2
=
3s+28
2
(s+ 52 ) + 39
4
2
5
(s+ 2 )
+ 39
4
106
Chapter 11
Kreyszig, 11.1.14
Carlos Oscar Sorzano, Aug. 31st, 2014
a0
an
1
2
x2 dx =
x2 cos(nx)dx =
4
n2 cos(n)
1 x3
2 3
2
3
2 2
1 (n x 2) sin(nx)+2nx cos(nx)
n3
= (1)n n42
x2
< x <
between
is
x2 =
2 X
4
+
(1)n 2 cos(nx)
3
n
n=1
Kreyszig, 11.1.15
Carlos Oscar Sorzano, Aug. 31st, 2014
a0
an
bn
=
=
=
1
2
1
2
R
0
2
R
0
2
R
x2 dx =
1 x3
2 3
x2 cos(nx)dx =
x2 sin(nx)dx =
x2
8 2
3
2 2
1 (n x 2) sin(nx)+2nx cos(nx)
n3
2 2
1 (2n x ) cos(nx)+2nx sin(nx)
n3
= 4
n
0
2
between
0 < x < 2
is
X
2 X
4
n 4
x =
+
(1) 2 cos(nx)
sin(nx)
3
n
n
n=1
n=1
2
Kreyszig, 11.2.13
Carlos Oscar Sorzano, Jan. 15th, 2015
107
p=1
4
n2
Solution:
a0
an
=
=
=
=
1
2L
1
L
RL
f (x) =
RL
R2
xdx =
x2 2
2
0
=
=
=
1
8
f (x) cos
n
L x
R2
dx = 2 x cos (2nx) dx
0
1
cos(n)
2nx sin(2nx)+cos(2nx) 2
2
= 2 42 n2 412 n2
4 2 n2
0
0
n = 2
(1)n 1
2 2 n2 =
21 2 n 6= 2
L
bn
L=
1
L
RL
f (x) sin
n
L x
R2
dx = 2 x sin (2nx) dx
0
1
n cos(n)
sin(2nx)2nx cos(2nx) 2
0
2
=2
4 2 n2
4 2 n2
L
(1)n+1
2n
y(x)
a0 +
an cos
n=1
n
L x
bn sin
n=1
n
L x
X
1 X (1)n 1
(1)n+1
+
cos
(2nx)
+
sin (2nx)
8 n=1 2 2 n2
2n
n=1
Kreyszig, 11.3.4
Carlos Oscar Sorzano, Aug. 31st, 2014
my 00 + cy 0 + ky = r(t)
Let
r(t)
be the function
yn = C 0 +
Cn cos(nt + n )
n=1
108
1
2
Solution:
Cn
r(t)
r(t) = c0 +
r(t)
cn cos(nt + n )
n=1
Its derivative, assuming the series is convergent, can be calculated as
r (t) =
(cn n sin(nt + n )) =
n=1
Since the parameters
reason, for the input
cn n cos(nt + n + 2 )
n=1
cn Cn
If now the amplitude of the input is
ncn ,
ncn nCn
Kreyszig, 11.3.6
Carlos Oscar Sorzano, Aug. 31st, 2014
y 00 + 2 y = sin(t) + sin(t)
with
2 6= 2 , 2 .
Solution:
yh = c1 cos(t) + c2 sin(t)
For the particular solution, we look for a solution of the form
a( 2 2 ) sin(t) + b( 2 2 ) cos(t)+
+A( 2 2 ) sin(t) + B( 2 2 ) cos(t) =
sin(t) + sin(t)
109
nCn
b=B=0
1
2 2
1
A= 2
2
a=
y = c1 cos(t) + c2 sin(t) +
1
1
sin(t) + 2
sin(t)
2
Kreyszig, 11.5.6
Carlos Oscar Sorzano, Aug. 31st, 2014
Show that
y 00 + f y 0 + (g + h)y = 0
takes the form
R
p = exp( f dx), q = pg
and
r = hp.
transformation?
Solution:
form
p0 = f exp
Z
f dx = f p
Then
f py 0 + py 00 + (pg + hp)y = 0
Note that
f y 0 + y 00 + (g + h)y = 0
y 00 + f y 0 + (g + h)y = 0
that is the original ODE.
Kreyszig, 11.5.9
Carlos Oscar Sorzano, Aug. 31st, 2014
y 00 + y = 0 y(0) = 0, y 0 (L) = 0
Solution:
(y 0 )0 + y = 0
110
1y(0) + 0y 0 (0) = 0
0y(L) + 1y 0 (L) = 0
That is, this is a Sturm-Liouville problem.
If
< 0, = 2 ,
y = c1 ex + c2 ex
Imposing the two boundary conditions
y(0) = 0 = c1 + c2
y 0 (L) = 0 = c1 eL c2 eL
Its unique solution is
If
= 0,
c1 = c2 = 0.
y = c1 + c2 x
Imposing the two boundary conditions
y(0) = 0 = c1
y 0 (L) = 0 = c2
If
> 0, = 2 ,
y = c1 cos(x) + c2 sin(x)
Imposing the two boundary conditions
y(0) = 0
y 0 (L) = 0
= c1
= c1 sin(L) + c2 cos(L) = c2 cos(L) L =
+ k =
+2k
2L
y = sin(x) =
+2k
2L
are the eigenfunctions of the Sturm-Liouville problem and their eigenvalues are
= 2.
Kreyszig, 11.5.11
Carlos Oscar Sorzano, Aug. 31st, 2014
(Set
y0
x
0
+ ( + 1)
y
= 0 y(1) = 0, y(e ) = 0
x3
x = et ).
Solution:
y0
y 00
dy dt
dy 1
dy t
dy
dx = dt dx = dt x= dt e
0
0
dy
dy dt
dy t 1
d
dx = dt dx = dt
dt e
x
111
x = et t = log(x),
d2 y t
dt2 e
dy t
dt e
et =
then
d2 y 2t
dt2 e
dy 2t
dt e
We note that
y
x
0
00
y xy
=
=
x2
d2 y 2t
dt2 e
dy 2t
dt e
et
dy t
dt e
e2t
dy
d2 y 3t
e
2 e3t
dt2
dt
d2 y 3t
dy
e
2 e3t
dt2
dt
y(t)
dy
d2 y
2
+ ( + 1)y = 0 y(0) = 0, y() = 0
2
dt
dt
We now check if the problem is a Sturm-Liouville problems using Kreyszig 11.5.6
with
f = 2, g = 1, h = 1.
We calculate
p=e
(2)dt
= e2t
q = pg = e2t
h = hp = e2t
So, in the Sturm-Liouville form the problem becomes
d
dt
e2t
dy
dt
+ (e2t + e2t )y = 0
d2 y
dy
2
+ ( + 1)y = 0
dt2
dt
and look for solutions of the form
y = est
s2 2s + ( + 1) = 0 s = 1
If
< 0, = 2 ,
y = c1 es1 t + c2 es2 t
with
s1 = 1 +
and
s2 = 1 .
y(0) = 0 = c1 + c2
y() = 0 = c1 es1 + c2 es2
whose unique solution is
If
= 0,
c1 = c2 = 0.
y = c1 et + c2 tet
Imposing the two boundary conditions
y(0) = 0 = c1
y() = 0 = c1 e + c2 e
whose unique solution is
c1 = c2 = 0.
112
If
> 0, = 2 ,
y = c1 et cos(t) + c2 et sin(t)
Imposing the two boundary conditions
y(0) = 0 = c1
y() = 0 = c2 e sin() = k
So, all the functions of the form
= k2 .
Kreyszig, 11.6.2
Carlos Oscar Sorzano, Aug. 31st, 2014
(x + 1)2
function f is a series
Solution:
of the form
f=
expansion
X
hf, Pm i
Pm (x)
kPm k2
m=0
where
kPm k2 =
2
2m + 1
P0 (x) = 1
P1 (x) = x
(n + 1)Pn+1 (x) = (2n + 1)xPn (x) nPn1 (x)
In particular
1
2
2 (3x
1
3
2 (5x
P2 (x) =
P3 (x) =
1)
3x)
(x + 1)2 , P0 (x)
R1
(x + 1)2 dx =
kP0 k2
(x + 1)2 , P1 (x)
=
=
2
20+1
1
R
=2
(x + 1)2 xdx =
kP1 k2
(x + 1)2 , P2 (x)
kP2 k2
(x + 1)2 , P3 (x)
=
=
kP3 k2
8
3
2
21+1
R1
1
2
3
2
22+1
R1
1
4
3
4
15
2
5
2
23+1
113
2
7
Actually, since
[1, 1],
(x + 1)2 , Pm (x) = 0).
m3
are 0 (
(x + 1)2
=
=
kP0 k2
4
3
2
3
x+
P0 +
4
15
2
5
1
2
2 (3x
P1 +
P2
1)
4
21
+ 2x +
(3x2 1)
3
32
Kreyszig, 11.9.6
Carlos Oscar Sorzano, Dec. 19th, 2014
Solution:
f (x) = e|x|
1
f() =
2
f()
=
=
1
2
1
2
2
2
2
2
=
=
f (x)eix dx
( < x < )
f,
we have
f (x)eix dx
e|x| eix dx
ex eix dx
e(1+i)x dx
0
e(1+i)x
2
q2 (1+i) 0
2 1
1+i
Chapter 12
Kreyszig, 12.1.2
Carlos Oscar Sorzano, Aug. 31st, 2014
u = x2 + t 2
is a solution of the wave equation
utt = c2 uxx
for a suitable
c.
114
by integration.
Solution:
ut
utt
ux
uxx
= 2t
= 2
= 2x
= 2
2 = c2 2
c = 1. In Matlab:
[x,t]=meshgrid(-2:0.15:2,0:0.15:2);
u=x.2+t.2;
surfc(x,t,u)
xlabel('x'); ylabel('t'); zlabel('u')
0
2
1.5
2
1
0.5
1
0
Kreyszig, 12.1.5
Carlos Oscar Sorzano, Aug. 31st, 2014
u = sin(at) sin(bx)
is a solution of the wave equation
utt = c2 uxx
for a suitable
Solution:
c.
ut
utt
ux
uxx
=
=
=
=
a cos(at) sin(bx)
a2 sin(at) sin(bx)
b sin(at) cos(bx)
b2 sin(at) sin(bx)
115
c = ab2 . In Matlab:
[x,t]=meshgrid(-3*pi:0.1:3*pi,0:0.1:3*pi);
u=sin(t).*sin(x);
surfc(x,t,u)
xlabel('x'); ylabel('t'); zlabel('u')
which is true for
0.5
0.5
1
10
10
5
0
5
t
10
Kreyszig, 12.1.19
Carlos Oscar Sorzano, Aug. 31st, 2014
Solve
uy + y 2 u = 0
Solution:
y,
we can treat
x as
y
uy = y 2 u
du
= y 2
u
y3
+ C(x)
3
3
y
u = C(x)exp
3
log |u| =
Kreyszig, 12.4.11
116
if it were
Solution:
form
A=B=C=1
Consequently,
AC B 2 = (1)(1) 12 = 0
that is, the PDE is a parabolic PDE. Its characteristic equation is
A(y 0 )2 2By 0 + C = 0
(y 0 )2 2y 0 + 1 = 0
(y 0 1)2 = 0
whose solution is
y = c1 + x (x, y) = y x = c1
We now do the change of variables
v=x
w =yx
The standard form of a parabolic PDE is
uww = 0
Integrating in
we have
uw = (w)
Integrating again in
w
Z
u=
u = (y x)
being
any function.
Kreyszig, 12.4.19
Carlos Oscar Sorzano, Aug. 31st, 2014
These vibrations
utt = c2 uxx
117
E
(see Tolstov [C9], p. 275). If the rod is fastened at one end, x = 0,
and free at the other, x = L, we have u(0, t) = 0 and ux (L, t) = 0. Show
with
c2 =
u=
u(x, 0) = f (x)
and initial
n=0
with
2
An =
L
ZL
f (x) sin(pn x)dx
0
and
pn =
Solution:
(2n + 1)
2L
Let us rst check that the suggested solution satises the boundary
conditions:
u(0, t) = 0
u(0, t)
n=0
ux (L, t) = 0
ux
ux (L, t)
n=0
n=0
But
pn L =
(2n + 1)
(2n + 1)
L=
2L
2
that is
pn L =
3 5
,
,
, ...
2 2 2
and
cos(pn L) = 0 ux (L, t) = 0
Let us check now the initial conditions
u(x, 0)
u(x, 0) = f (x)
n=0
That is
u(x, 0)
ut
utt
ux
uxx
An are
f (x).
= c
n=0
P
2
= c
=
An sin(pn x)
n=0
n=0
n=0
n=0
utt = c2 uxx
c2
n=0
!
An p2n sin(pn x) cos(pn ct)
n=0
Kreyszig, 12.6.11
Carlos Oscar Sorzano, Aug. 31st, 2014
u(x, 0) = f (x)
ux (0, t) = 0, ux (L, t) = 0
and
ut = c2 uxx
gives the solution
u(x, t) = A0 +
An cos
nx
L
n=1
with
1
A0 =
L
e(
cn
L
ZL
f (x)dx
0
An =
2
L
ZL
f (x) cos
nx
L
dx
Solution:
Let us rst check that the suggested solution satises the boundary
conditions:
ux (0, t) = 0
ux
ux (0, t)
n=1
P
n=1
An n
L sin
nx
L
e (
cn
L
An n
L sin
n0
L
e(
cn
L
An n
L sin
nL
L
=0
ux (L, t) = 0
ux (L, t)
n=1
because
sin
nL
L
=
=
A0 +
A0 +
e (
cn
L
=0
= sin(n) = 0
u(x, 0)
P
n=1
u(x, 0) = f (x)
An cos
nx
L
An cos
nx
L
n=1
119
e (
cn
L
That is
ut
ux
n=1
n=1
uxx
but
An cos
nx
L
An n
L sin
n 2
L
An
n=1
2
cn 2 ( cn
e L )t
L
nx
L
e(
nx
L
cos
cn
L
e (
cn
L
ut = c2 uxx
An cos
n=1
nx cn 2
L
( cn
L ) t
=c
An
n 2
n=1
cos
nx
L
( cn
L ) t
Kreyszig, 12.7.3
Carlos Oscar Sorzano, Aug. 31st, 2014
Using
Z
u(x, t) =
2 2
p t
dp
0
with
1
Ap =
Z
f (v) cos(pv)dv
1
Bp =
Z
f (v) sin(pv)dv
ut = c2 uxx
when
u(x, 0) = f (x) =
Solution:
and
Bp
Ap
Bp
=
=
1
1 + x2
1
1+x2 in the formulas for
f (x) =
1
|p|
)
(e
1
1+v 2
cos(pv)dv =
1
1+v 2
sin(pv)dv = 0
Z
u(x, t) =
2 2
e|p| cos(px)ec
120
p t
dp
= e|p|
Ap