Consider the function
f(x)={−x2−x+1aln(bx)x<2x≥2
(a) Find a and b so that the junction at x=2 is continuous and smooth.
(b) With those values, study relative and absolute maxima and minima and the limits at the ends of the domain.
Solution
(a) Continuous and smooth junction at x=2.
Differentiability: on the left f′(x)=−2x−1⇒f′(2−)=−5; on the right f′(x)=xa⇒f′(2+)=2a. Imposing equality:
2a=−5⇒a=−10.
Continuity: from the left f(2−)=−4−2+1=−5; from the right f(2+)=aln(2b)=−10ln(2b). Imposing −10ln(2b)=−5:
ln(2b)=21⇒2b=e⇒b=2e≈0.8244.
(b) Maxima/minima and limits.
Left branch: parabola with vertex at x=−21, value f(−21)=45 (maximum); at x=2 it equals −5.
Right branch: aln(bx)=−10ln(bx) is decreasing (coefficient a<0) and tends to −∞.
Limits: x→−∞limf=−∞; x→+∞lim(−10ln(bx))=−∞.
So absolute maximumf=45 at x=−21; no minimum (the infimum is −∞).
a=−10,b=2e≈0.8244,fmax=45