Electromagnetic Theory — Part 2
1. Introduction
Hello, everyone. Today we will solve examples in order to gain a better grasp of the laws we learned in the first part. We will examine methods for calculating the electric field and potential, as well as the Laplace and Poisson equations whose solutions we postponed discussing in the first part.
2. Electric Field and Potential
First, let us recall the relation between the electric field and potential that we gave in the first part:
When the potential function is given, we can take its gradient and multiply by minus one to obtain the electric-field vector. Likewise, we can calculate the potential of a point separated from the origin by the position vector using the equality given by the line integral of the electric field.
To calculate the electric field, we use Gauss's law, namely
In electrostatics problems, we generally try to determine the electric field from a charge distribution. When there is symmetry, and the electric field is constant over certain chosen surfaces so that it can be taken outside the integral, Gauss's law allows us to find the electric field easily.
Why potential?
What if there is no symmetry? What if we cannot simply take the field outside the integral? Since the field is a vector, dealing with calculations of its components will also be complicated. It is much easier to calculate a scalar, such as the potential, and then pass to the electric field.
Let us begin this part by examining the Laplace and Poisson equations with which we concluded the first part.
3. Laplace's Equation
We have a partial differential equation. Let us first examine it in one dimension.
We now have an ordinary differential equation in one variable. The second derivative of the potential function is zero. Recalling our knowledge of calculus, a zero derivative means that our expression is constant. Thus, the first derivative must be a constant number. Let it be, for example, the real number . If the derivative of the potential is , we can integrate our expression and obtain
All potential expressions in the form of a linear function, with and real numbers, satisfy Laplace's equation. The electric field, forces, and so forth can of course be found from this. The electric field is
The calculation is straightforward in one dimension. We need two arbitrary constants for the solution.
Now let us consider two dimensions.
We no longer have an ordinary differential equation in one variable, but a partial differential equation. This means that the equation no longer has a general solution. Above, we found the general solution of the second-order differential equation in one dimension using two constants. The multidimensional equation we now have does not possess a general solution, because its solutions are infinitely varied and cannot be placed into a single form.
The geometric meaning of the Laplacian
What did the Laplacian mean? It was proportional to the difference between the value of the function and the average of the values at the surrounding points. Since our equality is zero, there is no difference between the value of our function and the average of its surrounding values. In other words, if I take a circle, the average of the values along the circle equals the value at the center of the disk.From this, we can infer that no point can be a maximum or minimum. Laplace's equation produces the smoothest surface, with the least variation, that can satisfy the boundary conditions. There are neither peaks (maxima) nor valleys (minima). Just as the shortest distance between two points is a straight line, the solution of Laplace's equation in two dimensions represents the surface of smallest area spanning the given boundary curve. I hope this also makes our finding of a linear equation in one dimension more intuitive.
You might ask why we bother if there is no general solution. The absence of a general solution does not mean that we cannot solve the equation. We will solve partial differential equations using the boundary conditions of the function we seek. We will discuss methods for doing so in this part.
The same reasoning applies in three dimensions. This time, if we draw a spherical shell, we can say that the average value on its surface must equal the value at the center of the sphere. For the same reasons, the solution again has no maximum or minimum. We can now proceed to the methods of solution.
4. Boundary Conditions and the Uniqueness Theorem
Infinitely many solutions can satisfy Laplace's equation. To determine which one belongs to our problem, we must know how the function behaves under certain conditions. For the one-dimensional expression that we found, for example, if we are given the value of the function at two different points, or its derivative and its value at one point, we can determine the unique solution exactly. Suppose, however, that we are given the derivative at two points. Since the derivative of our function is constant, different values for the two derivatives would be contradictory and there would be no solution. If the same value were given twice, repeating the same information would make no contribution to the solution. These constraining conditions, or boundary conditions, must therefore be chosen carefully.
Boundary condition:
In its simplest form, a boundary condition is information specifying the value taken by the function at the edges—the boundary or surface—of the region in which the solution is sought.
Note: The Uniqueness Theorem and Its Proof:
The uniqueness theorem tells us that there is a unique function satisfying a consistent set of boundary conditions. Let us prove it.Suppose that we have two functions, and , satisfying the boundary condition. Define a new function . Since they satisfy Laplace's equation,
Differentiation is linear and distributes over addition. Therefore,
Now consider the boundary conditions. By our initial assumption, and are equal on the boundary. This means that is on the boundary. Since the function has no minimum or maximum, it cannot take the value zero, then other values, and then zero again; to do so, it would need a point at which it increased and then decreased—that is, a maximum or minimum. Our function must therefore be zero everywhere:
Thus, the function satisfying the boundary conditions is indeed unique.
Also valid for Poisson's equation
Before proceeding, let us note that this also holds for a solution of Poisson's equation:
What we learn from this theorem is that if we have found a potential satisfying the boundary conditions and Laplace's equation (or Poisson's equation), it is the solution we seek.
5. Method of Images
In this method, we will use the result we have just obtained. Suppose that we have a charge distribution whose calculation is difficult, and we want to determine its potential. Let us proceed through an example. Imagine an infinite grounded conducting surface. Let a charge be located above this surface at the point :

