Answer
$f(t)=2u_0(t)+(1-t)u_1(t)$
Work Step by Step
Since $0 \leq t \lt 1$, $f(t)=2$
then we have $f_1(t)=2u_0(t)$
Since $t \geq 1$, $f(t)=3-t$
then we have $f_2(t)=(1-t)u_1(t)$
Hence,
$f(t)=f_1(t)+f_2(t)\\
=2u_0(t)+(1-t)u_1(t)$
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.