PDEs and Boundary Conditions - Maple Programming Help

 PDEs and Boundary Conditions

New methods have been implemented for solving partial differential equations with boundary condition (PDE and BC) problems.

1st order PDE with a single boundary condition (BC) that does not depend on the independent variables

The PDE & BC project, started five years ago implementing some of the basic methods found in textbooks to match arbitrary functions and constants to given PDE boundary conditions of different kinds. One frequent problem is that of a 1st order PDE that can be solved without boundary conditions in terms of an arbitrary function, and where a single boundary condition (BC) is given for the PDE unknown function, and this BC does not depend on the independent variables of the problem. The problem can be solved making simple, however, ingenious use of differential invariants to match the boundary condition.

The examples that can now be handled using this new method, although restricted in generality to "only one 1st order linear or nonlinear PDE and only one boundary condition for the unknown function itself", illustrate well how powerful it can be to use more advanced methods.

First consider a linear example, among the simplest one could imagine:

 > $\mathrm{PDEtools}:-\mathrm{declare}\left(f\left(x,y,z\right)\right)$
 ${f}{}\left({x}{,}{y}{,}{z}\right){\mathrm{will now be displayed as}}{f}$ (1.1)
 > $\mathrm{pde}≔\frac{\partial }{\partial x}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}f\left(x,y,z\right)+\frac{\partial }{\partial y}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}f\left(x,y,z\right)+\frac{\partial }{\partial z}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}f\left(x,y,z\right)=f\left(x,y,z\right)$
 ${\mathrm{pde}}{≔}\frac{{\partial }}{{\partial }{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({x}{,}{y}{,}{z}\right){+}\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({x}{,}{y}{,}{z}\right){+}\frac{{\partial }}{{\partial }{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({x}{,}{y}{,}{z}\right){=}{f}{}\left({x}{,}{y}{,}{z}\right)$ (1.2)

Now, input a boundary condition (BC) for the unknown$\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}f\left(x,y,z\right)$ such that this BC does not depend on the independent variables $\left\{x,y,z\right\}$; this BC can, however, depend on arbitrary symbolic parameters. For instance:

 >
 ${\mathrm{bc}}{≔}{f}{}\left({\mathrm{\alpha }}{+}{\mathrm{\beta }}{,}{\mathrm{\alpha }}{-}{\mathrm{\beta }}{,}{1}\right){=}{\mathrm{\alpha }}{\mathrm{\beta }}$ (1.3)

This kind of problem can now be solved in one step:

 >
 ${\mathrm{sol}}{≔}{f}{}\left({x}{,}{y}{,}{z}\right){=}\frac{\left({x}{-}{2}{z}{+}{2}{+}{y}\right)\left({x}{-}{y}\right){{ⅇ}}^{{z}{-}{1}}}{{4}}$ (1.4)

To verify this result for correctness, use the pdetest.  This also tests the solution against the boundary conditions.

 >
 $\left[{0}{,}{0}\right]$ (1.5)

To obtain the solution (1.4), the PDE was first solved regardless of the boundary condition:

 > $\mathrm{pdsolve}\left(\mathrm{pde}\right)$
 ${f}{}\left({x}{,}{y}{,}{z}\right){=}{\mathrm{_F1}}{}\left({-}{x}{+}{y}{,}{-}{x}{+}{z}\right){{ⅇ}}^{{x}}$ (1.6)

Next, the arbitrary function $\mathrm{_F1}\left(-x+y,-x+z\right)$ was determined such that the boundary condition $f\left(\mathrm{\alpha }+\mathrm{\beta },\mathrm{\alpha }-\mathrm{\beta },1\right)=\mathrm{\alpha }\mathrm{\beta }$ is matched. Concretely, the mapping _F1 is what was determined. You can see this mapping reversing the solving process in two steps. Start by taking the difference between the general solution (1.6) and solution (1.4) that matches the boundary condition:

 > $-$
 ${0}{=}{\mathrm{_F1}}{}\left({-}{x}{+}{y}{,}{-}{x}{+}{z}\right){{ⅇ}}^{{x}}{-}\frac{\left({x}{-}{2}{z}{+}{2}{+}{y}\right)\left({x}{-}{y}\right){{ⅇ}}^{{z}{-}{1}}}{{4}}$ (1.7)

and isolate here $\mathrm{_F1}\left(-x+y,-x+z\right)$

 > $\mathrm{PDEtools}:-\mathrm{Solve}\left(,\mathrm{_F1}\left(-x+y,-x+z\right)\right)$
 ${\mathrm{_F1}}{}\left({-}{x}{+}{y}{,}{-}{x}{+}{z}\right){=}\frac{{{ⅇ}}^{{-}{x}{+}{z}{-}{1}}\left({{x}}^{{2}}{-}{2}{z}{x}{-}{{y}}^{{2}}{+}{2}{z}{y}{+}{2}{x}{-}{2}{y}\right)}{{4}}$ (1.8)

So this is the value that  $\mathrm{_F1}\left(-x+y,-x+z\right)$ determined.  To see the actual solving mapping _F1, that takes for arguments $-x+y$ and $-x+z$ and returns the right-hand side of (1.8), one can perform a change of variables introducing the two parameters $\mathrm{τ__1}$ and $\mathrm{τ__2}$ of the _F1 mapping:

 > $\left\{\mathrm{τ__1}=y-x,\mathrm{τ__2}=-x+z,\mathrm{τ__3}=z\right\}$
 $\left\{\mathrm{τ__1}{=}{-}{x}{+}{y}{,}\mathrm{τ__2}{=}{-}{x}{+}{z}{,}\mathrm{τ__3}{=}{z}\right\}$ (1.9)
 > $\mathrm{solve}\left(,\left\{x,y,z\right\}\right)$
 $\left\{{x}{=}{-}\mathrm{τ__2}{+}\mathrm{τ__3}{,}{y}{=}{-}\mathrm{τ__2}{+}\mathrm{τ__1}{+}\mathrm{τ__3}{,}{z}{=}\mathrm{τ__3}\right\}$ (1.10)
 >
 ${\mathrm{_F1}}{}\left(\mathrm{τ__1}{,}\mathrm{τ__2}\right){=}{-}\frac{{{ⅇ}}^{\mathrm{τ__2}{-}{1}}\mathrm{τ__1}\left(\mathrm{τ__1}{-}{2}\mathrm{τ__2}{+}{2}\right)}{{4}}$ (1.11)

So, the solving mapping _F1 is:

 >
 ${\mathrm{_F1}}{=}\left(\mathrm{τ__1}{,}\mathrm{τ__2}\right){↦}{-}\frac{{{ⅇ}}^{\mathrm{τ__2}{-}{1}}\mathrm{τ__1}\left(\mathrm{τ__1}{-}{2}\mathrm{τ__2}{+}{2}\right)}{{4}}$ (1.12)

Although this PDE and BC example looks simple, this solution (1.12) is not apparent, as is the way to get it just from the boundary condition $f\left(\mathrm{\alpha }+\mathrm{\beta },\mathrm{\alpha }-\mathrm{\beta },1\right)=\mathrm{\alpha }\cdot \mathrm{\beta }$ and the solution (1.6).

Skipping the technical details, the key observation to compute a solving mapping is that: Given a 1st order PDE, where the unknown depends on $k$ independent variables, if the boundary condition depends on $k-1$ arbitrary symbolic parameters $\mathrm{\alpha },\mathrm{\beta }$, one can always seek a "relationship between these $k-1$ parameters and the differential invariants that enter as arguments in the arbitrary function _F1 of the solution", and get the form of the mapping _F1 from this relationship and the BC.  The method works in general. However, if, for instance, we change the BC (1.3), making its right-hand side a sum instead of a product,

 >
 ${\mathrm{bc}}{≔}{f}{}\left({\mathrm{\alpha }}{+}{\mathrm{\beta }}{,}{\mathrm{\alpha }}{-}{\mathrm{\beta }}{,}{1}\right){=}{\mathrm{\alpha }}{+}{\mathrm{\beta }}$ (1.13)
 >
 ${\mathrm{sol}}{≔}{f}{}\left({x}{,}{y}{,}{z}\right){=}\left({x}{-}{z}{+}{1}\right){{ⅇ}}^{{z}{-}{1}}$ (1.14)
 >
 $\left[{0}{,}{0}\right]$ (1.15)

an interesting case happens when the boundary condition depends on less than $k-1$ parameters. For instance:

 >
 $\mathrm{bc__1}{≔}{f}{}\left({2}{\mathrm{\alpha }}{,}{0}{,}{1}\right){=}{2}{\mathrm{\alpha }}$ (1.16)
 >
 $\mathrm{sol__1}{≔}{f}{}\left({x}{,}{y}{,}{z}\right){=}\frac{\left(\left({x}{-}{z}{+}{1}\right){\mathrm{_C1}}{+}{x}{-}{y}\right){{ⅇ}}^{\frac{\left({z}{-}{1}\right){\mathrm{_C1}}{+}{y}}{{1}{+}{\mathrm{_C1}}}}}{{1}{+}{\mathrm{_C1}}}$ (1.17)

As we see in this result, the additional difficulty represented by having few parameters got tackled by introducing an arbitrary constant _C1 (this is likely to evolve into something more general...)

 > $\mathrm{pdetest}\left(\mathrm{sol__1},\left[\mathrm{pde},\mathrm{bc__1}\right]\right)$
 $\left[{0}{,}{0}\right]$ (1.18)

Finally, consider a nonlinear example:

 > $\mathrm{PDEtools}:-\mathrm{declare}\left(u\left(x,y\right)\right)$
 ${u}{}\left({x}{,}{y}\right){\mathrm{will now be displayed as}}{u}$ (1.19)
 > $\mathrm{pde}≔3{\left(u\left(x,y\right)-y\right)}^{2}\left(\frac{\partial }{\partial x}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)\right)-\left(\frac{\partial }{\partial y}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}u\left(x,y\right)\right)=0$
 ${\mathrm{pde}}{≔}{3}{\left({u}{}\left({x}{,}{y}\right){-}{y}\right)}^{{2}}\frac{{\partial }}{{\partial }{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{y}\right){-}\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{y}\right){=}{0}$ (1.20)

Here we have two independent variables, so for illustration purposes use a boundary condition that depends on only one arbitrary parameter.

 >
 ${\mathrm{bc}}{≔}{u}{}\left({0}{,}{\mathrm{\alpha }}\right){=}{\mathrm{\alpha }}$ (1.21)

All looks OK, but we still have another problem: check the arbitrary function _F1 entering the general solution of PDE when tackled without any boundary condition:

 > $\mathrm{pdsolve}\left(\mathrm{pde}\right)$
 ${u}{}\left({x}{,}{y}\right){=}{\mathrm{RootOf}}{}\left({-}{{y}}^{{3}}{+}{3}{{y}}^{{2}}{\mathrm{_Z}}{-}{3}{y}{{\mathrm{_Z}}}^{{2}}{+}{{\mathrm{_Z}}}^{{3}}{-}{\mathrm{_F1}}{}\left({\mathrm{_Z}}\right){-}{x}\right)$ (1.22)

Remove this RootOf to see the underlying algebraic expression:

 > $\mathrm{DEtools}\left[\mathrm{remove_RootOf}\right]\left(\right)$
 ${-}{{y}}^{{3}}{+}{3}{{y}}^{{2}}{u}{}\left({x}{,}{y}\right){-}{3}{y}{{u}{}\left({x}{,}{y}\right)}^{{2}}{+}{{u}{}\left({x}{,}{y}\right)}^{{3}}{-}{\mathrm{_F1}}{}\left({u}{}\left({x}{,}{y}\right)\right){-}{x}{=}{0}$ (1.23)

So this is a PDE where the general solution is implicit, actually depending on an arbitrary function of the unknown $u\left(x,y\right).$ The code handles this problem in the same way, just that in cases like this there may be more than one solution. For this very particular BC (1.21), there are actually three solutions:

 > $\mathrm{pdsolve}\left(\left[\mathrm{pde},\mathrm{bc}\right]\right)$
 ${u}{}\left({x}{,}{y}\right){=}{{x}}^{{1}}{{3}}}{+}{y}{,}{u}{}\left({x}{,}{y}\right){=}{-}\frac{{{x}}^{{1}}{{3}}}}{{2}}{-}\frac{{I}\sqrt{{3}}{{x}}^{{1}}{{3}}}}{{2}}{+}{y}{,}{u}{}\left({x}{,}{y}\right){=}{-}\frac{{{x}}^{{1}}{{3}}}}{{2}}{+}\frac{{I}\sqrt{{3}}{{x}}^{{1}}{{3}}}}{{2}}{+}{y}$ (1.24)

