Register to reply

How to Solve an ODE Problem when one of parameters is dependent to derivative?

by mahdi_zabchek
Tags: differential, matlab, non-linear, ode
Share this thread:
mahdi_zabchek
#1
Apr2-12, 01:23 AM
P: 4
Hello Guys!
I have an ODE problem that I'm solving it by MATLAB ODE solvers!
in fact I have a system of non-linear differential equations in one of these equations I have a parameter that it's value is dependent to derivative! the general form of equation is like this (big letter parameters are known!):

dy/dt = A + B + f(C,D,dy/dt)

how can I solve this problem by ode45 or other MATLAB ODE solvers?
Phys.Org News Partner Science news on Phys.org
Wildfires and other burns play bigger role in climate change, professor finds
SR Labs research to expose BadUSB next week in Vegas
New study advances 'DNA revolution,' tells butterflies' evolutionary history
hunt_mat
#2
Apr3-12, 05:17 PM
HW Helper
P: 1,583
Is the function f known?
mahdi_zabchek
#3
Apr3-12, 10:14 PM
P: 4
Quote Quote by hunt_mat View Post
Is the function f known?
yes! it is.
but it's not reversible

JJacquelin
#4
Apr4-12, 02:42 AM
P: 756
How to Solve an ODE Problem when one of parameters is dependent to derivative?

Quote Quote by mahdi_zabchek View Post
Hello Guys!
I have an ODE problem that I'm solving it by MATLAB ODE solvers!
in fact I have a system of non-linear differential equations in one of these equations I have a parameter that it's value is dependent to derivative! the general form of equation is like this (big letter parameters are known!):

dy/dt = A + B + f(C,D,dy/dt)

how can I solve this problem by ode45 or other MATLAB ODE solvers?
The ODE : dy/dt = A + B + f(C,D,dy/dt) contains no y and no t. As a consequence dy/dt = constant.
Let X= dy/dt . X is solution of the equation X = A + B + f(C, D, X) wich is not an ODE.
It doesn't matter if the function is not revertsible. We don't need to know the analytical expression of the solution(s) X. We know that dy/dt = constant (or = several different constants if there are several solutions). Each one can be numerically computed, not using an ODE solver, but using an usual numerical equation solver.
The solution(s) is (are) : y(t) = X*t +c
c is a constant to be determined by the boundary condition.
mahdi_zabchek
#5
Apr4-12, 02:55 AM
P: 4
Quote Quote by JJacquelin View Post
The ODE : dy/dt = A + B + f(C,D,dy/dt) contains no y and no t. As a consequence dy/dt = constant.
Let X= dy/dt . X is solution of the equation X = A + B + f(C, D, X) wich is not an ODE.
It doesn't matter if the function is not revertsible. We don't need to know the analytical expression of the solution(s) X. We know that dy/dt = constant (or = several different constants if there are several solutions). Each one can be numerically computed, not using an ODE solver, but using an usual numerical equation solver.
The solution(s) is (are) : y(t) = X*t +c
c is a constant to be determined by the boundary condition.
No! No! it has y and t!
A and B and C and D are NOT constant parameters!
I did't write them because they were not necessary!
in fact You don't need to know what's the equation exactly to answer my question!

My question is simple:

MATLAB ODE solvers solve equations in form of dy/dt=f(t,y) but I want to solve an equation in form of dy/dt=f(t,y,dy/dt) ... How I can do that by MATLAB?
JJacquelin
#6
Apr4-12, 03:29 AM
P: 756
Quote Quote by mahdi_zabchek View Post
No! No! it has y and t!
A and B and C and D are NOT constant parameters!
I did't write them because they were not necessary!
in fact You don't need to know what's the equation exactly to answer my question!

My question is simple:

MATLAB ODE solvers solve equations in form of dy/dt=f(t,y) but I want to solve an equation in form of dy/dt=f(t,y,dy/dt) ... How I can do that by MATLAB?
OK. Sorry for the missunderstanding.
May be, you could use an algorithm of this kind:
Start with given initial values y and t.
Recursive process :
Compute A(y,t), B(y,t), C(y,t) and D(y,t)
Solve X=A+B+f(C,D,X) with a numerical equation solver, introduced as sub-program.
With the computed value X=dy/dt the incrementation of y is done, as well as the incrementation of t.
Then continue the recursive process.
mahdi_zabchek
#7
Apr4-12, 03:31 AM
P: 4
Quote Quote by JJacquelin View Post
OK. Sorry for the missunderstanding.
May be, you could use an algorithm of this kind:
Start with given initial values y and t.
Recursive process :
Compute A(y,t), B(y,t), C(y,t) and D(y,t)
Solve X=A+B+f(C,D,X) with a numerical equation solver, introduced as sub-program.
With the computed value X=dy/dt the incrementation of y is done, as well as the incrementation of t.
Then continue the recursive process.
I'll try it ... thank you so much


Register to reply

Related Discussions
Functions dependent on a greater number of parameters Classical Physics 1
Solve Differential Equation Using Variation of Parameters Calculus & Beyond Homework 1
How to solve 2nd order ODE with matrix parameters in Matlab Engineering, Comp Sci, & Technology Homework 3
Solve 3rd order ode using variation of parameters Calculus & Beyond Homework 2