A differantial equaton to be solved using matlab

  • Context: MATLAB 
  • Thread starter Thread starter HP007
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on solving the differential equation dy/dx=(l*siny-b)/(sinx*cos(y-x)) using MATLAB. The boundary condition is specified as y=sin^(-1)(b/l) at x=0. The user highlights challenges with using MATLAB's ode45 due to potential discontinuities in the solution. An alternative approach suggested is to multiply both sides by the denominator and apply an implicit method for a more stable solution.

PREREQUISITES
  • Understanding of differential equations and their solutions
  • Familiarity with MATLAB programming and its syntax
  • Knowledge of numerical methods, particularly implicit methods
  • Experience with MATLAB's ode45 function and its limitations
NEXT STEPS
  • Research implicit methods for solving differential equations in MATLAB
  • Learn about MATLAB's ode45 function and its application in solving ODEs
  • Explore techniques for handling discontinuities in numerical solutions
  • Investigate boundary value problems and their solutions in MATLAB
USEFUL FOR

Mathematics students, engineers, and researchers who need to solve complex differential equations using MATLAB, particularly those dealing with discontinuities and numerical methods.

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 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K