Solving Differential Equations: Steps & Solutions

  • Thread starter Thread starter madahmad1
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
32 replies · 11K views
madahmad1 said:
Ok, for problem 6, I got dy/dx + 2y/x = 1/x by re-arranging and dividing by x. Since 2y/x is the coefficient then the integrating factor is the same as before x^2.

multiply all sides by x^2 I get, dy/dx(x^2)+ 2xy = x, next we integrate so

x^3/3+c = x^2/2 but how do I get the answer I provided in the beginning with this result?

If you integrate y'x2 + 2xy, you don't get x3, either with or without a constant.

Let's look at a different example, and work it through. Hopefully you will follow what's going on and be able to apply it to your problems.


Problem: Solve y' -4y = 12

This DE is linear, so we can solve it by using an integrating factor. In this case, the integrating factor is
[tex]e^{\int -4 dx} = e^{-4x}[/tex]
Multiply both sides of the equation by the integrating factor, getting
y'e-4x -4ye-4x = 12e-4x

The two terms on the left side are the derivative of ye-4x, which you can check by using the product rule. In other words, d/dx(ye-4x) = y'e-4x -4ye-4x.
The whole purpose of the business of an integrating factor is to multiply y' +p(x)y by whatever it takes so that it becomes the derivative of something.

We're now ready to integrate both sides.

[tex]\int (y'e^{-4x} -4ye^{-4x})dx = \int 12e^{-4x} dx[/tex]

The left side can be simplified, by replacing the integrand with something equal to it, and integrating the right side.
[tex]\int d/dx(ye^{-4x})dx = -3e^{-4x} + C[/tex]

Then, since the integral of the derivative of something is just the something, we have
ye-4x = -3e-4x + C

If we solve for y by multiplying both sides by e4x, we get
y = -3 + Ce4x, the solution to our DE. It's easy to check that this is the solution.
 
Physics news on Phys.org
thx a lot mark but one last favor, can u please show me how u checked using the product rule?