- We are given the linear differential equation
dxdy+2ysec2x=2sec2x+3tanxsec2x
with initial condition
y(0)=45.
- Write it in standard linear form:
dxdy+P(x)y=Q(x),
where
P(x)=2sec2x,Q(x)=2sec2x+3tanxsec2x.
- Find the integrating factor:
I.F.=e∫2sec2xdx=e2tanx.
- Multiply the differential equation by the integrating factor:
e2tanxdxdy+2sec2xe2tanxy=(2sec2x+3tanxsec2x)e2tanx.
The left-hand side becomes
dxd(ye2tanx).
So,
dxd(ye2tanx)=(2sec2x+3tanxsec2x)e2tanx.
- Integrate both sides. Let
t=2tanx⇒dt=2sec2xdx.
Then
∫(2sec2x+3tanxsec2x)e2tanxdx
can be simplified using u=tanx, so du=sec2xdx:
∫(2+3u)e2udu.
Now evaluate:
∫(2+3u)e2udu.
Notice that
dud(23ue2u+41e2u)=23e2u+3ue2u+21e2u=(2+3u)e2u.
Hence,
∫(2+3u)e2udu=23ue2u+41e2u+C.
Substituting back u=tanx,
ye2tanx=23tanxe2tanx+41e2tanx+C.
Therefore,
y=23tanx+41+Ce−2tanx.
- Use the initial condition y(0)=45.
Since tan0=0,
45=23(0)+41+C
so
C=1.
Thus the solution is
y(x)=23tanx+41+e−2tanx.
- Now compute y(4π).
Since tan4π=1,
y(4π)=23(1)+41+e−2=47+e−2.
- Therefore,
y(4π)−e−2=47.
So,
12(y(4π)−e−2)=12⋅47=21.
Hence the required integer is
21.
- Comparison with stored answer:
Stored correct answer = 21, which matches our result.