Docsity

Second Order Differential Equations: Characteristic Polynomial and Solutions - Prof. Amnon, Lab Reports of Differential Equations

Toggle sidebar
bg1
Math 2650
A. J. Meir
Copyright (C) A. J. Meir. All rights reserved.
This worksheet is for educational use only. No part of this publication may be reproduced or transmitted for profit in any form or by any means, electronic or
mechanical, including photocopy, recording, or any information storage and retrieval system without prior written permission from the author. Not for profit
distribution of the software is allowed without prior written permission, providing that the worksheet is not modified in any way and full credit to the author
is acknowledged.
Second Order Equations
A Brief Review
Consider a linear, homogeneous, constant coefficient second order equation
d2 x
dt2 + a dx
dt + bx = 0.
The characteristic polynomial corresponding to this equation is
r2CarCb= 0
whose roots are r1and r2 where
r1=
K
aCa2
K
4 b
2 r2=
K
a
K
a2
K
4 b
2 .
We will consider three distinct cases (depending on the value of a2
K
4 b):
I. Two distinct real roots.
If 0 !a2
K
4 b there are two real distict roots r1sr2 and the homogenous solution is
xht=c1 e
r1 t
Cc2 e
r2 t
.
II. A double root.
If a2
K
4 b= 0 there are two equal roots r=r1= r2 and the homogenous solution is
xht=c1 er tCc2 t er t.
III. Complex conjugate roots.
If a2
K
4 b!0 there are two complex conjugate roots
r1=aCI b r2=a
K
I b
where a=
K
a
2, b=4 b
K
a2
2 and I is the square root of -1. The homogenous solution is
xht=c1 ea t cos b tCc2 ea t sin b t.
Examples:
1. Consider the differential equation d2 x
dt2
K
dx
dt
K
6 = 0. The characteristic polynomial is
pf3
pf4
pf5

Partial preview of the text

Download Second Order Differential Equations: Characteristic Polynomial and Solutions - Prof. Amnon and more Lab Reports Differential Equations in PDF only on Docsity!

Math 2650

A. J. Meir Copyright (C) A. J. Meir. All rights reserved. This worksheet is for educational use only. No part of this publication may be reproduced or transmitted for profit in any form or by any means, electronic or mechanical, including photocopy, recording, or any information storage and retrieval system without prior written permission from the author. Not for profit distribution of the software is allowed without prior written permission, providing that the worksheet is not modified in any way and full credit to the author is acknowledged.

Second Order Equations

A Brief Review

Consider a linear, homogeneous, constant coefficient second order equation d 2 x dt 2 +^ a^ dx dt

  • bx = 0. The characteristic polynomial corresponding to this equation is r 2 C ar C b = 0 whose roots are r 1 and r 2 where r 1 = K a C a 2 K 4 b 2 r 2 = K a K a 2 K 4 b 2

We will consider three distinct cases (depending on the value of a 2 K 4 b ): I. Two distinct real roots. If 0! a 2 K 4 b there are two real distict roots r 1 s r 2 and the homogenous solution is xh t = c 1 e r 1 t C c 2 e r 2 t . II. A double root. If a 2 K 4 b = 0 there are two equal roots r = r 1 = r 2 and the homogenous solution is xh t = c 1 e r t C c 2 t e r t . III. Complex conjugate roots. If a 2 K 4 b! 0 there are two complex conjugate roots r 1 = a C I b r 2 = a K I b where a = K a 2 , b = 4 b K a 2 2 and I is the square root of -1. The homogenous solution is xh t = c 1 e a t cos b t C c 2 e a t sin b t. Examples:

  1. Consider the differential equation d 2 x dt

2 K^

dx dt K 6 = 0. The characteristic polynomial is

O

O

O

O

O

O

O

O

r 2 K r K 6 = 0. The roots of the characteristic polynomial are solve(r^2-r-6=0); 3 , K 2 so the solution of the equation is xh t = c 1 e 3 t C c 2 e K 2 t .

  1. Consider the differential equation d 2 x dt

2 C^6

dx dt C 9 = 0. The characteristic polynomial is r 2 C 6 r C 9 = 0. The roots of the characteristic polynomial are solve(r^2+6r+9=0);* K 3 , K 3 so the solution of the equation is xh t = c 1 e K 3 t C c 2 t e K 3 t .

  1. Consider the differential equation d 2 x dt

2 C^4

