This is the second one of a series of posts on solving Laplace equation using conformal maps. I have a recent introductory post on conformal maps. We will tackle a problem which is a bit harder the previous warm up exercise. In fact, we are going to double down and apply comformal maps twice!
The setup
Consider a thin, long, conducting cylinder of unit radius split into two equal pieces. The pieces are separated by a small gap and held at two different voltages. Figure 1 shows the cross section of the setup. The goal is to calculate the electric potential and the electric field.
Old school solution
We need to solve the Laplace equation in the cylindrical coordinates in two dimensions:
\[\begin{eqnarray} \vec \nabla ^2 \varphi= \left(\frac{1}{r}\frac{\partial}{\partial r}\left(r\frac{\partial }{\partial r}\right) +\frac{1}{r^2}\frac{\partial^2}{\partial\theta^2}\right)\varphi=0, \tag{1} \end{eqnarray}\] The boundary conditions are imposed at \(r=1\): \[\begin{equation} \varphi(1,\theta) = \left\{ \begin{array}{lr} 0, & 0<\theta< \pi,\\ V_s, & \pi<\theta<2\pi, \end{array} \right. \tag{2} \end{equation}\] where the angle \(\theta\) is measured from the positive real axis. We can separate the variables as \(\varphi(r,\theta)=F(r)G(\theta)\) \[\begin{eqnarray} \frac{1}{r}\frac{d}{d r}\left(r\frac{d F }{d r}\right)G +\frac{F}{r^2}\frac{d^2 G}{d\theta^2}=0, \tag{3}, \end{eqnarray}\] or equivalently \[\begin{eqnarray} \frac{r}{F}\frac{d}{d r}\left(r\frac{d F }{d r}\right)=-\frac{1}{G}\frac{d^2 G}{d\theta^2}. \tag{4} \end{eqnarray}\] Since the left-hand side of Eq. (4) depends on \(r\) only, and the right one depends on \(\theta\) only, overall they can only be equal to a constant, which we will call \(\nu^2\). The partial differential equation is then separated into two ordinary differential equations: \[\begin{eqnarray} r\frac{d}{d r}\left(r\frac{d F }{d r}\right)=\nu^2 F, \text{ and } \frac{d^2 G}{d\theta^2}=-\nu^2 G. \tag{5} \end{eqnarray}\] \(\nu=0\) case requires a bit of special treatment: A constant or \(\ln(r)\) will work for \(F\), and a first order polynomial, \(a+b \,\theta\), will work for \(G\). However, we will want our solution to not blow up at \(r=0\), and therefore we can’t include \(\ln(r)\). Furthermore, since \(\theta\) is the angle, to preserve the periodicity, we can’t have the \(b\,\theta\) term. For \(\nu\neq 0\), \(F\propto r^{\pm\nu}\) and \(G\propto e^{\pm i \nu\theta}\) will solve the equations. But, again, the requirement of a finite solution at \(r=0\) will eliminate \(r^{-\nu}\) solutions inside the cylinder. Finally, the periodicity will require \(\nu\) to be an integer. As the equations are linear, we can include them with arbitrary coefficients: \[\begin{eqnarray} \varphi(r,\theta)=a_0+ \sum_{n=1}^\infty r^n\left(a_n e^{in\theta}+b_n e^{-in\theta}\right). \tag{6} \end{eqnarray}\] We can now impose the boundary condition in Eq. (2):
\[\begin{eqnarray} \varphi(1,\theta)=a_0+ \sum_{n=1}^\infty\left(a_n e^{in\theta}+b_n e^{-in\theta}\right). \tag{7} \end{eqnarray}\] We can isolate the first Fouirier coefficient, \(a_0\): \[\begin{eqnarray} \int_0^{2\pi} d\theta \varphi(1,\theta)=2\pi a_0 +\sum_{n=1}^\infty \cancelto{0}{\int_0^{2\pi} d\theta \left(a_n e^{in\theta}+b_n e^{-in\theta}\right) } \implies a_0= \frac{V_s}{2}\tag{8}, \end{eqnarray}\] which is simply the average value of the voltage across the disk surface. Similarly
\[\begin{eqnarray} a_n&=&\frac{1}{2\pi}\int_0^{2\pi} d\theta e^{-in\theta}\varphi(1,\theta) =\frac{V_s}{2\pi}\int_\pi^{2\pi} d\theta e^{-in\theta}= \frac{iV_s}{2\pi n}\left(1-e^{-in\pi}\right) = \frac{iV_s}{2\pi n}\left(1-(-1)^n\right) \tag{9}, \end{eqnarray}\] and \[\begin{eqnarray} b_n&=&\frac{1}{2\pi}\int_0^{2\pi} d\theta e^{in\theta}\varphi(1,\theta) =\frac{V_s}{2\pi}\int_\pi^{2\pi} d\theta e^{in\theta}= \frac{-iV_s}{2\pi n}\left(1-e^{in\pi}\right) = \frac{-iV_s}{2\pi n}\left(1-(-1)^n\right) \tag{10}, \end{eqnarray}\]
which shows that only odd \(n\) terms will contribute. To make this more explicit, let’s define \(n=2m+1\) where \(m=1,2,\cdots\) to get:
\[\begin{eqnarray} \varphi(r,\theta)&=&\frac{V_s}{2}+ \frac{V_s}{\pi}\sum_{m=1}^\infty r^{2m+1}\left( \frac{i}{ 2m+1} e^{i(2m+1)\theta}+\text{complex conjugate}\right)\nonumber\\ &=&\frac{V_s}{2}+ \frac{2V_s}{\pi}\Re \sum_{m=1}^\infty \left( \frac{i}{2m+1} \left(r e^{i\theta}\right)^{2m+1}\right). \tag{11} \end{eqnarray}\] The summation coefficients should remind you of \(\arctan\), but we need to massage it a bit. Let’s define \(\theta=\tilde\theta+\pi/2\) and take a look at the argument of the summation:
\[\begin{eqnarray} \frac{i}{2m+1} \left(r e^{i\theta}\right)^{2m+1}&=&\frac{i}{2m+1} \left(r e^{i\tilde \theta+i\pi/2}\right)^{2m+1} =\frac{i}{2m+1} \left(r e^{i\tilde \theta}\right)^{2m+1}\left(e^{i\pi}\right)^{m} \left(e^{i\pi}\right)^{1/2}\nonumber\\ &=&-\frac{\left(-1\right)^{m}}{2m+1} \left(r e^{i\tilde \theta}\right)^{2m+1} =-\frac{\left(-1\right)^{m}}{2m+1} \left(r e^{i(\theta-\pi/2)}\right)^{2m+1} . \tag{12} \end{eqnarray}\] Putting this back in Eq. (11) we get: \[\begin{eqnarray} \varphi(r,\theta) &=&\frac{V_s}{2}- \frac{2V_s}{\pi}\Re \left( \sum_{m=1}^\infty \frac{\left(-1\right)^{m}}{2m+1} \left(r e^{i(\theta-\pi/2)}\right)^{2m+1}\right) =\frac{V_s}{2}- \frac{2V_s}{\pi}\Re \left( \arctan \left(r e^{i(\theta-\pi/2)} \right) \right). \tag{13} \end{eqnarray}\] Now we have to push \(\Re\) through \(\arctan\) into the argument. For this, it is convenient to work in a different representation of \(\arctan\). Consider the integral below: \[\begin{eqnarray} \int dz \frac{1}{1+z^2}= \int d \tan\alpha \frac{1}{1+\tan^2\alpha}=\int d \alpha \sec^2\alpha\cos^2\alpha=\int d\alpha=\alpha+C=\arctan(z)+C, \tag{14} \end{eqnarray}\] where we defined \(z=\tan\alpha\) and reverted back at the end of the computation. We can also compute the integral using the partial fractions method: \[\begin{eqnarray} \int dz \frac{1}{1+z^2}= \frac{i}{2}\int dz \left(\frac{1}{i+z}+\frac{1}{i-z}\right) =\frac{i}{2}\ln\left(\frac{i+z}{i-z}\right)+C, \tag{15} \end{eqnarray}\] where \(C\) is a constant that will set the domain of the angle as well as the branch cut of \(\ln\). Since Eqs.(14) and (15) are equivalent, we have: \[\begin{eqnarray} \arctan(z) =\frac{i}{2}\ln\left(\frac{i+z}{i-z}\right). \tag{16} \end{eqnarray}\]
Let’s now take \(z=x+iy\), and push \(\Re\) through \(\arctan\): \[\begin{eqnarray} \Re \left( \arctan z\right)&=&\Re \left( \frac{i}{2}\ln\left(\frac{i+z}{i-z}\right)\right) =\frac{1}{2}\Im \left( \ln\left(\frac{i+z}{i-z}\right)\right) =\frac{1}{2} \left(\arctan\left(\frac{1+y}{x}\right) +\arctan\left(\frac{1-y}{x}\right)\right). \tag{17} \end{eqnarray}\] We now need to figure out how to add the \(\arctan\)’s on the right. Let’s derive that quickly. Let’s define angles \(\alpha\) and \(\beta\) with \(\tan\alpha=a\) and \(\tan \beta=b\). We can use the formula for tangent of sums \[\begin{eqnarray} \tan(\alpha+\beta)&=&\frac{\tan\alpha +\tan\beta}{1-\tan\alpha \tan\beta}=\frac{a+b}{1-ab}\nonumber\\ &\implies& \arctan\tan(\alpha+\beta)=\alpha+\beta=\arctan a +\arctan b=\arctan\frac{a +b}{1-a b}. \tag{18} \end{eqnarray}\] In our case, from Eq. (17), we have \(a=\frac{1+y}{x}\) and \(b=\frac{1-y}{x}\), which gives:
\[\begin{eqnarray} \Re \left( \arctan z\right)&=& =\frac{1}{2} \arctan\left(\frac{\frac{2}{x}}{1-\frac{1-y^2}{x^2} } \right) =\frac{1}{2} \arctan\left(\frac{2x}{1-x^2-y^2 } \right) =\frac{1}{2} \arctan\left(\frac{2\Re (z)}{1-|z|^2 } \right) \tag{19}. \end{eqnarray}\] Inserting this back into Eq. (13), we get:
\[\begin{eqnarray} \varphi(r,\theta) &=&\frac{V_s}{2}- \frac{V_s}{\pi} \arctan\left(\frac{2 r \cos(\theta-\pi/2)}{1-r^2 } \right) =\frac{V_s}{2}- \frac{V_s}{\pi} \arctan\left(\frac{2 r \sin(\theta)}{1-r^2 } \right) \nonumber\\ &=&\frac{V_s}{2}- \frac{V_s}{\pi} \left( \pi/2-\text{arccot}\left(\frac{2 r \sin(\theta)}{1-r^2 } \right) \right) =\frac{V_s}{\pi} \arctan\left(\frac{1-r^2 }{2 r \sin(\theta)} \right), \tag{20} \end{eqnarray}\] which is the final answer for the electric potential inside the cylinder!
Mapping circles and lines
The boundary of the original problem consists of arcs of circle. We want to map those boundaries to Cartesian ones. A linear fractional transformation can accomplish this goal: \[\begin{eqnarray} \omega=i\frac{1-z}{1+z} \tag{21}. \end{eqnarray}\] We can quickly verify what how the upper arc, \(z=e^{i\theta}\), for \(0<\theta<\pi\) gets mapped. \[\begin{eqnarray} \omega=i\frac{1-e^{i\theta}}{1+e^{i\theta}}=i \frac{e^{i\theta/2}\left(e^{-i\theta/2}-e^{i\theta/2}\right)}{e^{i\theta/2}\left(e^{i\theta/2}+e^{i\theta/2}\right)} =\tan(\theta/2), \tag{22} \end{eqnarray}\] which is the positive real axis on the \(\omega\)-plane. Similarly, the lower arc, \(z=e^{-i\theta}\), for \(0<\theta<\pi\) gets mapped as: \[\begin{eqnarray} \omega=i\frac{1-e^{-i\theta}}{1+e^{-i\theta}}=i \frac{e^{-i\theta/2}\left(e^{i\theta/2}-e^{-i\theta/2}\right)}{e^{-i\theta/2}\left(e^{-i\theta/2}+e^{-i\theta/2}\right)} =-\tan(\theta/2), \tag{23} \end{eqnarray}\] which is the negative real axis. The full mapping is shown in Fig. 2.
The fractional mapping in Eq. (21) moves the boundaries such that it becomes relatively easy to solve the Laplace equation in cylindrical coordinates, see the earlier post. However, no one is stopping us from doubling down and moving from \(\omega\) plane to a new \(\gamma\) plane: \[\begin{eqnarray} \gamma=\ln \omega\equiv \tilde u+ i\tilde v. \tag{24} \end{eqnarray}\] It is convenient to use the polar parameterization in the \(\omega\) plane, i.e., \(\omega=\rho e^{i\alpha}\), and revisit Eq. (24): \[\begin{eqnarray} \gamma=\ln \omega= \ln \rho + i\alpha =\tilde u+ i\tilde v. \tag{25} \end{eqnarray}\]
As we are jumping from \(z\) to \(\omega\), and from \(\omega\) to \(\gamma\), the electric potential transforms due to its argument. You will find that it is pretty confusing already, and textbooks[1] add to this confusion by using the same name for those functions. Let’s be very precise and clear up this mess once and for all. \(\varphi\) is a function of the original variables, \((x,y)\) in Cartesian or \((r,\theta)\) in cylindrical coordinates. We represent the original pair of variables as a complex parameter \(z=x+iy\) or \(z=r e^{i\theta}\). So, \(\varphi\) is a function of \(z\): \(\varphi(z)\). Now \(z\) gets mapped to \(\omega\) by a function \(\omega=f(z)=i\frac{1-z}{1+z}\equiv u+iv \equiv \rho e^{i\alpha}\), which can be reverted as \(z=f^{-1}(\omega)\). Inserting this back in \(\varphi(z)\), we get \(\varphi(z)=\varphi\left(f^{-1}(\omega)\right)=\left(\varphi\, o\, f^{-1}\right)(\omega)\equiv\phi(\omega)\).
\(\omega\) plane gets mapped to \(\gamma=g(\omega)=\ln\omega \equiv \tilde u+ i\tilde v\), which can be inverted as \(\omega=g^{-1}(\gamma)\). Putting this back in again will give: \(\phi(\omega)=\phi(g^{-1}(\gamma))=\left(\phi\,o \,g^{-1}\right)(\gamma)\equiv\tilde\phi(\gamma)\). To summarize, we have the following functions: \[\begin{eqnarray} \phi=\varphi\, o\, f^{-1}, \text{ and } \tilde\phi= \phi\,o \,g^{-1}=\varphi\, o\, f^{-1}\,o \,g^{-1} \tag{26} \end{eqnarray}\]
The harmonic feature of the electric potential is preserved under the conformal maps, that is:
\[\begin{eqnarray} (\partial^2_{\tilde u} +\partial^2_{\tilde v})\tilde\phi=0 \tag{27}. \end{eqnarray}\] The original boundary conditions at the upper and lower shells are mapped to \(\tilde v=0\) and \(\tilde v=\pi\), respectively. With these boundary conditions, and realizing that the potential needs to be constant along the \(u\) axis, the Laplace equation reduces to \[\begin{eqnarray} \partial^2_{\tilde v} \tilde \phi(\tilde v)=0\implies \tilde\phi(\tilde v)=V_s \frac{\tilde v}{\pi} \tag{28}. \end{eqnarray}\] Finally, we revert from \(\tilde v\) to \(\alpha\) using Eq. (25), namely, \(\tilde v=\alpha\), which implies \[\begin{eqnarray} \phi(\alpha)= V_s \frac{\alpha}{\pi} \tag{29}. \end{eqnarray}\] Finally, note that \(\alpha\) is the phase of the complex variable \(\omega\): \[\begin{eqnarray} \omega=i\frac{1-z}{1+z}= i \frac{(1-z)(1+z^*)}{(1+z)(1+z^*)}=\frac{ 2y+i( 1-x^2-y^2)}{(1+x)^2+y^2} \tag{30}, \end{eqnarray}\] which gives \[\begin{eqnarray} \phi(\alpha)=\varphi(x,y)= \frac{V_s}{\pi}\arctan\left( \frac{1-x^2-y^2}{2y}\right) \tag{31}. \end{eqnarray}\]