Show work to determine if the relation is even, odd, or neither.

f(|x|) = |x|- x^2 + 1

I thought it was even because the absolute value and squared will cancel the negatives, but I don't know how to show this through math..

first off, I think it should be written

f(x) = |x| - x^2 + 1

To prove it's even, recall that even means f(-x) = f(x). So,
f(-x) = |-x| - (-x)^2 + 1 = |x - x^2 + 1 = f(x)
so f(x) is even.

Now, if you truly meant

f(|x|) = |x| - x^2 + 1

then you need to express x^2 in terms of |x|, which is (|x|)^2

so,

f(-|x|) = -|x| - (-|x|)^2 + 1
= -|x| - (|x|)^2 + 1 ≠ f(|x|)
so it is not an even function of |x|.

No it's written that way on my assignment.. that's why I'm confused.

me too. It's certainly an unorthodox way to define a relationship. It's like saying

f(x^2+1) = x^3 - 2x + 7

you'd have to redefine the polynomial in x into an expression in terms of (x^2+1). Possible, but rather obfuscatory.

To determine if a function is even, odd, or neither, we need to consider the properties of these functions with respect to symmetry:

1. If a function is even, it satisfies the condition f(-x) = f(x) for all x.
2. If a function is odd, it satisfies the condition f(-x) = -f(x) for all x.

Let's see if the function f(|x|) = |x| - x^2 + 1 satisfies either of these conditions.

First, let's evaluate f(-x):

f(-x) = |-x| - (-x)^2 + 1
= |x| - x^2 + 1

Comparing this with f(x), we can observe that f(-x) = f(x). Therefore, the function satisfies the condition for being even.

To show this through math, we need to prove that f(-x) = f(x) algebraically.

f(-x) = |-(-x)| - (-x)^2 + 1 (Replacing x with -x)
= |x| - x^2 + 1

f(x) = |x| - x^2 + 1 (Given function)

Since f(-x) = f(x) for all x, we can conclude that the given function f(|x|) = |x| - x^2 + 1 is an even function.

Note: The presence of absolute values does not guarantee that a function is odd or even. It depends on the specific form and properties of the function.