It seems very easy—is it not simply ? It is not. The surface is conducting. Even though the net charge of the surface is zero, our charge attracts the negative charges on the surface and repels the positive ones, producing an induced charge distribution over the surface. In other words, there is a charge distribution that cannot be found easily, and we are looking for the potential. Wonderful.
Our first task here is to determine the boundary conditions.
What does grounded mean?
We take the ground to be zero. If a point on the surface has a potential difference relative to the ground—that is, relative to zero—an electric field immediately arises, and charge flows until the difference disappears. In short, it means that the potential on our surface is zero.
Our boundary conditions are:
- If , then must hold.
- If we move very, very far from the origin, we also move very far from both the charge and the induced charges on the surface, and our potential approaches zero: if , then .
The theorem now tells us that if we find a function satisfying these two conditions, it is the potential function we seek. I have a suggestion: let us place a charge a distance below the origin:

If we do this, symmetry makes the potential zero when . Potential is a scalar; for , that is, on our surface, every point is equidistant from the charges and . Their contributions cancel, making the potential zero. Moreover, with two charges at a distance from the origin, the potential decreases and approaches zero as we move very far away. We had two conditions, and both are satisfied.
To express this situation, consider our potential expression:
Finding the distances:
We must find the distance from each charge to the field point. First consider . Since it is at zero in the and directions, the distance between us and the charge along the -axis is, by the Pythagorean theorem and elementary geometry, . By the same reasoning, it is for the charge , because for a point a distance below the origin and a point a distance above it, the total separation is . (You might ask what happens if is negative, if we are below the charge, and so on—the result does not change; the expressions remain the same.) To obtain the length, we add the squares of the separations along the axes.
The result obtained from the potential expression is
Since this expression satisfies both conditions, we have found the potential we seek.
Method of images:
The method of images consists of satisfying the boundary conditions using fictitious charges that we introduce in order to find the solution, and then identifying the solution by virtue of the uniqueness theorem.
We found the solution easily without having to deal with that complicated charge distribution. You may still be curious about the distribution, however. Let us show a short method for calculating it.
Induced Charge Density
Electric field inside conductors:
The electric field inside conducting surfaces is zero. If the electric field inside were not zero, charges would move and eventually come to rest on the surface after cancelling the electric field. If the electric field is zero, then, as we can infer from Gauss's law, the net charge density is also zero. Thus, the net amount of charge inside conductors is zero. (The converse, incidentally, is not true: the electric field need not be zero when the net charge is zero.) This is also why your phone loses reception in an elevator.
Consider the surface of the conductor, and suppose that the electric field makes an angle with the surface. It would then have components parallel and perpendicular to the surface. A parallel component would mean that the charges were not stationary on the surface but continued to move. Let us suppose, however, that we have left the charges to themselves and they have reached equilibrium. In this case, there is no longer a component parallel to the surface, precisely because the charges are already in equilibrium. This means that the electric field is perpendicular to the surface.
Returning to Gauss's law, consider the projection of the electric field along the surface normal. Because already points in the direction normal to the surface, their dot product is simply the product of their magnitudes:
Here, the subscript indicates that the electric field points along the surface normal; we have written the amount of charge as the surface charge density times the area. The areas cancel:
Recalling that the electric field is the gradient of the potential,
The charge density can be calculated in this way from the potential or electric field. If you calculate it from the potential above and then calculate the total charge from the charge density, the answer is : the charge above the surface has induced a charge of .
6. Separation of Variables
Another idea we use to solve partial differential equations is separation of variables. We cannot apply it in one dimension because there are no distinct variables to separate. Let us first understand the idea of separation of variables for ordinary differential equations; when we then move to two dimensions, you will already find yourself in a mathematics lesson.
Separation of variables in ODEs:
Suppose that we have variables and . We examine whether the derivative can be written in separable form. Let be a function of and a function of :Moving the function below and to the other side gives
We now integrate both sides and solve. This is a method for solving an ordinary differential equation.
Let us now turn to the real matter. We will try the same method in two dimensions. Remember that our aim is to solve Laplace's equation:
Suppose that we write as a product of functions of the variables and . This is actually a restrictive case. The expression , for example, cannot be separated into factors depending on and . Many expressions we encounter cannot be separated. You may ask, "How will we know whether it can be separated?" You will not. We will assume that it can, try it, and if we reach a final expression satisfying the conditions—congratulations, our assumption was correct.
The separation procedure:
Now things become interesting. Our variables and are independent of each other—that is precisely why we use them as coordinates. If , for example, can be anything because it does not depend on . In the equation we have obtained, one term depends only on and the other only on , yet their sum is zero. Each must therefore be a constant in its own right. If the terms were not constant, a change in one would require the other to change in order for their sum to remain zero. Since they are independent, the only possibility is that both are constant:
We now have two ordinary differential equations. Clearly, depending on the sign of , one will receive a minus sign and the other a plus sign. If you have a foundation in differential equations, you know that the solution of a system in which a function's second derivative is a multiple of the function itself is either trigonometric or exponential. In this case, the substitution is useful:
The solutions are
What follows depends on the boundary conditions. If the potential decreases with distance, for example, then must hold. If we know the value it takes for a particular , its symmetries, and so forth, the boundary conditions allow us to determine the numbers and . The system does not change in three dimensions. This time, we bring it into a form such as
and solve using the boundary conditions.
Example: The Griffiths Problem
Example: Potential between grounded plates
I actually found many excellent examples online, but I think the example in Griffiths's book is especially good, both because of the length of the mathematics and because it looks difficult at first sight. We will solve that one.In this problem, there are two infinitely long grounded plates at and . At , there is also an insulating plate joining the two plates, whose potential depends on and is given by .

