Let $f(x) = [x]$ and let $g(x) = [2x]$ for all real $x$. In each case, draw the graph of the function h defined over the interval $[-1,2]$ by the formula given.
1.$h(x) = f(x) + g(x)$
2.$h(x) = f(x)g(x)$
It's easy to graph $f(x)$ and $g(x)$ sperately. The only problem I am having is the graphing of $h(x)$.
So,can you please explain to me how step functions are added and multiplied? Thanks in Advance
One way we can approach this is by using a table of values where the inputs are series of intervals.
\begin{array}{|c|c|c|c|c|} \hline \text{Interval} & f=\lfloor x\rfloor & g=\lfloor2x\rfloor & f+g & fg\\ \hline [-1,-0.5) & -1 & -2 & -3 & 2 \\ [-0.5,0) & -1 & -1 & -2 & 1 \\ [0,0.5) & 0 & 0 & 0 & 0 \\ [0.5,1) & 0 & 1 & 1 & 0 \\ [1,1.5) & 1 & 2 & 3 & 2 \\ [1.5,2) & 1 & 3 & 4 & 3 \\ \{2\} & 2 & 4 & 6 & 8 \\ \hline \end{array}