f(x)=ex(sinx−cosx),xϵ[π4,5π4]
Sine, cosine and exponential function are always continuous.
∴ Given function is continuous in [π4,5π4]
Differentiating w.r. to x, we get
f′(x)=ex(cosx+sinx)+(sinx−cosx)ex
=ex[cosx+sinx+sinx−cosx]
=2exsinx
Which exists for all x.
f(π/4)=eπ/4(1√2−1√2)=0
and f(5π/4)=e5π/4(−1√2+1√2)=0
∴f(π/4=f(5π/4)=0
∴ The given function statisfies all three condition of Rolle's theorem.
For maxima or minima
f′(x)=0
2exsinx=0
sinx=0
x=nπ+(−1)n(0)
x=nπ
x=π
∵π lies between [π4,5π4] so Rolle's theorem is verified.