For the function to be continuous at x=2, the left-hand and right-hand limits of f(x) as x→2 must exist and must be equal to the value of the function at that point. Symbolically, continuity demands
limx→2(x−1)2−x1=f(2)=k.
So we have to evaluate the limit
L=limx→2(x−1)2−x1.
Direct substitution gives 1∞, an indeterminate form. To resolve it, we first take the natural logarithm. Let
y=(x−1)2−x1.
Taking logarithms on both sides, we obtain
lny=2−xln(x−1).
Now we must evaluate
limx→22−xln(x−1).
As x→2, the numerator ln(x−1)→ln1=0 and the denominator 2−x→0, giving the indeterminate form 00. According to L’Hospital’s Rule (which states that if limx→ag(x)f(x) is of the form 00 or ∞∞, then the limit equals limx→ag′(x)f′(x) provided this derivative limit exists), we may differentiate the numerator and denominator separately:
Numerator derivative: dxd[ln(x−1)]=x−11.
Denominator derivative: dxd[2−x]=−1.
Applying L’Hospital’s Rule, we get
limx→22−xln(x−1)=limx→2−1x−11=limx→2(−x−11).
Now substituting x=2 gives
−2−11=−1.
Thus,
lny=−1.
Exponentiating both sides with base e, we arrive at
y=e−1.
Therefore,
L=e−1.
Continuity requires k=L, so
k=e−1.
Hence, the correct answer is Option C.