 Partial Differential Equations and Boundary Conditions - Maple Help

Home : Support : Online Help : System : Information : Updates : Maple 2019 : Partial Differential Equations and Boundary Conditions

 Partial Differential Equations with Boundary Conditions



Significant developments happened for Maple 2019 in its ability for the exact solving of PDE with Boundary / Initial conditions. The new functionality is described below, in 11 brief Sections, with 30 selected examples and a few comments. 1. PDE and BC problems solved using linear change of variables

PDE and BC problems often require that the boundary and initial conditions be given at certain evaluation points (usually in which one of the variables is equal to zero). Using linear changes of variables, however, it is possible to change the evaluation points of BC, obtaining the solution for the new variables, and then changing back to the original variables. This is now automatically done by the pdsolve command.

Example 1: A heat PDE & BC problem in a semi-infinite domain:

 > $\mathrm{pde__1}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)=\frac{1}{4}\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)\right):$
 > $\mathrm{iv__1}≔u\left(-A,t\right)=0,u\left(x,B\right)=10:$

Note the evaluation points A and B. The method typically described in textbooks requires the evaluation points to be . The change of variables automatically used in this case is:

 >
 ${\mathrm{transformation}}{≔}\left\{{t}{=}{\mathrm{\tau }}{+}{B}{,}{x}{=}{\mathrm{\xi }}{-}{A}{,}{u}{}\left({x}{,}{t}\right){=}{\mathrm{\upsilon }}{}\left({\mathrm{\xi }}{,}{\mathrm{\tau }}\right)\right\}$ (1)

so that pdsolve's task becomes solving this other problem, now with the appropriate evaluation points

 > $\mathrm{PDEtools}:-\mathrm{dchange}\left(\mathrm{transformation},\left[\mathrm{pde__1},\mathrm{iv__1}\right],\left\{\mathrm{xi},\mathrm{tau},\mathrm{upsilon}\right\}\right);$
 $\left[\frac{{\partial }}{{\partial }{\mathrm{\tau }}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\upsilon }}{}\left({\mathrm{\xi }}{,}{\mathrm{\tau }}\right){=}\frac{\frac{{{\partial }}^{{2}}}{{\partial }{{\mathrm{\xi }}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\upsilon }}{}\left({\mathrm{\xi }}{,}{\mathrm{\tau }}\right)}{{4}}{,}{\mathrm{\upsilon }}{}\left({0}{,}{\mathrm{\tau }}\right){=}{0}{,}{\mathrm{\upsilon }}{}\left({\mathrm{\xi }}{,}{0}\right){=}{10}\right]$ (2)

and then changing the variables back to the original {x, t, u} and giving the solution. The process all in one go:

 >
 ${u}{}\left({x}{,}{t}\right){=}{10}{}{\mathrm{erf}}{}\left(\frac{{x}{+}{A}}{\sqrt{{t}{-}{B}}}\right)$ (3)

Example 2: A heat PDE with a source and a piecewise initial condition

 > $\mathrm{pde__2}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)+1=\mathrm{\mu }\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)\right):$
 > $\mathrm{iv__2}≔u\left(x,1\right)=\left\{\begin{array}{cc}0& 0\le x\\ 1& x<0\end{array}\right\:$
 >
 ${u}{}\left({x}{,}{t}\right){=}\frac{{3}}{{2}}{-}\frac{{\mathrm{erf}}{}\left(\frac{{x}}{{2}{}\sqrt{{\mathrm{\mu }}}{}\sqrt{{t}{-}{1}}}\right)}{{2}}{-}{t}$ (4)

Example 3: A wave PDE & BC problem in a semi-infinite domain:

 > $\mathrm{pde__3}≔\frac{{\partial }^{2}}{\partial {t}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)=\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right):$
 > $\mathrm{iv__3}≔u\left(x,1\right)={ⅇ}^{-{\left(x-6\right)}^{2}}+{ⅇ}^{-{\left(x+6\right)}^{2}},{\mathrm{D}}_{2}\left(u\right)\left(x,1\right)=\frac{1}{2}:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__3},\mathrm{iv__3}\right]\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{assuming}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}0
 ${u}{}\left({x}{,}{t}\right){=}\frac{{{ⅇ}}^{{-}{\left({-}{x}{+}{t}{+}{5}\right)}^{{2}}}}{{2}}{+}\frac{{{ⅇ}}^{{-}{\left({-}{x}{+}{t}{-}{7}\right)}^{{2}}}}{{2}}{+}\frac{{{ⅇ}}^{{-}{\left({x}{+}{t}{-}{7}\right)}^{{2}}}}{{2}}{+}\frac{{{ⅇ}}^{{-}{\left({x}{+}{t}{+}{5}\right)}^{{2}}}}{{2}}{+}\frac{{t}}{{2}}{-}\frac{{1}}{{2}}$ (5)