Verify these three solutions against the PDE and the boundary condition.

 > $\mathrm{map}\left(\mathrm{pdetest},\left[\right],\left[\mathrm{pde},\mathrm{bc}\right]\right)$
 $\left[\left[{0}{,}{0}\right]{,}\left[{0}{,}{0}\right]{,}\left[{0}{,}{0}\right]\right]$ (1.25)

Linear PDE on bounded domains with homogeneous boundary conditions

More PDE on bounded domains are solved in Maple 2016.

Example: The wave equation

 >
 ${\mathrm{pde}}{≔}\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)$ (2.1)

governs the displacements of a string whose length is l, so that $0\le x\le l$, and $t\ge 0$.

 >
 ${\mathrm{bc}}{≔}{u}{}\left({0}{,}{t}\right){=}{0}{,}{u}{}\left({l}{,}{t}\right){=}{0}$ (2.2)
 >
 ${u}{}\left({x}{,}{t}\right){=}{\mathrm{_C4}}{\mathrm{sin}}{}\left(\frac{{\mathrm{\pi }}{x}\left|{\mathrm{_Z1}}\right|}{{l}}\right)\left({\mathrm{_C2}}{\mathrm{sin}}{}\left(\frac{{c}{\mathrm{\pi }}{t}\left|{\mathrm{_Z1}}\right|}{{l}}\right){+}{\mathrm{_C3}}{\mathrm{cos}}{}\left(\frac{{c}{\mathrm{\pi }}{t}\left|{\mathrm{_Z1}}\right|}{{l}}\right)\right)$ (2.3)

