Step 1: Complete the square:
We write \(f(x) = x^2 - 4x + 5\) in vertex form.
\[ f(x) = (x-2)^2 + 1 \]
The graph is an upward parabola with vertex at \((2, 1)\).
Step 2: Test injectivity:
A function is injective if different inputs give different outputs.
Take \(x = 1\) and \(x = 3\). Then \(f(1) = 1 - 4 + 5 = 2\) and \(f(3) = 9 - 12 + 5 = 2\).
Two different inputs give the same output, so \(f\) is not injective.
Step 3: Test surjectivity:
Surjective means the range equals the codomain \(\mathbb{R}\).
Since \((x-2)^2 \geq 0\), we get \(f(x) \geq 1\) for every \(x\).
The range is \([1, \infty)\), so values like \(0\) or \(-3\) are never reached. \(f\) is not surjective.
Step 4: Check the options:
(A) says injective: false, because \(f(1) = f(3)\).
(B) says surjective: false, because the range is only \([1, \infty)\).
(C) needs both properties: false.
(D) says neither: true.
Final Answer:
The function is neither injective nor surjective, which is option (D).
\[ \boxed{\text{(D) neither injective nor surjective}} \]