PowerSeriesSolution - Maple Help

DifferentialAlgebra

 PowerSeriesSolution
 computes formal power series solutions for differential equation ideals

 Calling Sequence PowerSeriesSolution(regchain, initialvalues, opts) PowerSeriesSolution(conditions, regchain, initialvalues, opts)

Parameters

 regchain - a regular differential chain or a list of them representing an ideal initialvalues - optional, a list or a set of equations specifying initial values for the independent and dependent variables and their derivatives disregard = ... - optional, to disregard whether the initial values cancel the equations and/or inequations of regchain, the right-hand-side can be: nothing (default), inequations, equations, all order = n - optional, a nonnegative integer specifying the order of the series expansion, default value is Order notation - optional, to request the output to be in any of jet, tjet, diff or Diff notations

Options

 • The opts arguments may contain one or more of the following options.
 • disregard = . This option permits to restrict the test for the initialvalues (see above).
 – equations: the equations are disregarded; PowerSeriesSolution only checks that the inequations are annihilated by initialvalues.
 – inequations: the inequations are disregarded; PowerSeriesSolution only checks that the equations are annihilated by initialvalues.
 – all: equations and inequations are disregarded.
 • order = n. This option specifies the truncation order for the series expansion; if not given, the value of n used is that of Order.
 • notation = . Specifies the notation used for the result of the function call. If not specified, the notation of regchain is used
 • memout = N. Specifies a memory limit of N MB, for the computation. Default is zero (no memory out).

Description

 • The function call PowerSeriesSolution(regchain, initialvalues, order = n) returns an integral (exponents are nonnegative integers), formal (the convergence issue is not addressed), power series solution of the differential ideal defined by regchain, truncated at order = n. The initialvalues argument provides both the expansion point of the series and the (generalized) initial values. The result is a list of equations $u=\mathrm{series}$ (one for each dependent variable) in the diff or the Diff notation (default is diff).

Conditions

 • The function call PowerSeriesSolution(conditions, regchain) returns a list containing two lists, one with equations and another one with inequations, that the initial values must satisfy so that an integral formal power series can be computed. The function call PowerSeriesSolution(conditions, regchain, initialvalues) returns the same system (equations and inequations) but evaluated at the expansion points specified in the given initial values.
 • The list of equations returned is the set of the regular differential chain polynomials which have leading degrees greater than or equal to $2$. See Equations. The list of inequations is the set of initials and separants of the regular differential chain polynomials. See Inequations.
 • The initialvalues argument is a list or a set of equations of the form ${v}_{i}={a}_{i}$, where the ${v}_{i}$ are independent variables (specify the expansion point) or dependent variables and/or their derivatives and the ${a}_{i}$ are general expressions. Independent variables which do not occur among the ${v}_{i}$ are taken to be $0$.
 • The right-hand-sides of the ${v}_{i}={a}_{i}$, such that the ${v}_{i}$ are derivatives, provide the arbitrary constants and/or functions the series depends on. They provide also values for the constants which are algebraic over the other ones. The algorithm proceeds as follows.
 – First a generic sum is computed, where each derivative is replaced by its normal form.
 – Second, some substitutions are performed according to the following rules. Consider a derivative $u$, occurring in some term of the generic sum.
 • If $u$ is not the derivative of any ${v}_{i}$, then $u$ is left unevaluated.
 • If $u$ is the derivative of exactly one ${v}_{i}$, say, $u=\mathrm{\theta }{v}_{i}$ for some derivation operator $\mathrm{\theta }$, then, $\mathrm{\theta }{a}_{i}$ is substituted to ${v}_{i}$. The differentiation $\mathrm{\theta }{a}_{i}$ is performed using diff or Diff, depending on the notation (see below in the Options section).
 • If $u$ is the derivative of many different ${v}_{i}$, then, an equation such that ${v}_{i}$ has maximal order is selected. The substitution is then performed as explained just above.
 – Last, the resulting expression is evaluated, at the expansion point.
 • The values attributed to the derivatives at the expansion point, cannot be chosen freely. They must satisfy the system $F=0,S\ne 0$, returned by PowerSeriesSolution when using the option conditions. These conditions, which are checked by default, can be disregarded using the option disregard = ...; see the Examples section.
 – If the attributed values are solutions of the system $F=0,S\ne 0$, then, the returned power series are truncated solutions of the differential ideal.
 – If these values do not satisfy $F=0$, then, the returned power series are not truncated solutions of the differential ideal.
 – If they satisfy $F=0$, but do not satisfy $S\ne 0$, then, the returned power series may, or may not, be truncated solutions of the differential ideal. If they are, they do not need to be unique.
 • This command is part of the DifferentialAlgebra package. It can be called using the form PowerSeriesSolution(...) after executing the command with(DifferentialAlgebra). It can also be directly called using the form DifferentialAlgebra[PowerSeriesSolution](...).

