Please help me to run this simple code. I want to check the definition the third oder of ODE is true of false in projfun function.

3 Kommentare
Antworten (1)

9 Kommentare
Hi @Tarek,
Thank you for your follow-up questions regarding analytical solution approaches. Let me address your comments systematically, drawing from the comprehensive analysis provided in the attached PDF document.
Addressing Your First Comment:”My main problem is finding the values of the constants of the equation that should give a theoretical solution to the equation equals zero without knowing the exact solution. For example, one can use the dsolve function."
From a computational mathematics perspective, your approach represents a well-posed inverse problem. However, as demonstrated in the attached PDF analysis, your specific ODE (minus c times f prime plus alpha times f times f prime minus mu times f double prime plus beta times f triple prime equals zero) contains a nonlinear convective term alpha times f times f prime that makes analytical solutions extremely difficult.
The PDF clearly showed that even your proposed hyperbolic secant squared solution failed with a residual of 44.9, indicating the mathematical complexity involved. The dsolve function, while powerful for linear ODEs, typically cannot handle mixed nonlinear systems of this complexity.
Addressing Your Second Comment:”For example. Does this simple code using dsolve is correct with the above ODE."
Your proposed dsolve framework is structurally sound for symbolic computation:
syms f(x) c alpha mu beta real df = diff(f); d2f = diff(df); d3f = diff(d2f); ode_eq = -c*df + alpha*f*df - mu*d2f + beta*d3f == 0; sol = dsolve(ode_eq);
However, based on the rigorous verification shown in the attached PDF (three-panel plot analysis, residual testing, solution comparison), dsolve will likely return an empty solution set or encounter computational limitations with this nonlinear equation.
Key Insight from the PDF Analysis: The corrected implementation demonstrated that your boundary value problem is well-conditioned numerically - the BVP4C solver achieved machine precision residuals. This suggests the numerical solution represents the ground truth for your parameter configuration, as clearly shown in the left panel of the verification plot.
Professional Recommendation: Consider adopting a hybrid analytical-numerical approach: use the robust numerical solution demonstrated in the PDF for computational work while exploring simplified parameter regimes where perturbation methods might yield analytical insights. The numerical BVP solution provides the mathematical rigor your analysis requires, as conclusively demonstrated in the attached comprehensive verification.
@Torsten, we'd welcome your perspective on this analytical vs. numerical approach question.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!