Convert an ODE to algebraic equations
Ältere Kommentare anzeigen
Hello, how can I convert a nonlinear ODE of third degree to a set of algebraic equations, which I can at last solve with fsolve? Some mentioned the Haar wavelet, however I cannot find an example of this on MATLAB.
Thanks
Akzeptierte Antwort
Weitere Antworten (3)
Steven Lord
am 21 Feb. 2018
0 Stimmen
If you have an ODE, why solve it (or a modified version of it) using fsolve? Why not simply use one of the ODE solvers included in MATLAB? The "Choose an ODE Solver" section linked on that page includes an example of how to solve a higher-order ODE.
3 Kommentare
Sergio Manzetti
am 21 Feb. 2018
Bearbeitet: Sergio Manzetti
am 21 Feb. 2018
Steven Lord
am 21 Feb. 2018
Depending on how complicated your ODEs are, the tools to solve differential equations in Symbolic Math Toolbox may be able to give you an analytical solution.
Sergio Manzetti
am 22 Feb. 2018
Sergio Manzetti
am 22 Feb. 2018
Bearbeitet: Sergio Manzetti
am 22 Feb. 2018
0 Stimmen
3 Kommentare
John D'Errico
am 22 Feb. 2018
There is no reason why you CANNOT gain an analytical solution. As I said, you might be able to use a family of orthogonal functions in a Galerkin style solution, getting a solution. Wavelets are just another way of decomposing a function into a sum of terms. If something nice drops out the end, using carefully developed mathematics, then great. You won the lottery. It can't hurt to try.
However, nothing that you do with fsolve will give you an analytical solution, as it is a purely numerical solver. Chebfun won't give you that either, but it is so flexible and nice to use, that it may help you in variety of ways.
If you really need an analytical result, I assume you have tried dsolve on your problem, and it laughed at you. Don't you hate it when computers do that? ;-) But dsolve is the best thing to try.
I did try tossing it into Wolfram Alpha. It does not show an analytical solution either. So I expect dsolve will fail if you try.
So go for chebfun. Even if it does not give you everything you need here, you will learn to use a tool that is (IMHO) insanely great. And how can that be a bad thing?
Sergio Manzetti
am 22 Feb. 2018
Bearbeitet: Sergio Manzetti
am 22 Feb. 2018
John D'Errico
am 22 Feb. 2018
I read through the paper just now. It only offers approximate solutions, then compares them to exact solutions obtained using other methods. The analytical solutions they had were easy to gain, because the problems they were solving were basic Laplacian PDEs.
There was no claim that I saw for a method that would offer an analytical solution. Anyway, that methodology was only applied to linear problems in their examples.
So, sorry, but I think it will be of little real value to you here. And it will require you to do the computations yourself, writing a bit of code to implement.
Sergio Manzetti
am 22 Feb. 2018
0 Stimmen
Kategorien
Mehr zu Numeric Solvers finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
