Let a and b be real constants such that the function f defined by f(x)=x2+3x+abx+2,x≤1,x>1 be differentiable on R. Then, the value of ∫−22f(x)dx 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 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⇒a=b−2
The first derivative of f gives us two different expressions depending on the value of x:
For x≤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:
∫−21(x2+3x+3)dx+∫12(5x+2)dx=[3x3+23x2+3x]1−2+[25x2+2x]21=(31+23+3)−(3−8+6−6)+(10+4−25−2)=6+23+12−25=17