Question
Mathematics Question on Continuity and differentiability
If f(x), defined by f(x)={kx+1 cosxif x≤πif x>π is continuous at x=π, then the value of k is:
A
0
B
π
C
π2
D
−π2
Answer
−π2
Explanation
Solution
For f(x) to be continuous at x=π, the left-hand limit (LHL), right-hand limit (RHL), and the value of the function at x=π must all be equal.
The left-hand limit is:
LHL=limx→π−f(x)=kπ+1.
The right-hand limit is:
RHL=limx→π+f(x)=cosπ=−1.
The value of the function at x=π is:
f(π)=kπ+1.
Since f(x) is continuous at x=π, we must have:
LHL=RHL=f(π).
Equating the limits:
kπ+1=−1.
Simplify to solve for k:
kπ=−2⇒k=π−2.
Thus, the value of k is:
π−2.