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

1 vue (au cours des 30 derniers jours)
Tarek
Tarek le 16 Août 2025
Commenté : Tarek le 31 Août 2025
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 = 

Réponse acceptée

Walter Roberson
Walter Roberson le 17 Août 2025
Déplacé(e) : Walter Roberson le 17 Août 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 commentaires
Walter Roberson
Walter Roberson le 30 Août 2025
We still need to know whether C1 and C2 are real-valued or not
Tarek
Tarek le 31 Août 2025

C1 and C2 are real values

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by