Expressing a function as Heaviside function

In summary, the question is how to express a piecewise function as a Heaviside function. The proposed solution of f(t)=(1-t)*H(t-1)+t*H(t) is incorrect as it gives the wrong output for certain values of t. The issue arises from the t*H(t) term contributing when it should not. The solution is to modify the function to eliminate this issue.
  • #1
tics
15
0
I have a question: given a piecewise function, f(t)= {t when t<=0 ,0 when 0<t<=1, 1-t when t>1. How do express it as a Heaviside function?
I have tried to do the solution which is : f(t)= (1-t)*H(t-1)+t*H(t). Here I have considered two non-zero portions of f(t), which are t and 1-t. Is that right? Please let me know about my attempt.
 
Physics news on Phys.org
  • #2
tics said:
I have a question: given a piecewise function, f(t)= {t when t<=0, 0 when 0<t<=1, 1-t when t>1. How do express it as a Heaviside function?
I have tried to do the solution which is : f(t)=(1-t)*H(t-1)+t*H(t). Here I have considered two non-zero portions of f(t), which are t and 1-t. Is that right? Please let me know about my attempt.
No, it's not correct. Consider when t=2, for instance. You'd get

f(2) = (1-2) H(2-1) + 2 H(2) = (-1) H(1) + 2 H(2) = 1

whereas according to original the definition of f(t), f(2) should equal -1. You can see from this example the problem arises because the t*H(t) term contributes when it no longer should. Can you see how to modify your function to get that to go away?
 

FAQ: Expressing a function as Heaviside function

1. What is a Heaviside function?

A Heaviside function, also known as the unit step function, is a mathematical function that is defined as 0 for negative input and 1 for positive input. It is commonly used in engineering and mathematics to represent a sudden change or switch in a system.

2. How is a function expressed as a Heaviside function?

In order to express a function as a Heaviside function, the function must first be rewritten as a piecewise function, with separate equations for the positive and negative parts. Then, the Heaviside function can be used to represent the positive part of the function, while the negative part remains as it is.

3. What are the advantages of expressing a function as a Heaviside function?

One advantage is that it simplifies the representation of a function, especially when dealing with systems with sudden changes or switches. It also allows for easier analysis and calculation of certain properties of the function, such as derivatives and integrals.

4. Can any function be expressed as a Heaviside function?

No, not all functions can be expressed as a Heaviside function. The function must have a sudden change or switch at a certain point in its domain in order for it to be expressed as a Heaviside function.

5. How is a Heaviside function used in real-world applications?

Heaviside functions are commonly used in engineering and physics to model and analyze systems with sudden changes or switches. They are also used in signal processing to represent and manipulate signals with discontinuities. In economics, Heaviside functions are used to represent the instantaneous effect of a policy change.

Similar threads

Back
Top