Solution: Consider f(x)=x+sin2x
f′(x)=1+2cos2x
Now, f′(x)=0
1+2cos2x=0
2cos2x=−1
cos2x=−21
2x=32π,34π,38π,310π (as 0≤2x≤4π), so x=3π,32π,34π,35π.
At x=3π,
f(3π)=3π+sin32π=1.05+0.87=1.92 (approx.)
At x=32π,
f(32π)=32π+sin34π=2.10−0.87=1.23 (approx.)
At x=34π,
f(34π)=34π+sin38π=4×1.05+0.87=5.07 (approx.)
At x=35π,
f(35π)=35π+sin310π=5×1.05−0.87=4.38 (approx.)
At x=0,
f(0)=0+sin0=0
At x=2π,
f(2π)=2π+sin4π=2π+0=2×3.14=6.28 (approx.)
Therefore, Maximum value = 2π and Minimum value = 0.