use the function rule f(x)=x*|-1|^x find the output f(2)

A.4
B.3
C.-2
D.2

We have the function rule f(x) = x*|-1|^x, and we want to find the output f(2).

Substituting x=2 in the given function rule, we get:

f(2) = 2*|-1|^2 = 2*1 = 2

Therefore, the answer is D. 2.