I need to solve the boundary value problem (related to flow of fluids in conical ducts):
Y''' + 1 - Y'^2 = 0
with all the three BCs bing only on the derivatives of Y (and none on Y itself):
By formulating the problem exactly as suggested here:
dYdX = @(X,Y) [Y(2); Y(3); Y(2).^2-1];
res = @(ya,yb) [ya(2); yb(3); yb(2)-1];
SolYinit = bvpinit([0 5], [0; 0; 0]);
Fsol = bvp4c(dYdX, res, SolYinit);
X = Fsol.x;
Y = Fsol.y;
I tried to solve the problem, but received the Jacobian error.
Is it possible that the error is generated because the BCs do not contain Y(...), and is there a way around his problem?