



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




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.
Consider a linear, homogeneous, constant coefficient second order equation d 2 x dt 2 +^ a^ dx dt
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:
dx dt K 6 = 0. The characteristic polynomial is
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 .
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 .
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.
so the solution is x t = cos 2 t C sin 2 t 2
= 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 =
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
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
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.
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.