Mathematics

Mathematics

Problem

Find the range of f(x)=4−2 sgn(x)f(x)=4-2\,\mathrm{sgn}(x). a) {2,6}\{2,6\} b) {2,4,6}\{2,4,6\} c) {4,6}\{4,6\} d) {2,4}\{2,4\}
Intuitive explanation

The sign function sgn(x)\mathrm{sgn}(x) only takes three discrete values—it jumps between −1-1, 00, and 11 depending on whether xx is negative, zero, or positive. Since f(x)f(x) is just a linear transformation of sgn(x)\mathrm{sgn}(x), the range will be a finite set of three specific output values. Plug in each possible value of the sign function to see what outputs you get.

Intuitive explanation

The sign function sgn(x)\mathrm{sgn}(x) only takes three discrete values—it jumps between −1-1, 00, and 11 depending on whether xx is negative, zero, or positive. Since f(x)f(x) is just a linear transformation of sgn(x)\mathrm{sgn}(x), the range will be a finite set of three specific output values. Plug in each possible value of the sign function to see what outputs you get.

Browse the problem library