We have f(x)=ex(sinx−cosx)in(π4,5π4).
f′(x)=2exsinx ...(1)
Rf′(x)=limh→0f(x+h)−f(x)h
=limh→02ex+hsin(x+h)−2exsinxh
=2ex(cosx+sinx)
Lf′(x)=limh→0f(x−h)−f(x)−h=2ex(cosx+sinx)
⇒Lf′(x)=Rf(x)
⇒f′(x) exists for all values of x in [π/4,5π/4]
Now, f(π4)=eπ4[sin(π4)−cos(π4)]=0
f(5π4)=e5π4[sin(5π4)−cos(5π4)]=0
∴f(π4)=f(5π4).
Since f(x) is differentiable for all values of x in [π4,5π4].
Hence, all three condition of Rolle's theorem are satisfied. Therefore, there exists a point cϵ(π4,5π4) such that f′(c)=0.