AdjointEq

AdjointEq[eq, dVar]
gives the adjoint equation of equation eq. dVar provides the symbol for the new dependent variable.
AdjointEq[system, dVars]
gives the adjoint system of equations of the system. dVars provides the symbols for the new dependent variables.
  • dVar is optional. If it is not specified a unique variable shall be assigned.
In[1]:=
Click for copyable input
The adjoint equation of the heat equation is:
In[2]:=
Click for copyable input
Out[2]=
 
In[1]:=
Click for copyable input
The adjoint equation of the KdV is:
In[2]:=
Click for copyable input
Out[2]=
 
In[1]:=
Click for copyable input
The adjoint equation for the harmonic equation is:
In[2]:=
Click for copyable input
Out[2]=
Evidently, tthe harmonic oscillator is self-adjoint.
  • SYM and Conservation Laws