I am becoming frustrated in trying to understand the wave equation in the semiinfinte case: $ u_{tt} -c^2 u_{xx} =0 $ when $ x\geq 0 $
$u(x,0)=f(x) $
$ u_t(x,0)= g(x) $
and
$ u(0,t)=0 $ or $ u_x (0,t)=0$ . I know that in the first case we can expand $f,g$ as odd functions to $ (-\infty, \infty) $ and in the second case, we can expand $f,g$ as even functions.
The problem is that I can't understand why in the first case we need them to be odd but in the second case we need them to be even.... Can someone help me figure this out?
I couldn't find any good explanation online...
Thanks !