Example 4: A wave PDE & BC problem in a semi-infinite domain:

 > $\mathrm{pde__4}≔\frac{{\partial }^{2}}{\partial {t}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)-\frac{1}{4}\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)\right)=0:$
 > $\mathrm{iv__4}≔{\mathrm{D}}_{1}\left(u\right)\left(1,t\right)=0,u\left(x,0\right)={ⅇ}^{-{x}^{2}},{\mathrm{D}}_{2}\left(u\right)\left(x,0\right)=0:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__4},\mathrm{iv__4}\right]\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{assuming}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}1
 ${u}{}\left({x}{,}{t}\right){=}\frac{\left(\left\{\begin{array}{cc}{{ⅇ}}^{{-}\frac{{\left({t}{+}{2}{}{x}\right)}^{{2}}}{{4}}}{+}{{ⅇ}}^{{-}\frac{{\left({t}{-}{2}{}{x}\right)}^{{2}}}{{4}}}& \frac{{t}}{{2}}{<}{x}{-}{1}\\ {{ⅇ}}^{{-}\frac{{\left({t}{+}{2}{}{x}\right)}^{{2}}}{{4}}}{+}{{ⅇ}}^{{-}\frac{{\left({t}{-}{2}{}{x}{+}{4}\right)}^{{2}}}{{4}}}& {x}{-}{1}{<}\frac{{t}}{{2}}\end{array}\right\\right)}{{2}}$ (6)

Example 5: A wave PDE with a source:

 > $\mathrm{pde__5}≔\frac{{\partial }^{2}}{\partial {t}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)-{c}^{2}\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)\right)=f\left(x,t\right):$
 > $\mathrm{iv__5}≔u\left(x,1\right)=g\left(x\right),{\mathrm{D}}_{2}\left(u\right)\left(x,1\right)=h\left(x\right):$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__5},\mathrm{iv__5}\right]\right)$
 ${u}{}\left({x}{,}{t}\right){=}\frac{{{\int }}_{{0}}^{{t}{-}{1}}{{\int }}_{\left({-}{t}{+}{\mathrm{\tau }}{+}{1}\right){}{c}{+}{x}}^{{x}{+}{c}{}\left({t}{-}{1}{-}{\mathrm{\tau }}\right)}\left(\left(\frac{{{ⅆ}}^{{2}}}{{ⅆ}{{\mathrm{ζ}}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{h}{}\left({\mathrm{ζ}}\right)\right){}{{c}}^{{2}}{}{\mathrm{\tau }}{+}\left(\frac{{{ⅆ}}^{{2}}}{{ⅆ}{{\mathrm{ζ}}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{g}{}\left({\mathrm{ζ}}\right)\right){}{{c}}^{{2}}{+}{f}{}\left({\mathrm{ζ}}{,}{\mathrm{\tau }}{+}{1}\right)\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{ζ}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{\tau }}{+}\left({2}{}{t}{-}{2}\right){}{c}{}{h}{}\left({x}\right){+}{2}{}{g}{}\left({x}\right){}{c}}{{2}{}{c}}$ (7)
 > $\mathrm{pdetest}\left(,\left[\mathrm{pde__5},\mathrm{iv__5}\right]\right)$
 $\left[{0}{,}{0}{,}{0}\right]$ (8) 2. It is now possible to specify or exclude method(s) for solving

Staring with Maple 2019, the pdsolve/BC solving methods can be indicated, either to be used for solving, as in  to be tried in the order indicated, or to be excluded, as in . The methods and sub-methods available are organized in a table, $\mathrm{pdsolve/BC/methods}:$

 > $\mathrm{indices}\left(\mathrm{pdsolve/BC/methods}\right)$
 $\left[{1}\right]{,}\left[{2}\right]{,}\left[{3}\right]{,}\left[{2}{,}{"SpecializeArbitraryFunctions"}\right]{,}\left[{2}{,}{"Series"}\right]{,}\left[{"system"}\right]{,}\left[{2}{,}{"Heat"}\right]{,}\left[{2}{,}{"Wave"}\right]{,}\left[{"high_order"}\right]$ (9)

So, for example, the methods for PDEs of first order and second order are, respectively,

 > $\mathrm{pdsolve/BC/methods}\left[1\right]$
 $\left[{"SpecializeArbitraryFunctions"}{,}{"Fourier"}{,}{"Laplace"}{,}{"Generic"}{,}{"PolynomialSolutions"}{,}{"LinearDifferentialOperator"}\right]$ (10)
 > $\mathrm{pdsolve/BC/methods}\left[2\right]$
 $\left[{"SpecializeArbitraryFunctions"}{,}{"SpecializeArbitraryConstants"}{,}{"Wave"}{,}{"Heat"}{,}{"Series"}{,}{"Laplace"}{,}{"Fourier"}{,}{"Generic"}{,}{"PolynomialSolutions"}{,}{"LinearDifferentialOperator"}{,}{"Superposition"}\right]$ (11)

Some methods have sub-methods (their existence is visible in (9)):

 > $\mathrm{pdsolve/BC/methods}\left[2,"Series"\right]$
 $\left[{"TwoBC"}{,}{"ThreeBCsincos"}{,}{"FourBC"}{,}{"ThreeBC"}{,}{"ThreeBCPeriodic"}{,}{"WithSourceTerm"}{,}{"ThreeVariables"}\right]$ (12)
 > $\mathrm{pdsolve/BC/methods}\left[2,"Heat"\right]$
 $\left[{"SemiInfiniteDomain"}{,}{"WithSourceTerm"}\right]$ (13)

Example 6:

 > $\mathrm{pde__6}≔\frac{{\partial }^{2}}{\partial {r}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(r,\mathrm{\theta }\right)+\frac{{\partial }^{2}}{\partial {\mathrm{\theta }}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(r,\mathrm{\theta }\right)=0:$
 > $\mathrm{iv__6}≔u\left(2,\mathrm{\theta }\right)=3\mathrm{sin}\left(2\mathrm{\theta }\right)+1:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__6},\mathrm{iv__6}\right]\right)$
 ${u}{}\left({r}{,}{\mathrm{\theta }}\right){=}{-}{\mathrm{_F2}}{}\left({-}{I}{}{r}{+}{2}{}{I}{+}{\mathrm{\theta }}\right){+}{1}{-}{3}{}{\mathrm{sin}}{}\left({2}{}{I}{}{r}{-}{4}{}{I}{-}{2}{}{\mathrm{\theta }}\right){+}{\mathrm{_F2}}{}\left({I}{}{r}{-}{2}{}{I}{+}{\mathrm{\theta }}\right)$ (14)
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__6},\mathrm{iv__6}\right],\mathrm{method}=\mathrm{Fourier}\right)$
 ${u}{}\left({r}{,}{\mathrm{\theta }}\right){=}\frac{{3}{}{I}{}{{ⅇ}}^{{2}{}{r}{-}{4}{-}{2}{}{I}{}{\mathrm{\theta }}}}{{2}}{-}\frac{{3}{}{I}{}{{ⅇ}}^{{-}{2}{}{r}{+}{4}{+}{2}{}{I}{}{\mathrm{\theta }}}}{{2}}{+}{1}$ (15)

Example 7:

 > $\mathrm{pde__7}≔\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)+\frac{{\partial }^{2}}{\partial {y}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)=0:$
 > $\mathrm{iv__7}≔u\left(x,0\right)=\mathrm{Dirac}\left(x\right):$
 >
 ${u}{}\left({x}{,}{y}\right){=}{\mathrm{\delta }}{}\left({x}\right){-}\frac{{\mathrm{\delta }}{″}{}\left({x}\right){}{{y}}^{{2}}}{{2}}{+}{\mathrm{_C3}}{}{y}$ (16)
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__7},\mathrm{iv__7}\right],\mathrm{method}=\mathrm{Fourier}\right)$
 ${u}{}\left({x}{,}{y}\right){=}{\mathrm{invfourier}}{}\left({{ⅇ}}^{{-}{s}{}{y}}{,}{s}{,}{x}\right)$ (17)
 > $\mathrm{convert}\left(,\mathrm{Int}\right);$
 ${u}{}\left({x}{,}{y}\right){=}\frac{{{\int }}_{{-}{\mathrm{\infty }}}^{{\mathrm{\infty }}}{{ⅇ}}^{{-}{s}{}{y}{+}{I}{}{s}{}{x}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{s}}{{2}{}{\mathrm{\pi }}}$ (18)
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__7},\mathrm{iv__7}\right],\mathrm{method}=\mathrm{Generic}\right)$
 ${u}{}\left({x}{,}{y}\right){=}{-}{\mathrm{_F2}}{}\left({-}{y}{+}{I}{}{x}\right){+}{\mathrm{\delta }}{}\left({x}{+}{I}{}{y}\right){+}{\mathrm{_F2}}{}\left({y}{+}{I}{}{x}\right)$ (19) 3. Series solutions for linear PDE and BC problems solved via product separation with eigenvalues that are the roots of algebraic expressions which cannot be inverted

Linear problems for which the PDE can be separated by product, giving rise to Sturm-Liouville problems for the separation constants (eigenvalues) and separated functions (eigenfunctions), do not always result in solvable equations for the eigenvalues. Below are examples where the eigenvalues are respectively roots of a sum of Bessel functions and of a trigonometric equation $\mathrm{tan}\left({\mathrm{\lambda }}_{n}\right)+{\mathrm{\lambda }}_{n}=0$.

