The given differential equation can be rearranged into a standard linear form.
y1dxdy−y2excosx=1
Multiply the entire equation by y to remove the denominator.
dxdy−2excosx=y
Bring the y term to the left side to form a first-order linear differential equation.
dxdy−y=2excosx
This equation is of the standard form dxdy+P(x)y=Q(x), where P(x)=−1 and Q(x)=2excosx.
Next, calculate the integrating factor (IF).
IF=e∫P(x)dx=e∫−1dx=e−x
Multiply both sides of the differential equation by the integrating factor.
The left side simplifies to the derivative of the product of y and the IF.
e−xdxdy−e−xy=2exe−xcosx
dxd(ye−x)=2cosx
Integrate both sides with respect to x.
∫dxd(ye−x)dx=∫2cosxdx
ye−x=2sinx+C
Use the given initial condition y(0)=0 to find the constant of integration C.
Substitute x=0 and y=0 into the equation.
0⋅e−0=2sin(0)+C
0=0+C
C=0
Substitute C=0 back into the general solution to obtain the particular solution.
ye−x=2sinx
y=2exsinx
Finally, evaluate the function at x=2π.
y(2π)=2e2πsin(2π)
Since sin(2π)=1, the expression simplifies to the final answer.
y(2π)=2e2π