MATLAB A differantial equaton to be solved using matlab

  • Thread starter Thread starter HP007
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
To solve the differential equation dy/dx=(l*siny-b)/(sinx*cos(y-x)) in MATLAB, the boundary condition is set at x=0 with y equal to the sine inverse of (b/l). The equation poses challenges when using ode45 due to potential discontinuities. A recommended approach is to multiply both sides by the denominator to facilitate solving it. An implicit method is suggested for a more effective resolution. This strategy aims to improve the stability and accuracy of the solution in MATLAB.
HP007
Messages
3
Reaction score
0
I want to solve the following differential equation using MATLAB and thus want to plot between x & y.
dy/dx=(l*siny-b)/(sinx*cos(y-x))
boundary condition:at x=0;y=sine inverse of(b/l);
 
Physics news on Phys.org
Solving it in that form is a bit nasty with Matlab (e.g. with ode45) due to the possibility of discontinuities. I'd suggest multiplying both sides by the denominator and solving it using an implicit method.
 

Similar threads

Replies
8
Views
2K
Replies
5
Views
3K
Replies
4
Views
1K
Replies
5
Views
2K
Replies
1
Views
2K
Replies
10
Views
3K
Back
Top