1
$\begingroup$

Given the ODE $y'= \left( \frac{x+2y+1}{2x-6} \right)$

I have tried two methods to solve this equation. One method is seperate variables: $(2x-6 )dy = (x+2y+1)dx $ integrating gives $2(xy-3y)=x^2+2xy+x+c$, simplifying we get $y= -(x^2+x+c)/6 $\

But on the other hand, if I try to solve by using an integrating factor u(x), I get a different solution. The method I used was rewrite in standard linear form, find integrating factor by calculating $u(x) = e^(\int p(x)dx)=1/(3-x)$. In the end I found that the solution was $y=(3-x)(2/(x-3)+1/ log(x-3) + C$

Whats going on?

  • 0
    Ok. The correct reasoning is that y(x) is a function of x, and hence it cannot be seen as a constant if you integrate it2012-11-25

1 Answers 1

4

Remember that $y$ is a function of $x$, so $\int ydx\neq xy$ and $\int xdy\neq xy$.
On the other hand, finding the integration factor is the way to go, so the last solution you wrote is the correct one.