Examples

 > $\mathrm{with}\left(\mathrm{DifferentialAlgebra}\right):$

A linear ODE

 > $R≔\mathrm{DifferentialRing}\left(\mathrm{derivations}=\left[t\right],\mathrm{blocks}=\left[u\right]\right)$
 ${R}{≔}{\mathrm{differential_ring}}$ (1)

The ideal for the ODE for ${ⅇ}^{t}$ consists of a single element, pick it up

 > $\mathrm{exponential}≔\mathrm{RosenfeldGroebner}\left(\left[u\left[t\right]-u\right],R\right)\left[1\right]$
 ${\mathrm{exponential}}{≔}{\mathrm{regular_differential_chain}}$ (2)

There are no constraints on the initial values for linear systems. Here is the generic series; when the order is not specified, it is set to the value of Order

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{exponential}\right)$
 $\left[{u}{}\left({t}\right){=}{u}{}\left({0}\right){+}{u}{}\left({0}\right){}{t}{+}\frac{{u}{}\left({0}\right){}{{t}}^{{2}}}{{2}}{+}\frac{{u}{}\left({0}\right){}{{t}}^{{3}}}{{6}}{+}\frac{{u}{}\left({0}\right){}{{t}}^{{4}}}{{24}}{+}\frac{{u}{}\left({0}\right){}{{t}}^{{5}}}{{120}}{+}\frac{{u}{}\left({0}\right){}{{t}}^{{6}}}{{720}}\right]$ (3)

The generic series, at $t={t}_{0}$ up to order 3, the initial values can be entered as a list [...] or a set {...}

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{exponential},\left[u\left(t\left[0\right]\right)=c\right],\mathrm{order}=3\right)$
 $\left[{u}{}\left({t}\right){=}{c}{+}{c}{}\left({t}{-}{{t}}_{{0}}\right){+}\frac{{c}{}{\left({t}{-}{{t}}_{{0}}\right)}^{{2}}}{{2}}{+}\frac{{c}{}{\left({t}{-}{{t}}_{{0}}\right)}^{{3}}}{{6}}\right]$ (4)

The initial values can also be expressed directly in jet notation, as in $\left[t={t}_{0},u=c\right]$, where the expansion point needs to be specified because it is not the origin. When the order is not specified, the value of Order is used; to illustrate we enter the initial values in jet notation

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{exponential},\left\{t=t\left[0\right],u=c\right\}\right)$
 $\left[{u}{}\left({t}\right){=}{c}{+}{c}{}\left({t}{-}{{t}}_{{0}}\right){+}\frac{{c}{}{\left({t}{-}{{t}}_{{0}}\right)}^{{2}}}{{2}}{+}\frac{{c}{}{\left({t}{-}{{t}}_{{0}}\right)}^{{3}}}{{6}}{+}\frac{{c}{}{\left({t}{-}{{t}}_{{0}}\right)}^{{4}}}{{24}}{+}\frac{{c}{}{\left({t}{-}{{t}}_{{0}}\right)}^{{5}}}{{120}}{+}\frac{{c}{}{\left({t}{-}{{t}}_{{0}}\right)}^{{6}}}{{720}}\right]$ (5)

A nonlinear ODE

The ideal for the ODE ${\left(u\prime \right)}^{2}-3u=0$ with $u\ne 0$ contains only one case; pick it up

 > $\mathrm{ideal}≔\mathrm{RosenfeldGroebner}\left(\left[{u\left[t\right]}^{2}-4u,u\ne 0\right],R\right)\left[1\right]$
 ${\mathrm{ideal}}{≔}{\mathrm{regular_differential_chain}}$ (6)

