The wave equation and the boundary conditions are separate matters.
The simplest transverse wave equation is
[tex]\frac{{{\partial ^2}y}}{{\partial {x^2}}} = {c^2}\frac{{{\partial ^2}y}}{{\partial {t^2}}}[/tex]
You need to apply boundary conditions to establish the two arbitrary functions that appear in the solution.
