Differential Equation challenge

Click For Summary

Discussion Overview

The discussion revolves around solving the differential equation $$y'' + 2y' = 0$$ under specific boundary conditions: $$\lim_{x \to \infty} y(x) = 1$$ and $$y(0) = 0$$. Participants explore various methods for deriving the solution, including analytical techniques and transformations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant identifies the characteristic roots of the ODE as $$r = 0, -2$$ and proposes the general solution $$y(x) = c_1 + c_2 e^{-2x}$$, concluding that the specific solution satisfying the conditions is $$y(x) = 1 - e^{-2x}$$.
  • Another participant suggests an alternative approach by rewriting the ODE and integrating, leading to the same general form of the solution.
  • A different method involves using the substitution $$t = y'$$, which leads to a separable differential equation.
  • One participant discusses using Laplace transforms to solve the equation, noting the challenge of an unknown initial condition for $$y'$$, but ultimately arriving at the same solution after applying the boundary conditions.
  • Another participant proposes a power series solution, deriving coefficients based on the initial conditions and arriving at the same final expression for $$y(x)$$.
  • Several participants express appreciation for the variety of methods presented, highlighting the collaborative nature of the discussion.

Areas of Agreement / Disagreement

Participants generally agree on the final solution being $$y(x) = 1 - e^{-2x}$$, but multiple methods for arriving at this solution are discussed, indicating a variety of approaches rather than a single consensus method.

Contextual Notes

Some participants note the dependence on initial conditions and the challenge of handling unknown parameters, such as $$y'(0)$$, in certain methods. The discussion reflects a range of mathematical techniques without resolving the nuances of each approach.

Who May Find This Useful

This discussion may be useful for students and practitioners interested in differential equations, particularly those exploring various solution methods and boundary value problems in mathematics and engineering contexts.

Petrus
Messages
702
Reaction score
0
Hello MHB,
I wanted to post a challange question that is hopefully not really difficult, if the question is not understandable make sure to write it so I can try explain!:)Calculate the Differential equation for
$$y''+2y'=0$$
that satisfy
$$\lim_{x->\infty}y(x)=1$$ and $$y(0)=0$$

Regards,
$$|\pi\rangle$$
 
Physics news on Phys.org
Re: Differential Equation challange

Hello Petrus,

One way to proceed is to recognize we are given a linear second order homogeneous ODE whose characteristic roots are:

$$r=0,-2$$

Hence, the general solution is:

$$y(x)=c_1+c_2e^{-2x}$$

We may now state:

$$\lim_{x\to\infty}y(x)=c_1=1$$

$$y(0)=1+c_2=0\,\therefore\,c_2=-1$$

Thus the solution satisfying the given conditions is:

$$y(x)=1-e^{-2x}$$
 
Re: Differential Equation challange

MarkFL said:
Hello Petrus,

One way to proceed is to recognize we are given a linear second order homogeneous ODE whose characteristic roots are:

$$r=0,-2$$

Hence, the general solution is:

$$y(x)=c_1+c_2e^{-2x}$$

We may now state:

$$\lim_{x\to\infty}y(x)=c_1=1$$

$$y(0)=1+c_2=0\,\therefore\,c_2=-1$$

Thus the solution satisfying the given conditions is:

$$y(x)=1-e^{-2x}$$
Hello MarkFL,
Congrats that is the correct answer(Clapping)
Well you said "one way to proceed.." is there more way to solve this differential equation? Well this is the way I have learned yet:) The smart thing with start with the $$\lim_{x->\infty}y(x)=1$$ is that $$\lim_{x->\infty}e^{-2x}=0$$ so that $$c_2$$ can be any real value and hence we are only left with $$c_1$$ and thanks to that we can solve it with $$y(0)=0$$ Thanks for taking your time and enter my challange!:)

Regards,
$$|\pi\rangle$$
 
Another way is to write the ODE as:

$$\frac{d}{dx}\left(\frac{dy}{dx} \right)=-2\frac{dy}{dx}$$

Integrate with respect to $x$ to obtain:

$$\frac{dy}{dx}=-2y+c_1$$

Separate variables:

$$\frac{1}{-2y+c_1}\,dy=dx$$

Integrate:

$$-\frac{1}{2}\ln|c_1-2y|=x+c_2$$

