Unique soution of this 2nd order diff equation.

  • Thread starter maverick40
  • Start date
  • Tags
    2nd order
In summary, the problem involves solving a second order differential equation with initial conditions and finding a series solution. The general solution involves the error function, but with the given conditions, the solution simplifies to y = xe^(x^2) + (1/2)*sum 4^k*k!/((2k)!) * x^(2k).
  • #1
maverick40
2
0
Hi guys have a big problem trying to find the unique solution to the 2nd order diff equation shown below:

y’’(x) = 2xy’(x) + 4y(x)

where y(0) = y’(0) = 1
 
Physics news on Phys.org
  • #2
maverick40 said:
y’’(x) = 2xy’(x) + 4y(x)

where y(0) = y’(0) = 1

Is this the variable x or 2 times y'(x)?
 
  • #3
Anyways, it looks like you've got a simple homogeneous equation here:

[tex] y'' = 2y' + 4y [/tex]

in which the 1st thing you need to do is find the eigenvalues.
 
  • #4
magicarpet512 said:
Is this the variable x or 2 times y'(x)?

variable x, cheers!That is what's annoying about this equation.
 
  • #5
Probably the best thing to do is to look for a series solution.

Let y= sum a_nx^n. Then y'= na_nx^{n-1} and y''= n(n-1)a_nx^{n-2}. Put those into the differential equation to get
sum n(n-1)a_nx^{n-2}= 2sum na_nx^n+ 4sum a_nx^n

On the left, let j= n-2 so that n= j+2, while letting j= n on the right, and we have
sum (j+2)(j+1)a_{j+2}x^j= sum 2(j+1)a_jx^j.

y(0)= a_0= 1 and y'(0)= a_1= 1.

Now, equate coefficients of the same powers:
a_{j+2}= (2/(j+2))a_j

when j= 0, a_2= (2/2)a_0= 1, when j= 1, a_3= (2/3)a_1= 4 so a_3= 2/3. When j= 2, a_4= (1/2)a_2= 1/2, a_5= (2/5)a_3= 4/15, etc.
 
  • #6
The general solution of the ODE involves the erf function and more usual functions.
But, with the particular conditions y(0)=0 and y'(0)=1, simplifications occur.
So you may search a solution of the form y(x)=c*x*exp(x²)
 
  • #7
\begin{array}\\y'' = 2xy' + 4y\\
y''-2xy'-4y=0(1)\\
y=x^s\sum_{k=0}^{\infty}a_kx^k\\
x\rightarrow 0, y\rightarrow x^s\\
s(s-1)x^{s-2}-2sx^s-4x^s=0\overset{x\rightarrow 0}{\rightarrow} s(s-1)=0\Rightarrow s=0,s=1\\
y=\sum_{k=0}^{\infty}a_kx^{k+s}\\
y'=\sum_{k=0}^{\infty}a_k(k+s)x^{k+s-1}\\
y''=\sum_{k=0}^{\infty}a_k(k+s-1)(k+s)x^{k+s-2}\\\end{array}

Now substitute to (1)

\begin{array}\\\sum_{k=0}^{\infty}a_k(k+s-1)(k+s)x^{k+s-2}-2\sum_{k=0}^{\infty}a_k(k+s)x^{k+s}-4\sum_{k=0}^{\infty}a_kx^{k+s}=0\\
(k\rightarrow k+2)\\
\sum_{k=0}^{\infty}a_{k+2}(k+s+1)(k+s+2)x^{k+s}-2\sum_{k=0}^{\infty}a_k(k+s)x^{k+s}-4\sum_{k=0}^{\infty}a_kx^{k+s}=0\\
a_{k+2}(k+s+1)(k+s+2)x^{k+s}-2a_k(k+s)x^{k+s}-4a_kx^{k+s}=0\\
a_{k+2}(k+s+1)(k+s+2)-2a_k(k+s)-4a_k=0\\
a_{k+2}=\frac{2a_k(k+s)+4a_k}{(k+s+1)(k+s+2)}
=\frac{2(k+s+2)}{(k+s+1)(k+s+2)}a_k
=\frac{2}{k+s+1}a_k
\end{array}

