Solving y''+3iy'+y=cos(2t) with Undetermined Coefficients

cragar
Messages
2,546
Reaction score
3
If I wanted to solve this y''+3iy'+y=cos(2t) using undetermined coefficients.
and I make the guess y=Ae^{2it}
then i find y' and y'' and then solve for A. I get that A=-1/9
then I take the real part when I multiply it to Eulers formula.
But when I plug this back into check it doesn't work.
Is there something weird going on because I have an imaginary coefficient in front of the y'.
 
Physics news on Phys.org
cragar said:
If I wanted to solve this y''+3iy'+y=cos(2t) using undetermined coefficients.
and I make the guess y=Ae^{2it}
then i find y' and y'' and then solve for A. I get that A=-1/9
then I take the real part when I multiply it to Eulers formula.
But when I plug this back into check it doesn't work.
Is there something weird going on because I have an imaginary coefficient in front of the y'.

Better, try : y = A exp(2it) +B exp(-2it)
with cos(2t) = (1/2)exp(2it) + (1/2)exp(-2it)
 
How about even more better:

y_p=A\cos(2t)+B\sin(2t)

slap it in (the DE), equate coefficients, bingo-bango.

Also, nothing (algebraic) changes if not only the coefficients are complex but everything else like y and x are complex too. So don't let the i thing intimiate you. Just use regular ordinary complex arithemetic and muscle-through the algebra like always.
 
Last edited:
okay thanks for the advice
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top