I have to find the numerical solutions for the boundary value problem through matlab,
$2yy\prime\prime -(y\prime)^{2} + 4y^{2} = 0, \quad y(\pi/6) = 1/4, \quad y(\pi/2) = 1. $
It took so much time to how to start, I tried $dy/dx = u$ but failed...
Can anybody help??
If the words "difference method" are part of your task description, it would seem that you are expected to directly insert $$ y'(t)=\frac{y(t+h)-y(t-h)}{2h},\qquad y''=\frac{y(t+h)-2y(t)+y(t-h)}{h^2} $$ to get $$ 2y(t)(y(t+h)-2y(t)+y(t-h))-\frac14(y(t+h)-y(t-h))^2+4h^2y(t)^2=0 $$ which is a quadratic equation for $y(t+h)$.
Otherwise
is a variant of the function to put into the BVP solver.
If you want to go Newton on your equation, compute the directional derivative in direction $v$ as $$ 2yv''+2y''v-2y'v'+8yv=0 $$
This works in Scilab, a close cousin of Matlab