Understanding PDE Solutions: N=0 vs N≥1 Cases

  • Thread starter member 428835
  • Start date
  • Tags
    General Pde
JoshIn summary, the problem involves solving a PDE using separation of variables and finding a solution for n ≥ 1 and n = 0. The solution for n = 0 involves a different type of solution and is necessary to satisfy the boundary condition, even though it may not contribute to the overall solution. The overall solution for all possible n values will involve a combination of both solutions for n ≥ 1 and n = 0.
  • #1
member 428835
Hey PF!

I have a quick question. When I was solving a PDE via separation of variables, I was able to come up with a same format solution for ##n \geq 1## but when ##n=0## I had a different "type" of solution. This doesn't really bother me since I am dealing with a linear PDE. However, I matched my last boundary condition ##u(a, \theta) = f(\theta)## where ##u=u(r, \theta)##. I satisfied this boundary condition only for the equation when ##n \geq 1##. So why do I even bother with the ##n=0## case?

I can give more details specific to the problem if you want.

Thanks!

Josh
 
Physics news on Phys.org
  • #2
A little more might help.
 
  • #3
The problem is ##\nabla^2 u(r,\theta)=0##. and ##u(a,\theta) = f(\theta)## and ##u(b,\theta) = g(\theta)##. Let ##u(r,\theta) = R(r)T(\theta)##. This gives rise to the following: $$\frac{r^2R''}{R} + \frac{rR'}{R} = -\frac{T''}{T} = -\lambda \neq 0$$. (The case where ##\lambda = 0## is discussed below).This gives rise to the ODE $$r^2R''+rR+\lambda R = 0$$ where we guess solutions of the form ##R(r) = ar^n + br^{-n} : n \geq 1## Then solving for ##T## (different ODE) we arrive at the following solution: $$u(r, \theta)= \sum_{n=1} A_n \sin(n \theta)a^n+B_n \sin(n \theta)a^{-n}+C_n \cos(n \theta)a^{n}+D_n \cos(n \theta)a^{-n}:n\geq 1$$
I match this using orthogonality of sines and cosines to the BC listed above and solve for the constants. However, I have not addressed the ##\lambda = 0## case, which reduces the original ODE's from above. My question is, why do I need to worry about ##n=0## if I have satisfied the BC's and the PDE?
 
  • #4
I'm not sure you do need to worry about n = 0. What would n = 0 mean in terms of its contribution to the solution?

Looks like for n = 0, the R(r) solution would just be a single constant. Then the contribution to the overall solution looks like an added constant term. I don't see why this would be necessary if you have already satisfied the BCs.
 
  • #5
OldEngr63 said:
I'm not sure you do need to worry about n = 0. What would n = 0 mean in terms of its contribution to the solution?
This is totally my question too.

OldEngr63 said:
Looks like for n = 0, the R(r) solution would just be a single constant. Then the contribution to the overall solution looks like an added constant term. I don't see why this would be necessary if you have already satisfied the BCs.
The solution I get is not a constant for ##R(r)## but is actually ##R(r) = a+b \ln(r)##. Looking above I wrote the ODE incorrectly after the PDE. It should be ##r^2 R'' + r R' + \lambda R = 0##.

At any rate, if the ##n=0## case doesn't really help, then why do we ever worry about it? For example, suppose ##u(x,t)## solves the heat equation where we find ##u(x,t) = \sum_{n=0} a_n \cos(n \pi x / L) e^{-k n^2 \pi^2 t / L}## and a boundary condition is ##u(x,0) = f(x)##. Applying ##u## to this boundary condition we have ##A_n = 2/L \int_0^L f(x) \cos(n \pi x / L) dx : n \neq 0##. Why do we need to worry about ##n=0## here, which obviously gives another ##A_0##? Why can't we start anywhere in the integers, say at ##n=57##? Like what if ##f(x) = e^x## and I started at ##n=4##?

Please help me with what I am not understanding. Thanks a ton

Josh
 
  • #6
Can anyone help me out here? Pleeeeease :)
 
  • #7
joshmccraney said:
Can anyone help me out here? Pleeeeease :)
Hi Josh. How's it goin' buddy?
There are some problems with your solution.

Let me first guess: f and g are supposed to be periodic in theta, correct?

In post #3, there should be a + sign in front of the lambda.
I also note that the equation for u as a function of r and theta should have r's in it rather than a's.
Also, the n= 0 term cannot be omitted, and you can't satisfy the boundary conditions without it.

That's enough hints for now.

Chet
 
  • #8
Chestermiller said:
Hi Josh. How's it goin' buddy?
There are some problems with your solution.

