Convert an ODE to algebraic equations
이전 댓글 표시
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
채택된 답변
추가 답변 (3개)
Steven Lord
2018년 2월 21일
0 개 추천
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
Sergio Manzetti
2018년 2월 21일
편집: Sergio Manzetti
2018년 2월 21일
Steven Lord
2018년 2월 21일
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
2018년 2월 22일
Sergio Manzetti
2018년 2월 22일
편집: Sergio Manzetti
2018년 2월 22일
0 개 추천
댓글 수: 3
John D'Errico
2018년 2월 22일
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
2018년 2월 22일
편집: Sergio Manzetti
2018년 2월 22일
John D'Errico
2018년 2월 22일
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.
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
