Solve the differential equation

Click For Summary
SUMMARY

The discussion focuses on solving the differential equation dy/dx = cos(x^2) * exp(sin(x)) with the initial condition y(0) = 0 over the interval [0, 10]. Participants confirm that the equation is separable and provide the integral form y(x) = ∫_{t=0}^{x} cos(t^2) * exp(sin(t)) dt. To find y(10), the integral ∫_{x=0}^{10} cos(x^2) * exp(sin(x)) dx is evaluated, leading to the conclusion that y(10) = ∫_{x=0}^{10} cos(x^2) * exp(sin(x)) dx.

PREREQUISITES
  • Understanding of separable differential equations
  • Familiarity with integration techniques
  • Knowledge of MATLAB, specifically the ODE45 function
  • Experience with symbolic computation tools like Mathematica
NEXT STEPS
  • Learn how to use MATLAB's ODE45 for solving ordinary differential equations
  • Study integration techniques for functions involving trigonometric and exponential components
  • Explore the capabilities of Mathematica for symbolic integration
  • Investigate numerical methods for approximating integrals when closed-form solutions are unavailable
USEFUL FOR

Students and professionals in mathematics, engineering, and physics who are solving differential equations and require practical techniques for integration and numerical solutions.

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.
 

Similar threads

Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 27 ·
Replies
27
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K