Let me first guess: f and g are supposed to be periodic in theta, correct?

In post #3, there should be a + sign in front of the lambda.
I also note that the equation for u as a function of r and theta should have r's in it rather than a's.
Also, the n= 0 term cannot be omitted, and you can't satisfy the boundary conditions without it.

That's enough hints for now.

Chet

Hi Chet!

Shoot, you're totally right, the ##a## definitely should be ##r## in the main solution. And definitely ##f## and ##g##s are periodic, a period being from ##-\pi,\pi## as are their first derivatives. A positive sign in front of ##\lambda##? are you meaning in the PDE when we separate? If so, I think the ##-\lambda## is okay; you don't?

How do we know the ##n=0## term can't be omitted? I'll work more on this and see what I get and then post it. Thanks!
 
  • #9
Suppose f and g are constant. Then what do you get?

Chet
 
  • #10
Chestermiller said:
Suppose f and g are constant. Then what do you get?

Chet
I see what you mean! So, when solving this PDE we have
$$u(r, \theta)= \sum_{n=1} A_n \sin(n \theta)r^n+B_n \sin(n \theta)r^{-n}+C_n \cos(n \theta)r^{n}+D_n \cos(n \theta)r^{-n}:n\geq 1$$
Which is true for ##n \geq 1##. However, ##n=0 \implies \lambda = 0## which reduces our two ODE's to ##T''(\theta) = 0 \implies T = c_1 \theta + c_2## yet ##T(-\pi)=T(\pi) \implies c_1=0## and thus ##T=const.##

However, our ODE in ##r## becomes ##r^2R''(r) + rR'(r)=0 \implies R(r) = c_1 \ln r + c_2##. Thus, when taking ##T(\theta)R(r)## for the ##n=0## situation we have simply ##u(r,\theta) = c_1 \ln r + c_2##.

Understanding this, our overall solution for ##u(r, \theta)## for all possible ##n \geq 0## will be $$u(r, \theta)= c_1 \ln r + c_2 + \sum_{n=1} A_n \sin(n \theta)r^n+B_n \sin(n \theta)r^{-n}+C_n \cos(n \theta)r^{n}+D_n \cos(n \theta)r^{-n}$$

Do you agree with this so far Chet?
 
  • #11
I'm looking at this on my iPhone, so I can't see the full equation, but what I do see looks correct. Now, one more question for you: if u is periodic with Θ, what kind of constraint does this place on n?

Chet
 
  • #12
Chestermiller said:
I'm looking at this on my iPhone, so I can't see the full equation, but what I do see looks correct. Now, one more question for you: if u is periodic with Θ, what kind of constraint does this place on n?

Chet
I have no idea...I'm definitely not sure. Any clues?

And on a side note, how do I solve for ##C_n## and ##D_n##? I know to multiply the equation by ##\cos (m \theta)## and that the orthogonality will clear the sine terms, but what about the natural logarithm? How do I deal with that?
 
  • #13
joshmccraney said:
I have no idea...I'm definitely not sure. Any clues?
Please disregard this question. It was my mistake. Sorry.
And on a side note, how do I solve for ##C_n## and ##D_n##? I know to multiply the equation by ##\cos (m \theta)## and that the orthogonality will clear the sine terms, but what about the natural logarithm? How do I deal with that?
Just integrate the whole equation with respect to theta, with no sine or cosine weighting.
Chet
 
  • Like
Likes member 428835
  • #14
joshmccraney said:
Hey PF!

I have a quick question. When I was solving a PDE via separation of variables, I was able to come up with a same format solution for ##n \geq 1## but when ##n=0## I had a different "type" of solution. This doesn't really bother me since I am dealing with a linear PDE. However, I matched my last boundary condition ##u(a, \theta) = f(\theta)## where ##u=u(r, \theta)##. I satisfied this boundary condition only for the equation when ##n \geq 1##. So why do I even bother with the ##n=0## case?

I can give more details specific to the problem if you want.

Thanks!

Josh

Generally after separation of variables you apply the BC's to get the eigenfunctions which are frequently either sines or cosines. Typically if you get only cosines, the Fourier series expansion to fit the last condition might need the constant term ##a_0## which comes from ##n=0## and which itself comes from the eigenvalue ##\lambda = 0##.

[Edit] Whoa! Somehow I missed all these replies; I just saw the first reply.
 
  • #15