There are conditions to be satisfied by the initial values of a formal power series for this problem

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{conditions},\mathrm{ideal}\right)$
 $\left[\left[{{\mathrm{D}}{}\left({u}\right){}\left({0}\right)}^{{2}}{-}{4}{}{u}{}\left({0}\right){=}{0}\right]{,}\left[{\mathrm{D}}{}\left({u}\right){}\left({0}\right){\ne }{0}\right]\right]$ (7)

The initial values $u\left(0\right)={c}^{2},{u}_{t}\left(0\right)=2c$ satisfy these conditions; to verify that you can enter these initial values as $u\left(0\right)={c}^{2},\mathrm{D}\left(u\right)\left(0\right)=2c$, or recalling that when the expansion point is not specified it is taken equal to 0, you can also enter them in jet notation and without specifying $t=0$, as in

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{conditions},\mathrm{ideal},\left[u={c}^{2},u\left[t\right]=2c\right]\right)$
 $\left[\left[{0}{=}{0}\right]{,}\left[{c}{\ne }{0}\right]\right]$ (8)

The series, which turns out to be a polynomial, can thus be computed; to illustrate, instead of jet notation we use here the equivalent, standard Maple notation for initial values

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{ideal},\left[u\left(0\right)={c}^{2},\mathrm{D}\left(u\right)\left(0\right)=2c\right]\right)$
 $\left[{u}{}\left({t}\right){=}{{c}}^{{2}}{+}{2}{}{c}{}{t}{+}{{t}}^{{2}}\right]$ (9)

The conditions computed imply on the inequation $u\ne 0$. Let's verify for instance that initial value $u=0$ leads to a contradiction

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{conditions},\mathrm{ideal},\left[u=0,u\left[t\right]=0\right]\right)$
 $\left[\left[{0}{=}{0}\right]{,}\left[{0}{\ne }{0}\right]\right]$ (10)

One can still compute a formal series solution around $t=0$ and with $u=0$, disregarding that the inequations required are not satisfied by using the option disregard = inequations, but the condition $u\left(t\right)\ne 0$, passed to RosenfeldGroebner when computing the ideal, is not satisfied (around $t=0$) by the solution returned

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{ideal},\left[u=0,u\left[t\right]=0\right],\mathrm{disregard}=\mathrm{inequations}\right)$
 $\left[{u}{}\left({t}\right){=}{{t}}^{{2}}\right]$ (11)

In the example under consideration, if you do not specify initial values, their default values are used, that is: each function and their derivatives are all taken at the origin and are assumed to be all different from zero. These default values do not annihilate all the equations of each element (regular chain) of the ideal, and thus the series cannot be computed

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{ideal},\mathrm{disregard}=\mathrm{inequations}\right)$

One may still wish to compute a generic formula for the solution, keeping in mind that the initial values must annihilate the equations of the ideal and ignoring for now what these initial values are (say, to be adjusted afterwards). For this purpose use the option disregard = equations (ignore the conditions on the equations)

 > $\mathrm{PowerSeriesSolution}\left(\mathrm{ideal},\mathrm{disregard}=\mathrm{equations}\right)$
 $\left[{u}{}\left({t}\right){=}{u}{}\left({0}\right){+}{\mathrm{D}}{}\left({u}\right){}\left({0}\right){}{t}{+}{{t}}^{{2}}\right]$ (12)

The heat equation

The ranking is orderly. Thus, the formal power series solutions of this equation, involves all the derivatives of the form ${u}_{{x}^{n}}$ and ${u}_{t,{x}^{n}}$ where $n$ stands for any nonnegative integer. Classically, one says that the solutions of the heat equation depend on two arbitrary functions $u\left(0,x\right)=f\left(x\right)$ and ${u}_{t}\left(0,x\right)=g\left(x\right)$. Such a formal power series can be generated by FormalPowerSeries.

 > $R≔\mathrm{DifferentialRing}\left(\mathrm{derivations}=\left[t,x\right],\mathrm{blocks}=\left[u\right]\right)$
 ${R}{≔}{\mathrm{differential_ring}}$ (13)
 > $\mathrm{heat}≔\mathrm{RosenfeldGroebner}\left(\left[u\left[t,t\right]-u\left[x\right]\right],R\right)\left[1\right]$
 ${\mathrm{heat}}{≔}{\mathrm{regular_differential_chain}}$ (14)
 > $\mathrm{PowerSeriesSolution}\left(\mathrm{heat},\left[u=f\left(x\right),u\left[t\right]=g\left(x\right)\right],\mathrm{order}=2\right)$
 $\left[{u}{}\left({t}{,}{x}\right){=}{f}{}\left({0}\right){+}{\mathrm{D}}{}\left({f}\right){}\left({0}\right){}{x}{+}{g}{}\left({0}\right){}{t}{+}\frac{{{\mathrm{D}}}^{\left({2}\right)}{}\left({f}\right){}\left({0}\right){}{{x}}^{{2}}}{{2}}{+}{\mathrm{D}}{}\left({g}\right){}\left({0}\right){}{t}{}{x}{+}\frac{{\mathrm{D}}{}\left({f}\right){}\left({0}\right){}{{t}}^{{2}}}{{2}}\right]$ (15)

