We are adding to the equation found in the 2-D heat equation in cylindrical coordinates, starting with the following definition:

By changing the coordinate system, we arrive at the following nonhomogeneous PDE for the heat equation:
![{\displaystyle u_{t}=k\left[{\frac {1}{r}}\left(u_{r}+ru_{rr}\right)+{\frac {1}{r^{2}}}u_{\theta \theta }+u_{zz}\right]+h(r,\theta ,z,t),{\text{ where }}(r,\theta ,z)\in D,t\in (0,\infty )~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/07e15b84158ea89eedd76a115d2182fb5d58a51b)
We choose for the example the Robin boundary conditions and initial conditions as follows:
All of the boundary conditions are homogeneous, so we don't have to partition the solution into a "steady-state" portion and a "variable" portion. Otherwise, that would be the way to solve this problem.



There is a separation constant
that both sides of the equation are equivalent to. This yields:


The second equation yields the equations:



This yields the following equations:

![{\displaystyle {\color {Blue}r^{2}R''+rR'+\left[\left(\gamma ^{2}-\mu ^{2}\right)r^{2}-\rho ^{2}\right]R=0}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b573afb5f5f93ebbb11ff2e6b9094640dd0bf60a)
Just like in the 2-D heat equation, the boundary conditions yield:



![{\displaystyle \left.{\begin{aligned}&r^{2}R''+rR'+\left[\left(\gamma ^{2}-\mu ^{2}\right)r^{2}-\rho ^{2}\right]R=0\\&\left\vert R(0)\right\vert <\infty \\&\alpha _{1}R(a)+\beta _{1}R'(a)=0\end{aligned}}\right\}{\begin{aligned}&{\text{Substitute }}\lambda ^{2}=\gamma ^{2}-\mu _{k}^{2}{\text{ and }}\nu ^{2}=\rho _{m},\;k,m=0,1,2,\cdots \\&{\text{Eigenvals }}\lambda _{kmn}{\text{: solns to eqn }}(\alpha _{1}\lambda a+\beta _{1}\rho _{m})J_{\rho _{m}}(\lambda a)-\beta _{1}a\lambda J_{\rho _{m}+1}(\lambda a)=0\\&R_{kmn}(r)=J_{\rho _{m}}(\lambda _{kmn}r),\;k,m,n=0,1,2,\cdots \\&\gamma _{kmn}^{2}=\lambda _{kmn}^{2}+\mu _{k}^{2}\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/ada783da032d643506b636a9d5cb1d57520cee61)

The solution to the equation is:

Define:

Applying the initial condition:

This is the orthogonal expansion of
in terms of
Hence,

Let:


Substitute the expansions for u and h into the non-homogeneous equation:
![{\displaystyle \sum T_{kmn}'R_{kmn}\Theta _{m}Z_{k}=k\left\{\sum T_{kmn}\left[\underbrace {\left(R_{kmn}''+{\frac {1}{r}}R_{kmn}'\right)} _{-\left[\left(\lambda _{kmn}^{2}-\mu _{k}^{2}\right)-{\frac {1}{r^{2}}}\rho _{m}^{2}\right]R_{kmn}}\Theta _{m}Z_{k}+{\frac {1}{r^{2}}}R_{kmn}\underbrace {\Theta _{m}''} _{-\rho _{m}^{2}\Theta _{m}}Z_{k}+R_{kmn}\Theta _{m}\underbrace {Z_{k}''} _{-\mu _{k}^{2}Z_{k}}\right]\right\}+\sum H_{kmn}R_{kmn}\Theta _{m}Z_{k}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1472f2f9a5be6eb2cd9b16a7fbcfb56ea8c921ed)
![{\displaystyle \Leftrightarrow \sum T_{kmn}'\left[R_{kmn}\Theta _{m}Z_{k}\right]=\sum \left[(-k\gamma _{kmn}^{2})T_{kmn}+H_{kmn}\right]\left[R_{kmn}\Theta _{m}Z_{k}\right]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b856a111f8616c7ec034db0904389ed59c6806bc)
From the linear independence of
:


The undetermined coefficient satisfies the initial condition: