given f(x)={x^2….x<=-2

|x-1|….-2<x<=2
-5….x>2

find f(-2)

give step by step and show work

To find f(-2), we need to determine which piece of the piecewise function f(x) applies to x=-2.

From the given function:
f(x)={x^2….x<=-2
|x-1|….-2<x<=2
-5….x>2

Since -2 is less than or equal to -2, the piece that applies is f(x) = x^2.

Therefore, to find f(-2), we substitute x=-2 into f(x) = x^2:
f(-2) = (-2)^2
f(-2) = 4

So, f(-2) = 4.