Let [tex]a_0=1[/tex]
For the first solution (s=0) we have
\begin{array}\\\\a_{k+2}=\frac{2}{k+1}a_k\\
a_{2k}=\frac{2}{2k-1}a_{2k-2}=\frac{2}{2k-1}\frac{2}{2k-3}a_{2k-4}\\
a_{2k}=\frac{2}{2k-1}\cdot \frac{2}{2k-3}\cdot \frac{2}{2k-5}...\cdot \frac{2}{1}a_0=\frac{2^k}{(2k-1)(2k-3)(2k-5)...1}a_0=\frac{2^k(2k)(2k-2)(2k-4)...2}{(2k)(2k-1)(2k-2)(2k-3)(2k-4)(2k-5)...\cdot 2\cdot 1}\\
\\a_{2k}=\frac{2^{2k}(k)(k-1)(k-2)...1}{(2k)!}=\frac{4^kk!}{(2k)!}\end{array}

Therefore, the first solution is

[tex]y_1=x^0\sum_{k=0}^{\infty}a_{2k}x^{2k}=\sum_{k=0}^{\infty}\frac{4^kk!}{(2k)!}x^{2k}[/tex] (The step is 2)

For the second solution (s=1) we have

\begin{array}\\a_{k+2}=\frac{2}{k+2}a_k\\
a_{2k}=\frac{2}{2k}a_{2k-2}=\frac{2}{2k-1}\frac{2}{2k-2}a_{2k-4}\\
a_{2k}=\frac{2}{2k}\cdot \frac{2}{2(k-1)}\cdot \frac{2}{2(k-2)}...\cdot \frac{2}{2}a_0=\frac{1}{(k)(k-1)(k-2)...1}a_0=\frac{1}{k!}\end{array}

Therefore, the second solution is

[tex]y_2=x^1\sum_{k=0}^{\infty}a_{2k}x^{2k}=x\sum_{k=0}^{\infty}\frac{(x^2)^k}{k!}=xe^{x^2}[/tex]

All in all

[tex]y=c_1xe^{x^2} +c_2\sum_{k=0}^{\infty}\frac{4^kk!}{(2k)!}x^{2k}[/tex]

Apply the boundary conditions:
\begin{array}\\y(0)=2c_2\Leftrightarrow c_2=\frac{1}{2}\\
y'(0)=c_1\Leftrightarrow c_1=1\end{array}


[tex]y=xe^{x^2}+\frac{1}{2}\sum_{k=0}^{\infty}\frac{4^kk!}{(2k)!}x^{2k}[/tex]
 
Last edited:

Related to Unique soution of this 2nd order diff equation.

1. What is a unique solution of a 2nd order differential equation?

A unique solution of a 2nd order differential equation is a solution that is the only possible solution to the given equation. This means that there are no other solutions that satisfy the equation.

2. Why is it important to find a unique solution of a 2nd order differential equation?

It is important to find a unique solution of a 2nd order differential equation because it allows us to accurately predict and model the behavior of a system. If there are multiple solutions, it can lead to inconsistencies and errors in our calculations.

3. How do you determine if a 2nd order differential equation has a unique solution?

A 2nd order differential equation has a unique solution if it satisfies the existence and uniqueness theorem. This theorem states that if the equation is continuous and has a unique initial condition, then there exists a unique solution to the equation.

4. Can a 2nd order differential equation have more than one unique solution?

No, a 2nd order differential equation can only have one unique solution. This is because the existence and uniqueness theorem guarantees that there is only one possible solution that satisfies the given equation.

5. Are there any conditions in which a 2nd order differential equation may not have a unique solution?

Yes, there are some cases where a 2nd order differential equation may not have a unique solution. This can occur if the equation is not continuous or if the initial conditions are not unique. In these cases, the existence and uniqueness theorem does not apply, and there may be multiple solutions to the equation.

Similar threads

  • Differential Equations
Replies
2
Views
2K
  • Differential Equations
Replies
2
Views
1K
  • Differential Equations
Replies
5
Views
3K
  • Differential Equations
Replies
2
Views
2K
Replies
3
Views
892
Replies
2
Views
1K
  • Differential Equations
Replies
6
Views
2K
  • Differential Equations
Replies
2
Views
2K
  • Differential Equations
Replies
5
Views
1K
  • Differential Equations
Replies
3
Views
1K
Back
Top