Many of the improvements were made when using the Fourier method (with separation of variables by product and eigenfunction expansion). This method separates the PDE by product into two ODEs, so that we now need to solve two ODE boundary problems. One of these ODE boundary problems is a Sturm-Liouville problem (an eigenvalue problem), whose solution we represent using an infinite series.

Example: Consider the diffusion PDE and BC problem below, where , $t\ge 0.$

 >
 ${\mathrm{pde}}{≔}\frac{{\partial }}{{\partial }{t}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{t}\right){=}{k}\left(\frac{{{\partial }}^{{2}}}{{\partial }{{x}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{t}\right)\right)$ (2.4)
 >
 ${\mathrm{bc}}{≔}{{\mathrm{D}}}_{{1}}{}\left({u}\right){}\left({0}{,}{t}\right){=}{0}{,}{u}{}\left({l}{,}{t}\right){=}{0}{,}{u}{}\left({x}{,}{0}\right){=}{f}{}\left({x}\right)$ (2.5)
 >
 ${u}{}\left({x}{,}{t}\right){=}{\sum }_{{\mathrm{_Z3}}{=}{1}}^{{\mathrm{\infty }}}{}\frac{{2}{{ⅇ}}^{{-}\frac{{{\mathrm{\pi }}}^{{2}}{\left({2}{\mathrm{_Z3}}{+}{1}\right)}^{{2}}{k}{t}}{{4}{{l}}^{{2}}}}{\mathrm{cos}}{}\left(\frac{{\mathrm{\pi }}\left({2}{\mathrm{_Z3}}{+}{1}\right){x}}{{2}{l}}\right)\left({{\int }}_{{0}}^{{l}}{f}{}\left({x}\right){\mathrm{cos}}{}\left(\frac{{\mathrm{\pi }}\left({2}{\mathrm{_Z3}}{+}{1}\right){x}}{{2}{l}}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right)}{{l}}$ (2.6)

Example: Consider Laplace's equation on a bounded circular domain. The PDE and BC problem below is in polar coordinates, with .

 >
 ${\mathrm{pde}}{≔}\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}$ (2.7)
 >
 ${\mathrm{bc}}{≔}{u}{}\left({R}{,}{\mathrm{\theta }}\right){=}{f}{}\left({\mathrm{\theta }}\right){,}{u}{}\left({r}{,}{0}\right){=}{u}{}\left({r}{,}{2}{\mathrm{\pi }}\right){,}{{\mathrm{D}}}_{{2}}{}\left({u}\right){}\left({r}{,}{0}\right){=}{{\mathrm{D}}}_{{2}}{}\left({u}\right){}\left({r}{,}{2}{\mathrm{\pi }}\right)$ (2.8)
 >
 ${u}{}\left({r}{,}{\mathrm{\theta }}\right){=}\frac{{\mathrm{_C10}}}{{2}}{+}\left({\sum }_{{\mathrm{_Z5}}{=}{1}}^{{\mathrm{\infty }}}{}\frac{{{r}}^{{\mathrm{_Z5}}}\left({\mathrm{cos}}{}\left({\mathrm{_Z5}}{\mathrm{\theta }}\right)\left({{\int }}_{{0}}^{{2}{\mathrm{\pi }}}{f}{}\left({\mathrm{\theta }}\right){\mathrm{cos}}{}\left({\mathrm{_Z5}}{\mathrm{\theta }}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{\theta }}\right){+}\left({{\int }}_{{0}}^{{2}{\mathrm{\pi }}}{f}{}\left({\mathrm{\theta }}\right){\mathrm{sin}}{}\left({\mathrm{_Z5}}{\mathrm{\theta }}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{\theta }}\right){\mathrm{sin}}{}\left({\mathrm{_Z5}}{\mathrm{\theta }}\right)\right){{R}}^{{-}{\mathrm{_Z5}}}}{{\mathrm{\pi }}}\right)$ (2.9)

 • Problems that include a source term can now be solved as well.

Example: Consider the following inhomogeneous PDE and BC problem, where the PDE includes a source term. To solve this, we use Duhamel's principle, namely that the solution to our inhomogeneous PDE problem can be found by solving the homogeneous version of the problem for a new variable $w\left(x,t,\mathrm{τ}\right)$, such that  The domain is bounded: .

 >
 ${\mathrm{pde}}{≔}\frac{{\partial }}{{\partial }{t}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{t}\right){-}{k}\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)$ (2.10)
 >
 ${\mathrm{bc}}{≔}{u}{}\left({0}{,}{t}\right){=}{0}{,}{u}{}\left({\mathrm{\pi }}{,}{t}\right){=}{0}{,}{u}{}\left({x}{,}{0}\right){=}{0}$ (2.11)
 >
 ${u}{}\left({x}{,}{t}\right){=}{{\int }}_{{0}}^{{t}}\left({\sum }_{{\mathrm{_Z6}}{=}{1}}^{{\mathrm{\infty }}}{}\frac{{2}\left({{\int }}_{{0}}^{{\mathrm{\pi }}}{f}{}\left({x}{,}{\mathrm{τ1}}\right){\mathrm{sin}}{}\left({\mathrm{_Z6}}{x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right){\mathrm{sin}}{}\left({\mathrm{_Z6}}{x}\right){{ⅇ}}^{{-}{{\mathrm{_Z6}}}^{{2}}{k}\left({t}{-}{\mathrm{τ1}}\right)}}{{\mathrm{\pi }}}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{τ1}}$ (2.12)

Cauchy problem for hyperbolic PDE with or without sources

The method for solving the Cauchy problem for hyperbolic PDE (in unbounded domains) has been expanded to include different types of sources as well as functions in the initial conditions.

Here is an example without sources in the PDE, where now we can have different types of functions in the initial conditions.

 >
 ${\mathrm{pde}}{≔}\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){=}{0}$ (3.1)
 >
 ${\mathrm{conds}}{≔}{u}{}\left({x}{,}{0}\right){=}{{ⅇ}}^{{-}{{x}}^{{2}}}{,}{{\mathrm{D}}}_{{2}}{}\left({u}\right){}\left({x}{,}{0}\right){=}{0}$ (3.2)
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde},\mathrm{conds}\right]\right);$
 ${u}{}\left({x}{,}{t}\right){=}\frac{{{ⅇ}}^{{-}{\left({2}{t}{-}{x}\right)}^{{2}}}}{{2}}{+}\frac{{{ⅇ}}^{{-}{\left({2}{t}{+}{x}\right)}^{{2}}}}{{2}}$ (3.3)

