Nepedia
Back to Discover
Fluent Reader
🔢

Step function

math Maturity 11-13 Next article →

Most math looks like smooth curves or straight lines. However, some math works in sudden jumps instead. These are called step functions.

StepFunctionExample
StepFunctionExample

A step function stays at one value for a while. Then, it suddenly jumps to a new value. It stays flat again before the next jump. These jumps look like the steps on a staircase.

Rectangular function
Rectangular function

These functions are made of a finite number of pieces. This means there is a set number of jumps. They do not go on forever in small steps.

To understand how they work, think about intervals. An interval is just a section of the number line. A step function assigns a specific value to each section. We call these sections disjoint intervals. This means the sections do not overlap each other. When you put all these sections together, they cover the whole number line.

StepFunctionExample
StepFunctionExample

Each piece of the function is constant. A constant value means it does not change within that section. The function only moves when you cross from one interval to another.

There are several famous types of step functions. One is the sign function. This function is -1 for negative numbers. It is 1 for positive numbers. Another is the Heaviside step function.

Dirac distribution CDF
Dirac distribution CDF

This one is 0 for negative numbers and 1 for positive numbers. It is a very important tool for testing systems. The rectangular function is also used often. It is sometimes called a normalized boxcar function. It helps scientists model a single pulse of energy.

Step functions follow very strict math rules. You can add two step functions together. You can also multiply them together.

Rectangular function
Rectangular function

The result will always be another step function. This special property means they form an algebra. This is a way of saying they work well together. Step functions also only take on a finite number of values. They do not use every possible number on the line. This makes them different from smooth, continuous functions.

You can see these ideas in many places. A discrete random variable uses these ideas too. Its cumulative distribution function is often a step function.

Dirac distribution CDF
Dirac distribution CDF

This happens when a variable has a countable number of values. Even the math used to build the Lebesgue integral starts with step functions. You can find these patterns in how we measure things that change in stages. They help us describe a world that does not always move smoothly.

398 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:StepFunctionExample.png
StepFunctionExample.png
File:Dirac distribution CDF.svg
Dirac distribution CDF.svg
File:Rectangular function.svg
Rectangular function.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.