I have a homogeneous second-order differential equation [in function $y(x)$] with variable coefficients - with no given specific functional forms for $a(x)$ or $b(x)$ - given as follows:
$$y\hspace{0.01in}''+a(x)\hspace{0.01in}y\hspace{0.01in}'+b(x)\hspace{0.01in}y=0$$
given the boundary conditions,
$$y(1)=1,\text{ and $\,\,$}y(0)=\alpha\hspace{0.01in}y\hspace{0.01in}'(0)$$
where, $\alpha$ is a constant. Clearly, the second boundary value/condition is in form of a constraint; from what I understand, this type of boundary value problem is called the Mixed Boundary Value Problem (or alternatively, the Robin Boundary Value Problem). Now, what is the most optimal method (in terms of computational cost) to solve this problem numerically?
Thanks for the help folks!
I cannot say it is most optimal.
Either separately solve the differential equation and input the boundary conditions,
$$ Y(x)=\alpha\hspace{0.01in}Y\hspace{0.01in}'(x), Y(0) = Y_i = y(0), y(1) = 1 $$
or, solve them together numerically as a coupled differential equations,like say:
$$y(1)=1,\text{ and $\,\,$}y(0)=\alpha\hspace{0.01in}y\hspace{0.01in}'(0) = 0.2 $$