3

$$(t+e^y) + \left(\frac{t^2}{2} + 2te^y\right)y' = 0$$

How can i solve this? I've never seen a differential equation like that.

Gibbs
  • 8,480
  • 4
  • 15
  • 29
KHH
  • 31

2 Answers2

2

$$(t+e^y)+\left(\dfrac{t^2}2+2te^y\right)\dfrac{dy}{dt}=0$$ $$\Rightarrow 2(t+e^y)dt+(t^2+4te^y)dy=0$$

$$2tdt+2e^ydt+t^2dy+4te^ydy=0$$ $$$$ On multiplying throughout by $e^y$ (to convert the ODE into an exact ODE) and subsequently rearranging, we get $$$$ $$(2te^ydt+t^2e^ydy)+ 2(2te^{2y}dy+e^{2y}dt)=0$$ $$d(t^2e^y)+d(2e^{2y}t)=0$$ $$t^2e^y+2te^{2y}=C$$ $$$$ Edit: If you (like me) dislike messy looking terms, you can substitute $u=e^y$ in the first step and modify the equation.

User1234
  • 4,296
  • @KHH Kindly consider upvoting and accepting the answers to your questions on this site if the answers help you. – User1234 Jun 07 '18 at 13:43
1

It is an inexact ODE. Let's write it as $$ (t+ \exp y)dt + \left(\frac{t^2}{2} + 2t \exp y \right) dy = M(t,y) dt + N(t,y) dy = 0. $$ It is an inexact differential form, because there is no function $F(t,y)$ such that $$ \frac{\partial F}{\partial t} = M, \ \ \ \frac{\partial F}{\partial y} = N, $$ which is bad, since, if there was such $F$, we could solve the ODE readly. Fortunatelly, if we multiply our ODE by any function $\mu(t,y)$, nothing happens, since the LHS is zero (thanks Dylan for the comment on the homogeneity). The details are in the provided Wikipedia link, but if $$ \frac{1}{M} \left(\frac{\partial M}{\partial y} - \frac{\partial N}{\partial t}\right) = f(y) \ \mathrm{or} \ \frac{1}{N} \left(\frac{\partial M}{\partial y} - \frac{\partial N}{\partial t}\right) = f(t), $$ pleasant things happen, because the new ODE $$ \mu M(t,y) dt + \mu N(t,y) dy = 0 $$ becames a exact differential form! If you perform the calculations, you will se that $$ \frac{1}{M} \left(\frac{\partial M}{\partial y} - \frac{\partial N}{\partial t}\right) = -1, $$ which is a function of $y$, anyway. Then, taking $\mu = \exp \int -f(y) dy = \exp y$, our new ODE is $$ \exp y(t+ \exp y)dt + \exp y\left(\frac{t^2}{2} + 2t \exp y \right) dy =0. $$ Since it is now a exact differential form, we can readly integrate this way: $$ \int \exp y(t+ \exp y)dt + \int \exp y\left(\frac{t^2}{2} + 2t \exp y \right) dy = c. $$ $$ \exp y \left(\frac{t^2}{2}+ t \exp y \right) + \left(\frac{t^2}{2} \exp y + t \exp 2y \right) = c. $$ Simplifying: $$ 2t \exp 2y + t^2 \exp y = c, $$ which you can see as a quadractic equation of $\exp y$: $$ 2t (\exp y)^2 + t^2 \exp y - c = 0, $$ using the quadractic formula: $$ \exp y = \frac{-t^2 \pm \sqrt{t^4 + 8ct}}{4t} $$ solving for $y$: $$ y = \log \frac{-t^2 \pm \sqrt{t^4 + 8ct}}{4t}. $$

PS.: See that the solution is non-unique, i.e., there are two solutions, corresponding to the $+$ and $-$ sign. If you write your equation in the standard form, $$ y' = - \frac{t+ \exp y}{\frac{t^2}{2} + 2t \exp y} = F(t,y), $$ you can see that $F(t,y)$ is not Lipschitz continuous, i.e., the derivative of $F(t,y)$ in relation to $y$ gets unbounded for certain values of $t$. Therefore, the Picard-Lindenlöf theorem can not ensure the uniqueness of the solution (nor the existence, but we constructed a solution for it).

rafa11111
  • 1,534
  • 2
  • 11
  • 19
  • 1
    The RHS being zero does not always mean the equation is homogeneous. That only applies to linear equations. – Dylan Jun 05 '18 at 04:50
  • @Dylan I see... but can you please provide a counterexample? I can't imagine one... – rafa11111 Jun 05 '18 at 13:10
  • This equation right here is not homogeneous. Remember, a homogeneous function requires $f(\lambda x, \lambda y) = \lambda^k f(x,y)$. – Dylan Jun 05 '18 at 16:53
  • @Dylan I see what you mean. However, I was referring to 'homogeneous' in the sense of an equation whose RHS is zero when written in the standard form, see here. – rafa11111 Jun 05 '18 at 18:57
  • A linear differential equation is homogeneous if, for any solution $y(x)$, $\lambda y(x)$ is also a solution. This is satisfied if every non-zero term is dependent on $y^{(k)}(x)$. Hence, a RHS of zero is a property of a homogeneous equation, not a definition – Dylan Jun 05 '18 at 19:22
  • @Dylan Take a look here to see the two meanings of the expression homogeneous differential equation. – rafa11111 Jun 05 '18 at 19:25
  • We're just arguing semantics at this point. All I was trying to say is, the equation in this question is not homogeneous, and that has been agreed upon. – Dylan Jun 05 '18 at 19:28
  • @Dylan I'm afraid we had not agreed in this point. The pointed equation is homogeneous according to the first meaning in the MathWorld page, but is not homogeneous according to the second meaning. – rafa11111 Jun 05 '18 at 19:31
  • ...This equation isn't linear, so the first definition fails to apply. – Dylan Jun 05 '18 at 19:44
  • @Dylan take a look here then: https://math.stackexchange.com/a/2181392/493334 – rafa11111 Jun 05 '18 at 20:00
  • You provided a link that mentions second-order quadratic equations, which this one isn't. No definitions are provided, either. I'm not convinced. – Dylan Jun 05 '18 at 20:08
  • @Dylan I have no more evidence to show. I, particularly, think there is no problem to use the expression homogeneous in this context. Anyway, as you can see in the edit on the answer, the ambiguous or possibly imprecise expression homogeneous was eliminated. Furthermore, thanks for this interesting discussion! – rafa11111 Jun 05 '18 at 20:16
  • I appreciate your efforts. To be fair, I never intended for the comment chain to go this long. – Dylan Jun 05 '18 at 20:27