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

2 Ansichten (letzte 30 Tage)
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 = 

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 17 Aug. 2025
Verschoben: Walter Roberson am 17 Aug. 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 Kommentare
Walter Roberson
Walter Roberson am 30 Aug. 2025
We still need to know whether C1 and C2 are real-valued or not

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by