Given,
f(x)=3−x+2+x
Now differentiation the above function,
f′(x)=23−x−1+22+x1
Point of maxima and minima,
f′(x)=0
⇒22+x3−x3−x−2+x=0
⇒2+x=3−x
⇒x=21
And domain is (−2≤x≤3)

So at x=21, maxima
The maximum value of the function,
f(21)=25+25=10
The minimum value of function at x=−2orx=3
f(−2)=5 and f(3)=5
Therefore, the range of the function,
Range∈[5,10]