Solving Differential Equation with Boundary Conditions

germana2006
Messages
39
Reaction score
0
solve the next differential equation:

y´´- a*y= \delta (x-d)

with the boundary conditions:

\left.\frac{\partial y}{\partial x} \right|_ {x=0} = 0

lim _{x\rightarrow\infty} y = 0

I get the homogeneous solution: y_H = C_1 exp (\sqrt{a}x) + C_2 exp (-\sqrt{a}x)

and then to obtain the inhomogeneous solution (the particular solution), one should get the Green function. For these case, it is G equal to:

\{A exp (\sqrt{a}x) + B exp (-\sqrt{a}x)
\{C exp (\sqrt{a}x) + D exp (-\sqrt{a}x)

and the A, B, C, D coefficients should be obtain from the boundary conditions. This is my problem, I try to applied this boundary conditions but I have not idea how I can do it. Can someone help me?
Thanks
 
Physics news on Phys.org
It's easier with variation of parameters. Consider the problem

y&#039;&#039;(x)-ay(x)=f(x), \quad y&#039;(0)=0, \quad y(x)\rightarrow 0 \hbox{ as } x\rightarrow \infty.[/tex]<br /> <br /> On one side of the boundary (<i>x=0</i>), the solution is<br /> <br /> u_1(x)=\cosh \sqrt{a} x,<br /> <br /> while on the other side (x=\infty), the solution is<br /> <br /> u_2(x)=e^{-\sqrt{a}x}.<br /> <br /> Now, you want a solution of the ode in the form <br /> <br /> y(x)=a(x)u_1(x)+b(x)u_2(x),<br /> <br /> where a(x)\rightarrow 0 as x\rightarrow \infty, and <i>b(0)=0</i> (so in <i>x=0</i>, u_1(x) is the only term, hence satisfying that boundary condition, and in x\rightarrow \infty the hole solution vanishes, satisfying the other boundary condition).<br /> <br /> Now, using variation of parameters, we require that <br /> <br /> a&amp;#039;(x)u_1(x)+b&amp;#039;(x)u_2(x)=0,<br /> a&amp;#039;(x)u_1&amp;#039;(x)+b&amp;#039;(x)u_2&amp;#039;(x)=f(x).<br /> <br /> Solving for <i>a&#039;(x)</i> and <i>b&#039;(x)</i><br /> <br /> \int_x^\infty a&amp;#039;(\xi)d\xi=-\int_x^\infty \frac{u_2(\xi)}{W[u_1,u_2](\xi)}f(\xi)d\xi,<br /> <br /> \int_0^x b&amp;#039;(\xi)=\int_0^x \frac{u_1(\xi)}{W[u_1,u_2](\xi)}f(\xi)d\xi.<br /> <br /> Evaluating, we obtain<br /> <br /> a(x)=\int_x^\infty \frac{u_2(\xi)}{W[u_1,u_2](\xi)}f(\xi)d\xi,<br /> <br /> b(x)=\int_0^x \frac{u_1(\xi)}{W[u_1,u_2](\xi)}f(\xi)d\xi,<br /> <br /> where W[u_1,u_2](\xi) is the Wronskian. <br /> <br /> Substituting in the original solution, we obtain<br /> <br /> y(x)=\int_x^\infty \frac{u_1(x)u_2(\xi)}{W[u_1,u_2](\xi)}f(\xi)d\xi+\int_0^x \frac{u_1(\xi)u_2(x)}{W[u_1,u_2](\xi)}f(\xi)d\xi,<br /> <br /> wich can be written as<br /> <br /> y(x)=\int_0^\infty G(\xi,x) f(\xi) d\xi,<br /> <br /> where G(\xi,x) is the Green function of the problem and it&#039;s given by<br /> <br /> G(\xi,x)=\left\{\begin{array}{ll}\dfrac{u_1(\xi)u_2(x)}{W[u_1,u_2](\xi)} &amp;amp; \hbox{ if } \xi &amp;lt; x, \\ &amp;amp; \\ \dfrac{u_1(x)u_2(\xi)}{W[u_1,u_2](\xi)} &amp;amp; \hbox{ if } x&amp;lt;\xi .\end{array}\right.<br /> <br /> The other way to solve the problem is far less intuitive and involves <i>symbolic calculus</i>. You use the fact that in <i>symbolic calculus</i>, H&amp;#039;(x)=\delta(x), where <i>H(x)</i> is the Heaviside function, and \delta(x) is the Dirac Delta function.
 
Last edited:
first of all thanks for your help, it is very good. I have done the next to obtain u_1(x) and u_2(x) and I am not sure if this is correct:

1. y=0 \rightarrow y_H = C_1 + C_2 \rightarrow C_1 = C_2 \rightarrow
C_1 [exp (\sqrt{a}x) + exp (-\sqrt{a}x)] = cosh (\sqrt{a}x) = u_1(x)

2. y= \infty \rightarrow y_H = C_2 exp (-\sqrt{a}x)= 0 \rightarrow u_2(x)=exp (-\sqrt{a}x)
 
I'll admit I read your post rather quickly, however in general to solve for the coeffients of the Green's function, you have to apply the properties of Green's functions.
(i.e. those two fcns correspond to x<y and x>y correct? )

Well at x=y, the Green's fcn must be continuous, and its first derivative differs by unity. This gives you two relations for the coefficients, the other two relations come from your boundary condtions.
 
germana2006 said:
first of all thanks for your help, it is very good. I have done the next to obtain u_1(x) and u_2(x) and I am not sure if this is correct:

1. y=0 \rightarrow y_H = C_1 + C_2 \rightarrow C_1 = C_2 \rightarrow
C_1 [exp (\sqrt{a}x) + exp (-\sqrt{a}x)] = cosh (\sqrt{a}x) = u_1(x)

2. y= \infty \rightarrow y_H = C_2 exp (-\sqrt{a}x)= 0 \rightarrow u_2(x)=exp (-\sqrt{a}x)

1. is not correct, as it implies C_1=-C_2, hence given u_1(x)=\sinh \sqrt{a}x, but the condition of your original post is y&#039;(0)=0 which implies C_1=C_2, so u_1(x)=\cosh \sqrt{a}x.

2. is not stated correctly, as it should read

\mathop{lim}_{x\rightarrow\infty} y(x)=\mathop{lim}_{x\rightarrow \infty} \{C_3 e^{\sqrt{a}x}+C_4 e^{-\sqrt{a}x}\}=0 \quad \hbox{if and only if}\quad C_3=0
 
Last edited:
Thank you very much AiRAVATA for your help and explanation. You are right with u1, I have also noticed later my error. I have already all the calculations.

Now, I don't have to calculate anymore but I have a question, maybe it is very stupid. If one consider the same equation but without the boundary conditions, to calculate the Green's function one should use also the variation of parameters method but in this case, u1 and u2 are the solutions of the homogeneous equation. Is it correct?
 
Are there any good visualization tutorials, written or video, that show graphically how separation of variables works? I particularly have the time-independent Schrodinger Equation in mind. There are hundreds of demonstrations out there which essentially distill to copies of one another. However I am trying to visualize in my mind how this process looks graphically - for example plotting t on one axis and x on the other for f(x,t). I have seen other good visual representations of...
Back
Top