# Unit step function from piecewise

## Homework Statement

$$f(x) = \begin{cases} 0, & t < \pi \\ t - \pi , & \pi \leq t < 2 \pi \\ 0, & t \geq 2 \pi \end{cases}$$

## Homework Equations

Unit step function:
$$u_c(t) = \begin{cases} 0, & t < c \\ 1 , & t \geq c \\ \end{cases}$$

## The Attempt at a Solution

$u_{\pi}(t)(t-\pi) - u_{2 \pi}(t)(t-2 \pi)$ gives me:

$$f(x) = \begin{cases} 0, & t < \pi \\ t - \pi , & \pi \leq t < 2 \pi \\ \pi, & t \geq 2 \pi \end{cases}$$

I'm not sure what to do to get the last inequality correct?

Related Calculus and Beyond Homework Help News on Phys.org
Is $u_{\pi}(t)(t-\pi) - u_{2 \pi}(t)(t- \pi)$ allowed? That does work but the "c" doesn't match.

I figured it out. It is allowed, it just needs forcing.

$u_{\pi}(t)(t-\pi) - u_{2 \pi}(t)(t- \pi) \rightarrow u_{\pi}(t)(t-\pi) - u_{2 \pi}(t)((t- \pi) - \pi)$

Now that it's in the form $u_c(t)(t-c)$, the Laplace transform can be taken:

\begin{aligned} F(s) &= L\{u_{\pi}t(t- \pi)-u_{2 \pi}(t)((t- \pi)- \pi)\}\\ F(s) &= e^{- \pi s}L\{t\} - e^{-2 \pi s}L\{t- \pi\}\\ F(s) &= \frac{e^{- \pi s}}{s^2} - e^{- 2 \pi s} \cdot (\frac{1}{s^2} - \frac{\pi}{s}) \end{aligned}

SammyS
Staff Emeritus
The question asked to take the Laplace transform of the piecewise function. I had to create a step function and use $L\{u_c(t)f(t-c)\} = e^{-cs}L\{f(t)\}$, which I figured out.