Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Math-heads, I'm really struggling with the following ODE which has to be solved by the method of variation of constants and perhaps with some initial substitution:

$\frac{dy}{dx} = -2\frac{y}{x}+xy^2$

Any help is much appreciated!

share|cite|improve this question
This OE is not a linear equation! I know that the method is applicable foe linear ones. Please light my mind if I am missing something. – Babak S. Feb 9 '13 at 20:05
Towards making a simplifying substitution, note your equation is a Bernoulli equation. – David Mitra Feb 9 '13 at 20:08
Thanks for the help! The reference to the Bernoulli equation is a game changer! – V. Krumov Feb 9 '13 at 20:58
up vote 2 down vote accepted

Hint: As @David commented correctly, this non linear ODE is a Bernoulli one. For solving it, you can always set $w=y^{1-n}, n\neq 1,~ 0$ in the original ODE to find another linear one. Here you have $n=2$, because of the power of $y$, so $w=y^{-1}$ and then we are lead to solve the linear following ODE: $${-w'}+\frac{2}{x}w=x$$

share|cite|improve this answer
You always give credit to others, and your sportsmanship is commendable, always! +1 – amWhy Feb 10 '13 at 0:16
I knew this OE, but I was confused by the method the OP suggested. In fact, @David Mitra's comment made me sure that my idea was right. Thanks. – Babak S. Feb 10 '13 at 3:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.