I started of with the wave equation $$\frac{\partial^2 u}{\partial x^2}=\frac{\partial^2 u}{\partial t^2}$$ with boundary conditions $u=0$ at $x=0$ and $x=1$ and initial condition $u=sin(\pi x)$ and $\frac{\partial u}{\partial t}=0$ when $t=0$
I have gotten to the stage $$\frac{d^2 v}{dx^2}-s^2v=-s* sin(\pi x)$$ Where do I go from here?
My notes say find the complimentary function using the axillary function $m^2-s^2$ to get $$v_c=Ae^{sx}+Be^{-sx}$$ Then it says find the particular integral for the right hand side and use the trial function $$v_p=a*sin(\pi x)+b*cos(\pi x)$$ But I do not quite understand this. Why do we need the complimentary function? What is the trial function and why do we need it?
First of all, the point of using the Laplace transform was to turn the PDE into a family of ODEs for each $s$. In this case the ODEs are linear. The general recipe for these linear ODEs is that a solution is a sum of a solution to the homogeneous equation, where the right side is zero, and a particular solution to the given equation.
In your case the homogeneous equation is $v'' - s^2 v = 0.$ The general recipe for a homogeneous linear ODE with constant coefficients is an exponential solution. So you assume $v=e^{\lambda t}$ and after dividing out the $e^{\lambda t}$ you get the quadratic equation $\lambda^2-s^2=0$. So $\lambda=\pm s$, and the general solution to the homogeneous equation is $c_1 e^{st} + c_2 e^{-st}$ for constants $c_1,c_2$.
Now you need a particular solution. There a number of general recipes for finding one of these. One convenient one in a lot of simple cases is called undetermined coefficients, where you assume the function has a certain form with unknown coefficients and then find the coefficients. This method is more art than science, and depends on knowing how the elementary functions behave when they are differentiated. In your case, you want the right side to be a sinusoid. Since derivatives of sinusoids are sinusoids, you have some hope of having this work if $v$ is a sinusoid. Checking it by plugging into the equation, you find that it works out.