A general PDE

The regular differential chains computed by the RosenfeldGroebner function permit to compute integral formal power series solutions of the input system. One considers, here, a polynomial PDE system.

 > $R≔\mathrm{DifferentialRing}\left(\mathrm{derivations}=\left[x,y\right],\mathrm{blocks}=\left[u,v\right]\right)$
 ${R}{≔}{\mathrm{differential_ring}}$ (16)
 > $\mathrm{syst}≔\left[{u\left[x,x\right]}^{2}v+u\left[x,x\right]v+u\left[x\right],u\left[x,y\right],{u\left[y,y\right]}^{2}-1,u\left[x\right]\ne 0\right]$
 ${\mathrm{syst}}{≔}\left[{{u}}_{{x}{,}{x}}^{{2}}{}{v}{+}{{u}}_{{x}{,}{x}}{}{v}{+}{{u}}_{{x}}{,}{{u}}_{{x}{,}{y}}{,}{{u}}_{{y}{,}{y}}^{{2}}{-}{1}{,}{{u}}_{{x}}{\ne }{0}\right]$ (17)

The radical of the differential ideal generated by syst is an intersection of two differential ideals presented by regular differential chains. The solution set of syst is thus the union of the solution sets of the two chains.

 > $\mathrm{ideal}≔\mathrm{RosenfeldGroebner}\left(\mathrm{syst},R\right)$
 ${\mathrm{ideal}}{≔}\left[{\mathrm{regular_differential_chain}}{,}{\mathrm{regular_differential_chain}}\right]$ (18)

Inspecting the left-hand sides of the equations of the first component, one sees that the solutions depend on one arbitrary function $v\left(x,0\right)=f\left(x\right)$, three arbitrary constants $u\left(0,0\right)={c}_{0}$, ${u}_{x}\left(0,0\right)={c}_{1}$, ${u}_{y}\left(0,0\right)={c}_{2}$, and, two constants which are algebraic over the other ones: ${u}_{y,y}\left(0,0\right)$ and ${u}_{x,x}\left(0,0\right)$.

 > $\mathrm{Equations}\left(\mathrm{ideal}\left[1\right],\mathrm{solved}\right)$
 $\left[{{u}}_{{x}{,}{x}}^{{2}}{=}{-}\frac{{{u}}_{{x}{,}{x}}{}{v}{+}{{u}}_{{x}}}{{v}}{,}{{u}}_{{x}{,}{y}}{=}{0}{,}{{u}}_{{y}{,}{y}}^{{2}}{=}{1}{,}{{v}}_{{y}}{=}{0}\right]$ (19)

