Heaviside Step Function — Definition, Formula & Examples
The Heaviside step function is a piecewise function that equals 0 for negative inputs and 1 for positive inputs. It acts like a mathematical "on/off switch" that jumps from 0 to 1 at a specified point.
The Heaviside step function is defined as for and for . A shifted version transitions from 0 to 1 at . The value at exactly is sometimes defined as depending on the convention used.
Key Formula
Where:
- = The input variable (often representing time)
- = Output: 0 before the jump, 1 at and after the jump
How It Works
The Heaviside function lets you "turn on" another function at a chosen time. To activate a function starting at , multiply it by . For example, equals zero when and equals when . In Laplace transforms, the shifted Heaviside function has the transform , which makes it essential for solving differential equations with discontinuous forcing functions.
Worked Example
Problem: Write a single expression for the function that equals 0 for , equals 5 for , and equals 0 again for .
Step 1: Turn on the value 5 at using a shifted Heaviside function.
Step 2: Turn off the value 5 at by subtracting another shifted Heaviside function.
Step 3: Verify: for , both terms are 0. For , the first term gives 5 and the second is still 0. For , both terms are 5, so the difference is 0.
Answer: , which creates a rectangular pulse of height 5 on the interval .
Why It Matters
The Heaviside function is indispensable in differential equations courses when modeling systems subjected to sudden forces — a circuit switched on at a specific time, or a load suddenly applied to a beam. It pairs directly with Laplace transforms, giving you a systematic algebraic method to solve problems that would be cumbersome with purely piecewise techniques.
Common Mistakes
Mistake: Confusing with , which reverses the on/off behavior.
Correction: turns on at (equals 0 before, 1 after). does the opposite: it equals 1 before and 0 after. Pay attention to the sign inside the argument.