Example 8: This problem represents the temperature distribution in a thin circular plate whose lateral surfaces are insulated (Articolo example 6.9.2):

 > $\mathrm{pde__8}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(r,\mathrm{\theta },t\right)=\frac{\left(\frac{\partial }{\partial r}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(r,\mathrm{\theta },t\right)+r\left(\frac{{\partial }^{2}}{\partial {r}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(r,\mathrm{\theta },t\right)\right)+\frac{\frac{{\partial }^{2}}{\partial {\mathrm{\theta }}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(r,\mathrm{\theta },t\right)}{r}\right)}{25\cdot r}:$
 > $\mathrm{iv__8}≔{\mathrm{D}}_{1}\left(u\right)\left(1,\mathrm{\theta },t\right)=0,u\left(r,0,t\right)=0,u\left(r,\mathrm{\pi },t\right)=0,u\left(r,\mathrm{\theta },0\right)=\left(r-\frac{1}{3}{r}^{3}\right)\mathrm{sin}\left(\mathrm{\theta }\right):$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__8},\mathrm{iv__8}\right]\right)$
 ${u}{}\left({r}{,}{\mathrm{θ}}{,}{t}\right){=}{\mathrm{casesplit/ans}}{}\left({\mathrm{Sum}}{}\left({-}\frac{{4}}{{3}}{}\frac{{\mathrm{BesselJ}}{}\left({1}{,}{{\mathrm{λ}}}_{{n}}{}{r}\right){}{\mathrm{sin}}{}\left({\mathrm{θ}}\right){}{\mathrm{exp}}{}\left({-}\frac{{1}}{{25}}{}{{\mathrm{λ}}}_{{n}}^{{2}}{}{t}\right){}\left({\mathrm{BesselJ}}{}\left({0}{,}{{\mathrm{λ}}}_{{n}}\right){}{{\mathrm{λ}}}_{{n}}^{{3}}{-}{\mathrm{BesselJ}}{}\left({1}{,}{{\mathrm{λ}}}_{{n}}\right){}{{\mathrm{λ}}}_{{n}}^{{2}}{+}{4}{}{{\mathrm{λ}}}_{{n}}{}{\mathrm{BesselJ}}{}\left({0}{,}{{\mathrm{λ}}}_{{n}}\right){-}{8}{}{\mathrm{BesselJ}}{}\left({1}{,}{{\mathrm{λ}}}_{{n}}\right)\right)}{{{\mathrm{λ}}}_{{n}}^{{3}}{}\left({{\mathrm{BesselJ}}{}\left({0}{,}{{\mathrm{λ}}}_{{n}}\right)}^{{2}}{}{{\mathrm{λ}}}_{{n}}{+}{{\mathrm{BesselJ}}{}\left({1}{,}{{\mathrm{λ}}}_{{n}}\right)}^{{2}}{}{{\mathrm{λ}}}_{{n}}{-}{2}{}{\mathrm{BesselJ}}{}\left({0}{,}{{\mathrm{λ}}}_{{n}}\right){}{\mathrm{BesselJ}}{}\left({1}{,}{{\mathrm{λ}}}_{{n}}\right)\right)}{,}{n}{=}{0}{..}{\mathrm{∞}}\right){,}\left\{{\mathrm{And}}{}\left({-}{\mathrm{BesselJ}}{}\left({1}{,}{{\mathrm{λ}}}_{{n}}\right){+}{\mathrm{BesselJ}}{}\left({2}{,}{{\mathrm{λ}}}_{{n}}\right){}{{\mathrm{λ}}}_{{n}}{=}{0}{,}{0}{<}{{\mathrm{λ}}}_{{n}}\right)\right\}\right)$ (20)

In the above we see that the eigenvalue $\mathrm{λ__n}$ satisfies ${J}_{1}\left({\mathrm{\lambda }}_{n}\right)+{J}_{2}\left({\mathrm{\lambda }}_{n}\right){\mathrm{\lambda }}_{n}=0$. When $\mathrm{λ__n}$ is the root of one single $\mathrm{BesselJ}$ or $\mathrm{BesselY}$ function of integer order, the Maple functions $\mathrm{BesselJZeros}$ and $\mathrm{BesselYZeros}$ are used instead. That is the case, for instance, if we slightly modify this problem changing the first boundary condition to be $u\left(1,\mathrm{\theta },t\right)=0$ instead of ${\mathrm{D}}_{1}\left(u\right)\left(1,\mathrm{\theta },t\right)=0$

 > $\mathrm{iv__8.1}≔u\left(1,\mathrm{\theta },t\right)=0,u\left(r,0,t\right)=0,u\left(r,\mathrm{\pi },t\right)=0,u\left(r,\mathrm{\theta },0\right)=\left(r-\frac{1}{3}{r}^{3}\right)\mathrm{sin}\left(\mathrm{\theta }\right):$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__8},\mathrm{iv__8.1}\right]\right)$
 ${u}{}\left({r}{,}{\mathrm{θ}}{,}{t}\right){=}{\mathrm{casesplit/ans}}{}\left({\mathrm{Sum}}{}\left({-}\frac{{4}}{{3}}{}\frac{{\mathrm{BesselJ}}{}\left({1}{,}{{\mathrm{λ}}}_{{n}}{}{r}\right){}{\mathrm{sin}}{}\left({\mathrm{θ}}\right){}{\mathrm{exp}}{}\left({-}\frac{{1}}{{25}}{}{{\mathrm{λ}}}_{{n}}^{{2}}{}{t}\right){}\left({{\mathrm{λ}}}_{{n}}^{{2}}{+}{4}\right)}{{\mathrm{BesselJ}}{}\left({0}{,}{{\mathrm{λ}}}_{{n}}\right){}{{\mathrm{λ}}}_{{n}}^{{3}}}{,}{n}{=}{1}{..}{\mathrm{∞}}\right){,}\left\{{\mathrm{And}}{}\left({{\mathrm{λ}}}_{{n}}{=}{\mathrm{BesselJZeros}}{}\left({1}{,}{n}\right){,}{0}{<}{{\mathrm{λ}}}_{{n}}\right)\right\}\right)$ (21)

Example 9: This problem represents the temperature distribution in a thin rod whose left end is held at a fixed temperature of 5 and whose right end loses heat by convection into a medium whose temperature is 10. There is also an internal heat source term in the PDE (Articolo example 8.4.3):

 > $\mathrm{pde__9}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)=\frac{1}{20}\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)\right)+t:$
 > $\mathrm{iv__9}≔u\left(0,t\right)=5,u\left(1,t\right)+{\mathrm{D}}_{1}\left(u\right)\left(1,t\right)=10,u\left(x,0\right)=-\frac{40{x}^{2}}{3}+\frac{45x}{2}+5:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__9},\mathrm{iv__9}\right]\right)$
 ${u}{}\left({x}{,}{t}\right){=}{\mathrm{casesplit/ans}}{}\left({\mathrm{Sum}}{}\left(\frac{{80}}{{3}}{}\frac{{\mathrm{exp}}{}\left({-}\frac{{1}}{{20}}{}{{\mathrm{λ}}}_{{n}}^{{2}}{}{t}\right){}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}{}{x}\right){}\left({{\mathrm{λ}}}_{{n}}^{{2}}{}{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right){+}{{\mathrm{λ}}}_{{n}}{}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}\right){+}{4}{}{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right){-}{4}\right)}{{{\mathrm{λ}}}_{{n}}^{{2}}{}\left({\mathrm{sin}}{}\left({2}{}{{\mathrm{λ}}}_{{n}}\right){-}{2}{}{{\mathrm{λ}}}_{{n}}\right)}{,}{n}{=}{0}{..}{\mathrm{∞}}\right){+}{\mathrm{Int}}{}\left({\mathrm{Sum}}{}\left(\frac{{4}{}{\mathrm{exp}}{}\left({-}\frac{{1}}{{20}}{}{{\mathrm{λ}}}_{{n}}^{{2}}{}\left({t}{-}{\mathrm{τ}}\right)\right){}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}{}{x}\right){}{\mathrm{τ}}{}\left({\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right){-}{1}\right)}{{\mathrm{sin}}{}\left({2}{}{{\mathrm{λ}}}_{{n}}\right){-}{2}{}{{\mathrm{λ}}}_{{n}}}{,}{n}{=}{0}{..}{\mathrm{∞}}\right){,}{\mathrm{τ}}{=}{0}{..}{t}\right){+}\frac{{5}}{{2}}{}{x}{+}{5}{,}\left\{{\mathrm{And}}{}\left({\mathrm{tan}}{}\left({{\mathrm{λ}}}_{{n}}\right){+}{{\mathrm{λ}}}_{{n}}{=}{0}{,}{0}{<}{{\mathrm{λ}}}_{{n}}\right)\right\}\right)$ (22)

For information on how to verify or plot a solution like the one above, see the section "Sturm-Liouville problem with eigenvalues that are the roots of algebraic expressions which cannot be inverted" in the pdsolve with boundary conditions help page. 4. Superposition method for linear PDE with more than one non-homogeneous BC

