
Here's what I have so far:
$$f(t) = (-2(t+1)+1.5) \times (u(t+1)-u(t)) + (t-0.5) \times (u(t)-u(t-1)) + 0.5\cos(\pi t) \times (u(t-1)-u(t-3))$$
I found the majority of this function, but I'm not sure how to account for the edges (the vertical lines at \$t=-1\$ and \$t = 3\$).
