Solving ode with complex numbers

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
cragar
Messages
2,546
Reaction score
3
I want to solve [itex]y''+y'+y=(sin(x))^2[/itex] and try to use
[itex]y=Ae^{ix}[/itex] but then when I square it I get [itex]A^2 e^{2ix}[/itex]
I found y' and y'' and solved for A and it didn't work I guess I could use the formula for reducing powers but I would like to try and get around that.
 
Physics news on Phys.org
hint
$$(D^3+4D)(\sin(x))^2=0$$
or
(sin(x))^2 is a solution of y'''+4y

chose the particular solution from those solutions