Please help me!
Find the number x such that f(x) =1

Answer:
D
Step-by-step explanation:
We have the piecewise function:
[tex]f(x) = \left\{ \begin{array}{ll} -\frac{1}{2}x-1 & \quad x \leq -2 \\ x & \quad x > -2 \end{array} \right.[/tex]
And we want to find x such that f(x)=1.
So, let's substitute 1 for f(x):
[tex]1 = \left\{ \begin{array}{ll} -\frac{1}{2}x-1 & \quad x \leq -2 \\ x & \quad x > -2 \end{array} \right.[/tex]
This has two equations. So, we can separate them into two separate cases. Namely:
[tex]1=-\frac{1}{2}x-1\text{ or } 1=x[/tex]
Let's solve for x in each case.
Case I:
We have:
[tex]1=-\frac{1}{2}x-1[/tex]
Add 1 to both sides:
[tex]2=-\frac{1}{2}x[/tex]
Let's cancel out the fraction by multiplying both sides by -2. So:
[tex]2(-2)=(-2)\frac{-1}{2}x[/tex]
The right side cancels:
[tex]-4=x\\[/tex]
Flip:
[tex]x=-4[/tex]
So, x is -4.
Case II:
We have:
[tex]1=x[/tex]
Flip:
[tex]x=1[/tex]
This is the solution for our second case.
So, we have:
[tex]x_1=-4\text{ or } x_2=1[/tex]
Now, can check to see if we have to to remove solution(s) that don't work.
Note that x=-4 is the solution to our first equation.
The first equation is defined only if x is less than -2.
-4 is less than -2. So, x=-4 is indeed a solution.
x=1 is the solution to our second equation.
The second equation is defined only if x is greater than or equal to -2.
1 is greater than or equal to -2. So, x=1 is also a solution.
Therefore, our two solutions are:
[tex]x_1=-4\text{ or } x_2=1[/tex]
Out of our answer choices, we can pick D.
And we're done!