Solve the differential equation

tuablink
Messages
24
Reaction score
0

Homework Statement


a.Find solution to the differential equation
dy/dx=cos(x^2)*exp(sin(x));y(0)=0 for x in the interval [0,10]
b.find y(10)


Homework Equations





The Attempt at a Solution


I don't know where to begin
 
Physics news on Phys.org
That differential equation is separable.
 
I got:
y = cos(x^2)*exp(sin(x))
integral(y) = integral(cos(x^2)*exp(sin(x)))
I got stuck. What do I need to do next
 
After separation you should have
\int dy~=~\int cos(x^2)e^{sin(x)}dx

Now is a good time to verify that you have given us the correct differential equation.
 
I actually use ODE45 in MATLAB to solve the equation and plot it simultaneously.
I tried to integrate the equation using 'int' command but it did not work.
I have no clue how to solve it with only one variable on the right hand side because to solve the separable differential equation you need x and y.
 
are u sure this is the right differential equation?

u get Y =~\int cos(x^2)e^{sin(x)}dx

but i enter the right side in mathematica and get no result
 
I am positive. The original equation is dy/dx = cos(x^2)*exp(sin(x))
 
For the a part,
y(x)~=~\int_{t = 0}^{x} cos(t^2)e^{sin(t)}dt

For the b part,
\int_{x = 0}^{10} dy~=~\int_{x = 0}^{10} cos(x^2)e^{sin(x)}dx
\Rightarrow y(10) - y(0)~=~\int_{x = 0}^{10} cos(x^2)e^{sin(x)}dx
Since y(0) = 0, then
y(10)~=~\int_{x = 0}^{10} cos(x^2)e^{sin(x)}dx

I don't think you can do much more with this if the exact solution is what is wanted.
 
But how can I find y(10)
 
  • #10
Look in post #9. There it is.
 
Back
Top