dx dt C 5 x = 0. The characteristic polynomial is r 2 C 4 r C 5 = 0. The roots of the characteristic polynomial are solve(r^2+4r+5=0);* K 2 C I, K 2 K I Note, Maple writes I for K 1 , so the solution of the equation is xh t = e K 2 t c 1 cos t C c 2 sin t.

  1. Consider the initial value problem d 2 x dt 2 C^4 x^ =^0 ,^ x^^0 =^1 ,^ dx dt (0)=1. The characteristic polynomial is r 2 C 4 = 0. The roots of the characteristic polynomial are solve(r^2+4=0); 2 I, K 2 I so the general solution of the equation is xh t = c 1 cos 2 t C c 2 sin 2 t. We now use the initial conditions to solve for c 1 and c 2. sol:=c[1]cos(2t)+c[2]sin(2t);** sol := c 1 cos 2 t C c 2 sin 2 t eq1:=subs(t=0,sol)=1; eq1 := c 1 cos 0 C c 2 sin 0 = 1 eq2:=subs(t=0,diff(sol,t))=1; eq2 := K 2 c 1 sin 0 C 2 c 2 cos 0 = 1 solve({eq1,eq2},{c[1],c[2]}); c 1 = 1 , c 2 =

so the solution is x t = cos 2 t C sin 2 t 2

Undetermined Coefficients

O

O

O

O

O

O

O

= cos t simplify(%); 4 A cos t C 4 B sin t K 4 A sin t C 4 B cos t = cos t Since cos t and sin t are linearly independent, the coefficient 4 A C 4 B of the cosine on the left hand side of the equation has to be equal to 1 (the coefficient of the cosine on the right), whereas the coefficient 4 B K 4 A of the sine has to be zero. This leads to two linear equations which we solve by sloveparam:=solve({4A+4B=1,4B-4A=0},param);** sloveparam := B =

, A =

Thus, xp t = cos t C sin t 8 is a particular solution. We can check this by using the odetest- command. odetest(y(t)=(cos(t)+sin(t))/8,D(D(y))(t)+4D(y)(t)+5y(t)= cos(t));** 0 Therefore the general solution is given as xgen t = xh t C xp t , i.e. xgen t = e K 2 t c 1 cos t C c 2 sin t C cos t C sin t 8 , a fact, which you can also test by inserting this expression into the d.e.: odetest(y(t)=exp(-2t)(c[1]cos(t)+c[2]sin(t))+(cos(t)+sin (t))/8,D(D(y))(t)+4D(y)(t)+5y(t)=cos(t));** 0 If in addition we were given initial conditions, we would now use those to solve for the constants c 1 and c 2. Exercise Find the general solution of d 2 x dt

2 K^3

dx dt K 4 x = 2 sin t. restart; Exercise Find the general solution of d 2 x dt 2 C^ x^ t^ =^2 sin^ t^. restart; A Trick What went wrong? Clearly, A cos t C B sin t solves the homogeneous problem. odetest(y(t)=Acos(t)+Bsin(t),D(D(y))(t)+y(t)=0);** 0 Try the guess xp t = t A cos t C B sin t and see what you get: Let us explore this last guess somewhat more. Consider the nonhomogeneous problem

O

O

O

O

O

O

d 2 x dt 2 C^ p^ dx dt C q x t = a cos b t C b sin b t where p and q are real numbers, b > 0 and 0! a 2 C b 2

. We ask for conditions under which the guess y t := t A cos b t C B sin b t works. To this end we insert y into the differential equation. restart; y(t):=t(Acos(betat)+Bsin(betat));* y t := t A cos b t C B sin b t diff(y(t),t$2)+pdiff(y(t),t)+qy(t)=acos(betat)+bsin (betat);** K 2 A sin b t b C 2 B cos b t b C t K A cos b t b 2 K B sin b t b 2 C p A cos b t C B sin b t C t K A sin b t b C B cos b t b C q t A cos b t C B sin b t = a cos b t C b sin b t This yields the following four conditions for p , q , A and B : t cos b t : K A b 2 C p B b C q A = 0 , t sin b t : K B b 2 K p A b C q B = 0 , cos b t : 2 B b C p A = a , sin b t : K 2 A b C p B = b. solve({-Abeta^2+pBbeta+qA=0, -Bbeta^2-pAbeta+qB=0, 2Bbeta+pA=a, -2Abeta+pB=b},{q,p,B,A});** p = 0 , B =

a b , q = b 2 , A = K

b b Note that a cos b t C b sin b t solves d 2 x dt 2 C^ b 2 x t = 0 as the following shows with(DEtools): odetest(z(t)=acos(betat)+bsin(betat),D(D(z))(t)+beta^2z (t)=0);* 0 consequently, one concludes that the guess t A cos b t C B sin b t only works in case that A cos b t C B sin b t solves the homogeneous problem.

The Resonance Case

Consider a second order linear differential equation d 2 x dt 2 + a^ dx dt C b x = f t where a, b are real numbers, and f t has the form f t = pn t e a t cos b t C qn t e a t sin b t with a, b real numbers and pn , qn polynomials in t of degree less than or equal to n. Step 1. Set up standard trial function. Step 2. Check whether any term solves the homogeneous d.e.