Question Statement
Solve the differential equation:
dxdy=y2+4
subject to the initial condition y(0)=−2.
Background and Explanation
This is a first-order separable differential equation. The solution method involves rearranging the equation so that all terms involving y are on one side and all terms involving x are on the other, then integrating both sides. This requires the standard arctangent integration formula.
Solution
We begin with the given differential equation and initial condition:
dxdy=y2+4;y(0)=−2
To separate the variables, divide both sides by (y2+4) and multiply by dx:
y2+4dy=dx
Recognizing that 4=22, we rewrite and integrate:
∫(y)2+(2)2dy=∫dx
Using the integration formula ∫y2+a2dy=a1tan−1(ay)+C:
21tan−1(2y)=x+c(1)
We are given y(0)=−2, which means when x=0, y=−2. Substituting into equation (1):
21tan−1(2−2)21tan−1(−1)21(−4π)c=0+c=c=c=−8π
Note: tan−1(−1)=−4π (the principal value, since tan(−4π)=−1).
Substituting c=−8π back into equation (1), we obtain the implicit solution:
21tan−1(2y)=x−8π
This can also be written explicitly by solving for y:
y=2tan(2x−4π)
- Separation of variables: For dxdy=f(x)g(y), rearrange to g(y)dy=f(x)dx
- Arctangent integral: ∫y2+a2dy=a1tan−1(ay)+C
- Principal value: tan−1(−1)=−4π
- Initial value condition: Substitute given (x0,y0) to solve for the constant of integration c
Summary of Steps
- Separate variables: Rearrange to get y2+4dy=dx
- Integrate: Use the arctangent formula to obtain 21tan−1(2y)=x+c
- Find constant: Substitute x=0 and y=−2 to calculate c=−8π
- Final solution: 21tan−1(2y)=x−8π, or equivalently y=2tan(2x−4π)