Key Concepts and Formulas
- First-Order Linear Differential Equation: A differential equation of the form dxdy+P(x)y=Q(x).
- Integrating Factor (IF): A function used to solve first-order linear differential equations, given by IF=e∫P(x)dx.
- General Solution: The general solution to a first-order linear differential equation is given by y⋅(IF)=∫Q(x)⋅(IF)dx+C, where C is the constant of integration.
Step-by-Step Solution
Step 1: Identify the Differential Equation and Standard Form
We are given the differential equation:
dxdy−y=1+4sinx
Our goal is to recognize this as a first-order linear differential equation and express it in standard form, which is dxdy+P(x)y=Q(x).
Comparing the given equation with the standard form, we identify:
P(x)=−1
Q(x)=1+4sinx
This identification is crucial because P(x) and Q(x) are needed to calculate the integrating factor and subsequently solve the equation.
Step 2: Calculate the Integrating Factor (IF)
The integrating factor is calculated using the formula:
IF=e∫P(x)dx
Substituting P(x)=−1, we have:
IF=e∫−1dx=e−x
The integrating factor e−x will transform the left-hand side of the differential equation into the derivative of a product, making it directly integrable.
Step 3: Find the General Solution
The general solution of the first-order linear differential equation is given by:
y⋅(IF)=∫Q(x)⋅(IF)dx+C
Substituting IF=e−x and Q(x)=1+4sinx, we get:
ye−x=∫(1+4sinx)e−xdx+C
Now, we need to evaluate the integral. We split it into two parts:
∫(1+4sinx)e−xdx=∫e−xdx+4∫e−xsinxdx
-
Part A: ∫e−xdx
This is a standard integral:
∫e−xdx=−e−x
-
Part B: ∫e−xsinxdx
We can use integration by parts twice, or the formula ∫eaxsin(bx)dx=a2+b2eax(asin(bx)−bcos(bx)). Here, a=−1 and b=1.
∫e−xsinxdx=(−1)2+12e−x(−1⋅sinx−1⋅cosx)=2e−x(−sinx−cosx)
Thus,
4∫e−xsinxdx=4⋅2e−x(−sinx−cosx)=2e−x(−sinx−cosx)
Combining the two parts:
∫(1+4sinx)e−xdx=−e−x+2e−x(−sinx−cosx)
Substituting this back into the general solution equation:
ye−x=−e−x−2e−x(sinx+cosx)+C
Multiplying both sides by ex:
y(x)=−1−2(sinx+cosx)+Cex
Step 4: Apply the Initial Condition
We are given the initial condition y(π)=1. We substitute x=π and y=1 into the general solution to find C:
1=−1−2(sinπ+cosπ)+Ceπ
Since sinπ=0 and cosπ=−1:
1=−1−2(0−1)+Ceπ
1=−1+2+Ceπ
1=1+Ceπ
0=Ceπ
Since eπ=0, we must have C=0.
Substituting C=0 back into the general solution, we get the particular solution:
y(x)=−1−2(sinx+cosx)
Step 5: Evaluate the Expression
We want to find the value of y(2π)+10. First, we find y(2π):
y(2π)=−1−2(sin2π+cos2π)
Since sin2π=1 and cos2π=0:
y(2π)=−1−2(1+0)=−1−2=−3
Now, we compute y(2π)+10:
y(2π)+10=−3+10=7
Common Mistakes & Tips
- Remember to include the constant of integration when finding the general solution.
- Be careful with signs when calculating the integrating factor and evaluating integrals.
- Double-check the values of trigonometric functions at specific angles.
Summary
We solved the first-order linear differential equation using the integrating factor method. After finding the general solution, we used the initial condition to find the particular solution. Finally, we evaluated the expression y(2π)+10 using the particular solution, which resulted in 7.
The final answer is 7.