Numerically Solving non-linear differential equation

6 visualizaciones (últimos 30 días)
Mohammad Farhat
Mohammad Farhat el 20 de Dic. de 2020
Comentada: John D'Errico el 21 de Dic. de 2020
I want to solve the following ode numerically:
with initial conditions and time span as needed.
  3 comentarios
James Tursa
James Tursa el 21 de Dic. de 2020
Editada: James Tursa el 21 de Dic. de 2020
is this really dy/dt raised to the 4th power as you have written? Or is it really supposed to be the 4th derivative of y? Same question for the squared term. What physical system does this represent?
John D'Errico
John D'Errico el 21 de Dic. de 2020
I'd suggest before people run in at full tilt to solve the problem, that you get some confirmation as to the real ODE. Is this a 4th order ODE, or is that the 4th power of the first derivative?

Iniciar sesión para comentar.

Respuestas (1)

Alan Stevens
Alan Stevens el 21 de Dic. de 2020
I guess you could treat the equation as a quadratic in (dy/dt)^2, solve for that, then take the square root to get an expression for dy/dt in terms of y. You could then define the function
dydt = @(t,y) sqrt((-1+sqrt(1+4/y))/2);
and use ode45 to solve it, once you have set an initial value for y and a time span.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by