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

조회 수: 1 (최근 30일)
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 = 

채택된 답변

Walter Roberson
Walter Roberson 2025년 8월 17일
이동: Walter Roberson 2025년 8월 17일
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
Walter Roberson
Walter Roberson 2025년 8월 30일
We still need to know whether C1 and C2 are real-valued or not

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Equation Solving에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by