## 140 Reputation

10 years, 70 days

## Improvements in solving PDE & BC in Mapl...

Maple 2018

For Maple 2018.1, there are improvements in pdsolve's ability to solve PDE with boundary and initial conditions. This is work done together with E.S. Cheb-Terrab. The improvements include an extended ability to solve problems involving non-homogeneous PDE and/or non-homogeneous boundary and initial conditions, as well as improved simplification of solutions and better handling of functions such as piecewise in the arguments and in the processing of solutions. This is also an ongoing project, with updates being distributed regularly within the Physics Updates.

Solving more problems involving non-homogeneous PDE and/or non-homogeneous boundary and initial conditions

Example 1: Pinchover and Rubinstein's exercise 6.17: we have a non-homogenous PDE and boundary and initial conditions that are also non-homogeneous:

 >  >  (1)
 How we solve the problem, step by step:

Example 2: the PDE is homogeneous but the boundary conditions are not. We solve the problem through the same process, which means we end up solving a nonhomogeneous pde with homogeneous BC as an intermediate step:

 >  >  (12)
 How we solve the problem, step by step:

Example 3: a wave PDE with a source that does not depend on time:

 >  >  (23)
 How we solve the problem, step by step:

Example 4: Pinchover and Rubinstein's exercise 6.23 - we have a non-homogenous PDE and initial condition:

 >  >  (30)

If we now make the functions f and g into specific mappings, we can compare pdsolve's solutions to the general and specific problems:

 >  Here is what pdsolve's solution to the general problem looks like when taking into account the new values of f(x) and g(x,t):

 >  (31)

Here is pdsolve's solution to the specific problem:

 >  (32)

And the two solutions are equal:

 >  (33)
 > Improved simplification in integrals, piecewise functions, and sums in the solutions returned by pdsolve

Example 1: exercise 6.21 from Pinchover and Rubinstein is a non-homogeneous heat problem. Its solution used to include unevaluated integrals and sums, but is now returned in a significantly simpler format.

 >  >  (34)
 >  (35)

Example 2: example 6.46 from Pinchover and Rubinstein is a non-homogeneous heat equation with non-homogeneous boundary and initial conditions. Its solution used to involve two separate sums with unevaluated integrals, but is now returned with only one sum and unevaluated integral.

 >  >  (36)
 >  (37)

More accuracy when returning series solutions that have exceptions for certain values of the summation index or a parameter

Example 1: the answer to this problem was previously given with instead of as it should be:

 >  >  (38)

Example 2: the answer to exercise 6.25 from Pinchover and Rubinstein is now given in a much simpler format, with the special limit case for w = 0 calculated separately:

 >  >  (39)

Improved handling of piecewise, eval/diff in the given problem

Example 1: this problem, which contains a piecewise function in the initial condition, can now be solved:

 >  >  (40)

Example 2: this problem, which contains a derivative written using eval/diff, can now be solved:

 >  >  (41)

References:

Pinchover, Y. and Rubinstein, J.. An Introduction to Partial Differential Equations. Cambridge UP, 2005.