ODE - what exactly does Jacobian matrix do

조회 수: 26 (최근 30일)
Chao Gong
Chao Gong 2020년 3월 20일
댓글: Ameer Hamza 2020년 3월 24일
Hi:
I have a gnereal question regarding to the Jacobian matrix when solving the ODE. I don't know why the Jacobina matrix needs to be provided? And could you explain how does Matlab use it to improve the efficiency for sovling ODE?
Is it better to provide the Jacobian matrix for both the stiff and non-stiff system of ODE?
Thanks,

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 3월 20일
Jacobian is an equivalent of a gradient vector for a vector-valued function. In an oversimplified way, you can think of it in the same way as the derivative of a scalar function.
You don't need to specify the Jacobian matrix for ODE functions in MATLAB explicitly. However, providing it will increase the speed because otherwise, the MATLAB will have to estimate the Jacobian matrix using finite difference, which essentially involves nudging each variable a little bit and estimating its effect on the output vector. If you explicitly provide it, then MATLAB does not have to go through all that nudging.
  댓글 수: 9
Chao Gong
Chao Gong 2020년 3월 24일
Ameer, thanks so much. This really clear things up. Really appreciate your time and great help!
Ameer Hamza
Ameer Hamza 2020년 3월 24일
Glad to be of help.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by