The correct option is
B Given :
y=x+cosx,y(0)=1
⇒y′=1−sinx≥0
So,
y is always increasing
Now,
y′′=−cosx
⇒y′′(0)=0,x=(2n+1)π2,n∈Z (points of inflection)
For,
y′′>0,cosx<0
⇒(4n+1)π2<x<(4n+3)π2 (concave up)
and for
y′′<0,cosx>0
⇒(4n−1)π2<x<(4n+1)π2 (concave down)
Also,
y(−3π2)=−3π2, y(−π2)=−π2,
y(π2)=π2, y(3π2)=3π2
Now, plotting the graph :