Evaluate the piecewise defined function
at (a) , (b) , (c) , (d) .
Adopt the right order of operations for a piecewise function. For each input, first decide which branch applies by testing the conditions, and only then substitute. Substituting into the wrong branch is the whole failure mode here.
(a) g(-1). Is ? Yes, so use the first branch:
(b) g(7). Is ? Yes, so use the second branch:
(c) g(0). Is ? Yes, first branch again:
(d) g(-2) — check the inequality symbols carefully. The first branch requires , a strict inequality, so does not qualify. The second requires , which also fails. No branch covers , so
Had the condition read , the answer would have been . The single character is the whole question.
State the domain that follows. The two conditions together cover , so is defined for every and nowhere else. Note the pieces even join up: the first branch reaches at , and the second approaches just past it, so the graph jumps at .
Need to solve a different problem like this? Open the solver →