Previously, for linear homogeneous PDE problems with non-periodic initial and boundary conditions, pdsolve was only consistently able to solve the problem as long as at most one of those conditions was non-homogeneous. The superposition method works by taking advantage of the linearity of the problem and the fact that the solution to such a problem in which two or more of the BC are non-homogeneous can be given as

u = $\mathrm{u__1}+\mathrm{u__2}$ + ...,  where each $\mathrm{u__i}$ is a solution of the PDE with all but one of the BC homogenized.

Example 10: A Laplace PDE with one homogeneous and three non-homogeneous conditions:

 > $\mathrm{pde__10}≔\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)+\frac{{\partial }^{2}}{\partial {y}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)=0:$
 > $\mathrm{iv__10}≔u\left(0,y\right)=0,u\left(\mathrm{\pi },y\right)=\mathrm{sinh}\left(\mathrm{\pi }\right)\mathrm{cos}\left(y\right),u\left(x,0\right)=\mathrm{sin}\left(x\right),u\left(x,\mathrm{\pi }\right)=-\mathrm{sinh}\left(x\right):$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__10},\mathrm{iv__10}\right]\right)$
 ${u}{}\left({x}{,}{y}\right){=}\frac{\left({{ⅇ}}^{{2}{}{\mathrm{\pi }}}{-}{1}\right){}\left({\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}\frac{{\left({-1}\right)}^{{n}}{}{n}{}\left({{ⅇ}}^{{2}{}{\mathrm{\pi }}}{-}{1}\right){}{{ⅇ}}^{{n}{}\left({\mathrm{\pi }}{-}{y}\right){-}{\mathrm{\pi }}}{}{\mathrm{sin}}{}\left({n}{}{x}\right){}\left({{ⅇ}}^{{2}{}{n}{}{y}}{-}{1}\right)}{{\mathrm{\pi }}{}\left({{n}}^{{2}}{+}{1}\right){}\left({{ⅇ}}^{{2}{}{\mathrm{\pi }}{}{n}}{-}{1}\right)}\right){+}\left({{ⅇ}}^{{2}{}{\mathrm{\pi }}}{-}{1}\right){}\left({\sum }_{{n}{=}{2}}^{{\mathrm{\infty }}}{}\frac{{2}{}{\mathrm{sin}}{}\left({n}{}{y}\right){}{{ⅇ}}^{{n}{}\left({\mathrm{\pi }}{-}{x}\right)}{}{\mathrm{sinh}}{}\left({\mathrm{\pi }}\right){}{n}{}\left({\left({-1}\right)}^{{n}}{+}{1}\right){}\left({{ⅇ}}^{{2}{}{n}{}{x}}{-}{1}\right)}{{\mathrm{\pi }}{}\left({{ⅇ}}^{{2}{}{\mathrm{\pi }}{}{n}}{-}{1}\right){}\left({{n}}^{{2}}{-}{1}\right)}\right){+}{\mathrm{sin}}{}\left({x}\right){}\left({-}{{ⅇ}}^{{y}}{+}{{ⅇ}}^{{-}{y}{+}{2}{}{\mathrm{\pi }}}\right)}{{{ⅇ}}^{{2}{}{\mathrm{\pi }}}{-}{1}}$ (23) 5. Polynomial solutions method:

This new method gives pdsolve better performance when the PDE & BC problems admit polynomial solutions.

Example 11:

 > $\mathrm{pde__11}≔\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)+y\left(\frac{{\partial }^{2}}{\partial {y}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)\right)=0:$
 > $\mathrm{iv__11}≔u\left(x,0\right)=0,{\mathrm{D}}_{2}\left(u\right)\left(x,0\right)={x}^{2}:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__11},\mathrm{iv__11}\right]\right)$
 ${u}{}\left({x}{,}{y}\right){=}{y}{}\left({{x}}^{{2}}{-}{y}\right)$ (24) 6. Solving more problems using the Laplace transform or the Fourier transform

These methods now solve more problems and are no longer restricted to PDE of first or second order.

Example 12: A third order PDE & BC problem:

 > $\mathrm{pde__12}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)=-\frac{{\partial }^{3}}{\partial {x}^{3}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right):$
 > $\mathrm{iv__12}≔u\left(x,0\right)=f\left(x\right):$
 >
 ${u}{}\left({x}{,}{t}\right){=}\frac{{{\int }}_{{-}{\mathrm{\infty }}}^{{\mathrm{\infty }}}\frac{{4}{}{\mathrm{\pi }}{}{f}{}\left({-}{\mathrm{ζ}}\right){}\sqrt{{-}\frac{{x}{+}{\mathrm{ζ}}}{{\left({-}{t}\right)}^{{1}}{{3}}}}}{}{{K}}_{\frac{{1}}{{3}}}{}\left({-}\frac{{2}{}\sqrt{{3}}{}\left({x}{+}{\mathrm{ζ}}\right){}\sqrt{{-}\frac{{x}{+}{\mathrm{ζ}}}{{\left({-}{t}\right)}^{{1}}{{3}}}}}}{{9}{}{\left({-}{t}\right)}^{{1}}{{3}}}}\right)}{{3}{}{\left({-}{t}\right)}^{{1}}{{3}}}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{ζ}}}{{4}{}{{\mathrm{\pi }}}^{{2}}}$ (25)

Example 13: A PDE & BC problem that is solved using Laplace transform:

 > $\mathrm{pde__13}≔\frac{{\partial }^{2}}{\partial y\partial x}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)=\mathrm{sin}\left(x\right)\mathrm{sin}\left(y\right):$
 > $\mathrm{iv__13}≔u\left(x,0\right)=1+\mathrm{cos}\left(x\right),{\mathrm{D}}_{2}\left(u\right)\left(0,y\right)=-2\mathrm{sin}\left(y\right):$
 >
 ${u}{}\left({x}{,}{y}\right){=}{\mathrm{cos}}{}\left({y}\right){}\left({1}{+}{\mathrm{cos}}{}\left({x}\right)\right)$ (26)

To see the computational flow, the solving methods used, and in which order they are tried, use

 >
 ${{\mathrm{infolevel}}}_{{\mathrm{pdsolve}}}{≔}{2}$ (27)

