The Eulero equation of the functional

$$J[y]=\int_a^b \frac{y'^2}{x^3} \; \mathrm dx,$$

leads to the following differential equation:


I rewrote the equation as


integrating by parts I got:


and by separation of variables:


which is not a solution of the original differential equation. Where did I commit illegal steps?

  • 1
    $\begingroup$ For $c_2 \ne 0$ this is not a solution of $y'x-4y=0.$ $\endgroup$ – Fred Jun 21 '17 at 8:18
  • 1
    $\begingroup$ Don't forget the constant of integration when doing IBP: $$xy'-4y=c$$ Solving gives: $$y=k_1 x^4-\frac{c}{4}$$ $$y=k_1 x^4+k_2$$ $\endgroup$ – projectilemotion Jun 21 '17 at 10:03

You are making a mistake with logarithms. Separating variables you get $$ \begin{align} \frac{y'}{y} &= 4 \frac{1}{x} \\ \implies \mathrm{ln}(y) &= 4 \mathrm{ln}(x) +c \\ \implies \mathrm{ln}(y) &= \mathrm{ln}(x^4) +c \\ \implies y &= Dx^4 \end{align} $$

  • $\begingroup$ what, for example, if $y=x^4+4$ then our equation doesn't hold $y'x-4y=0$, because we get $-16=0$? $\endgroup$ – serg_1 Jun 21 '17 at 8:34
  • 2
    $\begingroup$ $y=x^4+c$ is not correct ! Correct: $y=cx^4$ $\endgroup$ – Fred Jun 21 '17 at 8:48
  • $\begingroup$ Ah, thank you, of course - fixed. $\endgroup$ – Andrew Whelan Jun 21 '17 at 8:50

The general solution of $y'x-4y=0$ is given by


  • $\begingroup$ I know, but how did you get it? $\endgroup$ – Dante Jun 21 '17 at 8:14
  • $\begingroup$ You know ??? You have written $y=4x+c$ . Write $y'x=4y$. Then separation of variables. $\endgroup$ – Fred Jun 21 '17 at 8:17
  • 1
    $\begingroup$ @Dante I think you're making a mistake with exponentiating logarithms in one of your last steps in the separation of variables (easy mistake to make if you do it quickly!) More specifically, you get $\mathrm{ln}(y) = 4 \mathrm{ln}(x) = \mathrm{ln}(x^4)$, then exponentiate. $\endgroup$ – Andrew Whelan Jun 21 '17 at 8:18
  • $\begingroup$ separating the variables, $\frac{y'}{y}=4\frac{1}{x}$ which gives rise to $\ln |y|=4\ln |x|+c$, right? $\endgroup$ – Dante Jun 21 '17 at 8:21
  • $\begingroup$ @AndrewWhelan oh god, yes it was my mistake. Thanks a lot. $\endgroup$ – Dante Jun 21 '17 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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