Analyzing the Setup
The given differential equation is:
dxdy+2ysec2x=2sec2x+3tanxsec2x
This is a Linear Differential Equation of the form:
By comparing the terms, we identify:
P(x)=2sec2x
Q(x)=2sec2x+3tanxsec2x
The Magic Multiplier
To solve this, we calculate the Integrating Factor (IF):
IF=e∫P(x)dx=e∫2sec2xdx=e2tanx
This IF acts as the engine for our solution, allowing us to condense the left-hand side of the equation.
The Transformation
The general solution is given by the formula y⋅IF=∫Q(x)⋅IFdx. Substituting our known values:
y⋅e2tanx=∫(2sec2x+3tanxsec2x)e2tanxdx
To simplify, we use the substitution u=tanx, which implies du=sec2xdx. The integral becomes:
Integration by Parts
We split the integral into two parts:
∫2e2udu+∫3ue2udu=e2u+(23ue2u−43e2u)+C
Simplifying the expression, we obtain:
y⋅e2tanx=23tanxe2tanx+41e2tanx+C
Dividing by e2tanx, the general solution is:
Final Calculation
We apply the initial condition y(0)=45. Since tan(0)=0:
The particular solution is:
Evaluating at x=4π:
y(4π)=23(1)+41+e−2=47+e−2
The final required value is:
12(y(4π)−e−2)=12(47+e−2−e−2)=12⋅47=21