Please help me. I want to find the optimal values of constans in the ode?t

5 visualizaciones (últimos 30 días)
syms C1 C2 y(x)
dy = diff(y);
d2y = diff(dy);
eqn = y^2 * d2y + y*dy^2 - dy^2 + C1*y^4 + C2*y^3 == 0
eqn(x) = 
dsolve(eqn)
ans = 

Respuesta aceptada

Walter Roberson
Walter Roberson el 17 de Ag. de 2025
Movida: Walter Roberson el 17 de Ag. de 2025
Provided that C1 and C2 are real-valued
syms y(x)
syms C1 C2 real
dy = diff(y);
d2y = diff(dy);
eqn = y^2 * d2y + y*dy^2 - dy^2 + C1*y^4 + C2*y^3 == 0
eqn(x) = 
sol = dsolve(eqn)
sol = 
Therefor the solutions to the equations are either
y = 0
or
y = -C2/C1
Provided that C1 is non-zero, these equations just are and there is no optimization to be done.
If C1 or C2 are non-real then the situation gets to be considerably messier.
  8 comentarios
Walter Roberson
Walter Roberson el 30 de Ag. de 2025
We still need to know whether C1 and C2 are real-valued or not

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by