Let us proceed from the general solution that we found above:
Let us list our boundary conditions:
- If , then
- If , then
- If , then
- As increases, decreases, and when ,
The first two conditions arise from grounding, which we explained in an example above. The third was specified in the problem. The last exists because, as we move away from the insulating plate, the potential between the two grounded plates approaches zero.
We can now see why we chose for the equation in and for the equation in : if the dependence were trigonometric, we could not obtain an expression that approached zero with distance. We must therefore take the boundary behavior into account when assigning numbers such as and in the solution.
Step 1: We said that as , so ; otherwise, the potential would diverge. We can also distribute the remaining number into the parentheses and absorb it into and :
Step 2: For the first boundary condition, when , the sine is zero and the cosine is . The only way for the expression to be zero is therefore . The cosine term is now absent.
Step 3: If the sine vanishes at , then
The superposition principle
Looking now at the beauty of the mathematics, our solution is consistent for every . Which should we choose? There is no need to choose—let us rely on the superposition principle. Laplace's equation is linear. Suppose that we have solutions . For any real numbers ,A linear combination of solutions is therefore also a solution.
Example: Continuing the example—the Fourier series
This means that we can find the general solution by summing over . There is no contribution for because the sine is zero; for negative , the exponential produces a growing term and violates the boundary conditions. Thus, the sum begins at :Considering the other boundary condition,
Does this look familiar? It is the famous Fourier series, whose difficulty inspires posts on every engineering humor page. More precisely, it is one part of it—the Fourier sine series, with no cosine term. This is excellent news: we have found it. Of course, the coefficients at the beginning remain to be determined.
For this, let us use another method that we owe to mathematicians: we multiply our expression by a term and integrate.
To understand what this accomplishes, consider the following orthogonality relation:
On the left-hand side, terms vanish when and are unequal; when they are equal, a simple factor of remains:
We have found the coefficient. The general solution is
Special case: If is constant (independent of ),
7. Poisson's Equation
Now let us take a look at Poisson's equation:
Note: Inhomogeneous equations:
For readers who have not taken a differential equations course: if the right-hand side of a differential equation is zero—as in Laplace's equation—the equation is called homogeneous. For an inhomogeneous expression, the method of solution is to add the solution of the homogeneous case to a particular solution satisfying the source term that breaks homogeneity.
For Poisson's equation, it is therefore enough to find the general solution of Laplace's equation—subject, of course, to the boundary conditions—and then add an expression satisfying the charge-density term. We can understand why as follows. Let be the solution of Laplace's equation and a particular solution of Poisson's equation. Because these derivative operations are linear,
The route to the general solution is thus to solve Laplace's equation and find a single solution capable of producing the expression on the right. A wide variety of wholly mathematical methods, such as Green's functions and Laplace transforms, can be used to solve this partial differential equation; for that reason, this is as far as we will take it in our series for now.
Closing
In this part, we examined methods for calculating the electric field and potential. Given the vastness of mathematics, there are many more methods for solving a partial differential equation (PDE), and therefore for finding the electric field and potential. Here, we considered the most commonly used methods. In later parts, we will encounter other methods as the examples call for them.
