You are here:

Calculus/Euler method for ODE's

Advertisement


Question
How to find excat solution of y'+ y =x + cos x

i am doing euler method but could not find a method to find exact solution of above probelm?plz explain with steps it is first order differental equation.pls note that i have find y using euler method.

Answer
dy/dx + y = x + cos(x)

integrating factor is e^∫dx = e^x

multiply both sides by e^x we get

e^x(dy/dx + y) = x * e^x +  e^x * cos(x)

d/dx(y * e^x) = x * e^x +  e^x * cos(x)

ie. y * e^x = ∫ x * e^xdx + ∫  e^x * cos(x)dx.

It is now easy to find y using integration by parts  

Calculus

All Answers


Answers by Expert:


Ask Experts

Volunteer


mervyn

Expertise

I can solve problems in calculus, advanced calculus, differential and partial differential equations, complex variables, Fourier series and integrals, analysis,Gram-Schmidt orthogonalization, and Legendre polynomials. Soon I will be able to answer any question on advanced engineering control.

Experience

Taught at university level

Education/Credentials
Researching the Riemann Zeta Function Hypothesis

©2016 About.com. All rights reserved.