Skip to main content
Back to Limits, Continuity & Differentiability
JEE Main 2023
Limits, Continuity & Differentiability
Limits, Continuity and Differentiability
Easy

Question

Let f : R \to R be defined as f\left( x \right) = \left\{ {\matrix{ {{x^5}\sin \left( {{1 \over x}} \right) + 5{x^2},} & {x < 0} \cr {0,} & {x = 0} \cr {{x^5}\cos \left( {{1 \over x}} \right) + \lambda {x^2},} & {x > 0} \cr } } \right. The value of λ\lambda for which f ''(0) exists, is _______.

Answer: 5

Solution

Key Concepts and Formulas

  • Existence of Second Derivative: For f(a)f''(a) to exist, the function ff must be twice differentiable at aa. This implies that f(x)f'(x) must exist in an open interval containing aa, and f(a)f'(a) must exist. Furthermore, f(a)f''(a) is defined as the limit of the difference quotient for f(x)f'(x) at aa: f(a)=limh0f(a+h)f(a)hf''(a) = \lim_{h \to 0} \frac{f'(a+h) - f'(a)}{h} For a piecewise function, we need to check the differentiability from both sides at the point where the definition changes.
  • Differentiation Rules: Standard differentiation rules for power functions, trigonometric functions (sine and cosine), and the product rule are required.
  • Limit of Trigonometric Functions: We will use the fact that limx0xnsin(1/x)=0\lim_{x \to 0} x^n \sin(1/x) = 0 and limx0xncos(1/x)=0\lim_{x \to 0} x^n \cos(1/x) = 0 for n>0n > 0.

Step-by-Step Solution

Step 1: Define the function and analyze its continuity at x = 0. The function is given by: f\left( x \right) = \left\{ {\matrix{ {{x^5}\sin \left( {{1 \over x}} \right) + 5{x^2},} & {x < 0} \cr {0,} & {x = 0} \cr {{x^5}\cos \left( {{1 \over x}} \right) + \lambda {x^2},} & {x > 0} \cr } } \right. For f(0)f''(0) to exist, f(x)f(x) must be continuous at x=0x=0. We check the limit as x0x \to 0^-: limx0f(x)=limx0(x5sin(1/x)+5x2)=00+50=0\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} (x^5 \sin(1/x) + 5x^2) = 0 \cdot 0 + 5 \cdot 0 = 0. We check the limit as x0+x \to 0^+: limx0+f(x)=limx0+(x5cos(1/x)+λx2)=00+λ0=0\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} (x^5 \cos(1/x) + \lambda x^2) = 0 \cdot 0 + \lambda \cdot 0 = 0. Since f(0)=0f(0) = 0, the function is continuous at x=0x=0.

Step 2: Calculate the first derivative, f(x)f'(x), for x<0x < 0 and x>0x > 0. For x<0x < 0: f(x)=ddx(x5sin(1/x)+5x2)f'(x) = \frac{d}{dx}(x^5 \sin(1/x) + 5x^2) Using the product rule for x5sin(1/x)x^5 \sin(1/x): ddx(x5sin(1/x))=5x4sin(1/x)+x5cos(1/x)(1/x2)=5x4sin(1/x)x3cos(1/x)\frac{d}{dx}(x^5 \sin(1/x)) = 5x^4 \sin(1/x) + x^5 \cos(1/x) \cdot (-1/x^2) = 5x^4 \sin(1/x) - x^3 \cos(1/x). So, for x<0x < 0, f(x)=5x4sin(1/x)x3cos(1/x)+10xf'(x) = 5x^4 \sin(1/x) - x^3 \cos(1/x) + 10x.

For x>0x > 0: f(x)=ddx(x5cos(1/x)+λx2)f'(x) = \frac{d}{dx}(x^5 \cos(1/x) + \lambda x^2) Using the product rule for x5cos(1/x)x^5 \cos(1/x): ddx(x5cos(1/x))=5x4cos(1/x)+x5(sin(1/x))(1/x2)=5x4cos(1/x)+x3sin(1/x)\frac{d}{dx}(x^5 \cos(1/x)) = 5x^4 \cos(1/x) + x^5 (-\sin(1/x)) \cdot (-1/x^2) = 5x^4 \cos(1/x) + x^3 \sin(1/x). So, for x>0x > 0, f(x)=5x4cos(1/x)+x3sin(1/x)+2λxf'(x) = 5x^4 \cos(1/x) + x^3 \sin(1/x) + 2\lambda x.

