I have a signal that is described below
$x(t) = \begin{cases} -1, & t<0 \\ 2t-1, & 0\leq t<1 \\ 2-t, & 1\leq t<2 \\ 0, & t\geq 2 \end {cases}$
$x(-t) = \begin{cases} -1, & t>0 \\ -2t+1, & -1\leq t<0 \\ t-2, & -2\leq t<-1 \\ 0, & t\leq -2 \end {cases}$
and I want to find the odd and even signal that $x_0(t)+x_e(t) = x(t)$
and then I have to find $x_e(t) = \frac 1 2 (x(t)+x(-t))$ $x_o(t) = \frac 1 2 (x(t)-x(-t))$
How to do it? Also I don't know if what I did is correct. Can anyone help?