Many laws of physics are expressed as either ordinary differential equations or partial differential equations.
Recall from mechanics that the equation for the position of a particle in a uniform gravitational field is given by the ordinary differential equation
mdt2d2xβ=βmg
This equation does not explicitly give the position of a mass versus time. To determine, one must first obtain a solution to this equation.
A general solution for x(t) has the form
x(t)=C1β+C2βtβgt2/2
where C1β and C2β are two constants.
To use this equation to find x(t) for a mass, the values of the two constants must be known. Usually these two constants are determined based on the initial values of x and dx/dt. For example, if x(t=0)=0 and v(t=0)=0, then C1β=C2β=0 and the trajectory of the mass is given by x(t)=βgt2/2.
This type of problem is called an initial value problem β given a differential equation for the position of the mass and itβs initial values of x and v, we arrive at a solution for x for all t. Another example of an inital value problem is for the position x of a mass on a spring. The differential equation for x is d2x/dt2βΟo2βx=0. A general solution is x(t)=C1βsin(Οoβt)+C2βcos(Οoβt).
A boundary value problem involves first finding a general solution to a partial differential equation with respect to the position (instead of time). The solution will have constants whose values are determined by the conditions at the boundary. For example, in electrostatics
βx2β2Vβ=0
is a partial differential equation for V for a system where the symmetry is such that the potential only depends on x. If we want to know V(x), we need to know a general solution to this equation. It is
V(x)=C1β+C2βx
The values for C1β and C2β are determined based on boundary conditions. For example, V(x=0)=0 and V(x=L)=Voβ.
In this course, you will only be required to know how to derive the general solution for partial differential equations in 1βD for cartesian, cylindrical, and spherical coordinates. Derivations are given in the 1βD section.
For 2β and 2βD partial differential equations, you will be given the general solution and asked to find the unknown constants given boundary value information.
for N discrete charges, or the continuous approximation
V(r)=β«β£rβrβ²β£kdqβ
along with a given line, surface, or volume charge density (Ξ»,Ο, or Ο, respectively).
In many problems, we donβt know the locations of the charges in the system. Consider the scenario shown in the following figure in which a net charge of Q is placed on a conductor.
The charges on the conductor will distribute themselves so that the electric field in the conductor is zero. In general, we donβt know what the distribution will be β we only know that whatever it is, it is such that the electric field is zero inside.
If the top cap is centered on the origin and in the xβy plane, to compute the potential due to the top cap outside of the conductor, we may be tempted to start with
which was the approach used to find the potential due to charges distributed on a disk with a given Ο(s). However, in this case, we donβt know Ο(s) and so we are stuck. A brute-force method of computing Ο uses the fact that the V must be constant on the conductor: guess Ο the top, bottom, and side surfaces, compute V using integration, and then repeat until a V is found that is constant on the conductor.
In summary, we can only use the integral formula for V if the charge densities are known. In general, if we place a net charge on a conductor, we do not know how it will distribute on its surface.
Problems of type 2. are called boundary value problems and are generally solved by finding solutions to a partial differential equation called Poissonβs equation:
β2V=βΟ΅0βΟβ
β2 is a new form of operator. It involves operation on a scalar function f and results in a scalar function. In cartesian coordinates,
β2f=βx2β2fβ+βy2β2fβ+βz2β2fβ
Therefore, Poissonβs equation in cartesian coordinates is
Similar to the divergence and gradient operators, the β2 operator (also called the Laplacian or βdel squaredβ) has different forms for each coordinate system. These are given on the secondβto last page of Griffiths.
Laplaceβs equation is Poissonβs equation with Ο=0:
Poissonβs Equation, β2V=βΟ/Ο΅0β, follows directly from inserting the definition of the electric potential E=ββV into Gaussβ Law in differential form ββ E=Ο/Ο΅0β.
Gaussβs law in differential form is
ββ E=Ο΅0βΟβ
Using E=ββV, this is
ββ (ββV)=Ο΅0βΟβ
To evaluate ββ (ββV), first write βV in cartesian
Suppose that we connect a battery with a potential difference Voβ to two large conducting plates. We want to know how V varies between the plates.
This problem can be solved using two approaches.
By assuming the potential causes equal and opposite amount of charge to be uniformly distributed on the plates. This approach can only be used because we know (or assume) how the charges will distribute on the surfaces. If the plates were not large, we could not use this method.
Assume charges of Β±Q appear on the plates when the battery is connected so that the surface charge densities are Β±Q/A and use the method demonstrated in the capacitance notes notes to find V(x).
The electric field between the plates is E=βΟ/Ο΅oβx^. Using V(x)=V(a)ββ«axβEβ dl with a=0 and dl=dxβ²x^
V(x)=V(0)ββ«0xββΟ΅oβΟβdxβ²
Integration gives
V(x)=V(0)+Ο΅oβΟβx
We are not done because we need to write Ο in terms of Voβ. To compute Ο, plug in x=d to get
V(d)βV(0)=Ο΅oβΟβd
The difference in potential V(d)βV(0) was given as Voβ. Substitution gives
Voβ=Ο΅oβΟβdβΟ=Ο΅oβdVoββ
Plugging this Ο into V(x)=V(0)+Ο΅oβΟβx gives
This problem may also be solved using Laplaceβs equation.
Between the plates, there are no charges, so Ο=0 and Laplaceβs equation applies. If the plates are large, then the potential will only vary in the xβdirection, in which case Laplaceβs equation in cartesian components simplifies to:
β2V=βx2β2Vβ=0
This can be written as
β2V=dx2d2Vβ=0
because V only depends on x. This equation can be integrated twice to give
V(x)=ax+b
where a and b are constants. You can verify that V=ax+b satisfies β2V/βx2=0 by differentiating it twice with respect to x.
The interpretation of this equation is that in a configuration where it can be argued that potential only depends on x, the potential must increase or decrease linearly or be constant. In this example, the two boundary conditions are
V(x=0)=0
V(x=d)=Voβ
These two conditions give two equations that can be solved to find the unknown constants a and b:
V(x=0)=0=aβ 0+bβb=0
V(x=d)=Voβ=ad+b=ad+0βa=Voβ/d
so the solution is
V(x)=dVoββx
This is the same result found using the charge method, V(x)=V(0)+Voβdxβ, if we set V(0)=0 to be consistent with what was used in Laplaceβs equation method.
After developing a solution to Laplaceβs equation, one should always verify that the solution matches the boundary conditions, in this case by plugging in the coordinates of the boundary:
V(x)=dVoββxβV(0)=0 so the solution matches the x=0 boundary condition
V(x)=dVoββxβV(d)=Voβ so the solution matches the x=d boundary condition
1-D examples are simple. As will be seen when 2- and 3-D problems are considered, typically, one cannot find a single equation that satisfies all boundary conditions by following this method; a function can be found that satisfies some but not all of the boundary conditions. To fully solve the problem, one has to rely on the so-called βFourier Trickβ to find a solution. This method is described in 2-D Cartesian.
A student came up with the following equation for the potential between the plates: V(x)=Voβ(tanβ1(x/d+1/2)+(x/d)3). Without doing a calculation, we know this is wrong or the expression simplifies to V(x)=Voβx/d. Why?
Two long and concentric conducting cylinders of radius a and b are configured as shown in the following figure.
Assume the potential on the inner cylinder is Voβ and that on the outer cylinder is 0.
The cylinders are conductors, and if they are long relative to their radius, the charges that appear on them will be approximately uniformly distributed on their surfaces. If the charge distribution is independent of Ο and z, the potential will not depend on Ο and z. So V=V(s).
Subsitution of these constants into V(s)=C1βlns+C2β gives
V(s)=ln(a/b)Voββ(lnsβlnb)
as a check of the algebraic steps, plug in s=a and s=b into this equation and verify that the boundary conditions used, V(a)=Voβ and V(b)=0 are satisfied.
The electric field can be found using E=ββV. In cylindrical coordinates, when V depends only on s, the negative of the gradient of V is given by
ββV=ββsβVβs^
Evaluation of the derivative gives
E=βln(a/b)Voββs1βs^
Using βln(a/b)=ln(b/a), this can also be written as
E=ln(b/a)Voββs1βs^
This field points from a to b (in +s^ direction) as expected because the potential on the inner surface is higher than that on the outer surface.
1. Find V(r) that satisfies r21ββrββ(r2βrβVβ)=0 in terms of r and two unknown constants.
2. Two concentric spherical conducting shells are connected to a battery such that the inner shell is at a potential of 0 and the outer shell is at a potential of Voβ. The inner shell has an outer radius of a. The outer shell has an inner radius of b. Use your equation from part 1. and these boundary conditions to find V(r) between the conductors in terms of Voβ, a, and b.
3. In section 2.5.3 of Griffiths, the equation for the electric field immediately outside of a conductor is stated to be E=(Ο/Ο΅oβ)n^. Use the potential V(r) found in part 2. to find the electric field E(r) between a and b and then evaluate this electric field at a and b to find the surface charge densities at a and b.
4. Use equation for capacitance for this configuration (see capacitance) to eliminate Voβ from the surface charge densities. You should find that the surface charge densities on the inner and outer conductors are βQ/4Οa2 and Q/4Οb2, respectively.
Because the system is invariant with rotation by Ο and ΞΈ, the potential must be independent of ΞΈ and Ο; as a result, the second two terms are zero. Therefore, we need to solve
β2V=r21ββrββ(r2βrβVβ)=0
Becuase V depends only on r, we can replace the partial derivative with the total derivative
β2V=r21βdrdβ(r2drdVβ)=0
To solve the ODE, note that the following must hold
r2drdVβ=c1β
where C1β is a constant. Direct integration gives
V(r)=rc1ββ+c2β
2. The two unknowns are solved for by using the boundary conditions V(a)=Voβ and V(b)=0:
V(a)=0=ac1ββ+c2β
V(b)=Voβ=bc1ββ+c2β
Solving for c1β and c2β gives
c1β=(b1ββa1β)Voββ
c2β=β(b1ββa1β)Voβ/aβ
and subsitution of these constants into V(r)=c1β/r+c2β gives
V(r)=(a1ββb1β)Voββ(a1ββr1β)
As a check of the algebraic steps, plug in r=a and r=b into this equation and verify that the boundary conditions used, V(a)=Voβ and V(b)=0, are satisfied. Also note that this is the same result obtained in problem 1.4.
3. The electric field can be found using E=ββV. In spherical coordinates, when V depends only on r,
βV=βrβVβr^
giving
E=β(a1ββb1β)Voββr21βr^
This field points outward radially inward as expected given the potential on the outer surface is higher than that on the inner surface.
Evaluated at a,
E(a)=β(a1ββb1β)Voββa21βr^
At r=a, n^=r^, so Οaβ=β(a1ββb1β)Voββa21β
Evaluated at b,
E(b)=β(a1ββb1β)Voββb21βr^
At r=b, n^=βr^, so Οbβ=+(a1ββb1β)Voββb21β
4.
Using Voβ=Q/C and the equation for capacitance for this configuration derived in capacitance:
C=a1ββb1β4ΟΟ΅oββ
Substitution of Voβ=Q/C into
Οaβ=β(a1ββb1β)Voββa21β and Οbβ=(a1ββb1β)Voββb21β
Laplaceβs equation in 2-D cartesian coordinates is
β2V=βx2β2Vβ+βy2β2Vβ=0
For arbitrary constants A,B,C,D, and m the following equations satisfy it
V(x,y)=(Acoshmx+Bsinhmx)(Ccosmy+Dsinmy)
V(x,y)=(Acosmx+Bsinmx)(Ccoshmy+Dsinhmy)
V(x,y)=(Aemx+Beβmx)(Ccosmy+Dsinmy)
V(x,y)=(Acosmx+Bsinmx)(Cemy+Deβmy)
V(x,y)=(Acos(mx+B))(Ccosh(mx+B))
V(x,y)=(Acosh(mx+B))(Ccosh(mx+B))
(This can be shown using the method of Separation of Variables covered in Chapter 3 of Griffiths. I use m on this page instead of k as is done in the text because I have been using k for 1/(4ΟΟ΅0β).)
All forms are equivalent in the sense that the constants in one equation can be written in terms of constants in any of the other equations. For example, if we write form 3. as V(x,y)=(Aβ²emβ²x+Beβmβ²x)(Cβ²cosmβ²y+Dβ²sinmβ²y), then one can show that A=(Aβ²+Bβ²)/2, B=(Aβ²βBβ²)/2, C=Cβ², D=Dβ², and m=mβ².
The reason that all four forms are listed is that for certain problems, a certain choice of the form to start with leads to less algebra.
The general solution steps are
Start with one of the forms 1.β4. and use the boundary conditions to find an equation that satisfies some of the four boundary conditions. There is no general rule about which form to start with beyond considering a few boundary conditions and looking at which equation will give coefficients that are zero immediately.
Use superposition and Fourierβs trick to find an equation that satisfies all four boundary conditions.
Laplaceβs equation in cartesian coordinates when V=V(x,y) is
β2V=βx2β2Vβ+βy2β2Vβ=0
For arbitrary constants A,B,C,D, and m the following four equations satisfy it
V(x,y)=(Acoshmx+Bsinhmx)(Ccosmy+Dsinmy)
V(x,y)=(Acosmx+Bsinmx)(Ccoshmy+Dsinhmy)
V(x,y)=(Aemx+Beβmx)(Ccosmy+Dsinmy)
V(x,y)=(Acosmx+Bsinmx)(Cemy+Deβmy)
1. Show that equation 1. satisfies β2V=0. Recall that the definitions of the hyperbolic sin and cos are sinhz=(emzβeβmz)/2 and coshz=(emz+eβmz)/2.
2. Show that equation 1. is related to equation 3. Do this by labeling the constants in equation 3. with primes and finding the constants in equation 1. in terms of the primed constants.
3. Show that equation 2. is related to equation 4. Do this by labeling the constants in equation 4. with primes and finding the constants in equation 2. in terms of the primed constants.
4. Show that equation 1. can be derived from equation 2. by using Eulerβs identity eiz=cosz+isinz and the definitions of the hyperbolic sin and cos. Do this by labeling the constants in equation 2. with primes and finding the constants in equation 1. in terms of primed constants.
Start with one of the forms 1.β4. and use the boundary conditions to find an equation that satisfies some of the boundary conditions.
In Examples 3.3 and 3.4, Griffiths happens to choose
The best form 1.β4. to start with
The best order of boundary conditions to address
The problem students have with solving other problems is when they donβt happen to choose the βbestβ way to get to the answer. In the following, I go through examples 3.3 and 3.4 by addressing the boundary conditions in a different order than Griffiths did. In doing so, I highlight some of the actual complications one will encounter if the βbestβ order of addressing the boundary conditions is not selected.
Prior to reading the following two examples, read Griffithsβ solutions to Example 3.3 and 3.4.
V=Voβ(y) when x=0 β (Griffiths starts with Voβ(y) and then gives the solution for V=Voβ=const)
Vβ0 as xββ
Griffiths starts with form 3.
V(x,y)=(Aemx+Beβmx)(Ccosmy+Dsinmy)
and boundary condition 4. Here I am going to start with form 3. but boundary condition 1.
BC 1.: V=0 when y=0
Plugging V=0 and y=0 into
V(x,y)=(Aemx+Beβmx)(Ccosmy+Dsinmy)
gives
0=(Aemx+Beβmx)(Ccosm0+Dsinm0)
or
0=(Aemx+Beβmx)C
There are two ways for this equation to be true for any xβ₯0
Both A and B are zero. We reject this option because then form 3. reduces to V(x,y)=0, which satisfies Laplaceβs equation, but canβt satisfy all of the boundary conditions.
C=0.
If C=0, we are left with
V(x,y)=(Aemx+Beβmx)Dsinmy
or, defining Aβ²=AD and Bβ²=BD,
V(x,y)=(Aβ²emx+Bβ²eβmx)sinmy
BC 2.: V=0 when y=a
Plugging these values into the equation we left off with after addressing boundary condition 1. gives
0=(Aβ²emx+Bβ²eβmx)sinma
There are two ways for this equation to be true for any xβ₯0:
Both Aβ² and Bβ² are zero. We reject this option because then we are left with V(x,y)=0, which satisfies Laplaceβs equation, but canβt satisfy all of the boundary conditions.
sinma=0.
The only way for sinma=0 to be true generally is if ma=0,Β±Ο,Β±2Ο,β¦.
From this we conclude
m=anΟβ with n constrained to be 0,Β±1,Β±2,β¦
This leaves
V(x,y)=(Aβ²enΟx/a+Bβ²eβnΟx/a)sinnΟy/a
Inspection of this equation allows us to reject the possibility that n=0; if n=0, this equation reduces to V(x,y)=0, which cannot satisfy all of the boundary conditions.
BC 3.: V=Voβ when x=0
Plugging these values into the equation we left off with after addressing boundary condition 2. gives
Voβ=(Aβ²enΟ0/a+Bβ²eβnΟ0/a)sinnΟy/a
or, because e0=1,
Voβ=(Aβ²+Bβ²)sinnΟy/a
This equation is true but is not immediately useful for simplifying our equation for V(x,y). So we move on to the next boundary condition.
BC 4.: V=0 when xββ
Plugging these values into the equation we left off with after addressing boundary condition 2. gives
0=(Aβ²enΟβ/a+Bβ²eβnΟβ/a)sinnΟy/a
or, because eββ=0,
0=(Aβ²enΟβ/a)sinnΟy/a
There is only one way for this equation to be true: Aβ²=0. (There is technically a mathematical issue that I am ignoring because zero times infinity is indeterminate; there is a way around this issue, but for now, it is not important and Iβll use this dubious notation.)
This leaves
V(x,y)=Bβ²eβnΟx/asinnΟy/a
which the same as equations 3.28 and 3.29 with one exception. In the above I concluded n could be Β±1,Β±2,β¦ where Griffiths concludes n=1,2,3,β¦. The equivalence of these two conclusions will be shown when Bβ² is computed.
The final step is determining Bβ². This would seem to be impossible because boundary condition 3., V=Voβ when x=0, gives
Voβ=Bβ²eβnΟ0/asinnΟy/a=Bβ²sin(nΟy/a)
and this equation needs to hold true for any 0β€yβ€a. Another way to show that finding a Bβ² that satisfies boundary condition 3. is impossible, suppose y=a/2 and n=1, then we have
Voβ=Bβ²eβnΟ0/asinnΟy/a=Bβ²sin(Ο/2)
Giving Bβ²=Voβ. Now suppose y=a/4 and n=1, then
Voβ=Bβ²eβnΟ0/asinnΟy/a=Bβ²sin(Ο/4)
Giving Bβ²=2βVoβ. One can repeat this for all allowed values and n and you will come to the conclusion that there is no single value of Bβ² that can satisfy this equation for any 0β€yβ€a.
To satisfy this last boundary condition, superposition and βFourierβs Trickβ is needed, which is covered in step 2.
and a symmetry argument to conclude A=B. Here I am going to start with form 3. but boundary condition 1. In addition, I wonβt make use of the symmetry argument.
BC 1.: V=0 when y=0
BC 2.: V=0 when y=a
The starting form 3. and boundary conditions 1. and 2. are identical to that from example 3.3, so we can re-use the result concluded from addressing them:
V(x,y)=(Aβ²enΟx/a+Bβ²eβnΟx/a)sinnΟy/a
with n constrained to be 0,Β±1,Β±2,β¦.
BC 3.: V=Voβ when x=b
Plugging the boundary values into the equation we left off with after addressing boundary condition 2. gives
Voβ=(Aβ²enΟb/a+Bβ²eβnΟb/a)sinnΟy/a
Now we seem stuck. How does one constrain Aβ² and Bβ² for this equation to hold? We have one other boundary condition to address, so perhaps it will provide some insight.
BC 4.: V=Voβ when x=βb
Voβ=(Aβ²eβnΟb/a+Bβ²enΟb/a)sinnΟy/a
Here we would seem to be stuck again. However, notice that the equation here can be combined with that from BC 3:
The terms in parentheses are identical, so we conclude
Aβ²=Bβ²
Therefore, the equation we ended with when addressing BC 2.,
V(x,y)=(Aβ²eβnΟb/a+Bβ²enΟb/a)sinnΟy/a
simplifies to
V(x,y)=Aβ²(eβnΟx/a+enΟx/a)sinnΟy/a
This can be futher simplified using the definition coshz=(ez+eβz)/2
V(x,y)=2Aβ²cosh(nΟx/a)sin(nΟy/a)
This equation is equivalent to Griffithsβ 3.41 if 2Aβ² is replaced with a constant labeled C. As with example 3.3, we ended up with one constant that is still unknown.
Note that n=0 would give V(x,y)=0, which does not satisfy all of the boundary conditions. As a result, the allowed values of n are Β±1,Β±2,β¦.
As was the case in my solution to example 3.3, above I concluded n could be Β±1,Β±2,β¦ where Griffiths concludes n=1,2,3,β¦. The equivalence of these two conclusions will be shown when Aβ² is computed in step 2..
Show that β«0Οβsin2xsinxdx = 0. (Note that without any calculation, this is expected from a plot of sinx and sin2x and thinking about the area under the curve for their product.)
Show that β«0Οβsinnxsinlxdx = 0 for integer n and l if lξ =n by explicitly evaluating the integral.
Compute β«0Οβsin2nxdx for
any nξ =0 and
for integer n.
Comment:
The motivation for giving you these problems is to help you remember that
β«0Οβsinnxsinlxdx=0 if lξ =n which is important for Fourier sum problems.
A way to reason this out without doing a calculation is by considering a plot of the integrand sinnxsinlx over the interval 0β€xβ€Ο by plotting two sin curves for lξ =m and thinking about what the product of the curves looks like; over half interval the product will be positive and over the other half of the interval it will be negative, so the integral will be zero.
When l=m, the integrand is sin2mx, which is always positive, so its integral is not zero over any interval of x.
From a previous problem, we know that equations of this form of each term satisfy Laplaceβs equation. Here will show this again. Define these terms as
set l=1 in Equation A and evaluate all of the integrals. This will give you C1β. Next, set l=2 in Equation A and evaluate all of the integrals. This will give you C2β. Finally, set l=3 in Equation A and evaluate all of the integrals to get C3β.
I recommend that you do the full problem, but you may start the problem by beginning with the equation that I ended with after addressing the third boundary condition.
Use this equation with the values of Cnβ found in your solution and plot V(x,a) vs. x in the range x=0 to x=a. Plot only the terms in the sum for nβ€10.