Positive and negative parts

Positive and Negative Parts of f(x) = x2 − 4

In mathematics, the positive part of a real or extended real-valued function is defined by the formula

Intuitively, the graph of is obtained by taking the graph of , chopping off the part under the x-axis, and letting take the value zero there.

Similarly, the negative part of f is defined as

Note that both f+ and f are non-negative functions. A peculiarity of terminology is that the 'negative part' is neither negative nor a part (like the imaginary part of a complex number is neither imaginary nor a part).

The function f can be expressed in terms of f+ and f as

Also note that

Using these two equations one may express the positive and negative parts as

Another representation, using the Iverson bracket is

One may define the positive and negative part of any function with values in a linearly ordered group.

The unit ramp function is the positive part of the identity function.