Chestermiller said:
Just integrate the whole equation with respect to theta, with no sine or cosine weighting.
Chet
Ohhhhhhh! OK! So, to summarize, to find ##A_n## and ##B_n## and thus satisfy the Boundary Conditions, multiply the equation by ##\sin (m \theta)## and integrate w.r.t ##\theta## over ##[-\pi,\pi]##. Then we use the other BC (since we have two) and that gives us 2 equations and 2 unknowns (Cramer's Rule maybe?).

To find ##C_n## and ##D_n## multiply the equation by ##\cos (m \theta)## and integrate w.r.t ##\theta## over ##[-\pi,\pi]##. Then we use both BC 2 equations and 2 unknowns. (just like for sine)

To find ##c_1## and ##c_2## not to be confused with ##C_n## (sorry) we simply let the orthogonality of sine and cosine take care of themselves, and thus use both BC's and integrate w.r.t ##\theta##, again over ##[-\pi,\pi]##.

Thanks you SOOOO MUCH! And please let me know if this final post is correct.
 
  • #16
joshmccraney said:
Ohhhhhhh! OK! So, to summarize, to find ##A_n## and ##B_n## and thus satisfy the Boundary Conditions, multiply the equation by ##\sin (m \theta)## and integrate w.r.t ##\theta## over ##[-\pi,\pi]##. Then we use the other BC (since we have two) and that gives us 2 equations and 2 unknowns (Cramer's Rule maybe?).

To find ##C_n## and ##D_n## multiply the equation by ##\cos (m \theta)## and integrate w.r.t ##\theta## over ##[-\pi,\pi]##. Then we use both BC 2 equations and 2 unknowns. (just like for sine)

To find ##c_1## and ##c_2## not to be confused with ##C_n## (sorry) we simply let the orthogonality of sine and cosine take care of themselves, and thus use both BC's and integrate w.r.t ##\theta##, again over ##[-\pi,\pi]##.

Thanks you SOOOO MUCH! And please let me know if this final post is correct.
Yes. Have you not learned about Fourier Series yet?

Chet
 
  • #17
No, we have. I just spaced integrating the whole thing w.r.t ##\theta## to find ##c_1## and ##c_2##. Also, all of my friends were solving this problem differently (just taking formulas and plugging and chugging) and then looking at the answer in the back of the book. This approach is much more enlightening. I feel dumb not thinking about this integration now.

Thanks Chet!
 

1. What is the difference between N=0 and N≥1 cases in PDE solutions?

The difference between N=0 and N≥1 cases in PDE solutions is the number of boundary conditions required to find a unique solution. In the N=0 case, no boundary conditions are needed because the solution is constant throughout the domain. In the N≥1 case, at least one boundary condition is needed to determine the solution at a particular point in the domain.

2. Why is it important to understand the N=0 and N≥1 cases in PDE solutions?

Understanding the N=0 and N≥1 cases is important because it allows us to determine the uniqueness of a PDE solution. In the N=0 case, a unique solution can be found without any additional information, but in the N≥1 case, additional boundary conditions are needed to determine a unique solution. This understanding is crucial in solving and interpreting PDE problems in various fields of science and engineering.

3. What are some examples of N=0 and N≥1 cases in real-world applications?

Examples of the N=0 case include the diffusion equation in a homogeneous medium and the heat equation on an infinite domain. In both of these cases, the solution is constant throughout the domain and no additional boundary conditions are needed. Examples of the N≥1 case include the wave equation on a finite domain and the heat equation with non-homogeneous boundary conditions. In these cases, at least one boundary condition is needed to determine a unique solution.

4. How do you determine the number of boundary conditions needed for a PDE solution?

The number of boundary conditions needed for a PDE solution is equal to the order of the highest derivative in the equation. For example, if the PDE contains a second-order derivative, then two boundary conditions are needed. This is because the second derivative represents the curvature of the solution, and two boundary conditions are needed to fully define this curvature at a particular point in the domain.

5. Can the N=0 and N≥1 cases be applied to all types of PDEs?

Yes, the N=0 and N≥1 cases can be applied to all types of PDEs. Whether the PDE is linear or nonlinear, elliptic, parabolic, or hyperbolic, the concept of N=0 and N≥1 cases still applies. The number of boundary conditions needed may vary depending on the type of PDE, but the fundamental idea remains the same.

Similar threads

  • Differential Equations
Replies
2
Views
2K
  • Differential Equations
Replies
13
Views
2K
  • Differential Equations
Replies
5
Views
2K
Replies
1
Views
1K
Replies
1
Views
1K
  • Differential Equations
Replies
1
Views
742
  • Differential Equations
Replies
8
Views
3K
  • Differential Equations
Replies
2
Views
2K
Replies
6
Views
2K
Back
Top