The graph of the function y=f(x) passes through the point (0,1) and satisfies the differential equation dydx+ycosx=cosx. Then which of the following is/are true regarding f(x):
A
It is a constant function
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
It is periodic
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
It is neither an even nor an odd function
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
It is continuous and differentiable for all x
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is D It is continuous and differentiable for all x dydx+ycosx=cosx(linear)
On comparing with dydx+Py=Q,
We get P=cosx and Q=cosx
I.F. =e∫cosxdx=esinx ∴ Solution is yesinx=∫esinxcosxdx=esinx+c
When x=0,y=1 then c=0 ⇒y=1.
Clearly the function is a constant function and hence periodic. Also it is continuous and differentiable for all x.