How Do You Solve the Differential Equation 2y'-xy=1?

  • Thread starter Thread starter dthmnstr
  • Start date Start date
Click For Summary
SUMMARY

The differential equation 2y' - xy = 1 is a linear first-order equation that cannot be solved by separation of variables. The solution involves using an integrating factor, specifically u(x) = e^(-x^2/2), which transforms the equation into an exact derivative. The final solution is expressed as y(x) = e^(x^2/2) ∫_0^x e^(-t^2/2) dt + C, where C is a constant of integration. The integration of e^(-t^2/2) requires the error function for evaluation.

PREREQUISITES
  • Understanding of first-order linear differential equations
  • Knowledge of integrating factors in differential equations
  • Familiarity with the concept of exact derivatives
  • Basic knowledge of the error function and its applications
NEXT STEPS
  • Study the method of integrating factors for linear differential equations
  • Learn about exact derivatives and their significance in solving differential equations
  • Research the error function and its properties for integration
  • Practice solving various first-order linear differential equations
USEFUL FOR

Mathematics students, educators, and anyone involved in solving differential equations, particularly those focusing on linear equations and integrating factors.

dthmnstr
Messages
7
Reaction score
0
hi guys. i seem to have a problem with this: 2y'-xy=1
ive tried many times to separate the two variables to each their respective sides but i always end up with a fraction of either y or x along with the other variable (like 2ydy=xdx+ (1/y)dx or (2y^2dy)/dx=yx+1). my books don't give any examples of similar questions and the internets is lacking. any suggestions on how i go about this? if the entire thing was =0 (2y'-xy=0) then it would be a piece of cake but the =1 is boggling my mind.
 
Physics news on Phys.org
That equation is not "separable" but it is linear- you can use the "integrating factor" method. (Every first order equation has an integrating factor but it is only linear equations in which it is easy to find.)

An integrating factor is a function, u(x) such that multiplying the entire equation by it makes the left side an "exact derivative". That is, (uy)'= uy'- xuy. Since (uy)'= uy'+ u'y by the chain rule, we must have uy'+ u'y= uy'- xuy. That is, u'y= -xuy so u'= -xu which is a separable equation. du/u= -xdx so [itex]ln(u)= -x^2/2[/itex] and [itex]u= e^{-x^2/2}[/itex].

Multiplying both sides of the equation by that gives
[tex]e^{-x^2/2}y'- xe^{-x^2/2}y= (e^{-x^2/2}y)'= e^{-x^2/2}[/tex]
so that
[tex]e^{-x^2/2}y= \int e^{-x^2/2}dx[/tex].

You can write the solution as
[tex]y(x)= e^{x^2/2}\int_0^x e^{-t^2/2}dt+ C[/tex]
where I changed the integral on the right to a definite integral, with dummy variable t and upper limit x, and added a constant so you won't be tempted to make the mistake of canceling the two exponentials.

Of course, you will need something like the "error function" to actually integrate that.
 
hhmmm funny how this is not mentioned in my book, i'll give it a try.
thanks :)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
3
Views
5K
Replies
24
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K