Solving ode with complex numbers

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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