Academy

sgn x, the sign function

A thermometer seen from far away: you can only tell whether it is above freezing or below, not how much.

sgn x y = sign(x)
-4-3-2-11234-3-2-1123xysgn xsanjibsikder.com
Drag to move · pinch or scroll to zoom · tap to read a point

Step by step

  1. For every positive x, sgn x = 1. For every negative x, sgn x = −1.
  2. At x = 0 alone, sgn 0 = 0.
  3. For x not 0, sgn x = |x| ÷ x.
  4. The graph is two flat pieces and a single point, with a jump at 0.

Try this

  • Find sgn(−7) and sgn(0.01).
  • Draw y = x · sgn x in your head. Which graph is it?
  • Is sgn(x²) the same as 1 for every x?

Practise this

Problems on Functions with checks, marks and help from Sir are on the exam site (sign in). Practise Functions on the exam site →