2

enter image description here

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\$).

1 Answers1

2

The Heaviside function has a discontinuity at \$t = 0\$, so your terms that look like $$ u(t) - u(t + 1) $$ already deal with the discontinuities at \$t = -1, 3\$. I've added a picture of the first term to show the jump at \$-1\$.

enter image description here

Note that some plotting software doesn't show these discontinuities as vertical lines. This makes sense, because the function can only have one value for any given \$t\$ - a vertical line doesn't pass the vertical line test.