Piecewise Function

Piecewise functions are defined by different formulas on different parts of the domain.

Absolute Value Function

Signum Function

Ramp Function

Floor and Ceiling Functions

Fractional-Part Function

Heaviside Function (Unit Step Function)

Basic Function Advanced Manipulations

\leq t \lt b\\ 0, & t \geq b \end{cases}$$ $$1 - H(t-a) = \begin{cases} 1, & t \lt a\\ 0, &t\geq a\end{cases}$$ Notice that $$f(t)H(t) = \begin{cases} 0, & t \lt 0\\ f(t), &t\geq 0\end{cases}$$ > [!example] Express piecewise as heaviside function > > Express the following function as a heaviside function. > > $$f(x) = \begin{cases} e^{-x} & x \lt0\\ 1-x^{2}, & 0\leq x \lt 1\\ \ln x & x \geq 1\end{cases}$$ > > Answer: > $$f(x) = e^{-x} (1-H(x)) + (1-x^{2})(H(x)- H(x-1))+ \ln x(H(x-1))$$