Example 14:

 > $\mathrm{pde__14}≔\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)+\frac{{\partial }^{2}}{\partial {y}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)=0:$
 > $\mathrm{iv__14}≔u\left(x,0\right)=0,u\left(x,b\right)=h\left(x\right):$
 >
 * trying method "SpecializeArbitraryFunctions" for 2nd order PDEs    -> trying "LinearInXT"    -> trying "HomogeneousBC" * trying method "SpecializeArbitraryConstants" for 2nd order PDEs * trying method "Wave" for 2nd order PDEs    -> trying "Cauchy"    -> trying "SemiInfiniteDomain"    -> trying "WithSourceTerm" * trying method "Heat" for 2nd order PDEs    -> trying "SemiInfiniteDomain"    -> trying "WithSourceTerm" * trying method "Series" for 2nd order PDEs    -> trying "TwoBC"    -> trying "ThreeBCsincos"    -> trying "FourBC"    -> trying "ThreeBC"    -> trying "ThreeBCPeriodic"    -> trying "WithSourceTerm"       * trying method "SpecializeArbitraryFunctions" for 2nd order PDEs          -> trying "LinearInXT"          -> trying "HomogeneousBC"             Trying travelling wave solutions as power series in tanh ...                Trying travelling wave solutions as power series in ln ...       * trying method "SpecializeArbitraryConstants" for 2nd order PDEs          Trying travelling wave solutions as power series in tanh ...             Trying travelling wave solutions as power series in ln ...       * trying method "Wave" for 2nd order PDEs          -> trying "Cauchy"          -> trying "SemiInfiniteDomain"          -> trying "WithSourceTerm"       * trying method "Heat" for 2nd order PDEs          -> trying "SemiInfiniteDomain"          -> trying "WithSourceTerm"       * trying method "Series" for 2nd order PDEs          -> trying "TwoBC"             Trying travelling wave solutions as power series in tanh ...                Trying travelling wave solutions as power series in ln ...          -> trying "ThreeBCsincos"          -> trying "FourBC"          -> trying "ThreeBC"          -> trying "ThreeBCPeriodic"          -> trying "WithSourceTerm"          -> trying "ThreeVariables"       * trying method "Laplace" for 2nd order PDEs          -> trying a Laplace transformation       * trying method "Fourier" for 2nd order PDEs          -> trying a fourier transformation       * trying method "Generic" for 2nd order PDEs          -> trying a solution in terms of arbitrary constants and functions to be adjusted to the given initial conditions       * trying method "PolynomialSolutions" for 2nd order PDEs       * trying method "LinearDifferentialOperator" for 2nd order PDEs       * trying method "Superposition" for 2nd order PDEs    -> trying "ThreeVariables" * trying method "Laplace" for 2nd order PDEs    -> trying a Laplace transformation * trying method "Fourier" for 2nd order PDEs    -> trying a fourier transformation    <- fourier transformation successful <- method "Fourier" for 2nd order PDEs successful
 ${u}{}\left({x}{,}{y}\right){=}{-}{\mathrm{invfourier}}{}\left(\frac{{{ⅇ}}^{{s}{}\left({b}{-}{y}\right)}{}{\mathrm{fourier}}{}\left({h}{}\left({x}\right){,}{x}{,}{s}\right)}{{{ⅇ}}^{{2}{}{s}{}{b}}{-}{1}}{,}{s}{,}{x}\right){+}{\mathrm{invfourier}}{}\left(\frac{{{ⅇ}}^{{s}{}\left({b}{+}{y}\right)}{}{\mathrm{fourier}}{}\left({h}{}\left({x}\right){,}{x}{,}{s}\right)}{{{ⅇ}}^{{2}{}{s}{}{b}}{-}{1}}{,}{s}{,}{x}\right)$ (28)
 > $\mathrm{convert}\left(,\mathrm{Int}\right)$
 ${u}{}\left({x}{,}{y}\right){=}{-}\frac{{{\int }}_{{-}{\mathrm{\infty }}}^{{\mathrm{\infty }}}\frac{\left({{\int }}_{{-}{\mathrm{\infty }}}^{{\mathrm{\infty }}}{h}{}\left({x}\right){}{{ⅇ}}^{{-I}{}{x}{}{s}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right){}{{ⅇ}}^{{s}{}\left({b}{-}{y}\right){+}{I}{}{s}{}{x}}}{{{ⅇ}}^{{2}{}{s}{}{b}}{-}{1}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{s}}{{2}{}{\mathrm{\pi }}}{+}\frac{{{\int }}_{{-}{\mathrm{\infty }}}^{{\mathrm{\infty }}}\frac{\left({{\int }}_{{-}{\mathrm{\infty }}}^{{\mathrm{\infty }}}{h}{}\left({x}\right){}{{ⅇ}}^{{-I}{}{x}{}{s}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right){}{{ⅇ}}^{{s}{}\left({b}{+}{y}\right){+}{I}{}{s}{}{x}}}{{{ⅇ}}^{{2}{}{s}{}{b}}{-}{1}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{s}}{{2}{}{\mathrm{\pi }}}$ (29)

Reset the infolevel to avoid displaying the computational flow:

 > 7. Improvements to solving heat and wave PDE, with or without a source:

Example 15: A heat PDE:

 > $\mathrm{pde__15}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)=13\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)\right):$
 > $\mathrm{iv__15}≔{\mathrm{D}}_{1}\left(u\right)\left(0,t\right)=0,{\mathrm{D}}_{1}\left(u\right)\left(1,t\right)=1,u\left(x,0\right)=\frac{1}{2}{x}^{2}+x:$
 >
 ${u}{}\left({x}{,}{t}\right){=}\frac{{1}}{{2}}{+}\left({\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}\frac{{2}{}{\mathrm{cos}}{}\left({n}{}{\mathrm{\pi }}{}{x}\right){}{{ⅇ}}^{{-}{13}{}{{\mathrm{\pi }}}^{{2}}{}{{n}}^{{2}}{}{t}}{}\left({-}{1}{+}{\left({-1}\right)}^{{n}}\right)}{{{\mathrm{\pi }}}^{{2}}{}{{n}}^{{2}}}\right){+}{13}{}{t}{+}\frac{{{x}}^{{2}}}{{2}}$ (30)

To verify an infinite series solution such as this one you can first use pdetest

 > $\mathrm{pdetest}\left(,\left[\mathrm{pde__15},\mathrm{iv__15}\right]\right);$
 $\left[{0}{,}{0}{,}{0}{,}\frac{{1}}{{2}}{+}\left({\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}\frac{{2}{}{\mathrm{cos}}{}\left({n}{}{\mathrm{\pi }}{}{x}\right){}\left({-}{1}{+}{\left({-1}\right)}^{{n}}\right)}{{{\mathrm{\pi }}}^{{2}}{}{{n}}^{{2}}}\right){-}{x}\right]$ (31)

To verify that the last condition, for $u\left(x,0\right)$ is satisfied, we plot the first 1000 terms of the series solution with $t=0$ and make sure that it coincides with the plot of the right-hand side of the initial condition $u\left(x,0\right)=\frac{1}{2}{x}^{2}+x$. Expected: the two plots superimposed on each other

 > $\mathrm{plot}\left(\left[\mathrm{value}\left(\mathrm{subs}\left(t=0,\mathrm{infinity}=1000,\mathrm{rhs}\left(\right)\right)\right),\frac{{x}^{2}}{2}+x\right],x=0..1\right);$ Example 16: A heat PDE in a semi-bounded domain:

 > $\mathrm{pde__16}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)=\frac{1}{4}\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)\right):$
 > $\mathrm{iv__16}≔{\mathrm{D}}_{1}\left(u\right)\left(\mathrm{\alpha },t\right)=0,u\left(x,\mathrm{\beta }\right)=10{ⅇ}^{-{x}^{2}}:$
 >
 ${u}{}\left({x}{,}{t}\right){=}{-}\frac{{5}{}\left(\left({\mathrm{erf}}{}\left(\frac{\left({t}{-}{\mathrm{\beta }}{-}{1}\right){}{\mathrm{\alpha }}{+}{x}}{\sqrt{{t}{-}{\mathrm{\beta }}{+}{1}}{}\sqrt{{t}{-}{\mathrm{\beta }}}}\right){-}{1}\right){}{{ⅇ}}^{\frac{{4}{}{\mathrm{\alpha }}{}\left({-}{x}{+}{\mathrm{\alpha }}\right)}{{-}{t}{+}{\mathrm{\beta }}{-}{1}}}{+}{\mathrm{erf}}{}\left(\frac{\left({t}{-}{\mathrm{\beta }}{+}{1}\right){}{\mathrm{\alpha }}{-}{x}}{\sqrt{{t}{-}{\mathrm{\beta }}{+}{1}}{}\sqrt{{t}{-}{\mathrm{\beta }}}}\right){-}{1}\right){}{{ⅇ}}^{\frac{{{x}}^{{2}}}{{-}{t}{+}{\mathrm{\beta }}{-}{1}}}}{\sqrt{{t}{-}{\mathrm{\beta }}{+}{1}}}$ (32)

