16

Answers to this question Homogeneous differential equation $\frac{dy}{dx} = \frac{y}{x}$ solution? assert that to find a solution to the differential equation $$\dfrac{dy}{dx} = \dfrac{y}{x}$$ we may rearrange and integrate $$\int \frac{1}{y}\ dy=\int \frac{1}{x}\ dx.$$ If we perform the integration we get $\log y=\log x+c$ or $$y=kx$$ for constants $c,k \in \mathbb{R}$. I've seen others use methods like this before too, but I'm unsure why it works.

Question: Why is it legitimate to solve the differential equation in this way?

  • @Amzoti I don't think your link explains why the method is valid. In particular, I think the OP is asking what $dy/y = dx/x$ means. (And if it has no formal meaning, how can the argument be valid?) – Trevor Wilson Sep 04 '13 at 01:15
  • Yes the ODE. In other words then, why is it legitimate to solve separable ODEs in this manner? Or perhaps, why does it work? We can manipulate the equation in all sorts of ways, most of which won't be useful; why do this? – Rebecca J. Stones Sep 04 '13 at 01:15
  • @Rebecca In short, this calculational technique is the u-substitution theorem which more or less is the integration-version of the chain rule. Ultimately, the legitimacy is evidenced by the success of the method. – James S. Cook Sep 04 '13 at 01:15
  • 1
    @TrevorWilson: Fair enough, she can look at http://math.bd.psu.edu/faculty/jprevite/251f11/250bookSec2.1.pdf for the actual proof of the method. – Amzoti Sep 04 '13 at 01:17
  • It is justified by the chain rule – obataku Sep 04 '13 at 12:43

4 Answers4

16

You start with $$ y'=\frac{y}{x}\implies \frac{y'}{y}=\frac{1}{x}\implies\int\frac{y'dx}{y}=\int \frac{dx}{x}, $$ and you make the change of variables in the first integral, which results in what you've written $$ \int\frac{dy}{y}=\int \frac{dx}{x} $$

Artem
  • 14,414
  • Thanks! I quite like this answer in particular, as it highlights the change of variables (which seems to be the crux of the technique). Thanks for the other answers too! – Rebecca J. Stones Sep 04 '13 at 01:34
16

To be honest I think it's BS to teach separable variables like this without the Riemann-Stieljes integral.
The way I solve them is by doing what actually is done: integrate with respect to $x$ on both sides.


Remember that $y$ is a function (on the variable $x$). So your differential equation is, for all $x$ in a certain interval, $y'(x)=\dfrac{y(x)}{x}$ or equivalently $\dfrac{y'(x)}{y(x)}=\dfrac {1}{x}$and integrating with respect to $x$ you get the desired result.

In my opinion integrating with respect to $y$ is nothing more than a cheap trick, the same way $\dfrac{dy}{dx}=1\iff dy=dx$ is a cheap trick. It works only because of some higher math.


More generally, if you can rewrite your DE as $g(y(x))y'(x)=f(x)$ for some functions $f$ and $g$ that have antiderivatives, $F$ and $G$, in the given interval, then $g(y(x))y'(x)=f(x)\iff G(y(x))=F(x)+C$, for some $C\in \Bbb R$. (To establish $\Longleftarrow$ just differentiate). And if we're lucky enough for $G$ to be invertible, we get $y(x)=G^{-1}\left(F(x)+C\right)$. If $G$ isn't invertible, then hopefully the implicit function theorem will yield the solutions to the DE implicitly by the equation $G(y(x))=F(x)+C$.

In your example $g$ is the function $t\mapsto \dfrac{1}{t}$ which has $t\to \log (|t|)$ as an antiderivative. (Don't forget the absolute value).

Git Gud
  • 31,356
  • 1
    I agree, and this caused me a lot of confusion when I was first learning ODEs. – littleO Sep 04 '13 at 01:20
  • @GitGud Know of a short paper that one can read that will explain this with the needed measure theory you refered to? – yiyi Sep 04 '13 at 01:58
  • 2
    Why is measure theory needed here? Generally the problems encountered in a first course in ODEs have functions nice enough that the Riemann integral suffices to handle them. – Potato Sep 04 '13 at 02:28
  • @Potato What meaning do you give to $\displaystyle \int \dfrac{y'(x)}{y(x)}dy(x)$, (which is the implied meaning of integrating with respect to $y$), in the context of Riemann Integral? – Git Gud Sep 04 '13 at 09:12
  • Ok, so it's technically a Riemann-Stieljes integral, which isn't much harder than a normal Riemann integral. I still don't see why one needs measure theory. – Potato Sep 04 '13 at 12:04
  • @Potato I include, perhaps wrongly, Riemann-Stieljes in Measure Theory. If I am indeed wrong in that inclusion, my point doesn't change, it's a matter of terminology. Calculus students still don't know about that stuff. – Git Gud Sep 04 '13 at 12:12
  • @Potato In any case its better to be more specific than less and so I edited my answer. – Git Gud Sep 04 '13 at 12:24
  • 1
    But in any case, as @GitGud showed in his answer, we can solve this ODE just fine without using Riemann-Stieltjes integration or anything fancy. (In fact, we only need to know that if $f' = g'$ on some open integral, then $f$ and $g$ differ by a constant on that interval.) – littleO Sep 04 '13 at 20:41
  • @GitGud You can develop the Riemann-Stieltjes theory in the same way as the Riemann theory, without any measure theory at all. See Rudin's Principles of Mathematical Analysis, for example. – Potato Sep 04 '13 at 21:34
  • @Potato Ok, thanks. – Git Gud Sep 04 '13 at 21:35
  • 1
    No problem. Nice answer, by the way. – Potato Sep 04 '13 at 21:48
7

I don't like the notation that's often used when solving ODEs. I'd prefer to write the solution like this:

\begin{align} & y'(x) = \frac{y(x)}{x} \quad \text{for all }x > 0 \\ \implies & \frac{y'(x)}{y(x)} = \frac{1}{x} \quad \text{for all }x > 0 \\ \implies & \log y(x) = \log x + C \quad \text{for all } x > 0 \,(\text{for some } C \in \mathbb R). \end{align}

(I'm assuming $y(x) > 0$ for all $x>0$.)

littleO
  • 51,938
0

$$\frac{dy}{dx} = \frac{y}{x} \implies (\frac{dy}{dx})\times \frac{1}{y} = \frac{1}{x}$$ ... integrating both sides wrt to $dx$ gives

$$\int \frac{1}{y}(\frac{dy}{dx})dx = \int\frac{1}{x}dx => \int \frac{1}{y}dy = \int \frac{1}{x}dx$$

So we are not integrating each side with respect to different variables, but with respect to $x$, and $(dy/dx)*dx = dy$, which then allows integration by the separate variables.

Joe
  • 1