DEtools
PDEchangecoords
perform a coordinate system transformation on a partial differential equation
Calling Sequence
Parameters
Description
Examples
PDEchangecoords(pdes, c_ivar, c_name, n_ivar)
pdes
-
partial differential equation, or list or set of equations
c_ivar
list of current independent variables
c_name
name of new coordinate system
n_ivar
(optional) list of new independent variables
Important: The command DEtools[PDEchangecoords] has been deprecated. Use the superseding command PDEtools[dchange] instead.
Given an nth order partial differential equation (or list of such equations), a list of the current independent variables, and the name of a new coordinate system, PDEchangecoords applies the appropriate transformations to each of the partial differential equations. Currently, only two or three independent variables are allowed.
The PDE is written in term of new partial derivatives (with respect to n_ivar). New partial derivatives are determined by the inverse of the Jacobian matrix of the transformations.
pdes is a single PDE, or list or set of PDEs, to which the coordinate transformation is applied. It is assumed that the given PDEs are defined in Cartesian (rectangular) coordinates.
c_ivar should only list the names of the current independent variables. The number of independent variables should match the dimension of the coordinate system transformation in use.
c_name indicates the coordinate system to convert to.
For two dimensions, the available coordinate systems are bipolar, cardioid, cassinian, elliptic, hyperbolic, invcassinian, invelliptic, logarithmic, logcosh, maxwell, parabolic, polar, rose, and tangent.
For three dimensions, the available coordinate systems are bipolarcylindrical, bispherical, cardioidal, cardioidcylindrical, casscylindrical, confocalellip, confocalparab, conical, cylindrical, ellcylindrical, ellipsoidal, hypercylindrical, invcasscylindrical, invellcylindrical, invoblatespheroidal, invprospheroidal, logcoshcylindrical, logcylindrical, maxwellcylindrical, oblatespheroidal, paraboloidal, paracylindrical, prolatespheroidal, rosecylindrical, sixsphere, spherical, tangentcylindrical, tangentsphere, and toroidal.
See coords for more information on the above coordinate systems.
n_ivar is a list of the names of the new independent variables. If no new independent variable names are specified, then DEtools[PDEchangecoords] uses the variables specified in the second argument.
Further coordinate transformations may be created and used by way of addcoords.
This function is part of the DEtools package, and so it can be used in the form PDEchangecoords(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[PDEchangecoords](..).
with⁡DEtools:
PDEchangecoords⁡diff⁡z⁡x,y,x,x,y,polar
cos⁡y⁢∂∂xz⁡x,y−sin⁡y⁢∂∂yz⁡x,yx
PDEchangecoords⁡D1,2⁡w⁡x,y,z−D1⁡w⁡x,y,z,x,y,z,cylindrical,r,φ,θ
sin⁡φ2r2−cos⁡φ2r2+sin⁡φr⁢D2⁡w⁡r,φ,θ+cos⁡φ⁢−1−sin⁡φr⁢D1⁡w⁡r,φ,θ−cos⁡φ⁢sin⁡φ⁢D2,2⁡w⁡r,φ,θr2+−sin⁡φ2+cos⁡φ2⁢D1,2⁡w⁡r,φ,θr+sin⁡φ⁢cos⁡φ⁢D1,1⁡w⁡r,φ,θ
PDEchangecoords⁡diff⁡F⁡x,y,y−y⁢cos⁡x=x,diff⁡F⁡x,y,y=y,x,y,maxwell
π⁢ⅇx⁢sin⁡y⁢∂∂xF⁡x,y1+ⅇ2⁢x+2⁢ⅇx⁢cos⁡y+π⁢1+ⅇx⁢cos⁡y⁢∂∂yF⁡x,y1+ⅇ2⁢x+2⁢ⅇx⁢cos⁡y+−y−ⅇx⁢sin⁡y⁢cos⁡x+1+ⅇx⁢cos⁡yππ−x+1+ⅇx⁢cos⁡yπ=0,π⁢ⅇx⁢sin⁡y⁢∂∂xF⁡x,y1+ⅇ2⁢x+2⁢ⅇx⁢cos⁡y+π⁢1+ⅇx⁢cos⁡y⁢∂∂yF⁡x,y1+ⅇ2⁢x+2⁢ⅇx⁢cos⁡y−y+ⅇx⁢sin⁡yπ=0
Create and then use a new coordinate system, ``reverse'':
addcoords⁡reverse,x,y,y−x,y−x4
PDEchangecoords⁡diff⁡z⁡u,v,u,v=13⁢diff⁡z⁡u,v,v−89,u,v,reverse,x,y
−16⁢∂2∂x2z⁡x,y9−20⁢∂2∂x∂yz⁡x,y9−4⁢∂2∂y2z⁡x,y9−4⁢∂∂xz⁡x,y9−4⁢∂∂yz⁡x,y9+89=0
⁢−94
4⁢∂2∂x2z⁡x,y+5⁢∂2∂x∂yz⁡x,y+∂2∂y2z⁡x,y+∂∂xz⁡x,y+∂∂yz⁡x,y−2=0
PDEchangecoords⁡D3⁡η⁡x,y,z,x,y,z,confocalparab⁡2,5
−2⁢−4+x⁢−25+x⁢D1⁡η⁡x,y,zx2−x⁢y−x⁢z+y⁢z+2⁢−4+y⁢−25+y⁢D2⁡η⁡x,y,zx⁢y−x⁢z−y2+y⁢z−2⁢−4+z⁢−25+z⁢D3⁡η⁡x,y,zx⁢y−x⁢z−y⁢z+z2
PDE≔x2−1⁢D1,1⁡z⁡x,y+2⁢x⁢y⁢D1,2⁡z⁡x,y+y2−1⁢D2,2⁡z⁡x,y+2⁢x⁢D1⁡z⁡x,y+2⁢y⁢D2⁡z⁡x,y=0:
temp_ans≔PDEchangecoords⁡PDE,x,y,polar,r,θ:
Create and then use a new coordinate system, ``stretch'':
addcoords⁡stretch,σ,ρ,1cos⁡σ,ρ:
ans≔PDEchangecoords⁡temp_ans,r,θ,stretch,σ,ρ:
ans≔convert⁡ans,diff
ans≔∂2∂σ2z⁡σ,ρ−∂2∂ρ2z⁡σ,ρ⁢cos⁡σ2=0
See Also
addcoords
coords
DEtools[Dchangevar(deprecated)]
PDEtools[dchange]
plots[changecoords]
plots[coordplot]
subs
Download Help Document