Answer on Question #40490 – Math – Differential Calculus
Solve the IVP x2y′=cosx−2xy,y(π)=0,x>0 .
Solution:
x2y′=cosx−2xy, whence
y′+x2y=x2cosx,
Let y=uv,u=u(x),v=v(x),y′=u′v+v′u.
Let substitute u′v+v′u+x2uv=x2cosx,u′v+u(v′+x2v)=x2cosx , then
1) v′+x2v=0,
and, 2) u′v=x2cosx.
Let solve 1):
dxdv=−x2v,vdv=−x2dx,lnv=lnx−2,v=x21.
Let solve 2):
x2u′=x2cosx,u′=cosx,du=cosxdx,whenceu=sinx+c, where c be some arbitrary const.
So, y=uv=x2c+sinx,
Let solve IVP y(π)=0,x>0 :
0=π2c+sinπ,c=−sinπ=0.y=x2sinx.
Answer: y=x2sinx.