How Do You Express a Piecewise Function Using Singularity Functions?

AI Thread Summary
The discussion revolves around expressing a piecewise function using singularity functions, specifically for the signal g(t) defined in segments. The initial expression provided by the user was g(t) = r(t-1) - r(t-2) - r(t-4) + r(t-5), which was mostly correct but required adjustments. A key point of contention was the interpretation of the segment 4-t for 4<t<5, leading to a clarification that the original graph was incorrect. Ultimately, the correct expression, as confirmed by the professor, is g(t) = r(t-1) - r(t-2) - r(t-4) + r(t-5) - u(t-4) + u(t+5). This highlights the importance of accurately representing piecewise functions in terms of singularity functions.
E&H12
Messages
6
Reaction score
0
I was given the problem to:
express the following signal in terms of the singularity function

g(t)= t-1, 1<t<2
1, 2<t<4
4-t, 4<t<5
0, otherwise


I graphed this function it is attached in below.

My final answer for this function is

g(t)= r(t-1)-r(t-2)-r(t-4)+r(t-5).

Is this answer correct? Thank You
 

Attachments

  • singularity_function.png
    singularity_function.png
    1.9 KB · Views: 664
Last edited:
Physics news on Phys.org
You're right that you need four ramp functions.
And your first three terms are correct.
 
  • Like
Likes 1 person
I made a correction to the last term, it was a typo. thou thanks scott.
 
Singularity Function ans from professor

So my linear systems professor had an answer that looked like this, but i really don't agree with this answer. Will someone please explain which one is correct? Where did my professor get those last terms from? (it does not make sense to me)
 

Attachments

  • singularity_function_ans.PNG
    singularity_function_ans.PNG
    25.8 KB · Views: 905
The original specification includes: 4-t for 4<t<5
So this would range from 4-4 to 4-5 or 0 to -1. So your original graph is wrong and the teacher is correct.
(Sorry, I didn't catch that one either)
Still, your original graph is useful as an intermediate result. Your teach called your function G3 and his/her work is in agreement with your corrected result:
g3(t)= r(t-1)-r(t-2)-r(t-4)+r(t-5)

But then we need to drop that 4<t<5 segment so we need a -u(t-4)+u(t+5).
The whole thing becomes, just as your teacher reported:
g(t)= r(t-1)-r(t-2)-r(t-4)+r(t-5)-u(t-4)+u(t+5)
 
  • Like
Likes 1 person
Back
Top