PDE: Sep of Vars Non homogenous BCs

  • Thread starter Saladsamurai
  • Start date
  • Tags
    Pde
In summary, Separation of variables can be used to solve Laplace's equation with two boundary conditions. The boundary conditions should be consistent with the solutions of the equation and can specify the solution at an infinite number of points at two distinct values of y. The constant of separation becomes a discrete set of "eigenvalues" and the general solution is an infinite series expansion in them. By parameterizing the separation constant as k^2 or -k^2, different solutions can be obtained depending on the value of k.
  • #1
Saladsamurai
3,020
7

Homework Statement



I have Laplace's equation that I need to solve. I was told that it can be solved by separtion of variables and that it should yield sinh and cosh solutions. As it stands, my current set of BCs are not homogeneous. So I need to find the proper way to assume my solution.

[tex] \frac{\partial^2{\phi}}{\partial{x}^2} + \frac{\partial^2{\phi}}{\partial{y}^2} = 0 \qquad(1)[/tex]

Subject to the BCs:

[tex]\frac{\partial{\phi}}{\partial{y}}(x, y =-h) = 0\qquad(2a)[/tex]

[tex]\frac{\partial{\phi}}{\partial{y}}(x, y =0) = -\cos(x - T)\qquad(2a)[/tex]


I am not really sure how to start this. I tried assuming that

[tex]\phi (x,y) = F(x,y) + G(y)[/tex]

and then working with the G(y) alone I thought I could apply the BCs on G(y) such that the superposition of F and G would give homogenous BCs on F(x,y) which could then be solved by separation.

The problem with that approach is that G(y) is linear i.e: G(y) = C1y +C2 and since my given BCs are both derivative BCs, I don't think I can ever recover C2 (since it vanishes) to get the complete solution.

Any other ideas?
 
Physics news on Phys.org
  • #2
Hmmm... come to think of it, do I need more boundary conditions than 2? Do I actually need 4 BCs to solve this problem?
 
  • #3
You should use regular separation of variables with [tex]\phi(x,y) = X(x)Y(y)[/tex]. Your boundary conditions are consistent with a solution of this form. You don't need any additional boundary conditions.
 
  • #4
Hi fzero!

Hmmm...that seems to be the same response I just got from my professor in an email. Unfortunately, I have never taken a clas in PDEs and I have only solved a handful of them by brute force. I could swear that in order to use separation, the BCs needed to be homogeneous. But I am also thinking that for the problems I have solved, I have always had a nonzero IC, so perhaps my nonzero BC can act like an IC? But I am still unclear as to why I don't need any more BCs?
 
  • #5
Saladsamurai said:
Hi fzero!

Hmmm...that seems to be the same response I just got from my professor in an email. Unfortunately, I have never taken a clas in PDEs and I have only solved a handful of them by brute force. I could swear that in order to use separation, the BCs needed to be homogeneous. But I am also thinking that for the problems I have solved, I have always had a nonzero IC, so perhaps my nonzero BC can act like an IC? But I am still unclear as to why I don't need any more BCs?

The boundary conditions need to be compatible with the solutions of the equation. For example,

[tex]
\frac{\partial{\phi}}{\partial{y}}(x, y =0) =x^4
[/tex]

would not be compatible, but the [tex]\cos[/tex] is, because there is a solution [tex]X(x)=\cos(x+x_0)[/tex].

Now, we obtain 2 integration constants from each 2nd order ODE, so, naively, we need initial conditions at a minimum of 4 points, which cannot all be at the same values of [tex]x[/tex] or [tex]y[/tex]. The boundary conditions we're given actually specify the solution at an infinite number of points at two distinct values of [tex]y[/tex], so we appear to have enough information to fix all constants.

The above counting is a bit naive, since it usually turns out that the constant of separation becomes a discrete set of "eigenvalues." There are therefore infinite families of solutions and the general solution is an infinite series expansion in them, leading to an infinite number of coefficients that must be solved for. Nevertheless, it's typically the case that 4 points are enough to fix the solution through a Fourier transform.

The above discussion might be a little clearer after you try working through the problem.
 
  • #6
fzero said:
The boundary conditions need to be compatible with the solutions of the equation. For example,

