We need to solve the differential equation dxdy−y=1+4sinx with the condition y(π)=1 and then find y(2π)+10.
This is a first-order linear ODE of the form dxdy+P(x)y=Q(x) where P(x)=−1 and Q(x)=1+4sinx. We use an integrating factor to solve it.
The integrating factor is given by IF=e∫P(x)dx=e∫−1dx=e−x
Multiplying both sides of the original equation by this factor and applying the product rule yields ye−x=∫(1+4sinx)e−xdx+C
The integral of the first term is ∫e−xdx=−e−x.
To evaluate the second integral ∫4sinxe−xdx we use the standard result ∫eaxsin(bx)dx=a2+b2eax(asinbx−bcosbx) with a=−1 and b=1. Hence ∫e−xsinxdx=(−1)2+12e−x(−sinx−cosx)=2e−x(−sinx−cosx) and therefore ∫4sinxe−xdx=4⋅2e−x(−sinx−cosx)=−2e−x(sinx+cosx).
Combining these results gives ye−x=−e−x−2e−x(sinx+cosx)+C.
Multiplying through by ex to solve for y leads to y=−1−2(sinx+cosx)+Cex.
Applying the initial condition y(π)=1 gives the equation 1=−1−2(sinπ+cosπ)+Ceπ. Since sinπ=0 and cosπ=−1 this becomes 1=−1−2(0+(−1))+Ceπ=1+Ceπ, so Ceπ=0 and hence C=0.
Substituting back yields the particular solution y=−1−2(sinx+cosx).
Evaluating at x=2π gives y(2π)=−1−2(sin2π+cos2π)=−1−2(1+0)=−3.
Therefore, y(2π)+10=−3+10=7.
The answer is 7.