Daphne is a software system for creating and running the simulations of multi-cellular systems. This document provides guidance on the mathematics behind the simulation system.
Daphne is built on the generic processes of Newtonian mechanics, and generalized chemical kinetics, as well as a small number of cell biology-specific constructs. That is, for example, any entity that has a position changes its position in accordance with Newton’s laws. Forces arise in the mechanical interactions of cells and as a result of molecular interactions and molecular conformational changes. Collections of entities, typically cells or molecules, can be treated as continua and described by their concentration or density fields as well as by a lists of individual positions (and velocities). These fields obey kinetic equations derived from mass-action kinetics.
Molecular concentrations and related quantities are often modeled as continuous scalar fields in space that evolve continuously in time in response to physical processes, such as reaction and diffusion. Obtaining analytical solutions for these quantities at all spatial and time points is generally not possible for complex biological systems, and numerical techniques must be used to obtain approximations of the dynamical behavior of the system. Generally, techniques for approximating the temporal and spatial aspects of the problem are implemented independently.
Currently in Daphne, we implement two types of approximations for the spatial dependence of the system, moment-expansion and discrete, each with a distinct scalar field representation. In the moment-expansion scalar field representation, the spatial dependence of a quantity is represented by an infinite series expansion, with each successive term accounting for the next (higher-order) moment (of the spatial distribution) of the system. The spatial accuracy of the moment-expansion approximation is determined by the number of terms in the infinite series that are retained for calculations. With this numerical approach, the quantities of interest are still functions of continuous spatial variables. Currently, Daphne utilizes two-term moment-expansion fields to describe scalar fields in cells. The advantage of this representation is that it provides computational efficiency while still providing information about the spatial distribution, or polarity, of a scalar field, through the second (dipole) term. This polarity is crucial for modeling cellular processes, such as chemotaxis.
In contrast, the discretized numerical approach seeks solutions to the dynamical equations at only a (finite) set of discrete spatial points in the space of interest, and the values of quantities at intermediate spatial points are approximated through interpolation of the solutions at the discrete (lattice) points. The spatial accuracy of the discretized approximation is determined by the density of discrete points and the size of the neighborhood (number of nearest neighbors) that is used to approximate the equations.
We can represent a scalar field \(c({\bf v})\) as a moment expansion
where \({\bf v} \in \mathbb{R}^3\) and summation over indices is assumed. To first order,
Notes:
1. The definition (2) of the second-order moment-expansion is also applicable to scalar fields defined on surfaces \(\mathbb{R}^2\) in \(\mathbb{R}^3\).
- Moment-expansions of scalar fields defined on surfaces are defined in terms of vectors
in the embedding space (\({\bf v}\), \({\bf c}^{(1)}\) \(\in \mathbb{R}^3\)), even though the surface is inherently of lower order.
- However, the calculation and units of the coefficients \(c^{(0)}\) and \({\bf c}^{(1)}\)
are dependent upon the manifold (eg, ball, sphere) on which the scalar field is defined.
The zeroth moment \(c^{(0)}\) is the mean value of the scalar field.
4. The coefficients in the moment-expansion (2) are analogous to moments in statistics.
- In this sense, the scalar field is analogous to the probability density,
although it may not be normalized which is why \(c^{(0)}\) is not necessarily equal to one.
The first moment \({\bf c}^{(1)}\) is the mean (spatial) position.
To first order, the moment-expansion representation of the scalar field resulting from addition of two scalar fields is given by
To first order, the moment-expansion representation of the scalar field resulting from multiplication of two scalar fields is
We have a spherical surface \(S\) of radius \(\rho\) centered at the origin with a scalar field \(c({\bf x})\) defined on the surface, where \({\bf x}\) is a vector pointing from the origin to the point \((x,y,z)\) on the sphere surface.
The moment-expansion representation of the scalar field \(c({\bf x})\) on the sphere is given by
where the coefficients \(c^{(0)} \in \mathbb{R}\) and \({\bf c}^{(1)} \in \mathbb{R}^3\) are given by the moment equations
and have the units \(\left[ c \right]\) and \(\frac{[c]}{L}\), respectively.
Figure 1: The global ECS \(Y\)-coordinate system and the local \(y\)-coordinate system of the sphere. The sphere is located at position \({\bf Y_s}\). The vector \({\bf x}\) refers to a point on the surface of the sphere. The vector \({\bf y}\) refers to a point in, or on the surface of, the sphere.
Application of the gradient operator \(\nabla f = \frac{\partial f}{\partial x} \hat{x} + \frac{\partial f}{\partial y} \hat{y} + \frac{\partial f}{\partial z} \hat{z}\) to a moment-expansion scalar field on the sphere gives, to first order,
where \({\bf \hat{u}} = u_x\hat{x} + u_y \hat{y} + u_z \hat{z} = \frac{ x \hat{x} + y \hat{y} + z \hat{z} }{ \left( x^2 + y^2 + z^2 \right)^{\frac{1}{2}} }\) is the unit vector from the origin in the direction of the point \((x,y,z)\) on the sphere.
Using the identities (121) and (134) and the fact that \({\bf c^{(1)}}\) is a constant vector, the right-hand side of (8) can be written as
The right-hand side of (9) has vector components \(\left( \sum_{i=1}^{3} c^{(1)}_i \partial_i \right) u_j\) with \(j=1,2,3\), which produce the following terms for the \(x\) -component (\(j=1\) case)
Gathering the terms in (10) and generalizing to the \(y\)- and \(z\)-components gives
and
Combining (8) and (12) gives the first-order moment expansion of the gradient of a scalar field on the sphere
The result of the application of the Laplacian operator to a scalar field on the sphere can be (to first order) resolved into it’s first two moment-expansion components
with units of \(\frac{[c]}{L^2}\) and \(\frac{[c]}{L^3}\) for the coefficients \(l^{(0)}\) and \({\bf l^{(1)}}\) , respectively.
Zeroth moment. The zeroth moment of the laplacian operator acting on the scalar field is given by
where \({\bf \hat{u}} =u_x\hat{x} + u_y\hat{y} +u_z \hat{z} = \frac{ x \hat{x} + y \hat{y} + z \hat{z} }{ \left( x^2 + y^2 + z^2 \right)^{\frac{1}{2}} }\) is the unit vector from the origin in the direction of the point \((x,y,z)\) on the sphere.
Using the results in Section Laplacian of scalar field integrated over sphere surface, \(\int_{S} dS\, \nabla^2 c({\bf x})= 0\) and
First moment. The first moment of the laplacian operator acting on the scalar field is given by
where \({\bf \hat{u}} =u_x\hat{x} + u_y\hat{y} +u_z \hat{z} = \frac{ x \hat{x} + y \hat{y} + z \hat{z} }{ \left( x^2 + y^2 + z^2 \right)^{\frac{1}{2}} }\) is the unit vector from the origin in the direction of the point \((x,y,z)\) on the sphere.
Using the identity (138) we get
We will apply the first order gradient expansion (13), \({\bf \nabla} c ({\bf \hat{u}}) = {\bf c^{(1)}} - \left( {\bf c^{(1)}} \cdot {\bf \hat{u}} \right) {\bf \hat{u}}, \;\) to the terms on the right-hand side of the above equation and keep only first order terms.
First term.
Second term.
Third term.
Applying the identity (143), \(\int_{S} dS \;\; \left( {\bf a} \cdot {\bf\hat{u}} \right) \hat{\bf u} = \frac{4 \pi}{3} \rho^2 {\bf a}, \;\,\)
gives
In summary, the moment-expansion representation of the laplacian applied to a scalar field defined on the sphere is given, to first order, by
The diffusion equation is
where \(\zeta\) is the diffusion coefficient. Applying (23) to (24) and keeping first-order terms gives
Consider a 3D volume \(V\) with coordinate system \({\bf Y}\), a scalar field \(F({\bf Y})\) defined in \(V\), and a spherical surface \(S\) with radius \(\rho\) located at position (sphere center) \({\bf Y_s}\) in \(V\).
The value of the scalar field at the surface of the sphere can be approximated by a moment-expansion scalar field \(f({\bf x})\) defined with respect to a local coordinate system \({\bf x}\) at \({\bf Y_s}\)
In the limit of that the radius of the sphere is very small, we can approximate that the scalar field \(F({\bf Y})\) is unperturbed by the presence of the sphere. Then using the Taylor expansion,
in the definition for the zeroth moment (7) gives
Similarly, using the above Taylor expansion, as well as relation (143) in the definition of the first moment (7) gives
In summary, the restriction of a scalar field \(F({\bf Y})\) defined in \(V\) to the surface of a sphere in \(V\) can be described by a moment-expansion scalar field \(f({\bf x})\) relative to the local coordinates system, where
Figure 2: The global ECS \(Y\)-coordinate system and the local \(y\)-coordinate system of the sphere. The sphere is located at position \({\bf Y_s}\). The vector \({\bf x}\) refers to a point on the surface of the sphere..
We have a ball \(B\) of radius \(\rho\) centered at the origin with a scalar field \(c({\bf y})\) defined in the ball, where \({\bf y}\) is a vector pointing from the origin to a point (\(x,y,z\)) in or on the ball.
The first-order moment-expansion representation of the scalar field \(c({\bf y})\) is
where the coefficients \(c^{(0)} \in \mathbb{R}\) and \({\bf c^{(1)}} \in \mathbb{R}^3\) are given by the moment equations
with units \(\left[ c \right]\) and \(\frac{[c]}{L}\), respectively.
Application of the gradient operator \(\nabla f = \frac{\partial f}{\partial x} \hat{x} + \frac{\partial f}{\partial y} \hat{y} + \frac{\partial f}{\partial z} \hat{z}\) to a moment-expansion scalar field in the ball gives, to first order,
where \({\bf y} = y_1 \hat{x} + y_2 \hat{y} + y_3 \hat{z}\) is the vector from the origin to the point \((x,y,z)\) in the sphere. Using the vector identity (121) and the fact that \({\bf c^{(1)}}\) is a constant vector,
since \({\bf \nabla} \times {\bf y}=0\) and \(\frac{\partial {\bf y}}{\partial y_i} = \hat{y}_i\).
The result of application of the laplacian operator to a scalar field defined in the ball \(B\) can be resolved into its moment expansion terms
with units of \(\frac{\#}{L^5}\) and \(\frac{\#}{L^6}\) for the coefficients \(l^{(0)}\) and \({\bf l^{(1)}}\) , respectively.
Zeroth moment. The zeroth moment is given by
We will use the divergence theorem,
where \(\hat{\bf x}\) is the (outward-pointing) unit normal vector to the surface. Application to (36) gives
Equation (38) shows that the coefficient for the zeroth-moment expansion term is zero in the interior of the ball and specified by the boundary conditions at the surface of the ball.
First moment.
Focusing on the first moment
Applying (34) to the second term on the right-hand side of the above equation gives
Gathering the results above, we see that the first-order moment-expansion coefficients resulting from application of the Laplacian to a scalar field in the ball are given by
This can seem confusing at first because the surface integral terms, which are only defined on the surface of the ball (\({\bf y}={\bf x}\)), contribute to the scalar field everywhere (all \({\bf y}\)). For instance, in the case of an interpolated scalar field, the flux terms would only contribute to the interpolated nodes at, or in the vicinity of, the surface of the sphere. In the case of moment-expansion fields however, these terms contribute to the calculation of the moments which are used to calculate the value of the field everywhere.
The rate of change of the concentration \(f({\bf y})\) of a molecular species in the ball due to diffusion can be written as a first-order moment-expansion scalar field
where \(\zeta\) is the diffusion coefficient \(\left(\!\! \mbox{units } \frac{L^2}{T} \right)\) and \(l^{(0)}\) and \({\bf l^{(1)}}\) are defined in (42).
We will utilize Fick’s law,
where \(\phi({\bf x})\) is the flux through the surface at \({\bf x}\), flux is defined to be the amount of material per unit area per time \(\left([\phi] = \frac{\#}{T L^2}\right)\) moving through a surface, and \({\bf \hat{n}}\) is the outward-pointing normal to the surface.
Then using (42) in the diffusion equation (43) and utilizing (44), the moment-expansion representation of the rate of change of \(f({\bf y})\) due to diffusion is
Note that the flux is a scalar field defined on the sphere and can be approximated by a first-order moment-expansion scalar field on the surface of the sphere
Then the first-order moment-expansion representation of the rate of change of \(c({\bf y})\) (45) becomes
Checking units:
We have a ball \(B\) of radius \(\rho\) centered at the origin with a two-dimensional concentration of receptor \(r({\bf x},t)\) and complex \(c({\bf x},t)\) on the surface \(S\) of the sphere, where \({\bf x}\) is a vector pointing from the origin to the sphere surface. We have a concentration of ligand \(l({\bf y},t)\) in the three-dimensional space of the interior of the ball \(B\), where \({\bf y}\) is a vector from the origin.
Boundary association: ligand/receptor binding
Ligand binds receptor on the surface of the sphere according to the reaction
Ignoring diffusion, the concentrations evolve according to the relation
where \(\phi_L\) is the flux of ligand at the surface due to the reaction. The right-hand side of (49) can be represented as a first-order moment expansion on the surface of the sphere
with the following moment-expansion terms
so
We will make use of
Then
and
In summary, for the case of a boundary association reaction the ligand flux is given by
The boundary association dynamics can be written in terms of the dynamics of the moment-expansion coefficients for the flux, receptor, and complex
Using (47), the rate of change of the ligand due to the reaction flux is
Boundary dissociation
Complex on the surface of the sphere dissociates according to the reaction
Ignoring diffusion, the concentrations evolve according to the relation
where \(\phi_L\) is the flux of ligand at the surface due to the reaction. The right-hand side of (61) can be represented as a first-order moment expansion
with the following moment-expansion terms
so
We will make use of
Then
so
In summary, for the case of a boundary dissociation reaction
The boundary dissociation dynamics can be written in terms of the dynamics of the moment-expansion coefficients for the flux, receptor, and complex
Using (47), the rate of change of the ligand due to the dissociation reaction flux is
Catalyzed boundary activation
Molecule \(A\) inside the sphere binds to complex \(C\) on the surface of the sphere. Activated (driver) molecule \(A^{*}\) deactivates to \(A\).
The dynamical equation governing the activated driver concentration is (neglecting diffusion)
where in the last equation on the right-hand side we are representing the time rate of change of \(a^{*} ({\bf y},t)\) as a first-order moment expansion with coefficients
A time-dependent scalar field \(c({\bf x, t})\) with \({\bf x}\in \mathbb{R}^d\), \(t \in (0, \infty)\) in \(d\)-dimensional space, can be approximated by a discretized scalar field of the form
where \(C_{i}\) is the value of the scalar field at the \(i\) th point, \(N = \prod_{i=1}^{d} n_i\), \(\,n_i\) is the number of lattice points in the \(i\) th dimension, \(d\) is the dimension of the space, and \(\psi_i\) are interpolation functions. We assume that the node points are uniformly spaced with grid-step \(h\) the same in all dimensions, and use the notation \({\bf x^{(n)}}=(x_{1}^{(n)},x_{2}^{(n)},\ldots, x_{d}^{(n)})\) to designate the \(n\) th lattice point.
We will make use of the Taylor expansion for functions with three-dimensional spatial dependence
We will also make use of the notation \({\bf h}_i \equiv ( \delta_{i1}, \delta_{i2}, \delta_{i3})h\), where \(\delta_{ij}\) is the Kronecker delta
To approximate first derivative in the \(x_1\)-direction at the lattice points, we use \({\bf h}=(\pm h,0,0)\) with the Taylor expansions (81). Then
Subtracting the two equations above gives the \(x_1\)-derivative to first order at the \(n\text{th}\) lattice point
Generalizing to other dimensions and using (84) and (82), the gradient operator to first order (in a rectilinear coordinate-system) is
where \({\bf\hat{x}_i}\) is the unit vector in the \(i\text{th}\) dimension.
We only consider boundary surfaces whose unit normal are coincident with the rectilinear axes of the space.
The central differences in (85) cannot be evaluated at the boundaries. To approximate the gradient at the boundary, we use a polynomial approximation of the function to get a first order estimate of the derivative in the direction perpendicular to the boundary surface. For example, in the vicinity of the boundary point \((x_1=0, x_2, x_3)\), we approximate the function as \(f(x_1,x_2,x_3) \approx c_0 + c_1 x_1 + c_2 x_1^2\). Then,
Solving for the coefficients \(c_0\) and \(c_1\) gives
Differentiating the polynomial and evaluating at \(x=0\) gives
which approximates the derivative in the direction perpendicular to the boundary in terms of the values at the boundary node and neighbor nodes.
Similarly, in the vicinity of the boundary point \((x_1=L, x_2, x_3)\) we approximate the function as \(f(x_1,x_2,x_3) \approx c_0 + c_1 x_1 + c_2 x_1^2\). Then,
From the first equation we obtain \(c_0 = f(L,x_2,x_3) - c_1 L - c_2 L^2\). Multiplying the second equation by 4, subtracting the third equation and using the above result, gives
Differentiating the polynomial at \(x=L\) and using the result above gives
Approximation of the derivatives at other boundaries follow in a similar manner.
To approximate second derivatives, we add the two equations in (83). This gives the second derivative in the \(x_1\)-direction (to first order)
where again we are using the notation \({\bf h}_i \equiv ( \delta_{i1}, \delta_{i2}, \delta_{i3})h\).
Generalizing to other dimensions and using (84) and (82), the Laplacian operator to first order (in a rectilinear coordinate-system) is
Consider a scalar field \(f({\bf x},t)\) describing the time-dependent concentration of molecules in volume \(V\) with surface \(S\). The time evolution of \(f({\bf x},t)\) due to diffusion is given by
subject to boundary conditions
where \(\zeta\) is the diffusion coefficient, \(\phi({\bf x})\) is the flux (amount of material per unit area per time) through a surface element at position \({\bf x}_s\) on \(S\), and \({\bf \hat{n}}\) is the unit normal to the surface, which points out of the volume.
Using (93), the Laplacian applied to lattice points on the interior is, to first order, given by
where again \({\bf h}_i \equiv ( \delta_{i1}, \delta_{i2}, \delta_{i3}) h\) and \(\delta_{ij}\) is the Kronecker delta.
When we impose flux boundary conditions, we specify the flux \({\bf \phi}({\bf x}_s)\) at the surface point \({\bf x}_s\). Then from (96), this imposes a gradient at the surface
Flux at natural boundaries
In general, the discretized points of the volume may not be coincident with the discretized points of the surface. Such cases will occur for curved surfaces or for surfaces moving with respect to the volume, such as with cells. We define natural boundaries to be those boundaries for which the lattice points of the surface are coincident with lattice points of the volume.
Consider a lattice point \({\bf x_s}^{(n)}\) on the surface of a volume. Using (96) and (85), the flux condition on the gradient at \({\bf x_s}^{(n)}\) can be written as
where again \({\bf h}_i \equiv ( \delta_{i1}, \delta_{i2}, \delta_{i3}) h\). For \({\bf x_s}^{(n)}\) on the surface, 1 to 3 of the evaluation points \({\bf x}_s^{(n)} \pm {\bf h}_i\) lie outside the volume. We impose the flux by calculating the value of the field at these {it virtual (image)} lattice points as function of the applied flux (using (98)), then substitute these resulting expressions for the virtual points in the application of the Laplacian at the surface point (93).
Let us illustrate with some simple cases.
Consider the scalar field \(f({\bf x}, t)\) defined in the volume \(V\), which is a rectangular prism with extents \(0 \le x_1 \le L_1\), \(0 \le x_2 \le L_2\), and \(0 \le x_3 \le L_3\), with flux \(\phi\) specified at the natural boundaries.
Example 1: Consider the point \(x_1=L_1\) on the boundary , with \({\bf x_{1L}} \equiv (L_1,x_2,x_3)\) and \({\bf \hat{n}} = (1, 0,0)\). Then using (98), we can compute the value of the virtual lattice point \(f(L_1+h_1,x_2,x_3)\)
Substituting this in the equation for the Laplacian (93) gives the second derivative in the \(x_1\) direction at the boundary point as a function of the applied flux
Example 2: Consider the point on the boundary \(x_1=0\), with \({\bf x_{10}} \equiv (0,x_2,x_3)\) and \({\bf \hat{n}} = (-1, 0,0)\). Using (98), we can compute the value of the virtual lattice point \(f(-h_1,x_2,x_3)\)
Substituting this in the equation for the Laplacian (93) gives the second derivative in the \(x_1\) direction at the boundary point as a function of the applied flux
Consider a spherical surface \(S\) with flux \(\phi\) at an arbitrary location \({\bf x_s}\) in the volume \(V\). (In this case, the surface is not a natural boundary.) If the radius \(\rho\) of the sphere is much less than the distance \(h\) between lattice points \(\rho \ll h\), then the flux acts like a point source and the rate of change of the concentration at \({\bf x}_s\) is give by
We use interpolation to distribute the change in concentration to the lattice points of the voxel that contains the point:math:{bf x}_s.
A Dirichlet boundary conditions specifies a fixed value \(\psi({\bf x}_s)\) for the function at the boundary point \({\bf x}_s\). Therefore, the value of the function at the boundary does not change in time and
Essentially, there are no boundaries for the toroidal case; material that diffuses through one face enters through the opposite face.
Consider the scalar field \(f({\bf x}, t)\) defined in the volume \(V\), which is a rectangular prism with extents \(0 \le x_1 \le L_1\), \(0 \le x_2 \le L_2\), and \(0 \le x_3 \le L_3\) and toroidal boundary conditions.
Example 1: Consider the point \(x_1=L_1\) on the boundary, with \({\bf x_{1L}} \equiv (L_1,x_2,x_3)\). Applying the toroidal boundary condition \(f(0,x_2,x_3) = f(L_1,x_2,x_3)\) to the second derivative in the \(x_1\)-direction (92) gives
Example 2: Consider the point \(x_1=0\) on the boundary, with \({\bf x_{10}} \equiv (0,x_2,x_3)\). Applying the toroidal boundary condition \(f(0,x_2,x_3) = f(L_1,x_2,x_3)\) to the second derivative in the \(x_1\)-direction (92) gives
We will use the following notation in this section.
Figure 3: Node designations for interpolation.
Point \(f^0\) lies in the pixel with surrounding nodes: \(f^1\), \(f^2\), \(f^3\), and \(f^4\) (Figure 3). We use a 2D Taylor expansions about point \(f^0\) to approximate the function at the surrounding nodes
Combining the first two and last two equations in (107) gives
Combining the equations in (108) gives
Finally,
where \(\Delta \equiv \frac{\delta}{h}\).
Equation (110) can be easily generalized to the 3D case.
Applying the bilinear interpolation equation (110) to the \(x\)-derivative \(f_x^0\) at point \(x^0\) gives
Using the first-order approximations for the derivatives at the node points (84)
in (111) gives
The derivatives calculated with (113) are continuous across nodes.
Base node \((i,j)\).
Equation (113) can easily be generalized to derivatives in other dimensions and to the 3D case.
Figure 4: Node designations for interpolation.
Case 1: Consider the case of gradient interpolation at point \(f^0\), which lies in the pixel with surrounding nodes 1,2, 3, an 4, with associated function values \(f^1\), \(f^2\), \(f^3\), and \(f^4\) (Figure 4 (a)), where nodes 1 and 2 lie on the boundary.
Applying the bilinear interpolation equation (110) to the \(x\)-derivative \(f_x^0\) at point \(x^0\) gives
Using the first-order approximations for the derivatives at the node points (84) and (91)
in (115) gives
Case 2: Consider the case of gradient interpolation at point \(f^0\), which lies in the pixel with surrounding nodes 1,2, 3, an 4, with associated function values \(f^1\), \(f^2\), \(f^3\), and \(f^4\) (Figure 4 (b)), where nodes 3 and 4 lie on the boundary.
Applying the bilinear interpolation equation (110) to the \(x\)-derivative \(f_x^0\) at point \(x^0\) gives
Using the first-order approximations for the derivatives at the node points (84) and (91)
in (118) gives
This is a collection of identities, proofs, etc. to aid the presentation in the previous sections.
For a scalar field \(a({\bf y})\) with \({\bf y} = y_1{\bf\hat{x}_1} + y_2{\bf\hat{x}_2} + z{\bf\hat{x}_3}\) a vector from the origin to point \((y_1,y_2,y_3)\), if \(F \equiv \left( \nabla^2 a({\bf y}) \right) {\bf y}\) then if follows that :math:` F = left( sum_i partial_i^2 a({bf y}) right) {bf y}mbox{ }` and
since \(\partial_i y_j=\delta_{ij} y_j\).
But
Then
Divergence theorem,
where \({\bf A}\) is a vector and \({\bf \hat{n}}\) is the normal to the surface.
Ball \(B\) of radius \(\rho\) centered at the origin, Scalar field \(a( {\bf y} )\) with \({\bf y} = y_1{\bf\hat{x}_1} + y_2{\bf\hat{x}_2} + z{\bf\hat{x}_3}\) a vector from the origin to point \((y_1,y_2,y_3)\), \({\bf x}=\rho {\bf \hat{x}}\).
Spherical coordinate convention:
This is the convention commonly used in physics (and Wikipedia!), while the mathematics conventions swap \(\theta\) and \(\phi\). (http://mathworld.wolfram.com/SphericalCoordinates.html)
http://en.wikipedia.org/wiki/Del_in_cylindrical_and_spherical_coordinates
http://en.wikipedia.org/wiki/Del_in_cylindrical_and_spherical_coordinates
http://mathworld.wolfram.com/SphericalCoordinates.html
The (cartesian coordinates) Laplacian converted to spherical coordinates is
http://skisickness.com/2009/11/20/
Consider a sphere of radius \(\rho\) centered at the origin, a point \((x,y,z)\) on the sphere surface, \(x^2+y^2+z^2=\rho^2\), and \({\bf \hat{u}} = \frac{ x \hat{x} + y \hat{y} + z \hat{z} }{ \left( x^2 + y^2 + z^2 \right)^{\frac{1}{2}} }\) a unit vector from the origin.
Given the gradient operator \(\nabla f = \frac{\partial f}{\partial x} \hat{x} + \frac{\partial f}{\partial y} \hat{y} + \frac{\partial f}{\partial z} \hat{z}\), show that
Applying the relation \({\bf \nabla} \times {\bf a} = \left( \frac{\partial a_z}{\partial y} - \frac{\partial a_y}{\partial z} \right)\hat{x} + \left( \frac{\partial a_x}{\partial z} - \frac{\partial a_z}{\partial x} \right) \hat{y} + \left( \frac{\partial a_y}{\partial x} - \frac{\partial a_x}{\partial y} \right) \hat{z}\) to the \(x\)-component of (134) gives
The same pattern holds for the \(y\)- and \(z\)-components.
Using (133)
So
Consider scalar field \(c({\bf x})\) defined on the surface of a sphere of radius \(\rho\) centered at the origin, point \((x,y,z)\) on the surface of the sphere, and \({\bf \hat{u}} =u_x\hat{x} + u_y\hat{y} +u_z \hat{z} = \frac{ x \hat{x} + y \hat{y} + z \hat{z} }{ \left( x^2 + y^2 + z^2 \right)^{\frac{1}{2}} }\) a the unit vector from the origin in the direction of the point \((x,y,z)\) on the sphere.
Show that the integral the Laplacian of scalar field over the surface of a sphere is zero.
Applying (132) to (139) gives the following components.
Since \(\frac{\partial c(\theta,\phi)}{\partial r}\).
and
So, \(\int_{S} dS\, \nabla^2 c({\bf x}) =0\).
Consider a vector \({\bf a}\), a sphere \(S\) of radius \(\rho\) centered at the origin, and a unit vector \({\bf \hat{u}}\) from the origin.
Show that
In terms of spherical coordinates
where we are using the convention that \(\theta\) is the azimuthal angle - the angle in the \(xy\)-plane (\(0 \le \theta \le 2\pi\)) and \(\phi\) is the polar (zenith) angle - the angle with respect to the \(z\)-axis (\(0 \le \phi \le \pi\)).
Then
For \(V\) a ball of radius \(\rho\) centered at the origin, vector \({\bf a}\), \({\bf x}\) a vector from the origin, and \({\bf \hat{n}} = \rho {\bf x}\) a unit vector from the origin.
Show that
In terms of spherical coordinates
where we are using the convention that \(\theta\) is the azimuthal angle - the angle in the \(xy\)-plane (\(0 \le \theta \le 2\pi\)) and \(\phi\) is the polar (zenith) angle - the angle with respect to the \(z\)-axis (\(0 \le \phi \le \pi\)).
For \(V\) a ball of radius \(\rho\) centered at the origin, vector \({\bf a}\), \(a({\bf y})\) a scalar field, \({\bf y}\) a vector from the origin, \({\bf y({\bf x})} = {\bf x}\) a vector from the origin to the surface of the sphere, and the unit vector \({\bf \hat{x}}=\frac{1}{\rho} {\bf x}\).
Show that
In terms of spherical coordinates
where we are using the convention that \(\theta\) is the azimuthal angle - the angle in the \(xy\)-plane (\(0 \le \theta \le 2\pi\)) and \(\phi\) is the polar (zenith) angle - the angle with respect to the \(z\)-axis (\(0 \le \phi \le \pi\)).