How do I write f(x)=|x-1| as a piece wise function?
2 Answers
where
Explanation:
Given:
Observe the following:
If
If
For what value of
For what value of
Piece-wise Function is given by different expressions on various intervals
Hence, we have
where
Hence, we have the required Piece-wise functions
Analyze the graphs given of below:
Graph of the Piece-wise functions are given below:
We observe that both the graphs are identical.
Hence, our solution is verified.
# f(x) = |x-1| = { (1-x, x lt 1), (x-1,x ge 1) :} #
Explanation:
Consider the function:
# y= |x| #
By the definition n of the "modulus" or "absolute" value function we require that iut return the input value with a positive sign. We can write this as a piecewise function as follows:
# y = |x| = { (-x, x lt 0), (0,x=0),(x,x gt 0) :} #
We further note that we can arbitrarily incorporate the case
# y = |x| = { (-x, x lt 0), (x,x ge 0) :} #
Then the required function,
# f(x) = |x-1| = { (-(x-1), (x-1) lt 0), ((x-1),(x-1) ge 0) :} #
graph{|x-1| [-10, 10, -5, 5]}