1. **Find \( f^{-1}(x) \) and its domain:**
Completing the square gives
\[ f(x) = (x - 3)^2 + 4. \]
For the domain \( x \ge 3 \), \( f(x) \) is strictly increasing with range \( [4, \infty) \).
Setting \( y = (x - 3)^2 + 4 \) with \( x \ge 3 \) yields \( x - 3 = \sqrt{y - 4} \), so
\[ f^{-1}(x) = 3 + \sqrt{x - 4}, \quad \text{with domain } x \ge 4. \]
2. **Set up the equation \( f^{-1}(x) = |2x - k| \):**
Let \( u = \sqrt{x - 4} \ge 0 \), which implies \( x = u^2 + 4 \ge 4 \).
The equation becomes \( 3 + u = |2(u^2 + 4) - k| = |2u^2 + 8 - k| \).
3. **Analyze Case A (Right branch: \( 2u^2 + 8 - k \ge 0 \)):**
\[ 3 + u = 2u^2 + 8 - k \implies 2u^2 - u + (5 - k) = 0. \]
Note that \( k = 2u^2 - u + 5 \), so the condition \( 2u^2 + 8 - k \ge 0 \) becomes \( 2u^2 + 8 - (2u^2 - u + 5) = u + 3 \ge 0 \), which holds for all \( u \ge 0 \).
The discriminant of this quadratic is
\[ \Delta_A = (-1)^2 - 4(2)(5 - k) = 8k - 39. \]
- If \( k < \frac{39}{8} \), \( \Delta_A < 0 \): no real roots.
- If \( k = \frac{39}{8} \), \( \Delta_A = 0 \): one repeated root \( u = \frac{1}{4} > 0 \), giving 1 solution.
- If \( k > \frac{39}{8} \), the roots are \( u = \frac{1 \pm \sqrt{8k - 39}}{4} \).
The larger root \( u_1 = \frac{1 + \sqrt{8k - 39}}{4} \) is strictly positive for all \( k > \frac{39}{8} \).
The smaller root \( u_2 = \frac{1 - \sqrt{8k - 39}}{4} \ge 0 \iff \sqrt{8k - 39} \le 1 \iff 8k - 39 \le 1 \iff k \le 5 \).
Thus, Case A yields:
- 2 distinct non-negative solutions when \( \frac{39}{8} < k \le 5 \).
- 1 non-negative solution when \( k > 5 \).
4. **Analyze Case B (Left branch: \( 2u^2 + 8 - k < 0 \)):**
\[ 3 + u = -(2u^2 + 8 - k) = k - 2u^2 - 8 \implies 2u^2 + u + (11 - k) = 0. \]
Similarly, \( k = 2u^2 + u + 11 \), so \( 2u^2 + 8 - k = -u - 3 < 0 \) holds for all \( u \ge 0 \).
The roots are \( u = \frac{-1 \pm \sqrt{8k - 87}}{4} \).
For \( u \) to be non-negative, we require the larger root to satisfy
\[ \frac{-1 + \sqrt{8k - 87}}{4} \ge 0 \iff \sqrt{8k - 87} \ge 1 \iff 8k - 87 \ge 1 \iff k \ge 11. \]
Thus, Case B yields:
- 0 non-negative solutions when \( k < 11 \).
- 1 non-negative solution when \( k \ge 11 \).
5. **Synthesize the total number of solutions:**
- \( k < \frac{39}{8} \): 0 solutions.
- \( k = \frac{39}{8} \): 1 solution (from Case A).
- \( \frac{39}{8} < k \le 5 \): 2 solutions (both from Case A).
- \( 5 < k < 11 \): 1 solution (from Case A).
- \( k \ge 11 \): 2 solutions (1 from Case A and 1 from Case B).
Therefore, there is exactly one real solution if and only if \( k = \frac{39}{8} \) or \( 5 < k < 11 \).