And an example with a source in the PDE:

 >
 ${\mathrm{pde}}{≔}\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){=}{f}{}\left({a}\right)$ (3.4)
 >
 ${\mathrm{conds}}{≔}{u}{}\left({x}{,}{0}\right){=}{0}{,}{{\mathrm{D}}}_{{2}}{}\left({u}\right){}\left({x}{,}{0}\right){=}{{x}}^{{2}}$ (3.5)
 > $\mathrm{pdsolve}\left(\left[\mathrm{pde},\mathrm{conds}\right]\right);$
 ${u}{}\left({x}{,}{t}\right){=}\frac{{f}{}\left({a}\right){{t}}^{{2}}}{{2}}{+}\frac{{4}{{t}}^{{3}}}{{3}}{+}{t}{{x}}^{{2}}$ (3.6)

PDEtools commands for working with PDE

New PDEtools general-purpose commands and options for researching and solving PDEs have been implemented.

Convert a first-order PDE that contains the dependent variable explicitly into one that does not

The command, within the PDEtools package, is called ToMissingDependentVariable. It works by setting a new dependent variable which is a function of the independent variables of the problem, as well as of the old dependent variable. In the resulting PDE, the new dependent variable does not appear explicitly. For example, consider the following non-linear first order PDE which was not solved by pdsolve previously:

 >
 ${\mathrm{pde_with_m}}{≔}{y}\left({\frac{{\partial }}{{\partial }{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{m}{}\left({x}{,}{y}\right)}^{{2}}{-}{\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{m}{}\left({x}{,}{y}\right)}^{{2}}\right){+}{m}{}\left({x}{,}{y}\right)\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{m}{}\left({x}{,}{y}\right)$ (4.1.1)

Its solution is now found by pdsolve by first converting it into a PDE without a dependent variable. For this, it uses the command ToMissingDependentVariable:

 >
 ${\mathrm{pde_missing_m}}{≔}{\frac{{\partial }}{{\partial }{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{v}{}\left({x}{,}{y}{,}{m}\right)}^{{2}}{y}{-}{m}\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{v}{}\left({x}{,}{y}{,}{m}\right)\frac{{\partial }}{{\partial }{m}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{v}{}\left({x}{,}{y}{,}{m}\right){-}{\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{v}{}\left({x}{,}{y}{,}{m}\right)}^{{2}}{y}{,}{v}{}\left({x}{,}{y}{,}{m}\right)$ (4.1.2)

That is, in order to solve pde_with_m, pdsolve creates and solves the above pde_missing_m, using a new function v(x,y,m), and then changes variables back to m(x,y) to give the solution:

 > $\mathrm{pdsolve}\left(\mathrm{pde_with_m}\right);$
 $\left({m}{}\left({x}{,}{y}\right){=}{{ⅇ}}^{\frac{{\mathrm{_C3}}{\mathrm{ln}}{}\left({y}\right){-}{2}{\mathrm{_C2}}{x}{+}\sqrt{{4}{{\mathrm{_C2}}}^{{2}}{{y}}^{{2}}{+}{{\mathrm{_C3}}}^{{2}}}{-}{2}{\mathrm{_C1}}{-}{\mathrm{_C3}}{\mathrm{csgn}}{}\left({\mathrm{_C3}}\right){\mathrm{ln}}{}\left(\frac{{2}{\mathrm{_C3}}\left({\mathrm{csgn}}{}\left({\mathrm{_C3}}\right)\sqrt{{4}{{\mathrm{_C2}}}^{{2}}{{y}}^{{2}}{+}{{\mathrm{_C3}}}^{{2}}}{+}{\mathrm{_C3}}\right)}{{y}}\right)}{{2}{\mathrm{_C3}}}}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{&where}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\left({\mathrm{There are no arbitrary functions}}\right)\right]$ (4.1.3)

New option reverse, for computing the family of PDEs to which corresponds a given characteristic strip, in the command charstrip

Consider a PDE, its characteristic strip, and its solution. What if we could send just the characteristic strip back to PDEtools and ask for all the PDEs that correspond to it? Now we can and more often than not, it is a whole family of PDEs that correspond to any given characteristic strip. This allows users to search for families of PDEs whose solution may be found due to knowing the (solvable) characteristic strip of only one member of such a family.

In the example below, note the use of the option "simplifyusingpde = false"; this is necessary so that the characteristic strip does not get simplified using the given PDE, rendering the "reverse" option as nonfunctional.

Example: Here is a PDE for which we know the characteristic strip:

 >
 ${\mathrm{pde}}{≔}{x}{\frac{{\partial }}{{\partial }{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({x}{,}{y}{,}{z}\right)}^{{2}}{-}{f}{}\left({x}{,}{y}{,}{z}\right){+}{{y}}^{{2}}\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({x}{,}{y}{,}{z}\right){=}{0}$ (4.2.1)
 >
 $\left\{\frac{{ⅆ}}{{ⅆ}{\mathrm{_s}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{\mathrm{_p}}}_{{2}}{}\left({\mathrm{_s}}\right){=}{-}{2}{y}{}\left({\mathrm{_s}}\right){{\mathrm{_p}}}_{{2}}{}\left({\mathrm{_s}}\right){+}{{\mathrm{_p}}}_{{2}}{}\left({\mathrm{_s}}\right){,}\frac{{ⅆ}}{{ⅆ}{\mathrm{_s}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{\mathrm{_p}}}_{{3}}{}\left({\mathrm{_s}}\right){=}{{\mathrm{_p}}}_{{3}}{}\left({\mathrm{_s}}\right){,}\frac{{ⅆ}}{{ⅆ}{\mathrm{_s}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({\mathrm{_s}}\right){=}{2}{x}{}\left({\mathrm{_s}}\right){{{\mathrm{_p}}}_{{3}}{}\left({\mathrm{_s}}\right)}^{{2}}{+}{{y}{}\left({\mathrm{_s}}\right)}^{{2}}{{\mathrm{_p}}}_{{2}}{}\left({\mathrm{_s}}\right){,}\frac{{ⅆ}}{{ⅆ}{\mathrm{_s}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{x}{}\left({\mathrm{_s}}\right){=}{0}{,}\frac{{ⅆ}}{{ⅆ}{\mathrm{_s}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{y}{}\left({\mathrm{_s}}\right){=}{{y}{}\left({\mathrm{_s}}\right)}^{{2}}{,}\frac{{ⅆ}}{{ⅆ}{\mathrm{_s}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{z}{}\left({\mathrm{_s}}\right){=}{2}{x}{}\left({\mathrm{_s}}\right){{\mathrm{_p}}}_{{3}}{}\left({\mathrm{_s}}\right)\right\}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{&where}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left\{{{\mathrm{_p}}}_{{2}}{=}\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({x}{,}{y}{,}{z}\right){,}{{\mathrm{_p}}}_{{3}}{=}\frac{{\partial }}{{\partial }{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({x}{,}{y}{,}{z}\right)\right\}$ (4.2.2)

And here is the family of PDEs that corresponds to that characteristic strip (note the arbitrary function _F1(x)):

 >
 ${-}{f}{}\left({x}{,}{y}{,}{z}\right){+}{{y}}^{{2}}\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({x}{,}{y}{,}{z}\right){+}{x}{\frac{{\partial }}{{\partial }{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}{}\left({x}{,}{y}{,}{z}\right)}^{{2}}{+}{\mathrm{_F1}}{}\left({x}\right)$ (4.2.3)
 >