Solving differential equations.

In summary, I was stuck on two homework equations and I was able to solve them with the help of substitution. One was y = xln|d-ln|x|| and the other was y = ±\sqrt{\frac{x}{2} + c}
  • #1
STEMucator
Homework Helper
2,076
140

Homework Statement



I came across two, not so obvious DEs that have stumped me abit.

(1) x2y' = xy + x2ey/x
(2) x2y' + 2xy = 5y3

Homework Equations



I know these are not separable, and more than likely require an integrating factor to put them into exact form so I can integrate them that way.

The Attempt at a Solution



I'm sort of stuck on both of them.

For (1) I divided through by x2 to get y' = y/x + ey/x which further yields y' - y/x = ey/x which is sadly implicit in nature and not solvable by means of a regular integrating factor.

Its the same for (2), once again I divide through by x2 to attain y' + (2/x)y = 5y3/x2 which is once again implicit and not solvable by regular means.

I know I probably need to put these into exact form somehow, but I'm having trouble putting them into the form :

[itex]M(x, y) + N(x, y) \frac{dy}{dx} = 0[/itex] So I can solve for an integrating factor [itex]\mu (x)[/itex] which satisfies :

[tex]\frac{\frac{∂M(x, y)}{∂y} - \frac{∂N(x, y)}{∂x}}{N(x, y)} = \frac{d\mu}{dx}[/tex]
 
Physics news on Phys.org
  • #2
For the first one, try a substitution of y=Vx.
 
  • #3
For the second one, observe x^2y' + 2xy = (x^2y)'.
 
  • #4
voko said:
For the second one, observe x^2y' + 2xy = (x^2y)'.

I didn't know what substitution was, but I learned it quickly and I managed to get the solution to the first equation to be :

-e-y/x = ln|x| + c which I decided to obviously leave implicit as no real solutions of y would exist.

As for the second equation, voko you mentioned I could re-write this as :

d/dx [x2y] = 5y3 I'm not sure how this would help though?
 
  • #5
What is in square brackets is another function u(x). Can you express y via x and u?

Speaking of the first one, consider the case when c is a large negative constant.
 
  • #6
voko said:
What is in square brackets is another function u(x). Can you express y via x and u?

Speaking of the first one, consider the case when c is a large negative constant.

So for the first one I COULD re-write it as :

y = xln|d-ln|x|| where d is some arbitrary constant ( I get d after some arithmetic ).

As for the second one, are you hinting that a substitution v(x) = x2y which simplifies to x-2v(x) = y is what I need here?
 
  • #7
For the first one, I think it should be y = -x ln...

The second one, try :)
 
  • #8
voko said:
For the first one, I think it should be y = -x ln...

The second one, try :)

For the first one when I integrate and sub back m obvious choice of v = y/x I get :

-e^-y/x = ln|x| + c
e^-y/x = d - ln|x|
-y/x = ln|d - ln|x||
y = -xln|d-ln|x||

I c wut u did thur.

As for the second one I get the answer as : y = ±[itex]\sqrt{\frac{x}{2} + c}[/itex]

I think that's good?
 
  • #9
I do not think the second result is correct. Please show your steps.
 
  • #10
voko said:
I do not think the second result is correct. Please show your steps.

x2y' + 2xy = 5y3
d/dx [x2y] = 5y3

Substituting v = x2y yields :

dv/dx = 5y3

Also notice that y = vx-2 so :

dv/dx = 5(vx-2)3
dv/dx = 5v3x-6

Separating variables and integrating gives us :

-(1/2v2) = -x-5 + c

Subbing back v = x2y and simplifying :

-(1/2(x2y)2 = -x-5 + c
2x4y2 = x5+c
y2 = x/2 + c/x4
y = ±[itex]\sqrt{\frac{x}{2} + \frac{c}{x^4}}[/itex]

I really should write my steps out haha.
 
  • #11
Zondrina said:
-(1/2(x2y)2 = -x-5 + c

Good so far.

2x4y2 = x5+c

Wrong, both the LHS and the RHS.
 
  • #12
voko said:
Good so far.

Wrong, both the LHS and the RHS.

Oh snap, silly mistake. I should also stop rushing when showing my work.

-(1/2(x2y)2) = -x-5 + c
1/(2x4y2) = x-5 - c
2x4y2 = 1/(x-5-c)
y2 = 1/(2x4(x-5-c))

y = ±[itex]\sqrt{\frac{1}{2x^4(x^{-5}-c)}}[/itex]
 
  • #13
That's better :) To be completely sure, you could try and plug that into the original equation.
 
  • #14
voko said:
That's better :) To be completely sure, you could try and plug that into the original equation.

Yup it works perfectly. Although I DO have a technicality question out of my own curiosity.

Say I was given an initial condition y(x0) = y0.

If y0 > 0, then the solution corresponds to the positive portion of y.

If y0 < 0, then the solution corresponds to the negative portion of y.

Now if y0 = 0, I'm not really sure what happens here? Which solution would I pick or would it never be the case that y0 = 0 because y is discontinuous there regardless of my choice. Seems logical, but some confirmation would be nice.

Thanks for all your help btw :)
 
  • #15
y = 0 is a singular solution in this equation. It corresponds to an infinite c. Note the regular solutions approach it as x goes to zero.
 
  • #16
voko said:
y = 0 is a singular solution in this equation. It corresponds to an infinite c. Note the regular solutions approach it as x goes to zero.

Ahh I see. That makes sense now, thank you.
 

FAQ: Solving differential equations.

What are differential equations?

Differential equations are mathematical equations that describe how a quantity changes over time, based on its current value and the rate at which it is changing. They are used to model a wide range of real-world phenomena, from the growth of populations to the flow of electricity.

Why is it important to solve differential equations?

Solving differential equations allows us to understand and predict the behavior of systems over time. This is crucial in fields such as physics, engineering, economics, and biology, where the ability to model and control complex systems is essential.

What methods are used to solve differential equations?

There are several methods for solving differential equations, including separation of variables, substitution, and using integrating factors. Depending on the type of differential equation (e.g. linear or nonlinear) and its order (e.g. first-order or second-order), different methods may be more effective.

How do you check the accuracy of a solution to a differential equation?

To check the accuracy of a solution, you can plug it back into the original differential equation and see if it satisfies the equation. Additionally, you can compare it to other known solutions or use numerical methods to approximate the solution.

Can differential equations be solved analytically?

Some differential equations can be solved analytically, meaning an exact, closed-form solution can be found. However, many differential equations cannot be solved analytically and require numerical methods to find an approximate solution. This is especially true for nonlinear and higher-order differential equations.

Back
Top