We have the function defined as f(x)=sin(x−2)P(x)for x=2 and f(2)=7.
Because the question states that f(x) is continuous at x=2, the limit of the first formula as x→2 must equal the explicitly given value at that point. Hence we require
limx→2sin(x−2)P(x)=7.
Next we use the standard limit fact u→0limusinu=1, which can be rewritten (by taking reciprocals) as u→0limsinuu=1. Writing u=x−2, we see that u→0 exactly when x→2. Therefore near x=2 we may replace sin(x−2) by (x−2) inside limits. It follows that, to keep the fraction finite, the numerator must also vanish at x=2. So we must have
P(2)=0.
With P(2)=0 established, both numerator and denominator approach 0 in the limit, so L’Hospital’s Rule may be applied. L’Hospital’s Rule states that if x→alimh(x)g(x) is an indeterminate form 0/0, then
limx→ah(x)g(x)=limx→ah′(x)g′(x),
provided the latter limit exists. Using g(x)=P(x) and h(x)=sin(x−2), we obtain
limx→2sin(x−2)P(x)=limx→2cos(x−2)P′(x).
Since cos(0)=1, the right-hand limit simplifies to P′(2). Continuity therefore forces
P′(2)=7.
The problem also states that P′′(x) is a constant for all x. A constant second derivative implies that P(x) must be a quadratic polynomial. Let us write
P′′(x)=k,k constant.
Integrating once,
P′(x)=kx+d,
where d is a constant of integration. Substituting x=2 and using P′(2)=7 gives
k⋅2+d=7⟹2k+d=7.−(1)
Integrating P′(x) again yields
P(x)=2kx2+dx+e,
with a second integration constant e. Using the already-proved fact P(2)=0 we substitute x=2 to get
2k(2)2+d(2)+e=0⟹2k+2d+e=0.−(2)
We are additionally told that P(3)=9. Substituting x=3 gives
2k(3)2+d(3)+e=9⟹29k+3d+e=9.−(3)
Now we solve the simultaneous linear equations (1), (2) and (3).
From (1) we can express d directly:
d=7−2k.
Substituting this value of d into (2) gives
2k+2(7−2k)+e=0⟹2k+14−4k+e=0⟹−2k+14+e=0⟹e=2k−14.
Next we insert both d=7−2k and e=2k−14 into equation (3):
29k+3(7−2k)+(2k−14)=9.
Performing the algebra step by step,
29k+21−6k+2k−14=9,
which simplifies to
29k−4k+7=9.
Combining the k terms by writing −4k=−28k, we get
29k−28k+7=9⟹2k+7=9⟹2k=2⟹k=4.
With k=4, we quickly find the remaining constants:
d=7−2k=7−8=−1,
e=2k−14=8−14=−6.
Therefore the explicit quadratic polynomial is
P(x)=24x2−x−6=2x2−x−6.
Finally we compute P(5):
P(5)=2(5)2−5−6=2⋅25−5−6=50−5−6=39.
So, the answer is 39.