How to solve this system of Differential equation

Click For Summary
SUMMARY

This discussion focuses on solving a non-linear system of differential equations using MATLAB. The equations involve variables y1, y2, and y3, with conditions for F and B based on the values of y3 and C7. The recommended approach is to utilize the Runge-Kutta 4th order (RK4) method, implementing F and B as Heaviside functions to handle the non-linearity. The user is encouraged to share their MATLAB code for more tailored assistance.

PREREQUISITES
  • Understanding of non-linear differential equations
  • Familiarity with MATLAB programming
  • Knowledge of numerical methods, specifically Runge-Kutta methods
  • Concept of Heaviside functions in mathematical modeling
NEXT STEPS
  • Research MATLAB's ODE solvers, particularly ODE23 and its applications
  • Learn about implementing Heaviside functions in MATLAB
  • Study the Runge-Kutta 4th order method for numerical solutions
  • Explore best practices for debugging MATLAB code related to differential equations
USEFUL FOR

Mathematicians, engineers, and researchers working with differential equations, particularly those utilizing MATLAB for numerical simulations and modeling non-linear systems.

revooridinesh
Messages
1
Reaction score
0
I have equations as
C1*y1' = F*C2*y2 - C3*y1
y2' = C4 -B* C5*y3 - C6*y1
y2-C7=x(t)*y3

X(t) is a known function
where F = 0 when y3<y1
1 when y3>y1
B=0 when C7<y3
1 when C7>y3

C's are constants

so what I am thinking is at time t1 i will get the values for F and B depending on previous values and X value will be known and I need the solution for the unknowns at time t1. I tried solving this by Newton raphshon method but the solution is not converging. Are there any MATLAB commands for this like ODE 23 OR any new solution is welcomed

Thanks a lot
 
Physics news on Phys.org
Hey revooridinesh and welcome to the forums.

This is definitely a non-linear system of DE's so you won't be able to use something like an integral transform as easily.

What I recommend is if you use MATLAB, you use a scheme like say RK4 and then implement your F and B functions as Heaviside functions.

The idea is that you have a function representing the derivative of all your functions (y1,y2,y3) as a function of the current values of each function. You then use a scheme (like RK4, but it could be any decent numerical scheme) to get the new values at some later step-size.

If you are using MATLAB, maybe you should show us what your code is doing so people can make specific comments on it.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 0 ·
Replies
0
Views
4K