
Combining both the graph we get,

Both graph cuts each other at y=2 and y=1
∴x2=2
⇒x=2
Two graphs cuts each other at x=1 and x=2
In 0 to 1, f(x)=max(x2,1+[x])=1
In 1 to 2 , f(x)=max(x2,1+[x])=2
In 2 to 2, f(x)=max(x2,1+[x])=x2
∴ 0∫2f(x)dx
=0∫11dx+1∫22dx+2∫2x2dx
=[x]01+2[x]12+[3x3]22
=1+2(2−1)+38−322
=38−1+22−322
=35+362−22
=35+342
=35+42