Taylor expansion in radial coordinates

In summary: A student has been trying to solve a homework problem that involves the special form of the discrete Laplacian operator in radial coordinates, but does not understand what is supposed to happen when he substitutes in the equations.
  • #1
MJD3366
4
0

Homework Statement



This shouldn't be so hard to do I guess, but I just cannot figure it out. The problem statement:

Prove that the special form of the discrete Laplacian operator in radial coordinates acting on a grid function [itex]u_{l,m}[/itex] at the central grid point [itex]l=0, m=0[/itex], given by:

[itex]\displaystyle\delta_{\Delta\circ}u_{0,0}=\frac{4}{N_{\theta}h_{r}^{2}} \sum_{m=0}^{N_{\theta}-1} \left(u_{1,m}-u_{0,0}\right)[/itex]

is a second-order accurate approximation to the continuous Laplacian. In order to do this, consider the values of the grid function [itex]u_{1,m}[/itex] to be values of a continuous function at the location [itex]x=h_{r}\cos mh_{\theta}, y=h_{r}\sin mh_{\theta}[/itex] and perform Taylor expansions about the point [itex]x=0, y=0[/itex]. To be clear: [itex]h_{r}[/itex] and [itex]h_{\theta}[/itex] denote the radial and angular grid spacings respectively.



Homework Equations



[itex]\displaystyle u_{1,m} = u\left(x,y\right) = u\left(h_{r}\cos mh_{\theta}, h_{r}\sin mh_{\theta}\right)[/itex]

[itex]\displaystyle u\left(x,y\right) = u\left(0,0\right) + x \frac{\partial u}{\partial x} + y \frac{\partial u}{\partial y} + \frac{1}{2!} \left(x^{2}\frac{\partial^{2}u}{\partial x^{2}} + 2xy \frac{\partial^{2}u}{\partial x\partial y} + y^{2}\frac{\partial^{2}u}{\partial y^{2}}\right) + \dots[/itex]

[itex]\displaystyle \frac{\partial u}{\partial x} = \cos mh_{\theta} \frac{\partial u}{\partial h_{r}} - \frac{\sin mh_{\theta}}{h_{r}} \frac{\partial u}{\partial mh_{\theta}}[/itex]

[itex]\displaystyle \frac{\partial u}{\partial y} = \sin mh_{\theta} \frac{\partial u}{\partial h_{r}} + \frac{\cos\displaystyle mh_{\theta}}{h_{r}} \frac{\partial u}{\partial mh_{\theta}}[/itex]

[itex]\displaystyle \frac{\partial^{2}u}{\partial x^{2}} = \cos^{2}mh_{\theta} \frac{\partial^{2}u}{\partial h_{r}^{2}} - \frac{2\sin mh_{\theta}\cos mh_{\theta}}{h_{r}} \frac{\partial^{2}u}{\partial h_{r}\partial mh_{\theta}} + \frac{\sin^{2}mh_{\theta}}{h_{r}^{2}} \frac{\partial^{2}u}{\partial \left(mh_{\theta}\right)^{2}} + \frac{\sin^{2}mh_{\theta}}{h_{r}} \frac{\partial u}{\partial h_{r}} + \frac{2\sin mh_{\theta}\cos mh_{\theta}}{h_{r}^{2}} \frac{\partial u}{\partial mh_{\theta}}[/itex]

[itex]\displaystyle \frac{\partial^{2}u}{\partial y^{2}} = \sin^{2}mh_{\theta} \frac{\partial^{2}u}{\partial h_{r}^{2}} + \frac{2\sin mh_{\theta}\cos mh_{\theta}}{h_{r}} \frac{\partial^{2}u}{\partial h_{r}\partial mh_{\theta}} + \frac{\cos^{2}mh_{\theta}}{h_{r}^{2}} \frac{\partial^{2}u}{\partial \left(mh_{\theta}\right)^{2}} + \frac{\cos^{2}mh_{\theta}}{h_{r}} \frac{\partial u}{\partial h_{r}} - \frac{2\sin mh_{\theta}\cos mh_{\theta}}{h_{r}^{2}} \frac{\partial u}{\partial mh_{\theta}}[/itex]

