Skip to main content
Back to Limits, Continuity & Differentiability
JEE Main 2021
Limits, Continuity & Differentiability
Limits, Continuity and Differentiability
Medium

Question

If the function f\left( x \right) = \left\{ {\matrix{ {{k_1}{{\left( {x - \pi } \right)}^2} - 1,} & {x \le \pi } \cr {{k_2}\cos x,} & {x > \pi } \cr } } \right. is twice differentiable, then the ordered pair (k 1 , k 2 ) is equal to :

Options

Solution

Key Concepts and Formulas

  • Differentiability at a Point: A function f(x)f(x) is differentiable at a point x=ax=a if the limit of the difference quotient exists. For a piecewise function, this implies that the function must be continuous at the point where the definition changes, and the left-hand and right-hand derivatives must be equal at that point.
  • Twice Differentiability: For a function to be twice differentiable at a point x=ax=a, its first derivative f(x)f'(x) must be differentiable at x=ax=a. This means f(x)f'(x) must be continuous at x=ax=a, and the left-hand and right-hand derivatives of f(x)f'(x) must be equal at x=ax=a. Equivalently, the second derivative f(x)f''(x) must exist on both sides of aa, and the limits of f(x)f''(x) as xx approaches aa from the left and right must be equal.
  • Derivatives of Basic Functions:
    • ddx(c)=0\frac{d}{dx}(c) = 0
    • ddx(xn)=nxn1\frac{d}{dx}(x^n) = nx^{n-1}
    • ddx(cosx)=sinx\frac{d}{dx}(\cos x) = -\sin x

Step-by-Step Solution

  1. State the given function: We are given the piecewise function: f\left( x \right) = \left\{ {\matrix{ {{k_1}{{\left( {x - \pi } \right)}^2} - 1,} & {x \le \pi } \cr {{k_2}\cos x,} & {x > \pi } \cr } } \right. We are told that f(x)f(x) is twice differentiable.

  2. Calculate the first derivative, f(x)f'(x): To find f(x)f'(x), we differentiate each piece of the function with respect to xx:

    • For x<πx < \pi, f(x)=k1(xπ)21f(x) = k_1(x - \pi)^2 - 1. Differentiating, we get ddx(k1(xπ)21)=k12(xπ)10=2k1(xπ)\frac{d}{dx}(k_1(x - \pi)^2 - 1) = k_1 \cdot 2(x - \pi) \cdot 1 - 0 = 2k_1(x - \pi).
    • For x>πx > \pi, f(x)=k2cosxf(x) = k_2\cos x. Differentiating, we get ddx(k2cosx)=k2(sinx)=k2sinx\frac{d}{dx}(k_2\cos x) = k_2(-\sin x) = -k_2\sin x. So, the first derivative is: f'\left( x \right) = \left\{ {\matrix{ {2{k_1}\left( {x - \pi } \right),} & {x < \pi } \cr { - {k_2}\sin x,} & {x > \pi } \cr } } \right. Since f(x)f(x) is differentiable, it must be continuous at x=πx=\pi. This means limxπf(x)=limxπ+f(x)=f(π)\lim_{x \to \pi^-} f(x) = \lim_{x \to \pi^+} f(x) = f(\pi). f(π)=k1(ππ)21=1f(\pi) = k_1(\pi - \pi)^2 - 1 = -1. limxπ+f(x)=limxπ+k2cosx=k2cosπ=k2\lim_{x \to \pi^+} f(x) = \lim_{x \to \pi^+} k_2\cos x = k_2\cos \pi = -k_2. Therefore, 1=k2-1 = -k_2, which implies k2=1k_2 = 1. Also, for f(x)f'(x) to be differentiable at x=πx=\pi, it must be continuous at x=πx=\pi. This means limxπf(x)=limxπ+f(x)\lim_{x \to \pi^-} f'(x) = \lim_{x \to \pi^+} f'(x). limxπf(x)=limxπ2k1(xπ)=2k1(ππ)=0\lim_{x \to \pi^-} f'(x) = \lim_{x \to \pi^-} 2k_1(x - \pi) = 2k_1(\pi - \pi) = 0. limxπ+f(x)=limxπ+k2sinx=k2sinπ=k20=0\lim_{x \to \pi^+} f'(x) = \lim_{x \to \pi^+} -k_2\sin x = -k_2\sin \pi = -k_2 \cdot 0 = 0. This condition 0=00=0 is always satisfied and does not give us any new information about k1k_1 or k2k_2.
  3. Calculate the second derivative, f(x)f''(x): To find f(x)f''(x), we differentiate f(x)f'(x) with respect to xx:

    • For x<πx < \pi, f(x)=2k1(xπ)f'(x) = 2k_1(x - \pi). Differentiating, we get ddx(2k1(xπ))=2k11=2k1\frac{d}{dx}(2k_1(x - \pi)) = 2k_1 \cdot 1 = 2k_1.
    • For x>πx > \pi, f(x)=k2sinxf'(x) = -k_2\sin x. Differentiating, we get ddx(k2sinx)=k2cosx\frac{d}{dx}(-k_2\sin x) = -k_2\cos x. So, the second derivative is: f''\left( x \right) = \left\{ {\matrix{ {2{k_1},} & {x < \pi } \cr { - {k_2}\cos x,} & {x > \pi } \cr } } \right.
  4. Apply the condition for twice differentiability at x=πx=\pi: For f(x)f(x) to be twice differentiable at x=πx=\pi, the first derivative f(x)f'(x) must be differentiable at x=πx=\pi. This means that the second derivative f(x)f''(x) must exist on both sides of π\pi, and the limit of f(x)f''(x) as xx approaches π\pi from the left must be equal to the limit of f(x)f''(x) as xx approaches π\pi from the right. We need to evaluate the limits of f(x)f''(x) as xπx \to \pi^- and xπ+x \to \pi^+:

    • limxπf(x)=limxπ2k1=2k1\lim_{x \to \pi^-} f''(x) = \lim_{x \to \pi^-} 2k_1 = 2k_1.
    • limxπ+f(x)=limxπ+(k2cosx)=k2cosπ=k2(1)=k2\lim_{x \to \pi^+} f''(x) = \lim_{x \to \pi^+} (-k_2\cos x) = -k_2\cos \pi = -k_2(-1) = k_2.

    For f(x)f''(x) to be continuous at x=πx=\pi, these two limits must be equal: 2k1=k22k_1 = k_2

  5. Combine the conditions and solve for (k1,k2)(k_1, k_2): From step 2, we found that k2=1k_2 = 1 for the function to be continuous. From step 4, we found the condition 2k1=k22k_1 = k_2 for the function to be twice differentiable. Substituting k2=1k_2 = 1 into the second equation: 2k1=12k_1 = 1 k1=12k_1 = \frac{1}{2}

    Therefore, the ordered pair is (k1,k2)=(12,1)(k_1, k_2) = \left(\frac{1}{2}, 1\right).

Common Mistakes & Tips

  • Confusing Differentiability and Continuity: Remember that differentiability at a point implies continuity at that point. However, continuity does not guarantee differentiability. For piecewise functions, ensure both continuity and the equality of derivative limits are checked at the junction point.
  • Incorrectly Differentiating Piecewise Functions: When differentiating, apply the chain rule correctly for each piece. The derivative of (xπ)2(x-\pi)^2 is 2(xπ)2(x-\pi), not just 2x2x.
  • Forgetting the Second Derivative Condition: The problem states the function is twice differentiable. This means the first derivative must be differentiable, which implies the second derivative must be continuous at the junction point.

Summary

The problem requires finding the values of k1k_1 and k2k_2 such that the given piecewise function is twice differentiable. This involves ensuring continuity of the function at x=πx=\pi and continuity of its first derivative at x=πx=\pi. We first calculated the first derivative and used the continuity condition of the original function at x=πx=\pi to find k2=1k_2=1. Then, we calculated the second derivative and used the continuity condition of the first derivative (which means the limits of the second derivative from both sides must be equal) at x=πx=\pi to establish a relationship between k1k_1 and k2k_2. Finally, by combining these conditions, we found k1=12k_1 = \frac{1}{2} and k2=1k_2 = 1.

The final answer is \boxed{\left( {{1 \over 2},1} \right)}. This corresponds to option (D).

Practice More Limits, Continuity & Differentiability Questions

View All Questions