Solving an integral differential equation using BVP4C

조회 수: 5 (최근 30일)
UNK
UNK 2016년 12월 19일
편집: UNK 2016년 12월 20일
I have a set of differential equations of the form:
x1dot = x3;
x2dot = x2;
x3dot = x1;
x4dot = x2 + integral(x1,t,tend)
I have the boundary condition for x1, x2 at tstart and x3, x4 at tend. Without the intergral term its straight forward implementation using BVP4C.
I am wondering if it is possible to have the previous solution for the states from the BVP solver which can be used for the integral.
One possibility is using ODE45 and fsolve in combination for the Boundary value problem where I can have the previous solution, but this approach is not fast as the BVP setup.
I also feel that there may be some difficulty in convergence when I use previous solution x1 for the integral.
Is there a better/quicker or easier way to solve this problem.
Thank you.

채택된 답변

UNK
UNK 2016년 12월 20일
편집: UNK 2016년 12월 20일
integral(x1,t,tend) = x5
x5dot = -x1 % using fundamental theorem of calculus
This solves the problem.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Boundary Value Problems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by