[tex]
\frac{\partial{\phi}}{\partial{y}}(x, y =0) =x^4
[/tex]

would not be compatible, but the [tex]\cos[/tex] is, because there is a solution [tex]X(x)=\cos(x+x_0)[/tex].

Now, we obtain 2 integration constants from each 2nd order ODE, so, naively, we need initial conditions at a minimum of 4 points, which cannot all be at the same values of [tex]x[/tex] or [tex]y[/tex]. The boundary conditions we're given actually specify the solution at an infinite number of points at two distinct values of [tex]y[/tex], so we appear to have enough information to fix all constants.

The above counting is a bit naive, since it usually turns out that the constant of separation becomes a discrete set of "eigenvalues." There are therefore infinite families of solutions and the general solution is an infinite series expansion in them, leading to an infinite number of coefficients that must be solved for. Nevertheless, it's typically the case that 4 points are enough to fix the solution through a Fourier transform.

The above discussion might be a little clearer after you try working through the problem.

Hi fzero! :smile: Yes. I am working through it now and I hope that the above does become clearer. For now, I have a quick question:

By assuming that φ(x,y) = F(x)G(y) I end up with two ODEs

(1/F) * F'' = - (1/G) * G'' = something constant

Now, I am working with G first:

- (1/G) * G'' = C

or

- G'' - C*G = 0

Now, I have alway been told what my separation constant is; I have never had to choose one and so I do not have any insight as to how to choose one? If I let C = -A I get one solution and if I let C = +A I will get another. Surely this cannot be. What am I missing conceptually? How can I choose my separation constant wisley?
 
  • #7
Yes, you get different solutions if C is positive or negative. It turns out to be simpler to parameterize these cases as [tex]C= k^2[/tex] or [tex]C=-k^2[/tex]. What you'll find is that only one class of solutions is compatible with the boundary conditions that you're given. The other class would be compatible with different boundary conditions.
 
  • #8
fzero said:
Yes, you get different solutions if C is positive or negative. It turns out to be simpler to parameterize these cases as [tex]C= k^2[/tex] or [tex]C=-k^2[/tex]. What you'll find is that only one class of solutions is compatible with the boundary conditions that you're given. The other class would be compatible with different boundary conditions.

Interesting. So with that in mind, I am thinking that since I have a BC of the form G(y=-h) = 0 that I should go with the case where C = + k^2 since this will reveal an oscillatory solution that has zeros, whereas the -k^2 case reveals exponentials which are never zero (on a finite domain).

Sound good?
 
  • #9
Saladsamurai said:
Interesting. So with that in mind, I am thinking that since I have a BC of the form G(y=-h) = 0 that I should go with the case where C = + k^2 since this will reveal an oscillatory solution that has zeros, whereas the -k^2 case reveals exponentials which are never zero (on a finite domain).

Sound good?

If G is a trig function, then F is a hyperbolic trig function and vice versa. You should write down solutions for both cases and check both boundary conditions to see which case is needed. Also note that

[tex]\sinh(k(y+h)) = \frac{1}{2} \left( e^{k(y+h)} - e^{-k(y+h)}\right) [/tex]

vanishes at [tex]y=-h[/tex].
 
  • #10
Okay! I am ready to attack this one:

Let me start off by adding some new information that might help. This equation comes from a Fluid Mechanics problem involving Gravity Waves in Liquids where there is a free surface (i.e. air above the liquid).

The PDE I am trying to solve in (1) with BCs (2a,b) are Laplace's Equation for potential flow.

I know that the solution is:

[tex]\phi = -\frac{\cosh(y + h)}{\sinh h}\cos(x-T)\qquad (4)[/tex]

from the text.

**********************************************************************************************
**********************************************************************************************

To recap: After assuming the product solution (x,y) = F(x)G(y) I end up with two ODEs given by:

[tex]-\frac{1}{F} * F'' = \frac{1}{G} * G'' = k^2 \qquad(5)[/tex]

