Solving a Sturm-Liouville BVP in two ways