This post is about mathematical formulas for my reference.
Integration by parts
For ordinary functions of one variable, the rule for integration by parts follows immediately from integrating the product rule
ddx(fg)=dfdxg+fdgdx,∫baddx(fg)dx=∫badfdxgdx+∫bafdgdxdx,fg|ba=∫badfdxgdx+∫bafdgdxdx.Rearraging, we obtain
∫badfdxgdx=fg|ba−∫bafdgdxdx.In an analogous way, we can obtain a rule for integration by parts for the divergence of a vector field by starting from the product rule for the divergence
∇⋅(fG)=(∇f)⋅G+f(∇⋅G).integrating both sides yields
∫∇⋅(fG)dτ=∫(∇f)⋅Gdτ+∫f(∇⋅G)dτ.Now use the divergence theorem to rewrite the first term, leading to
∫(fG)⋅dA=∫(∇f)⋅Gdτ+∫f(∇⋅G)dτ.which can be rearranged to
∫f(∇⋅G)dτ=∫(fG)⋅dA−∫(∇f)⋅Gdτ.which is the desired integration by parts.
Boundary conditions 1
One-dimensional scalar field ϕ
For a one-dimensional scalar field ϕ, we have three kinds of boundary conditions.
- boundary condition of the first kind:
which is typically called as Dirichlet boundary condition.
- boundary condition of the third kind:
which is called Robin boundary condition.
- boundary condition of the second kind:
γ=0, a special case of the third boundary condition, is also termed as Neumann condition.
Two-dimensional scalar field ϕ
Fig. Two-dimensional domain having a discontinuity interface .
For a two-dimensional scalar field ϕ, the three kinds of boundary conditions are
- boundary condition of the first kind, also known as Dirichlet boundary condition:
- boundary condition of the third kind, known as Robin boundary:
- boundary condition of the second kind:
The boundary condition of the second kind is a special case of the above equation with γ=0 which is known as Neumann boundary condition.
Three-dimensional scalar field ϕ
For a three-dimensional scalar field ϕ, the three kinds of boundary conditions are
- boundary condition of the first kind, also known as Dirichlet boundary condition:
- boundary condition of the third kind, known as Robin boundary:
- boundary condition of the second kind:
The boundary condition of the second kind is a special case of the above equation with γ=0 which is known as Neumann boundary condition.
Reference
-
Jian-Ming Jin, The finite element method in electromagnetics (2015). ↩