Separation of variables to solve DE

In summary: So yes, you integrate the LHS wrt x. In summary, the equation y' + (2/x)y = 3/x^2 can be solved using an integrating factor, after which the general solution is y = \frac{3}{x}+\frac{C}{x^2}. Alternatively, it can also be solved as a non-homogeneous Euler equation, where both sides of the equation are integrated with respect to x.
  • #1
beetle2
111
0

Homework Statement



y' + (2/x)y = 3/x^2

Homework Equations



separation of variables

The Attempt at a Solution



First I turned it into

dy/dx + (2/x)y = 3/x^2 dx


then multiplied both sides by dx

dy + (2/x)y = 3/x^2 dx

I then tried to divide both sides by 2/x and got

dy + y = 3/2x

Do I just integrate both sides now?
 
Last edited:
Physics news on Phys.org
  • #2
Separation of variables won't help (you also made an error when multiplying through the equation with dx). It looks like you'll have to solve this using an integrating factor.
 
  • #3
You also made an error when dividing by (2/x). Make sure that what you do to one term goes for all terms.
 
  • #4
The integrating factor is [itex] e^{\int{\frac{2}{x}dx}[/itex] = [itex]x^2[/itex]

We than use this and multiply both sides by [itex]x^2[/itex]

which gives


[itex]x^2y'+2xy = 3[/itex]

or

[itex]yx^2= 3x+C[/itex]

divide both sides by [itex]x^2[/itex]

[itex]y = \frac{3}{x}+\frac{C}{x^2}[/itex]
 
  • #5
Is this the general solution?
 
  • #6
yes, it's the general solution.
 
  • #7
Also can be solved as a non-homogeneous Euler equation.
 
  • #8
boneill3 said:
which gives


[itex]x^2y'+2xy = 3[/itex]

or

[itex]yx^2= 3x+C[/itex]


I see you integrated on the right side wrt x to get 3x+C

but how did [itex]x^2y'+2xy [/itex] become [itex]yx^2[/itex]? did we integrate the LHS wrt x or y?
 
  • #9
Given a function [tex] f(x,y) [/tex], its total differential with respect to x is [tex] \frac{df}{dx} = \frac{\partial f}{\partial x}\frac{dx}{dx} + \frac{\partial f}{\partial y}\frac{dy}{dx}. [/tex]
 
  • #10
beetle2 said:
I see you integrated on the right side wrt x to get 3x+C

but how did [itex]x^2y'+2xy [/itex] become [itex]yx^2[/itex]? did we integrate the LHS wrt x or y?
You have to treat both sides of the equation the same way. If you integrate the RHS wrt x, you have to integrate the LHS wrt x as well.
 

What is separation of variables?

Separation of variables is a method used to solve differential equations by separating the dependent variables into different functions of the independent variables. This allows the equation to be solved in smaller, simpler parts.

When is separation of variables used?

Separation of variables is typically used for solving linear and homogeneous differential equations with constant coefficients. It is also useful for solving partial differential equations with two or three variables.

How does separation of variables work?

The process of separation of variables involves separating the dependent variables into a product of two functions, each with only one of the independent variables. This allows the equation to be rewritten into two separate equations, which can then be solved separately.

What are the limitations of separation of variables?

While separation of variables is a useful method for solving certain types of differential equations, it is not applicable to all types. It can only be used for linear and homogeneous equations with constant coefficients, and it may not always yield a complete solution.

Are there any tips for using separation of variables to solve DE?

One tip for using separation of variables is to always check for boundary conditions before solving the separate equations. Also, it is important to remember to check the solution for validity before accepting it as the final solution.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
753
  • Calculus and Beyond Homework Help
Replies
25
Views
313
  • Calculus and Beyond Homework Help
Replies
10
Views
419
  • Calculus and Beyond Homework Help
Replies
2
Views
719
  • Calculus and Beyond Homework Help
Replies
15
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
137
  • Calculus and Beyond Homework Help
Replies
24
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
87
  • Calculus and Beyond Homework Help
Replies
3
Views
812
Back
Top