The diff eq is
t*y'' + 2*y' + t*y = 0 subject to y(0)=1 and y(pi)=0
Is there no mistake in the wording of the problem ? Because solving this ODE with Laplace Transform is much more difficult than with traditional method.
Traditionally, the result is :
y(t) = (a*BesselJ[1/2 , t]+b*BesselJ[-1/2 , t] ) / Sqrt(t)
a, b = constants
With Laplace Transform method :
Notation : Laplace Transform of y(t) is g(s)
Laplace Transform of t*y(t) is -g'(s)
Laplace Transform of y'(t) is s*g(s)-y(0) = s*g(s)-1
Laplace Transform of y''(t) is s²g(s)-s*y(0)-y'(0) = s²g-s-y'(0)
Laplace Transform of t*y''(t) is -(s²g-s-y'(0) )' = -2s*g-s²g'(s)+1
Laplace Transform of t*y'' + 2*y' + t*y = 0 is :
-2s*g-s²g'(s)+1+2(s*g(s)-1)-g'(s) = 0
g'(s) = -1/(1+s²)
g(s) = -arctan(s) + Constant
So, we come across a snag : finding the Inverse Laplace Transform of arctan(s) ? Of coiurse, it should lead to the formula with the Bessel functions.