Step 3: Calculate the first derivative at x=0x=0, f(0)f'(0). We use the definition of the derivative: f(0)=limh0f(0+h)f(0)h=limh0f(h)hf'(0) = \lim_{h \to 0} \frac{f(0+h) - f(0)}{h} = \lim_{h \to 0} \frac{f(h)}{h}. For h<0h < 0: limh0f(h)h=limh0h5sin(1/h)+5h2h=limh0(h4sin(1/h)+5h)=00+0=0\lim_{h \to 0^-} \frac{f(h)}{h} = \lim_{h \to 0^-} \frac{h^5 \sin(1/h) + 5h^2}{h} = \lim_{h \to 0^-} (h^4 \sin(1/h) + 5h) = 0 \cdot 0 + 0 = 0. For h>0h > 0: limh0+f(h)h=limh0+h5cos(1/h)+λh2h=limh0+(h4cos(1/h)+λh)=00+λ0=0\lim_{h \to 0^+} \frac{f(h)}{h} = \lim_{h \to 0^+} \frac{h^5 \cos(1/h) + \lambda h^2}{h} = \lim_{h \to 0^+} (h^4 \cos(1/h) + \lambda h) = 0 \cdot 0 + \lambda \cdot 0 = 0. Since the left-hand limit and the right-hand limit are equal, f(0)=0f'(0) = 0.

Step 4: Calculate the second derivative, f(x)f''(x), for x<0x < 0 and x>0x > 0. For x<0x < 0: f(x)=5x4sin(1/x)x3cos(1/x)+10xf'(x) = 5x^4 \sin(1/x) - x^3 \cos(1/x) + 10x. f(x)=ddx(5x4sin(1/x)x3cos(1/x)+10x)f''(x) = \frac{d}{dx}(5x^4 \sin(1/x) - x^3 \cos(1/x) + 10x). Differentiating 5x4sin(1/x)5x^4 \sin(1/x): 20x3sin(1/x)+5x4cos(1/x)(1/x2)=20x3sin(1/x)5x2cos(1/x)20x^3 \sin(1/x) + 5x^4 \cos(1/x) \cdot (-1/x^2) = 20x^3 \sin(1/x) - 5x^2 \cos(1/x). Differentiating x3cos(1/x)-x^3 \cos(1/x): 3x2cos(1/x)x3(sin(1/x))(1/x2)=3x2cos(1/x)xsin(1/x)-3x^2 \cos(1/x) - x^3 (-\sin(1/x)) \cdot (-1/x^2) = -3x^2 \cos(1/x) - x \sin(1/x). So, for x<0x < 0, f(x)=(20x3sin(1/x)5x2cos(1/x))(3x2cos(1/x)+xsin(1/x))+10f''(x) = (20x^3 \sin(1/x) - 5x^2 \cos(1/x)) - (3x^2 \cos(1/x) + x \sin(1/x)) + 10 f(x)=20x3sin(1/x)6x2cos(1/x)xsin(1/x)+10f''(x) = 20x^3 \sin(1/x) - 6x^2 \cos(1/x) - x \sin(1/x) + 10.

For x>0x > 0: f(x)=5x4cos(1/x)+x3sin(1/x)+2λxf'(x) = 5x^4 \cos(1/x) + x^3 \sin(1/x) + 2\lambda x. f(x)=ddx(5x4cos(1/x)+x3sin(1/x)+2λx)f''(x) = \frac{d}{dx}(5x^4 \cos(1/x) + x^3 \sin(1/x) + 2\lambda x). Differentiating 5x4cos(1/x)5x^4 \cos(1/x): 20x3cos(1/x)+5x4(sin(1/x))(1/x2)=20x3cos(1/x)+5x2sin(1/x)20x^3 \cos(1/x) + 5x^4 (-\sin(1/x)) \cdot (-1/x^2) = 20x^3 \cos(1/x) + 5x^2 \sin(1/x). Differentiating x3sin(1/x)x^3 \sin(1/x): 3x2sin(1/x)+x3(cos(1/x))(1/x2)=3x2sin(1/x)xcos(1/x)3x^2 \sin(1/x) + x^3 (\cos(1/x)) \cdot (-1/x^2) = 3x^2 \sin(1/x) - x \cos(1/x). So, for x>0x > 0, f(x)=(20x3cos(1/x)+5x2sin(1/x))+(3x2sin(1/x)xcos(1/x))+2λf''(x) = (20x^3 \cos(1/x) + 5x^2 \sin(1/x)) + (3x^2 \sin(1/x) - x \cos(1/x)) + 2\lambda f(x)=20x3cos(1/x)+8x2sin(1/x)xcos(1/x)+2λf''(x) = 20x^3 \cos(1/x) + 8x^2 \sin(1/x) - x \cos(1/x) + 2\lambda.

