Question
Mathematics Question on Differential equations
Let the solution y=y(x) of the differential equation dxdy−y=1+4sinx satisfy y(π)=1. Then y(2π)+10 is equal to _____
Given differential equation:
dxdy−y=1+4sinx.
This is a first-order linear differential equation. To solve, we use an integrating factor (IF):
IF=e−x.
Multiplying the entire equation by the integrating factor: e−xdxdy−e−xy=e−x+4e−xsinx.
The left-hand side becomes the derivative of ye−x: dxd(ye−x)=e−x+4e−xsinx.
Integrating both sides:
ye−x=∫(e−x+4e−xsinx)dx.
Evaluating the integral:
ye−x=∫e−xdx+4∫e−xsinxdx.
The first integral is straightforward:
∫e−xdx=−e−x.
For the second integral, we use integration by parts or known results:
4∫e−xsinxdx=−2e−x(sinx+cosx).
Thus: ye−x=−e−x−2e−x(sinx+cosx)+C.
Multiplying through by ex: y=−1−2(sinx+cosx)+Cex.
Using the initial condition y(π)=1:
1=−1−2(sinπ+cosπ)+Ceπ.
Since sinπ=0 and cosπ=−1:
1=−1−2(−1)+Ceπ⟹1=1+Ceπ⟹C=0.
Thus, the solution simplifies to: y=−1−2(sinx+cosx).
Evaluating at x=2π:
y(2π)=−1−2(sin2π+cos2π)=−1−2(1+0)=−3.
Calculating y(2π)+10:
y(2π)+10=−3+10=7.