Example 17: A wave PDE in a semi-bounded domain:

 > $\mathrm{pde__17}≔\frac{{\partial }^{2}}{\partial {t}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)-9\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)\right)=0:$
 > $\mathrm{iv__17}≔{\mathrm{D}}_{1}\left(u\right)\left(0,t\right)=0,u\left(x,0\right)=0,{\mathrm{D}}_{2}\left(u\right)\left(x,0\right)={x}^{3}:$
 >
 ${u}{}\left({x}{,}{t}\right){=}\left\{\begin{array}{cc}{9}{}{{t}}^{{3}}{}{x}{+}{t}{}{{x}}^{{3}}& {3}{}{t}{<}{x}\\ \frac{{27}}{{4}}{}{{t}}^{{4}}{+}\frac{{9}}{{2}}{}{{t}}^{{2}}{}{{x}}^{{2}}{+}\frac{{1}}{{12}}{}{{x}}^{{4}}& {x}{<}{3}{}{t}\end{array}\right\$ (33)

Example 18: A wave PDE with a source

 > $\mathrm{pde__18}≔\frac{{\partial }^{2}}{\partial {t}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)=\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)+x{ⅇ}^{-t}:$
 > $\mathrm{iv__18}≔u\left(0,t\right)=0,u\left(1,t\right)=0,u\left(x,0\right)=0,{\mathrm{D}}_{2}\left(u\right)\left(x,0\right)=1:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__18},\mathrm{iv__18}\right]\right)$
 ${u}{}\left({x}{,}{t}\right){=}{\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}{-}\frac{{2}{}\left(\left({{\mathrm{\pi }}}^{{2}}{}{{n}}^{{2}}{}{\left({-1}\right)}^{{n}}{-}{{\mathrm{\pi }}}^{{2}}{}{{n}}^{{2}}{+}{2}{}{\left({-1}\right)}^{{n}}{-}{1}\right){}{\mathrm{sin}}{}\left({n}{}{\mathrm{\pi }}{}{t}\right){+}{\mathrm{\pi }}{}{n}{}{\left({-1}\right)}^{{n}}{}\left({{ⅇ}}^{{-}{t}}{-}{\mathrm{cos}}{}\left({n}{}{\mathrm{\pi }}{}{t}\right)\right)\right){}{\mathrm{sin}}{}\left({n}{}{\mathrm{\pi }}{}{x}\right)}{{{\mathrm{\pi }}}^{{2}}{}{{n}}^{{2}}{}\left({{\mathrm{\pi }}}^{{2}}{}{{n}}^{{2}}{+}{1}\right)}$ (34)

Example 19: Another wave PDE with a source

 > $\mathrm{pde__19}≔\frac{{\partial }^{2}}{\partial {t}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)=4\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)\right)+\left(1+t\right)x:$
 > $\mathrm{iv__19}≔u\left(0,t\right)=0,u\left(\mathrm{\pi },t\right)=\mathrm{sin}\left(t\right),u\left(x,0\right)=0,{\mathrm{D}}_{2}\left(u\right)\left(x,0\right)=0:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__19},\mathrm{iv__19}\right]\right)$
 ${u}{}\left({x}{,}{t}\right){=}\frac{\left({\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}{-}\frac{{2}{}\left(\left({-}{2}{}{{n}}^{{4}}{-}\frac{{1}}{{2}}{}{\mathrm{\pi }}{}{{n}}^{{2}}{+}\frac{{1}}{{8}}{}{\mathrm{\pi }}\right){}{\mathrm{sin}}{}\left({2}{}{n}{}{t}\right){+}{n}{}\left(\left({-}{\mathrm{\pi }}{}{{n}}^{{2}}{+}\frac{{1}}{{4}}{}{\mathrm{\pi }}\right){}{\mathrm{cos}}{}\left({2}{}{n}{}{t}\right){+}{\mathrm{sin}}{}\left({t}\right){}{{n}}^{{2}}{+}\left({n}{-}\frac{{1}}{{2}}\right){}\left({n}{+}\frac{{1}}{{2}}\right){}\left({t}{+}{1}\right){}{\mathrm{\pi }}\right)\right){}{\left({-1}\right)}^{{n}}{}{\mathrm{sin}}{}\left({n}{}{x}\right)}{{\mathrm{\pi }}{}{{n}}^{{4}}{}\left({4}{}{{n}}^{{2}}{-}{1}\right)}\right){}{\mathrm{\pi }}{+}{x}{}{\mathrm{sin}}{}\left({t}\right)}{{\mathrm{\pi }}}$ (35) 8. Improvements in series methods for Laplace PDE problems

Example 20: A Laplace PDE with BC representing the inside of a quarter circle of radius 1. The solution we seek is bounded as $r$ approaches 0:

 > $\mathrm{pde__20}≔\frac{{\partial }^{2}}{\partial {r}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(r,\mathrm{\theta }\right)+\frac{\frac{\partial }{\partial r}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(r,\mathrm{\theta }\right)}{r}+\frac{\frac{{\partial }^{2}}{\partial {\mathrm{\theta }}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(r,\mathrm{\theta }\right)}{{r}^{2}}=0:$
 > $\mathrm{iv__20}≔u\left(r,0\right)=0,u\left(r,\frac{1}{2}\mathrm{\pi }\right)=0,{\mathrm{D}}_{1}\left(u\right)\left(1,\mathrm{\theta }\right)=f\left(\mathrm{\theta }\right):$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__20},\mathrm{iv__20}\right],\mathrm{HINT}=\mathrm{boundedseries}\left(r=\left[0\right]\right)\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{assuming}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}0\le \mathrm{\theta },\mathrm{\theta }\le \frac{1}{2}\mathrm{\pi },0\le r,r\le 1$
 ${u}{}\left({r}{,}{\mathrm{\theta }}\right){=}{\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}\frac{{2}{}\left({{\int }}_{{0}}^{\frac{{\mathrm{\pi }}}{{2}}}{f}{}\left({\mathrm{\theta }}\right){}{\mathrm{sin}}{}\left({2}{}{n}{}{\mathrm{\theta }}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{\theta }}\right){}{{r}}^{{2}{}{n}}{}{\mathrm{sin}}{}\left({2}{}{n}{}{\mathrm{\theta }}\right)}{{\mathrm{\pi }}{}{n}}$ (36)

Example 21: A Laplace PDE for which we seek a solution that remains bounded as y approaches $\mathrm{\infty }$:

 > $\mathrm{pde__21}≔\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)+\frac{{\partial }^{2}}{\partial {y}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)=0:$
 > $\mathrm{iv__21}≔u\left(0,y\right)=A,u\left(a,y\right)=0,u\left(x,0\right)=0:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__21},\mathrm{iv__21}\right],\mathrm{HINT}=\mathrm{boundedseries}\left(y=\mathrm{\infty }\right)\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{assuming}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}a>0$
 ${u}{}\left({x}{,}{y}\right){=}\frac{\left({\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}{-}\frac{{2}{}{A}{}{\mathrm{sin}}{}\left(\frac{{n}{}{\mathrm{\pi }}{}{x}}{{a}}\right){}{{ⅇ}}^{{-}\frac{{n}{}{\mathrm{\pi }}{}{y}}{{a}}}}{{n}{}{\mathrm{\pi }}}\right){}{a}{-}{A}{}\left({x}{-}{a}\right)}{{a}}$ (37) Example 22: For this wave PDE with a source term, pdsolve used to return a solution with uncomputed integrals:

 > $\mathrm{pde__22}≔\frac{{\partial }^{2}}{\partial {t}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right)=Ax+\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,t\right):$
 > $\mathrm{iv__22}≔u\left(0,t\right)=0,u\left(1,t\right)=0,u\left(x,0\right)=0,{\mathrm{D}}_{2}\left(u\right)\left(x,0\right)=0:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__22},\mathrm{iv__22}\right]\right)$
 ${u}{}\left({x}{,}{t}\right){=}\left({\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}\frac{{2}{}{\left({-1}\right)}^{{n}}{}{A}{}{\mathrm{sin}}{}\left({n}{}{\mathrm{\pi }}{}{x}\right){}{\mathrm{cos}}{}\left({n}{}{\mathrm{\pi }}{}{t}\right)}{{{n}}^{{3}}{}{{\mathrm{\pi }}}^{{3}}}\right){+}\frac{\left({-}{{x}}^{{3}}{+}{x}\right){}{A}}{{6}}$ (38)