[itex]\displaystyle \frac{\partial^{2}u}{\partial x\partial y} = \sin mh_{\theta}\cos mh_{\theta} \frac{\partial^{2}u}{\partial h_{r}^{2}} + \frac{1}{h_{r}} \left(\cos^{2}mh_{\theta} - \sin^{2}mh_{\theta}\right) \frac{\partial^{2}u}{\partial h_{r}\partial h_{\theta}} - \frac{\sin mh_{\theta}\cos mh_{\theta}}{h_{r}^{2}} \frac{\partial^{2}u}{\partial mh_{\theta}}[/itex]

[itex]\displaystyle \Delta u=\frac{\partial^{2}u}{\partial r^{2}} + \frac{1}{r^{2}} \frac{\partial^{2}u}{\partial\theta^{2}} + \frac{1}{r} \frac{\partial u}{\partial r}[/itex]



The Attempt at a Solution



From what I can make up from the problem statement, I thought the way to go to solve this problem is just to substitute for the cartesian operators and variables in terms of the radial ones up to second-order in the expansion of [itex]u_{1,m}[/itex] and then by cancellation I would be left with something which resembles the continuous Laplacian in radial coordinates. However, when I do this I get the following result:

[itex]\displaystyle u_{1,m} = u\left(h_{r}\cos mh_{\theta},h_{r}\sin mh_{\theta}\right) = u\left(0,0\right) + h_{r} \frac{\partial u}{\partial h_{r}} + \frac{1}{2!}\left[h_{r}^{2} \frac{\partial^{2}u}{\partial h_{r}^{2}} + 2h_{r}\sin^{2}mh_{\theta}\cos^{2}mh_{\theta} \frac{\partial u}{\partial h_{r}} + 2\sin mh_{\theta}\cos mh_{\theta}\left(\cos^{2}mh_{\theta} - \sin^{2}mh_{\theta}\right) \frac{\partial u}{\partial mh_{\theta}}\right][/itex]

