A differantial equaton to be solved using matlab

  • Context: MATLAB 
  • Thread starter Thread starter HP007
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
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.