Need help solving a differential equation

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
lilmul123
Messages
39
Reaction score
0

Homework Statement



dy/dx = 2y + x^2 + 5.

This is a linear differential equation, so I know I need to use the definition of it which is y*e^integral(P(x)) dx = integral(f(x)*e^int(P(x)) dx.


I tried to get it into this form, so I tried to change the equation to dy/dx + -2y = x^2 + 5. Eventually, the right side of my linear equation for solving becomes the integral of (x^2 + 5)*e^-2x dx. The 5e^-2x dx is easy to integrate, but x^2*e^-2x dx is not. Did I form my initial equation correctly or am I really supposed to find the integral of that?
 
Physics news on Phys.org
Yeah, I figured it out after looking at it for a while. Thank you.