Analyzing the Setup
My dear student, welcome to the heart of calculus. Today, we are going to dissect a problem that is a favorite in the JEE Advanced arena. It is not just about crunching numbers; it is about understanding the 'smoothness' of a function.
We are dealing with a composite function, h(x)=g(f(x)), and we are tasked with ensuring it is differentiable at the critical point x=0. Let us embark on this journey together.
The Relay Race of Functions
Imagine f(x) and g(x) as two machines in a factory. f(x) takes an input x, processes it, and spits out a value, which is then immediately fed into g(x).
We are given:
f(x)={−∣x+3∣ex,x<0,x≥0
g(x)={x2+k1x4x+k2,x<0,x≥0
For
x≥0,
f(x)=ex. Since
ex≥1 for all
x≥0, the output of
f(x) is strictly positive, requiring the branch
g(x)=4x+k2. Thus, for
x≥0, our composite function becomes:
h(x)=4ex+k2
For
x<0, we look at
f(x)=−∣x+3∣. In the neighborhood of zero,
x+3 is positive, so
f(x)=−(x+3). Since this value is negative, we use the branch
g(x)=x2+k1x:
h(x)=(−(x+3))2+k1(−(x+3))=(x+3)2−k1(x+3)
The Bridge of Continuity
For a function to be differentiable at a point, it must first be continuous. It cannot have a 'jump' or a 'break' at x=0.
We equate the limits of our two branches at
x=0:
x→0−limh(x)=x→0+limh(x)
Substituting our expressions:
LHL:(0+3)2−k1(0+3)=9−3k1
RHL:4e0+k2=4+k2
Equating them gives us our first vital constraint:
3k1+k2=5
The Calculus of Smoothness
Differentiability means the slope of the curve coming from the left must perfectly match the slope of the curve coming from the right.
Let us find the derivatives of our branches:
For the right branch (
x≥0):
h′(x)=dxd(4ex+k2)=4ex⇒h′(0+)=4
For the left branch (
x<0):
h′(x)=dxd((x+3)2−k1(x+3))=2(x+3)−k1⇒h′(0−)=6−k1
For the function to be differentiable, we must have
h′(0−)=h′(0+):
6−k1=4⇒k1=2
Substituting
k1=2 into our continuity equation
3k1+k2=5:
3(2)+k2=5⇒6+k2=5⇒k2=−1
The Final Victory
We have defined our function h(x) completely. Now, we evaluate the final expression: (gof)(−4)+(gof)(4).
For x=−4, f(−4)=−∣−4+3∣=−1. Then g(−1)=(−1)2+2(−1)=1−2=−1. So, h(−4)=−1.
For
x=4,
f(4)=e4. Since
e4>0, we use the second branch of
g:
g(e4)=4e4+k2=4e4−1
Adding them together:
Sum=−1+(4e4−1)=4e4−2
There it is! You have navigated the piecewise definitions, enforced the continuity, matched the slopes, and arrived at the truth. This is the power of calculus—taking complex, fragmented pieces and weaving them into a single, coherent, and beautiful mathematical reality.