This substitution is kind of tedious, so I have carried it out twice now in order to avoid any mistakes, but this is the result I get. The first term naturally cancels with the term [itex]u_{0,0}[/itex] from the definition and the linear term seems to be correct (shouldn't this cancel, since it shoulde be second-order accurate?). However, the second-order terms do not really fit in for some reason. The first second-order term looks sort of right (except for a factor of 2 that is), but the other two second-order terms don't make much sense. Maybe I am going about this in completely the wrong way, but I do not really no what do differently really...

If someone could help me out with this, I would be very grateful.
 
Physics news on Phys.org
  • #2
Is there nobody who can help me out with this? Maybe the problem statement is not clear enough? (although this is exactly how it is stated in the original text).
 
  • #3
I'm currently trying my hand it this guy, but you might consider also posting this on the advanced physics part of the homework subform. These are the kind of manipulations physicists eventually become quite adept at doing.

EDIT: [STRIKE]Alright, I got it. Try substituting your expressions for [itex]\frac{\partial^2u}{\partial x^2}[/itex] and [itex]\frac{\partial^2u}{\partial y^2}[/itex] into the rectangular Laplacian.[/STRIKE]

EDIT: I take that back. oops.
 
Last edited:
  • #4
Wow, how embarrassing...

I made a huge mistake regarding the operator [itex]\frac{\partial^2}{\partial x\partial y}[/itex]. In my haste I assumed you could just multiply the operators [itex]\frac{\partial}{\partial x}[/itex] and [itex]\frac{\partial}{\partial y}[/itex], but this obviously is not true. It's correct expression is:

[itex]\displaystyle \frac{\partial^2}{\partial x\partial y} = \sin mh_{\theta}\cos mh_{\theta} \frac{\partial^2}{\partial h_r^2} + \frac{\sin^2mh_{\theta} - \cos^2mh_{\theta}}{h_r^2} \frac{\partial}{\partial mh_{\theta}} - \frac{\sin^2mh_{\theta} - \cos^2mh_{\theta}}{h_r} \frac{\partial^2}{\partial h_r\partial mh_{\theta}} + \frac{\sin^2mh_{\theta} - \cos^2mh_{\theta}}{h_r^2} \frac{\partial}{\partial mh_{\theta}} - \frac{\sin mh_{\theta}\cos mh_{\theta}}{h_r^2} \frac{\partial^2}{\partial mh_{\theta}^2}[/itex]

Haven't yet got around to trying this out, but surely this is why I did not end up with the right answer to the original problem.
 
  • #5
[STRIKE]
MJD3366 said:
Wow, how embarrassing...

I made a huge mistake regarding the operator [itex]\frac{\partial^2}{\partial x\partial y}[/itex]. In my haste I assumed you could just multiply the operators [itex]\frac{\partial}{\partial x}[/itex] and [itex]\frac{\partial}{\partial y}[/itex], but this obviously is not true. It's correct expression is:

[itex]\displaystyle \frac{\partial^2}{\partial x\partial y} = \sin mh_{\theta}\cos mh_{\theta} \frac{\partial^2}{\partial h_r^2} + \frac{\sin^2mh_{\theta} - \cos^2mh_{\theta}}{h_r^2} \frac{\partial}{\partial mh_{\theta}} - \frac{\sin^2mh_{\theta} - \cos^2mh_{\theta}}{h_r} \frac{\partial^2}{\partial h_r\partial mh_{\theta}} + \frac{\sin^2mh_{\theta} - \cos^2mh_{\theta}}{h_r^2} \frac{\partial}{\partial mh_{\theta}} - \frac{\sin mh_{\theta}\cos mh_{\theta}}{h_r^2} \frac{\partial^2}{\partial mh_{\theta}^2}[/itexHaven't yet got around to trying this out, but surely this is why I did not end up with the right answer to the original problem.
][/STRIKE]


This isn't right, I made some errors again. It really should be:

[itex]\displaystyle \frac{\partial^2}{\partial x\partial y} = \sin mh_{\theta}\cos mh_{\theta} \frac{\partial^2}{\partial h_r^2} - \frac{\sin mh_\theta\cos mh_\theta}{h_r} \frac{\partial}{\partial h_r} - \frac{\sin^2mh_{\theta} - \cos^2mh_{\theta}}{h_r} \frac{\partial^2}{\partial h_r\partial mh_{\theta}} + \frac{\sin^2mh_{\theta} - \cos^2mh_{\theta}}{h_r^2} \frac{\partial}{\partial mh_{\theta}} - \frac{\sin mh_{\theta}\cos mh_{\theta}}{h_r^2} \frac{\partial^2}{\partial mh_{\theta}^2}[/itex]
 

1. What is a Taylor expansion in radial coordinates?

A Taylor expansion in radial coordinates is a mathematical technique used to approximate a function using a series of polynomial terms. It is particularly useful for functions that are defined in terms of radial distance, such as those in polar or spherical coordinates.

2. How is a Taylor expansion in radial coordinates different from a traditional Taylor expansion?

A traditional Taylor expansion is based on the Taylor series, which is a representation of a function in terms of its derivatives at a single point. In contrast, a Taylor expansion in radial coordinates takes into account the specific geometric properties of a function defined in terms of radial distance.

3. What are the advantages of using a Taylor expansion in radial coordinates?

One advantage is that it allows us to approximate a function with a finite number of terms, which can be useful for numerical calculations. Additionally, it can often provide a better approximation for functions that are defined in terms of radial distance, compared to a traditional Taylor expansion.

4. How is a Taylor expansion in radial coordinates calculated?

To calculate a Taylor expansion in radial coordinates, we start by choosing a point around which we want to approximate the function. Then, we use the derivatives of the function at that point to construct the polynomial terms of the expansion. The result is a series of polynomial terms that can be used to approximate the function at any point within a certain radius from the chosen point.

5. What are some real-world applications of Taylor expansions in radial coordinates?

Taylor expansions in radial coordinates are commonly used in fields such as physics, engineering, and astronomy. They can be used to approximate the behavior of physical systems, such as the motion of planets in a solar system, or the propagation of electromagnetic waves. They are also useful in numerical methods for solving differential equations and in computer graphics for creating 3D models of objects.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
263
  • Calculus and Beyond Homework Help
Replies
8
Views
873
  • Calculus and Beyond Homework Help
Replies
3
Views
875
  • Calculus and Beyond Homework Help
Replies
11
Views
973
  • Calculus and Beyond Homework Help
Replies
4
Views
128
  • Calculus and Beyond Homework Help
Replies
3
Views
555
Replies
33
Views
3K
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
653
Back
Top