The given differential equation is:
xdxdy−y=x2cotx,x∈(0,π)
with initial condition y(2π)=2π.
First, rewrite the equation in standard linear form:
dxdy−x1y=xcotx
Here, P(x)=−x1 and Q(x)=xcotx.
The integrating factor (I.F.) is:
I.F.=e∫P(x)dx=e∫−x1dx=e−lnx=x1(since x>0)
Multiply both sides by I.F.:
x1dxdy−x21y=cotx
The left side is the derivative of xy:
dxd(xy)=cotx
Integrate both sides:
∫dxd(xy)dx=∫cotxdx
xy=ln∣sinx∣+C
Since x∈(0,π), sinx>0, so:
xy=ln(sinx)+C
Thus, the general solution is:
y=xln(sinx)+Cx
Apply the initial condition y(2π)=2π:
Substitute x=2π, y=2π:
2π=2πln(sin2π)+C⋅2π
sin2π=1, ln(1)=0, so:
2π=0+2Cπ
C=1
Therefore, the particular solution is:
y=xln(sinx)+x=x(ln(sinx)+1)
Now compute y(6π) and y(4π):
For x=6π:
sin6π=21
y(6π)=6π(ln(21)+1)=6π(−ln2+1)
For x=4π:
sin4π=22=21
y(4π)=4π(ln(21)+1)=4π(ln(2−1/2)+1)=4π(−21ln2+1)
Now evaluate the expression:
6y(6π)−8y(4π)=6[6π(1−ln2)]−8[4π(1−21ln2)]
Simplify:
=π(1−ln2)−2π(1−21ln2)
Factor out π:
=π[(1−ln2)−2(1−21ln2)]
Distribute the −2:
=π[1−ln2−2+2⋅21ln2]=π[1−ln2−2+ln2]
Combine like terms:
=π[(1−2)+(−ln2+ln2)]=π[−1+0]=−π
Thus, 6y(6π)−8y(4π)=−π.
The correct answer is option D: −π.