- Separate the variables by multiplying both sides by dx
- Integrate
To do this integration I would first factor out a 2 from the numerator and put it outside the integral giving you:
∫dy = 2∫ (x4 + 2x2 + 4)/(x3 + 4x))dx
Then divide the denominator into the numerator. Doing so gives you "x" with a remainder of "-2x2 + 4" so the differential equation becomes:
∫dy = 2∫ (x + (-2x2 + 4)/(x3 + 4x))dx
Split the right side into two parts like this:
∫dy = 2∫ x dx + 2∫ (-2x2 + 4)/(x3 + 4x))dx
Integrating the left side and the left portion of the right side gives you:
y = 2(1/2x2) + 2∫ (-2x2 + 4)/(x3 + 4x))dx
Factor out a -2 from the numerator of the integral as well as factor the denominator to make it:
y = 2(1/2x2) - 4∫ (x2 - 4)/[(x)(x2 + 4)]dx
Use Partial Fractions to separate the integral into:
y = 2(1/2x2) - 4[∫ -1/x dx + ∫2x/(x2 + 4) dx ]
Then the integrals become log expressions:
y = 2(1/2x2) - 4[-ln(x) + 2ln(x2 + 4)]
Simplify:
y = x2 + 4ln(x) - 4ln(x2 + 4) + C