Absolute Value of a Difference with Heaviside Function

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 5K views
Batmaniac
Messages
22
Reaction score
0

Homework Statement



If |x| = -x + 2x*H(x) what is |x - a|? This isn't the actual question, just something I need to know to solve the question.


Homework Equations



H(x) is the Heaviside function which is:

y = 1 if x >= 0
y = 0 if x < 0


The Attempt at a Solution



Well, I'm not sure how to do it algebraically, but my best guess would be:

|x - a| = -(x - a) + 2(x - a)*H(x - a)
 
Physics news on Phys.org