Let y=y(x) be solution of the differential equation, xy′−y=x2(xcosx+sinx),x>0. If y(π)=π, then y′′(π2)+y(π2) is equal to
A
2+π2+π24
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
2+π2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
1+π2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
1+π2+π24
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is B2+π2 Given: xy′−y=x2(xcosx+sinx) ⇒y′−yx=x(xcosx+sinx)
Which is linear equation. ∴I.F.=e−∫(1/x)dx=e−lnx=1x
Now, the general solution, y⋅1x=∫1x.x(xcosx+sinx)dx ⇒yx=∫ddx(xsinx)dx ⇒yx=xsinx+C ⇒y=x2sinx+Cx
Since y(π)=π⇒C=1 ∴y=x2sinx+x⇒y(π2)=π24+π2