Let $n$ be an odd positive integer. Prove $f : \mathbb{R} \rightarrow > \mathbb{R}$ defined by $f(x) = x^n$ is bijective.
My attempt:
First we prove injectivity. Suppose we have $f(x) = f(y)$ so that $x^n = y^n$. Raising to the $(1/n)^{\text{th}}$ power, we get $x = y$, from which injectivity follows.
Now we prove surjectivity. We want to find $x$ so that $f(x) = y$. Taking $x = y^{1/n}$ works.
My question:
1) Is this proof correct for odd $n$?
2) Why does it fail for $n$ even?
It is incorrect.
Your proof only holds for odd $n$!
Indeed, we have $f(1)=f(-1)$ for $n$ even.
Your proof for $n$ is even breaks down because we have
$$(x^n)^{1/n} = |x|$$
Here are hints how you can formally show that $x \mapsto x^n$ is bijective for $n$ odd (without assuming $n$-th roots exist!)
Injective: Because the function is strictly increasing (prove this using derivatives).
Surjective: By continuity and the mean value theorem.