Differentiation summations by indexed function

In summary, differentiation summations by indexed function is the process of finding the derivative of a summation with terms that are functions indexed by a variable. It is important to understand this concept as it allows us to find the rate of change of a function represented as a summation. Common techniques used to solve differentiation summations include the chain rule, product rule, and quotient rule, as well as simplifying terms and using known summation formulas. The number of terms in the summation can affect the process, but the overall process remains the same. To avoid common mistakes, it is important to apply the correct rules and simplify terms before taking the derivative, and pay attention to the order of operations.
  • #1
ognik
643
2
Hi - looking at 'discretizing elliptical PDEs'.
I understand the normal lattice approach, but this approach uses the variational principle. I have a couple of questions please. The text says:
$ \: Given\: E=\int_{0}^{1} \,dx\int_{0}^{1} \,dy\left[\frac{1}{2}\left(\nabla \phi\right)^{2} - S\phi \right] $
"It is easy to show that E is stationary under all variations $\delta \phi$ that respect the Dirichlet boundary conditions imposed. Indeed the variation is $ \delta E=\int_{0}^{1} \,dx\int_{0}^{1} \,dy\left[\nabla \phi .\nabla \delta \phi - S \delta \phi \right] $
..which upon integrating the the second derivative by parts becomes...
$ \delta E=\int_{C} \,dl\: \delta \phi \vec{n} . \nabla \phi + \int_{0}^{1} \,dx \: \int_{0}^{1} \,dy\: \delta \phi \: \left[-\nabla^2 \phi - S \right] $
... where the line integral is over the boundary of the region of interest (C) and n is the unit vector to the boundary."

Sadly, while I recognize all the words and symbols, I cannot follow it at all; I also have no idea where they get the starting equation or what it means. The sometimes problem with computational physics is that it assumes certain background knowledge :-(. I am hoping someone can expand enough or provide a link so that I can follow all the above steps in detail?

The second question follows a short bit later in the text, apparently the above 'easily' leads to the following equation:
$ E= \frac{1}{2} \sum_{i=1}^{n}\sum_{j=1}^{n}\left[\left({\phi}_{ij} - {\phi}_{i-1,j}\right)^2 + \left({\phi}_{ij} - {\phi}_{i,j-1}\right)^2 -{h}^{2}\sum_{i=1}^{n}\sum_{j=1}^{n}{S}_{ij}{\phi}_{ij}\right] $

I probably don't need to understand how they get to the above equation - I'd just prefer to understand as much as I can, so again please help me to follow it.

What I really MUST do is now take a differential of the above w.r.t. $ {\phi}_{ij} $, IE $ \pd{E}{{\phi}_{ij}} $

I think that I can just differentiate inside the summations?
What do I do with the i-1 and j-1 terms?
------------------
Thanks for reading.
 
Mathematics news on Phys.org
  • #2
The variational principle is a powerful tool in solving PDEs numerically. It allows us to find the function that minimizes a given functional (in this case, the energy functional E) and satisfies certain boundary conditions. In this case, we are looking at a discretized version of an elliptical PDE on a 2D grid.

To answer your first question, the starting equation is the energy functional E, which is a measure of the total energy of the system. It is obtained by integrating the energy density (the integrand inside the integral) over the entire region of interest. The integrand itself is a combination of the kinetic energy (the first term) and the potential energy (the second term). The goal is to find the function phi that minimizes this energy functional.

The next step involves using the variational principle, which states that the variation of the energy functional is zero for the true solution. This means that the true solution will make the energy functional stationary. By "stationary", we mean that the variation of the energy functional with respect to the function phi is zero. This is where the boundary conditions come into play - the variations must respect the Dirichlet boundary conditions.

The variation of the energy functional is then calculated, and using integration by parts, we reach the final equation that you have mentioned. The line integral is over the boundary of the region of interest, and the unit vector n is used to ensure that the variation respects the boundary conditions.

To answer your second question, the equation that follows is just a discretized version of the energy functional, where the continuous variables have been replaced by discrete variables. The summations represent the contributions from each grid point, and the h term is the grid spacing. This equation is used for numerical calculations.

To take the differential with respect to phi, you can just differentiate inside the summations. The i-1 and j-1 terms will be taken care of by the chain rule. I hope this helps to clarify the steps in the discretization process.
 

FAQ: Differentiation summations by indexed function

What is meant by "Differentiation summations by indexed function"?

Differentiation summations by indexed function refers to the process of finding the derivative of a summation where the terms are functions that are indexed by a variable. This involves applying the chain rule and product rule to each term in the summation.

Why is it important to understand differentiation summations by indexed function?

Understanding differentiation summations by indexed function is important because it allows us to find the rate of change of a function that is represented as a summation of indexed functions. This can be useful in various applications, such as in economics, physics, and engineering.

What are some common techniques used to solve differentiation summations by indexed function?

Some common techniques used to solve differentiation summations by indexed function include applying the chain rule, product rule, and quotient rule, as well as using known summation formulas and simplifying the terms in the summation.

How does the number of terms in the summation affect the process of finding the derivative?

The number of terms in the summation can affect the process of finding the derivative, as it may require more steps and calculations. However, the overall process remains the same regardless of the number of terms in the summation.

Are there any common mistakes to avoid when solving differentiation summations by indexed function?

Yes, some common mistakes to avoid when solving differentiation summations by indexed function include forgetting to apply the chain rule, product rule, or quotient rule, and not simplifying the terms in the summation before taking the derivative. It is also important to pay attention to the order of operations when simplifying the terms.

Back
Top