Given dxdy+ytanx=2x+x2tanx
This is a linear differential equation of the type dxdy+Py=Q, where P=\mathrm{tan}x&Q=2x+{x}^{2}\mathrm{tan}x
Now, the integrating factor I.F.=e∫Pdx=e∫tanxdx
=elnsecx=secx
And, the general solution is y(I.F.)=∫Q(I.F.)dx+c
y⋅secx=∫(2x+x2tanx)secxdx+c
⇒ysecx=∫2xsecxdx+∫x2(secx⋅tanx)dx+c
Using integration by parts in the second integral, we get
⇒ysecx=∫2xsecxdx+x2∫(secx⋅tanx)dx−∫(dxd(x2)∫(secx⋅tanx))dx+c
⇒ysecx=∫2xsecxdx+x2∫secxdx−∫2xsecxdx+c
⇒ysecx=x2secx+c
⇒y=x2+c⋅cosx
Now, y(0)=1
⇒0+c=1⇒c=1
So, y=x2+cosx
Hence, y(4π)=16π2+21 and y(−4π)=16π2+21
Differentiating y(x) with respect to x
⇒y′(x)=2x−sinx
Hence, y′(4π)=2π−21 and y′(−4π)=−2π+21
⇒y′(4π)−y′(−4π)=π−2.