Given the piecewise function shown below, select all of the statements that are true.

[tex]
f(x)=\left\{\begin{array}{c}
-x+1, x\ \textless \ 0 \\
-2, x=0 \\
x^2-1, x\ \textgreater \ 0
\end{array}\right\}
[/tex]

A. [tex]f(-1)=2[/tex]
B. [tex]f(4)=7[/tex]
C. [tex]f(1)=0[/tex]
D. [tex]f(-2)=0[/tex]



Answer :

Let's evaluate each statement one by one, using the given piecewise function:

[tex]\[ f(x) = \begin{cases} -x + 1 & \text{if } x < 0 \\ -2 & \text{if } x = 0 \\ x^2 - 1 & \text{if } x > 0 \end{cases} \][/tex]

### Statement A: \( f(-1) = 2 \)

For \( x = -1 \):
- Since \(-1 < 0\), we use the first case: \( f(x) = -x + 1 \)
- Calculate \( f(-1) \):
[tex]\[ f(-1) = -(-1) + 1 = 1 + 1 = 2 \][/tex]

So, \( f(-1) = 2 \) is true.

### Statement B: \( f(4) = 7 \)

For \( x = 4 \):
- Since \( 4 > 0 \), we use the third case: \( f(x) = x^2 - 1 \)
- Calculate \( f(4) \):
[tex]\[ f(4) = 4^2 - 1 = 16 - 1 = 15 \][/tex]

So, \( f(4) = 7 \) is false. The correct value is \( f(4) = 15 \).

### Statement C: \( f(1) = 0 \)

For \( x = 1 \):
- Since \( 1 > 0 \), we use the third case: \( f(x) = x^2 - 1 \)
- Calculate \( f(1) \):
[tex]\[ f(1) = 1^2 - 1 = 1 - 1 = 0 \][/tex]

So, \( f(1) = 0 \) is true.

### Statement D: \( f(-2) = 0 \)

For \( x = -2 \):
- Since \(-2 < 0\), we use the first case: \( f(x) = -x + 1 \)
- Calculate \( f(-2) \):
[tex]\[ f(-2) = -(-2) + 1 = 2 + 1 = 3 \][/tex]

So, \( f(-2) = 0 \) is false. The correct value is \( f(-2) = 3 \).

### Summary

- Statement A: \( f(-1) = 2 \) is true.
- Statement B: \( f(4) = 7 \) is false (correct value is 15).
- Statement C: \( f(1) = 0 \) is true.
- Statement D: \( f(-2) = 0 \) is false (correct value is 3).

Therefore, the true statements are A and C.