where I have moved the (-) sign to F and assumed a positive separation constant under the advisement of my professor (though he said he wasn't 100% on that).

************************************************** ********************************************
************************************************** ********************************************

From the LHS of (5): [itex] -\frac{1}{F} * F'' = k^2[/itex] we obtain from the characteristic equation r2 + k2 = 0 → r = {k*i , -k*i} so that

[tex] F(x) = C_1\cos(kx) + C_2\sin(kx) \qquad(6)[/tex]From the RHS of (5): [itex] \frac{1}{G} * G'' = k^2[/itex] we obtain from the characteristic equation r2 - k2 = 0 → r = {k , -k} so that

[tex]G(y) = C_3e^{-ky} + C_4e^{ky} \qquad(7)[/tex]

************************************************** ********************************************
************************************************** ********************************************

From the 2nd BC:

[tex]\frac{\partial{\phi}}{\partial{y}}(x, y =0) =F(x)*G'(y=0) = -\cos(x - T) \qquad(8)[/tex]

[tex]\Rightarrow \left [ C_1\cos(kx) + C_2\sin(kx) \right ]* [k(-C_3 + C_4)] = -\cos(x - T) \qquad(9)[/tex]

From the 1st BC:

[tex]\frac{\partial{\phi}}{\partial{y}}(x, y =-h) = F(x)*G'(y=-h)= 0 \qquad(10)[/tex]

[tex]\Rightarrow \left [ C_1\cos(kx) + C_2\sin(kx) \right ]* [k(-C_3e^{kh} + C_4e^{-kh})] = 0 \qquad(11)[/tex]************************************************** ********************************************
************************************************** ********************************************

This is as far as I have gotten. I was told to let k = 1, so I will do so for now and then hopefully I can come back later and show that there is a k = 1. So (9) and (11) become:[tex]\left [ C_1\cos(x) + C_2\sin(x) \right ]* (-C_3 + C_4) = -\cos(x - T) \qquad(9')[/tex]

[tex]\left [ C_1\cos(x) + C_2\sin(x) \right ]* (-C_3e^{h} + C_4e^{-h}) = 0 \qquad(11')[/tex]

And it was also suggested that the trig identity: cos(a - b) = cos(a)cos(b) + sin(a)sin(b) might help me to do something with (9') so that I could write

[tex]\left [ C_1\cos(x) + C_2\sin(x) \right ]* (-C_3 + C_4) = -\cos(x) \cos(T) - \sin(x)\sin(T) \qquad(12)[/tex]

But I have not figured out the utility in that one just yet.

Any thoughts as to the next move?
 
Last edited:
  • #11
Saladsamurai said:
From the 2nd BC:

[tex]\frac{\partial{\phi}}{\partial{y}}(x, y =0) =F(x)*G'(y=0) = -\cos(x - T) \qquad(8)[/tex]

[tex]\Rightarrow \left [ C_1\cos(kx) + C_2\sin(kx) \right ]* [k(-C_3 + C_4)] = -\cos(x - T) \qquad(9)[/tex]

From the 1st BC:

[tex]\frac{\partial{\phi}}{\partial{y}}(x, y =-h) = F(x)*G'(y=-h)= 0 \qquad(10)[/tex]

[tex]\Rightarrow \left [ C_1\cos(kx) + C_2\sin(kx) \right ]* [k(-C_3e^{-kh} + C_4e^{kh})] = -\cos(x - T) \qquad(11)[/tex]

The last equation should be

[tex]\Rightarrow \left [ C_1\cos(kx) + C_2\sin(kx) \right ]* [k(-C_3e^{kh} + C_4e^{-kh})] = 0 \qquad(11)[/tex]

Note the signs in the exponents and the zero on the RHS. This equation can be used to solve for [tex]C_3,C_4[/tex]. It's more convenient to solve for them in terms of a new coefficient [tex]C[/tex] instead of for one in terms of another, but you can do it either way.

This is as far as I have gotten. I was told to let k = 1, so I will do so for now and then hopefully I can come back later and show that there is a k = 1.

Yeah, it's unecessary to set k=1 because that follows immediately from (9). You can see this by multiplying both sides by [tex]\cos kx[/tex] and integrating over [tex]x[/tex] (say over half a period).

And it was also suggested that the trig identity: cos(a - b) = cos(a)cos(b) + sin(a)sin(b) might help me to do something with (9') so that I could write

[tex]\left [ C_1\cos(x) + C_2\sin(x) \right ]* (-C_3 + C_4) = -\cos(x) \cos(T) - \sin(x)\sin(T) \qquad(12)[/tex]

But I have not figured out the utility in that one just yet.

Any thoughts as to the next move?

[tex]\sin[/tex] and [tex]\cos[/tex] are linearly independent (check by multiplying by one or the other and integrating), so we can use this equation to solve for the remaining unknown coefficients.
 
  • #12
fzero said:
The last equation should be

[tex]\Rightarrow \left [ C_1\cos(kx) + C_2\sin(kx) \right ]* [k(-C_3e^{kh} + C_4e^{-kh})] = 0 \qquad(11)[/tex]

Note the signs in the exponents and the zero on the RHS. This equation can be used to solve for [tex]C_3,C_4[/tex]. It's more convenient to solve for them in terms of a new coefficient [tex]C[/tex] instead of for one in terms of another, but you can do it either way.

Hi fezero. I am not sure what I am noting about the signs of the exponents here? Nor am I seeing how to rewrite C1 and C2 as a new coefficient? Sorry, I don't see what you are alluding to?
 
Last edited:
  • #13
Saladsamurai said:
Hi fezero. I am not sure what I am noting about the signs here? Nor am I seeing how to rewrite C1 and C2 as a new coefficient? Sorry, I don't see what you are alluding to?

From your (7)

[tex]
\left. G'(y) \right|_{y=-h} = k\left( -C_3e^{kh} + C_4e^{-kh} \right),
[/tex]

but you had the opposite signs in the exponents in (11).

What I meant is that (11) is solved by

[tex]
-C_3e^{kh} + C_4e^{-kh} = 0 .
[/tex]

We can just solve this for [tex]C_4[/tex] in terms of [tex]C_3[/tex], but the algebra later on turns out to be a bit simpler if we solve it via

[tex] C_3 = C e^{-kh}, ~ C_4 = C e^{kh}.[/tex]
 
  • #14
fzero said:
From your (7)

[tex]
\left. G'(y) \right|_{y=-h} = k\left( -C_3e^{kh} + C_4e^{-kh} \right),
[/tex]

but you had the opposite signs in the exponents in (11).

:redface: Oops! Edited! Nice catch :smile:

What I meant is that (11) is solved by

[tex]
-C_3e^{kh} + C_4e^{-kh} = 0 .
[/tex]

We can just solve this for [tex]C_4[/tex] in terms of [tex]C_3[/tex], but the algebra later on turns out to be a bit simpler if we solve it via

[tex] C_3 = C e^{-kh}, ~ C_4 = C e^{kh}.[/tex]

I am not really following what you are doing there? Why can we use the same C for both equalities?

EDIT: Looks like you said

[itex]C_3e^{kh} = C_4e^{-kh}\rightarrow C_3 = \frac{C_4}{e^{kh}}e^{-kh} = C e^{-kh}[/itex] where we let [itex]C=\frac{C_4}{e^{kh}}[/itex] so that [itex]C_3e^{kh} = Ce^{-kh}e^{kh} = C_4e^{kh}\rightarrow C_4 = Ce^{kh}[/itex]

So now we have that:

[tex]G(y) = C[e^{k(-y-h)} + e^{k(y+h)}] \qquad(13)[/tex]

Is that as far as we take it with (13) ? I am going to solve for the C1 and C2 now, but do we ever solve for C explicitly?
 
Last edited:
  • #15
Combining [itex]
C_3 = C e^{-kh}, ~ C_4 = C e^{kh}
[/itex] with
(12) creates a mess of products of C, C1 and C2. So I am thining I do need to solve for C explicitly somewhere?
 
  • #16
Saladsamurai said:
:
So now we have that:

[tex]G(y) = C[e^{k(-y-h)} + e^{k(y+h)}] \qquad(13)[/tex]

Is that as far as we take it with (13) ? I am going to solve for the C1 and C2 now, but do we ever solve for C explicitly?

You'll be able to solve for the products [tex]C C_1[/tex] and [tex]C C_2[/tex]. The final answer will only depend on [tex]h[/tex] and [tex]T[/tex].
 
  • #17
fzero said:
You'll be able to solve for the products [tex]C C_1[/tex] and [tex]C C_2[/tex]. The final answer will only depend on [tex]h[/tex] and [tex]T[/tex].

OK then! Onward! Starting with (12) and [itex]C_3 = C e^{-h}, ~ C_4 = C e^{h}[/itex] (I am officially dropping the k's for consistency since my BC does not contain one)

[tex]
\left [ C_1\cos(x) + C_2\sin(x) \right ]* (-C_3 + C_4) = -\cos(x) \cos(T) - \sin(x)\sin(T) \qquad(12)
[/tex]

[tex]
\Rightarrow \left [ C_1\cos(x) + C_2\sin(x) \right ]* (C_3 - C_4) = \cos(x) \cos(T) + \sin(x)\sin(T)
[/tex]

[tex]
\Rightarrow \left [ C_1\cos(x) + C_2\sin(x) \right ]* C(e^{-h} - e^{h}) = \cos(x) \cos(T) + \sin(x)\sin(T)
[/tex]

[tex]
\Rightarrow \left C C_1\cos(x) + C C_2\sin(x) = \frac{\cos(T) }{e^{-h} - e^{h}}\cos(x) +\frac{\sin(T)}{e^{-h} - e^{h}}\sin(x)
[/tex]

[tex]\Rightarrow C C_1 = \frac{\cos(T) }{e^{-h} - e^{h}} \quad\text{ and }\quad C C_2 = \frac{\sin(T)}{e^{-h} - e^{h}}
\qquad(14)[/tex]

So now we have that F(x):

[tex]F(x) = \frac{1}{C} \left [ \frac{\cos(T)}{e^{-h} - e^{h}} \cos x + \frac{\sin(T)}{e^{-h} - e^{h}}\sin(x) \right ]\qquad(15)[/tex]

How we looking? Looks like those C's will cancel when i form the product of F*G :smile:So

[tex]F*G = \frac{e^{-(y+h)} + e^{y+h}}{e^{-h} - e^h}\cos(x-T) = -\frac{\cosh(y + h)}{\sinh h}\cos(x-T)\qquad(16)[/tex]

Woot! :smile: Now I just have to take the derivative a couple of times to get some velocity components and we're done! Thanks again fzero! I'll be posting back to discuss some of the details that came up and this regarding sign choices and what not. Maybe if you have time, you could chime in when I do.
 
Last edited:

Related to PDE: Sep of Vars Non homogenous BCs

1. What is a partial differential equation (PDE)?

A PDE is a type of differential equation that involves multiple variables and their partial derivatives. It is commonly used to describe physical phenomena in fields such as physics, engineering, and mathematics.

2. What is the method of separation of variables in solving PDEs?

The method of separation of variables is a technique used to solve PDEs by assuming that the solution can be expressed as a product of functions of individual variables. This allows the PDE to be broken down into a set of simpler ordinary differential equations, which can then be solved separately.

3. What are non-homogeneous boundary conditions in PDEs?

Non-homogeneous boundary conditions refer to conditions that are specified at the boundaries of a PDE system and are not equal to zero. They are used to model real-world scenarios and can make the solution of the PDE more complex.

4. How do non-homogeneous boundary conditions affect the solution of a PDE?

Non-homogeneous boundary conditions can make the solution of a PDE more challenging as they introduce additional terms in the solution. These terms can be solved using the method of separation of variables or other techniques, depending on the specific PDE and boundary conditions.

5. What are some real-world applications of PDEs with non-homogeneous boundary conditions?

PDEs with non-homogeneous boundary conditions have many practical applications, such as modeling heat transfer in non-uniform materials, predicting the spread of pollutants in the environment, and simulating fluid flow in pipes with varying cross-sectional areas. They are also used in financial mathematics to model the behavior of stock prices and interest rates.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
496
  • Calculus and Beyond Homework Help
Replies
3
Views
814
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
739
  • Calculus and Beyond Homework Help
Replies
3
Views
626
  • Calculus and Beyond Homework Help
Replies
10
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
592
  • Calculus and Beyond Homework Help
Replies
1
Views
485
  • Calculus and Beyond Homework Help
Replies
8
Views
532
Replies
1
Views
658
Back
Top