$$\ln|c_1-2y|=-2x+c_2$$

$$c_1-2y=c_2e^{-2x}$$

$$y(x)=c_1+c_2e^{-2x}$$

And now proceed as before...
 
Another way is to use the substitution $$t = y'$$

$$t'+2t=0$$

This differential equation is separable we can also multiply by the integrating factor .
 
Another method (which I think is the longest way; EDIT: Solving by Power Series about $x=0$ would be way more complicated and longer) would be to take Laplace Transforms of both sides to obtain:
\[\mathcal{L}\{y^{\prime\prime}\} + \mathcal{L}\{2y\} = \mathcal{L}\{0\} \implies s^2Y(s)-sy(0) - y^{\prime}(0) + 2sY(s)-2y(0)=0.\]
Note here we know nothing about $y^{\prime}(0)$, but let's not worry about that for the time being. Letting $y(0)=0$ and solving for $Y(s)$, we get
\[Y(s)=\frac{y^{\prime}(0)}{s^2+2s}=\frac{y^{\prime}(0)(s+2-s)}{2s(s+2)}=\frac{y^{\prime}(0)}{2}\left(\frac{1}{s}-\frac{1}{s+2}\right)\]
Taking the Inverse Laplace Transform of both sides gives us
\[y(x)=\mathcal{L}^{-1}\{Y(s)\} = \frac{y^{\prime}(0)}{2}\left(\mathcal{L}^{-1}\left\{\frac{1}{s}\right\} - \mathcal{L}^{-1}\left\{\frac{1}{s+2}\right\}\right) = \frac{y^{\prime}(0)}{2}(1-e^{-2x})\]
But we're told that $\displaystyle\lim_{x\to\infty}y(x)=1$, which implies that
\[\lim_{x\to\infty}y(x)= \lim_{x\to\infty}\frac{y^{\prime}(0)}{2} (1-e^{-2x})=\frac{y^{\prime}(0)}{2}=1\implies y^{\prime}(0)=2.\]
Therefore, the solution to our equation is $y(x)=1-e^{-2x}$.

(That was fun! XD)
 
Last edited:
Since $$y(x) $$ is analytic around $$0$$ we can find the power series

Let $$y(x) = \sum_{n\geq 0} a_n x^n$$

$$y'(x) =\sum_{n\geq 1} n a_n x^{n-1} $$

$$y''(x) =\sum_{n\geq 2} n(n-1) a_n x^{n-2} $$

Hence we have the following

$$\sum_{n\geq 2} n(n-1) a_n x^{n-2} +2 \, \sum_{n\geq 1} n a_n x^{n-1}=0$$

$$\sum_{n\geq 2} n(n-1) a_n x^{n-2} +2 \, \sum_{n\geq 2} (n-1) a_{n-1} x^{n-2}=0$$

Hence we have the following

$$n(n-1)a_n+2(n-1) a_{n-1} =0$$$$na_n+2a_{n-1}=0 \,\,\, \Rightarrow \,\,\, a_n = -\frac{2}{n} a_{n-1} \,\,\,\, , n\geq 2 $$

$$a_2 = -a_1$$

$$a_3 = \frac{2}{3}a_1$$

$$a_4 = -\frac{2^2}{3 \cdot 4} a_1$$

which suggests that

$$a_n = \frac{(-2)^{n-1}}{n!} a_1$$

we can easily deduce that $$a_0 = 0 $$ using the initial condition .

$$y(x) = a_1\sum_{n\geq 1}\frac{(-2)^{n-1}}{(n)!} \, x^n = \frac{-a_1}{2}\, \sum_{n\geq 1}\frac{(-2)^{n}}{(n)!} \, x^n$$

$$y(x) = \frac{a_1}{-2} (e^{-2x}-1) $$

using $$ y(\infty) = 1$$ implies that $$a_1 = 2$$

$$y(x) = -(e^{-2x}-1) = 1-e^{-2x} \,\, \square $$

By the way I didn't see Chris's comment (Rofl)
 
Hello,
I want to first thank you all for taking your time and enter the challange!:) When I did post this problem I only knew one method (which is the MarkFL post #2) and now you all show me more method! Remainds me one of the reason why I find math is such an intressting subject! I am Really gratefull!

Regards,
$$|\pi\rangle$$
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 52 ·
2
Replies
52
Views
8K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K