Example 23: A BC at is now handled by pdsolve:

 > $\mathrm{pde__23}≔\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)+\frac{{\partial }^{2}}{\partial {y}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)=0:$
 > $\mathrm{iv__23}≔u\left(0,y\right)=\mathrm{sin}\left(y\right),u\left(x,0\right)=0,u\left(x,a\right)=0,u\left(\mathrm{\infty },y\right)=0:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__23},\mathrm{iv__23}\right]\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{assuming}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}0
 ${u}{}\left({x}{,}{y}\right){=}{\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}{-}\frac{{2}{}{\mathrm{\pi }}{}{n}{}\left(\left\{\begin{array}{cc}{-1}& {a}{=}{\mathrm{\pi }}{}{n}\\ \frac{{\mathrm{sin}}{}\left({a}\right){}{\left({-1}\right)}^{{n}}}{{\mathrm{\pi }}{}{n}{-}{a}}& {\mathrm{otherwise}}\end{array}\right\\right){}{{ⅇ}}^{{-}\frac{{n}{}{\mathrm{\pi }}{}{x}}{{a}}}{}{\mathrm{sin}}{}\left(\frac{{n}{}{\mathrm{\pi }}{}{y}}{{a}}\right)}{{\mathrm{\pi }}{}{n}{+}{a}}$ (39)

Example 24: A reduced Helmholtz PDE in a square of side Previously, pdsolve returned a series starting at $n=0$, when the limit of the $n=0$ term is 0.

 > $\mathrm{pde__24}≔\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)+\frac{{\partial }^{2}}{\partial {y}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)-ku\left(x,y\right)=0:$
 > $\mathrm{iv__24}≔u\left(0,y\right)=1,u\left(\mathrm{\pi },y\right)=0,u\left(x,0\right)=0,u\left(x,\mathrm{\pi }\right)=0:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__24},\mathrm{iv__24}\right]\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{assuming}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}0
 ${u}{}\left({x}{,}{y}\right){=}{\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}\frac{{2}{}{\mathrm{sin}}{}\left({n}{}{y}\right){}\left({-}{1}{+}{\left({-1}\right)}^{{n}}\right){}\left({-}{{ⅇ}}^{{-}\left({-}{2}{}{\mathrm{\pi }}{+}{x}\right){}\sqrt{{{n}}^{{2}}{+}{k}}}{+}{{ⅇ}}^{\sqrt{{{n}}^{{2}}{+}{k}}{}{x}}\right)}{{n}{}\left({{ⅇ}}^{{2}{}\sqrt{{{n}}^{{2}}{+}{k}}{}{\mathrm{\pi }}}{-}{1}\right){}{\mathrm{\pi }}}$ (40) 10. Linear differential operator: more solutions are now successfully computed

Example 25:

 > $\mathrm{pde__25}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}w\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)=\frac{{\partial }^{2}}{\partial {\mathrm{x1}}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}w\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)+\frac{{\partial }^{2}}{\partial {\mathrm{x2}}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}w\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)+\frac{{\partial }^{2}}{\partial {\mathrm{x3}}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}w\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right):$
 > $\mathrm{iv__25}≔w\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},1\right)={ⅇ}^{a}{\mathrm{x1}}^{2}+\mathrm{x2}\mathrm{x3}:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__25},\mathrm{iv__25}\right]\right)$
 ${w}{}\left({\mathrm{x1}}{,}{\mathrm{x2}}{,}{\mathrm{x3}}{,}{t}\right){=}\left({{\mathrm{x1}}}^{{2}}{+}{2}{}{t}{-}{2}\right){}{{ⅇ}}^{{a}}{+}{\mathrm{x2}}{}{\mathrm{x3}}$ (41)

Example 26:

 > $\mathrm{pde__26}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}w\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)-{\mathrm{D}}_{1,2}\left(w\right)\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)-{\mathrm{D}}_{1,3}\left(w\right)\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)-{\mathrm{D}}_{3,3}\left(w\right)\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)+{\mathrm{D}}_{2,3}\left(w\right)\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)=0:$
 >
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__26},\mathrm{iv__26}\right]\right)$
 ${w}{}\left({\mathrm{x1}}{,}{\mathrm{x2}}{,}{\mathrm{x3}}{,}{t}\right){=}{{ⅇ}}^{{\mathrm{x1}}}{+}{\mathrm{x2}}{-}{3}{}{\mathrm{x3}}$ (42)

Example 27:

 > $\mathrm{pde__27}≔\frac{{\partial }^{2}}{\partial {t}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}w\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)={\mathrm{D}}_{1,2}\left(w\right)\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)+{\mathrm{D}}_{1,3}\left(w\right)\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)+{\mathrm{D}}_{3,3}\left(w\right)\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)-{\mathrm{D}}_{2,3}\left(w\right)\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right):$
 > $\mathrm{iv__27}≔w\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},a\right)={\mathrm{x1}}^{3}{\mathrm{x2}}^{2}+\mathrm{x3},{\mathrm{D}}_{4}\left(w\right)\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},a\right)=-\mathrm{x2}\mathrm{x3}+\mathrm{x1}:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__27},\mathrm{iv__27}\right],w\left(\mathrm{x1},\mathrm{x2},\mathrm{x3},t\right)\right)$
 ${w}{}\left({\mathrm{x1}}{,}{\mathrm{x2}}{,}{\mathrm{x3}}{,}{t}\right){=}{{\mathrm{x1}}}^{{3}}{}{{\mathrm{x2}}}^{{2}}{+}{3}{}{\mathrm{x2}}{}{\left({-}{t}{+}{a}\right)}^{{2}}{}{{\mathrm{x1}}}^{{2}}{+}\frac{\left({-}{t}{+}{a}\right){}\left({{a}}^{{3}}{-}{3}{}{{a}}^{{2}}{}{t}{+}{3}{}{a}{}{{t}}^{{2}}{-}{{t}}^{{3}}{-}{2}\right){}{\mathrm{x1}}}{{2}}{-}\frac{{{a}}^{{3}}}{{6}}{+}\frac{{{a}}^{{2}}{}{t}}{{2}}{+}\frac{\left({-}{3}{}{{t}}^{{2}}{+}{6}{}{\mathrm{x2}}{}{\mathrm{x3}}\right){}{a}}{{6}}{+}\frac{{{t}}^{{3}}}{{6}}{-}{t}{}{\mathrm{x2}}{}{\mathrm{x3}}{+}{\mathrm{x3}}$ (43) 11. More problems in 3 variables are now solved

Example 28: A Schrödinger type PDE in two space dimensions, where Z is Planck's constant.

 >
 > $\mathrm{iv__28}≔f\left(x,y,0\right)=\sqrt{2}\left(\mathrm{sin}\left(2\mathrm{\pi }x\right)\mathrm{sin}\left(\mathrm{\pi }y\right)+\mathrm{sin}\left(\mathrm{\pi }x\right)\mathrm{sin}\left(3\mathrm{\pi }y\right)\right),f\left(0,y,t\right)=0,f\left(1,y,t\right)=0,f\left(x,1,t\right)=0,f\left(x,0,t\right)=0:$
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__28},\mathrm{iv__28}\right]\right)$
 ${f}{}\left({x}{,}{y}{,}{t}\right){=}\sqrt{{2}}{}{\mathrm{sin}}{}\left({\mathrm{\pi }}{}{x}\right){}\left({2}{}{\mathrm{sin}}{}\left({\mathrm{\pi }}{}{y}\right){}{\mathrm{cos}}{}\left({\mathrm{\pi }}{}{x}\right){}{{ⅇ}}^{\frac{{-}\frac{{5}{}{I}}{{2}}{}{\mathrm{\hslash }}{}{t}{}{{\mathrm{\pi }}}^{{2}}}{{m}}}{+}{\mathrm{sin}}{}\left({3}{}{\mathrm{\pi }}{}{y}\right){}{{ⅇ}}^{\frac{{-}{5}{}{I}{}{\mathrm{\hslash }}{}{t}{}{{\mathrm{\pi }}}^{{2}}}{{m}}}\right)$ (44)

