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

1 visualizzazione (ultimi 30 giorni)
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 = 

Risposta accettata

Walter Roberson
Walter Roberson il 17 Ago 2025
Spostato: Walter Roberson il 17 Ago 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 Commenti

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by