Let a and b be real constants such that the function f defined by \[f(x)=\left\{\[x2+3x+abx+2,x≤1,x>1\]\right.\] be differentiable on \[\mathbb{R}\]. Then, the value of \[\int_\limits{-2}^2 f(x) d x\] equals
Solutions · 1
Official solution
To determine the integral of the piecewise function f over the interval \[[-2, 2]\], we first ensure that f is differentiable on \[\mathbb{R}\], as given in the problem statement. Differentiability implies continuity, so f must also be continuous at x=1.
The condition for continuity at x=1 is:
x2+3x+a=bx+2 at x=1.
This simplifies to:
1+3+a=b(1)+2
\[\Rightarrow a = b - 2\]
The first derivative of f gives us two different expressions depending on the value of x:
For \[x \leq 1\], f′(x)=2x+3;
and for x>1, f′(x)=b.
For f to be differentiable at x=1, these derivatives must be equal at that point. Setting f′(1) from both expressions equal to each other gives 2(1)+3=b, thus b=5. And from a=b−2, we have a=3.
Now, we can calculate the integral of f over the specified interval:
\[\int\limits_{-2}^1 (x^2 + 3x + 3) \, dx + \int\limits_{1}^2 (5x + 2) \, dx\]
\[=[3x3+23x2+3x]−21+[25x2+2x]12=(31+23+3)−(3−8+6−6)+(10+4−25−2)=6+23+12−25=17\]