Example 29: This problem represents the temperature distribution in a thin rectangular plate whose lateral surfaces are insulated yet is losing heat by convection along the boundary $x=1$, into a surrounding medium at temperature 0 (Articolo example 6.6.3):

 > $\mathrm{pde__29}≔\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y,t\right)=\frac{1}{50}\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y,t\right)+\frac{{\partial }^{2}}{\partial {y}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y,t\right)\right):$
 > $\mathrm{iv__29}≔{\mathrm{D}}_{1}\left(u\right)\left(0,y,t\right)=0,{\mathrm{D}}_{1}\left(u\right)\left(1,y,t\right)+u\left(1,y,t\right)=0,u\left(x,0,t\right)=0,u\left(x,1,t\right)=0,u\left(x,y,0\right)=\left(1-\frac{{x}^{2}}{3}\right)y\left(1-y\right):$
 >
 ${u}{}\left({x}{,}{y}{,}{t}\right){=}{\mathrm{casesplit/ans}}{}\left({\mathrm{Sum}}{}\left({\mathrm{Sum}}{}\left({-}\frac{{32}}{{3}}{}\frac{\left({\left({-}{1}\right)}^{{\mathrm{n1}}}{-}{1}\right){}{\mathrm{sin}}{}\left({\mathrm{n1}}{}{\mathrm{π}}{}{y}\right){}{\mathrm{exp}}{}\left({-}\frac{{1}}{{50}}{}{t}{}\left({{\mathrm{π}}}^{{2}}{}{{\mathrm{n1}}}^{{2}}{+}{{\mathrm{λ}}}_{{n}}^{{2}}\right)\right){}{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}{}{x}\right){}\left({{\mathrm{λ}}}_{{n}}^{{2}}{}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}\right){-}{{\mathrm{λ}}}_{{n}}{}{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right){+}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}\right)\right)}{{{\mathrm{λ}}}_{{n}}^{{2}}{}\left({\mathrm{sin}}{}\left({2}{}{{\mathrm{λ}}}_{{n}}\right){+}{2}{}{{\mathrm{λ}}}_{{n}}\right){}{{\mathrm{n1}}}^{{3}}{}{{\mathrm{π}}}^{{3}}}{,}{n}{=}{0}{..}{\mathrm{∞}}\right){,}{\mathrm{n1}}{=}{1}{..}{\mathrm{∞}}\right){,}\left\{{\mathrm{And}}{}\left({\mathrm{tan}}{}\left({{\mathrm{λ}}}_{{n}}\right){}{{\mathrm{λ}}}_{{n}}{-}{1}{=}{0}{,}{0}{<}{{\mathrm{λ}}}_{{n}}\right)\right\}\right)$ (45)

Example 30: exercise 7.15 from Articolo's textbook, with six boundary/initial conditions:

 > $\mathrm{pde__30}≔\frac{{\partial }^{2}}{\partial {t}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y,t\right)=\frac{1}{4}\left(\frac{{\partial }^{2}}{\partial {x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y,t\right)+\frac{{\partial }^{2}}{\partial {y}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y,t\right)\right)-\frac{1}{10}\left(\frac{\partial }{\partial t}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y,t\right)\right):$
 >

In this problem, there are three independent variables, therefore two eigenvalues (constants that appear separating variables by product) in the Sturm-Liouville problem. However, after solving the separated system and also for the eigenvalues, the second eigenvalue is equal to the first one, and it cannot be expressed in terms of known functions, because the equation it solves cannot be inverted. Its solution is, however, computable

 > $\mathrm{pdsolve}\left(\left[\mathrm{pde__30},\mathrm{iv__30}\right]\right)$
 ${u}{}\left({x}{,}{y}{,}{t}\right){=}{\mathrm{casesplit/ans}}{}\left({\mathrm{Sum}}{}\left(\frac{{1}}{{6}}{}\frac{{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}{}{x}\right){}{\mathrm{exp}}{}\left({-}\frac{{1}}{{20}}{}{t}{}\left(\sqrt{{-}{200}{}{{\mathrm{λ}}}_{{n}}^{{2}}{+}{1}}{+}{1}\right)\right){}\left({\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}{}{y}\right){}{{\mathrm{λ}}}_{{n}}{+}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}{}{y}\right)\right){}\left({\mathrm{exp}}{}\left(\frac{{1}}{{10}}{}{t}{}\sqrt{{-}{200}{}{{\mathrm{λ}}}_{{n}}^{{2}}{+}{1}}\right){}\sqrt{{-}{200}{}{{\mathrm{λ}}}_{{n}}^{{2}}{+}{1}}{+}{\mathrm{exp}}{}\left(\frac{{1}}{{10}}{}{t}{}\sqrt{{-}{200}{}{{\mathrm{λ}}}_{{n}}^{{2}}{+}{1}}\right){+}\sqrt{{-}{200}{}{{\mathrm{λ}}}_{{n}}^{{2}}{+}{1}}{-}{1}\right){}\left({6}{}{{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right)}^{{2}}{}{{\mathrm{λ}}}_{{n}}^{{2}}{+}{{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right)}^{{2}}{-}{5}{}{{\mathrm{λ}}}_{{n}}^{{2}}{-}{1}\right){}\left({{\mathrm{λ}}}_{{n}}^{{2}}{}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}\right){-}{{\mathrm{λ}}}_{{n}}{}{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right){+}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}\right)\right)}{\sqrt{{-}{200}{}{{\mathrm{λ}}}_{{n}}^{{2}}{+}{1}}{}{{\mathrm{λ}}}_{{n}}^{{4}}{}\left({-}{{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right)}^{{4}}{+}\left({{\mathrm{λ}}}_{{n}}{}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}\right){-}{1}\right){}{{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right)}^{{3}}{+}\left({{\mathrm{λ}}}_{{n}}^{{2}}{+}{{\mathrm{λ}}}_{{n}}{}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}\right){+}{1}\right){}{{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right)}^{{2}}{+}\left({{\mathrm{λ}}}_{{n}}^{{2}}{+}{2}{}{{\mathrm{λ}}}_{{n}}{}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}\right){+}{1}\right){}{\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right){+}{{\mathrm{λ}}}_{{n}}{}\left({{\mathrm{λ}}}_{{n}}{+}{\mathrm{sin}}{}\left({{\mathrm{λ}}}_{{n}}\right)\right)\right){}\left({\mathrm{cos}}{}\left({{\mathrm{λ}}}_{{n}}\right){-}{1}\right)}{,}{n}{=}{0}{..}{\mathrm{∞}}\right){,}\left\{{\mathrm{And}}{}\left({\mathrm{tan}}{}\left({{\mathrm{λ}}}_{{n}}\right){}{{\mathrm{λ}}}_{{n}}{-}{1}{=}{0}{,}{0}{<}{{\mathrm{λ}}}_{{n}}\right)\right\}\right)$ (46)
 > 

For information on how to verify or plot a solution like the one above, see the section "Sturm-Liouville problem with eigenvalues that are the roots of algebraic expressions which cannot be inverted" in the pdsolve with boundary conditions help page. References Articolo, G. A. (2009). Partial differential equations and boundary value problems with Maple (2nd ed.). Amsterdam: Acad. Press/Elsevier.