perform differential substitutions into expressions
dsubs(deriv1=a, '...', expr)
derivative for which to substitute
equation or sequence of substitution equations
dsubs substitutes the given sequence of equations into expr from left to right, the same way subs does. However, unlike subs, dsubs will substitute the left hand side of each substitution equation until this derivative is eliminated from the target (when this is possible). When many substitution equations are given, they are applied sequentially, as in subs. dsubs also works with anticommutative variables set using the Physics package.
The exception to this rule occurs when a substitution cannot be applied successively, like the algebraic substitution x=x2. In this case the result returned is the one obtained by performing a single substitution.
All substitution equations must be in solved form.
This function is part of the PDEtools package, and so it can be used in the form dsubs(..) only after executing the command with(PDEtools). However, it can always be accessed through the long form of the command by using PDEtools[dsubs](..).
The first example compares the results of subs and dsubs.
In this case subs returns an expression which contains f', the object being substituted.
Here, dsubs completely removes the f', the left hand side of the substitution equation.
Here is a PDE example.
The dsubs command also works with anticommutative variables, natively, without using the approach explained in PerformOnAnticommutativeSystem.
Set first θ and Q as suffixes for variables of type/anticommutative (see Setup)
* Partial match of '⁢anticommutativepre⁢' against keyword '⁢anticommutativeprefix⁢'
A PDE system example with two unknown anticommutative functions of four variables, two commutative and two anticommutative; to avoid redundant typing in the input that follows and redundant display of information on the screen let's use PDEtools:-diff_table PDEtools:-declare
Q⁡x,y,θ1,θ2⁢will now be displayed as⁢Q
Now we can enter derivatives directly as the function's name indexed by the differentiation variables and see the display the same way; two PDEs
By inspection, it is clear that the derivatives in pde can be substituted in pde reducing the problem to a simpler one:
Substituting this result for Q back into pde, then multiplying by θ1 and subtracting from the above also leads to the PDE system solution, that in this case can also be obtained using a different technique passing the whole system directly to pdsolve
Download Help Document
What kind of issue would you like to report? (Optional)