Solving an ODE with ode45 on [0,10]

  • Thread starter Thread starter nashat
  • Start date Start date
  • Tags Tags
    Ode Ode45
Click For Summary
SUMMARY

The discussion focuses on solving an ordinary differential equation (ODE) using MATLAB's ode45 function over the interval [0,10]. The specific ODE presented is cost dy/dt + ysint = 2t cos^2(t) with the initial condition y(0) = -π. Participants emphasize the importance of utilizing MATLAB's help resources and searching for educational examples online to effectively implement ode45. For further assistance, users are encouraged to ask more targeted questions if initial attempts are unsuccessful.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of ordinary differential equations (ODEs)
  • Knowledge of initial value problems
  • Basic trigonometric functions and their properties
NEXT STEPS
  • Explore MATLAB's documentation on ode45 for detailed usage instructions
  • Research examples of solving ODEs using MATLAB from .edu sources
  • Learn about initial value problems and their significance in ODEs
  • Investigate the application of trigonometric functions in differential equations
USEFUL FOR

Students, educators, and researchers in mathematics or engineering fields who are working with MATLAB to solve ordinary differential equations.

nashat
Messages
1
Reaction score
0

Homework Statement


solve the initial problem using ode45 on the interval [0,10]


Homework Equations



cost dy/dt + ysint = 2t cos^2(t) y(0) = -Pi

The Attempt at a Solution



I have no I dia how to sart
 
Physics news on Phys.org
Matlab has an excellent help page. Press the help button on the tool bar and when the help page comes up, go to search and enter ode45. You can also do a google seach for ode45, usually that comes up with a lot of examples. Check out the ones with .edu. Those are usually the best. Once you have read that and it is still not working for you, then come here and ask a more specific question.
 

Similar threads

Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
Replies
5
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 24 ·
Replies
24
Views
5K