Assume $b,a \in \mathbb{R}$
$$\phi(x)=\begin{cases} b-\dfrac{b|x|}{a} & |x| <a \\ 0 & |x|>a \end{cases}$$
$$b-\dfrac{b|x|}{a}= \begin{cases} b-\dfrac{bx}{a} & x \geq 0\\ b+\dfrac{bx}{a} & x<0\end{cases}$$
How to find $$\phi(x+ct)+\phi(x-ct)$$ in terms of a four-condition piecewise function?
I did some algebra to obtain that
$$\phi(x+ct)=\begin{cases} b-\dfrac{b|x+ct|}{a} & x \in (-a-ct,a-ct)\\ 0 & x \notin (-a-ct,a-ct)\end{cases}$$
$$\phi(x-ct)=\begin{cases} b-\dfrac{b|x-ct|}{a} & x \in (ct-a,a+ct) \\ 0 & x \notin (ct-a,a+ct)\end{cases}$$
I find adding this piecewise functions together hard as a result of the constructive and destructive interference where there is overlap in their supports.