Step 5: Calculate the second derivative at x=0x=0, f(0)f''(0). We use the definition of the second derivative, which requires the first derivative to be differentiable at x=0x=0. f(0)=limh0f(0+h)f(0)h=limh0f(h)hf''(0) = \lim_{h \to 0} \frac{f'(0+h) - f'(0)}{h} = \lim_{h \to 0} \frac{f'(h)}{h}.

For h<0h < 0: limh0f(h)h=limh05h4sin(1/h)h3cos(1/h)+10hh\lim_{h \to 0^-} \frac{f'(h)}{h} = \lim_{h \to 0^-} \frac{5h^4 \sin(1/h) - h^3 \cos(1/h) + 10h}{h} =limh0(5h3sin(1/h)h2cos(1/h)+10)= \lim_{h \to 0^-} (5h^3 \sin(1/h) - h^2 \cos(1/h) + 10) =50000+10=10= 5 \cdot 0 \cdot 0 - 0 \cdot 0 + 10 = 10. So, f(0)=10f''(0^-) = 10.

For h>0h > 0: limh0+f(h)h=limh0+5h4cos(1/h)+h3sin(1/h)+2λhh\lim_{h \to 0^+} \frac{f'(h)}{h} = \lim_{h \to 0^+} \frac{5h^4 \cos(1/h) + h^3 \sin(1/h) + 2\lambda h}{h} =limh0+(5h3cos(1/h)+h2sin(1/h)+2λ)= \lim_{h \to 0^+} (5h^3 \cos(1/h) + h^2 \sin(1/h) + 2\lambda) =500+00+2λ=2λ= 5 \cdot 0 \cdot 0 + 0 \cdot 0 + 2\lambda = 2\lambda. So, f(0+)=2λf''(0^+) = 2\lambda.

Step 6: Equate the left and right limits of the second derivative to find λ\lambda. For f(0)f''(0) to exist, the left-hand limit and the right-hand limit of the difference quotient for f(x)f'(x) must be equal. f(0)=f(0+)f''(0^-) = f''(0^+) 10=2λ10 = 2\lambda λ=102\lambda = \frac{10}{2} λ=5\lambda = 5.

Common Mistakes & Tips

  • Incorrectly applying limits: When differentiating functions like xnsin(1/x)x^n \sin(1/x) or xncos(1/x)x^n \cos(1/x), remember that sin(1/x)\sin(1/x) and cos(1/x)\cos(1/x) do not have limits as x0x \to 0. However, when multiplied by xnx^n with n>0n > 0, their limits become 0.
  • Forgetting to check continuity and first differentiability: For the second derivative to exist, the function must first be continuous and then differentiable at the point in question. Ensure f(0)f(0) and f(0)f'(0) are correctly evaluated.
  • Algebraic errors in differentiation: Differentiating terms involving 1/x1/x can be prone to sign errors or mistakes with the chain rule. Double-check each step of the differentiation process.

Summary

To ensure the existence of the second derivative f(0)f''(0), we first verified the continuity of the function at x=0x=0. Then, we calculated the first derivative f(x)f'(x) for x<0x<0 and x>0x>0, and confirmed that f(0)=0f'(0)=0. Subsequently, we computed the limits of f(h)h\frac{f'(h)}{h} as h0h \to 0^- and h0+h \to 0^+. For f(0)f''(0) to exist, these two limits must be equal. By equating the left-hand limit (which yielded 10) and the right-hand limit (which yielded 2λ2\lambda), we solved for λ\lambda and found it to be 5.

The final answer is \boxed{5}.

Practice More Limits, Continuity & Differentiability Questions

View All Questions