Let us choose some values. Some of them are symbolic, the other ones are numeric. First one verifies that they satisfy the above system. Then, the series is computed.

 > $\mathrm{iv}≔\left[v=1+xf\left(x\right),u\left[y,y\right]=1,u=c\left[0\right],u\left[x\right]=0,u\left[y\right]=c\left[2\right],u\left[x,x\right]=-1\right]$
 ${\mathrm{iv}}{≔}\left[{v}{=}{1}{+}{x}{}{f}{}\left({x}\right){,}{{u}}_{{y}{,}{y}}{=}{1}{,}{u}{=}{{c}}_{{0}}{,}{{u}}_{{x}}{=}{0}{,}{{u}}_{{y}}{=}{{c}}_{{2}}{,}{{u}}_{{x}{,}{x}}{=}{-1}\right]$ (20)
 > $\mathrm{PowerSeriesSolution}\left(\mathrm{conditions},\mathrm{ideal}\left[1\right],\mathrm{iv}\right)$
 $\left[\left[{0}{=}{0}{,}{0}{=}{0}\right]{,}\left[\right]\right]$ (21)
 > $\mathrm{PowerSeriesSolution}\left(\mathrm{ideal}\left[1\right],\mathrm{iv},\mathrm{order}=3\right)$
 $\left[{u}{}\left({x}{,}{y}\right){=}{{c}}_{{0}}{+}{{c}}_{{2}}{}{y}{+}\frac{{1}}{{2}}{}{{y}}^{{2}}{-}\frac{{1}}{{2}}{}{{x}}^{{2}}{-}\frac{{1}}{{6}}{}{{x}}^{{3}}{,}{v}{}\left({x}{,}{y}\right){=}{1}{+}{f}{}\left({0}\right){}{x}{+}{\mathrm{D}}{}\left({f}\right){}\left({0}\right){}{{x}}^{{2}}{+}\frac{{{\mathrm{D}}}^{\left({2}\right)}{}\left({f}\right){}\left({0}\right){}{{x}}^{{3}}}{{2}}\right]$ (22)
 • Inspecting the left-hand sides of the equations of the second component, one sees that the solutions depend on three arbitrary constants $u\left(0,0\right)={c}_{0}$, ${u}_{y}\left(0,0\right)={c}_{1}$, $v\left(0,0\right)={c}_{2}$, and, one constant ${u}_{y,y}\left(0,0\right)$ which is equal to +/-1.
 > $\mathrm{Equations}\left(\mathrm{ideal}\left[2\right],\mathrm{solved}\right)$
 $\left[{{u}}_{{y}{,}{y}}^{{2}}{=}{1}{,}{{u}}_{{x}}{=}\frac{{v}}{{4}}{,}{{v}}_{{x}}{=}{-2}{,}{{v}}_{{y}}{=}{0}\right]$ (23)
 > $\mathrm{sols}≔\mathrm{PowerSeriesSolution}\left(\mathrm{ideal}\left[2\right],\left[u=c\left[0\right],u\left[y\right]=c\left[1\right],v=c\left[2\right],u\left[y,y\right]=1\right],\mathrm{order}=10\right)$
 ${\mathrm{sols}}{≔}\left[{u}{}\left({x}{,}{y}\right){=}{{c}}_{{0}}{+}{{c}}_{{1}}{}{y}{+}\frac{{1}}{{4}}{}{{c}}_{{2}}{}{x}{+}\frac{{1}}{{2}}{}{{y}}^{{2}}{-}\frac{{1}}{{4}}{}{{x}}^{{2}}{,}{v}{}\left({x}{,}{y}\right){=}{{c}}_{{2}}{-}{2}{}{x}\right]$ (24)

These solutions are polynomials. One can plug them into the input equations, and verify the result.

 > $\mathrm{sys}≔\mathrm{Tools}:-\mathrm{FromJet}\left(\mathrm{syst},\left[\left(u,v\right)\left(x,y\right)\right]\right)$
 ${\mathrm{sys}}{≔}\left[{\left(\frac{{{\partial }}^{{2}}}{{\partial }{{x}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{y}\right)\right)}^{{2}}{}{v}{}\left({x}{,}{y}\right){+}\left(\frac{{{\partial }}^{{2}}}{{\partial }{{x}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{y}\right)\right){}{v}{}\left({x}{,}{y}\right){+}\frac{{\partial }}{{\partial }{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{y}\right){,}\frac{{{\partial }}^{{2}}}{{\partial }{x}{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{y}\right){,}{\left(\frac{{{\partial }}^{{2}}}{{\partial }{{y}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{y}\right)\right)}^{{2}}{-}{1}{,}\frac{{\partial }}{{\partial }{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({x}{,}{y}\right){\ne }{0}\right]$ (25)
 > $\mathrm{eval}\left(\mathrm{sys},\mathrm{sols}\right)$
 $\left[{0}{,}{0}{,}{0}{,}\frac{{{c}}_{{2}}}{{4}}{-}\frac{{x}}{{2}}{\ne }{0}\right]$ (26)