This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Entering Formulas

character
short form
long form
symbol
Esc p Esc\[Pi]Pi
Esc inf Esc\[Infinity]Infinity
°Esc deg Esc\[Degree]Degree

Special forms for some common symbols.

This is equivalent to Sin[60Degree].
In[1]:=
Click for copyable input
Out[1]=
Here is the long form of the input.
In[2]:=
Click for copyable input
Out[2]=
You can enter the same input like this.
In[3]:=
Click for copyable input
Out[3]=
Here the angle is in radians.
In[4]:=
Click for copyable input
Out[4]=
special characters
short form
long form
ordinary characters
xyx Esc <= Esc yx \[LessEqual] yx <= y
xyx Esc >= Esc yx \[GreaterEqual] yx >= y
xyx Esc Esc yx \[NotEqual] yx y
xyx Esc el Esc yx \[Element] yElement[x,y]
xyx Esc -> Esc yx \[Rule] yx -> y

Special forms for a few operators. "Operator Input Forms" gives a complete list.

Here the replacement rule is entered using two ordinary characters, as ->.
In[5]:=
Click for copyable input
Out[5]=
This means exactly the same.
In[6]:=
Click for copyable input
Out[6]=
As does this.
In[7]:=
Click for copyable input
Out[7]=
When you type the ordinary-character form for certain operators, the front end automatically replaces them with the special-character form. For instance, when you type the last three examples, the front end automatically substitutes the character for ->.
The special arrow form is by default also used for output.
In[8]:=
Click for copyable input
Out[8]=
special characters
short form
long form
ordinary characters
x ÷ yx Esc div Esc yx \[Divide] yx / y
x × yx Esc * Esc yx \[Times] yx * y
x yx Esc cross Esc yx \[Cross] yCross[x,y]
x = yx Esc Esc yx \[Equal] yx y
x yx Esc l= Esc yx \[LongEqual] yx y
x yx Esc && Esc yx \[And] yx && y
x yx Esc || Esc yx \[Or] yx || y
¬ xEsc ! Esc x\[Not] x! x
x yx Esc => Esc yx \[Implies] yx => y
x yx Esc un Esc yx \[Union] yUnion[x,y]
x yx Esc inter Esc yx \[Intersection] yIntersection[x,y]
xyx Esc , Esc yx \[InvisibleComma] yx , y
fxf Esc @ Esc xf \[InvisibleApplication] xf @ x or f[x]
xx Esc + Esc x \[ImplicitPlus] x + y / z

Some operators with special forms used for input but not output.

Mathematica understands ÷, but does not use it by default for output.
In[9]:=
Click for copyable input
Out[9]=
Many of the forms of input discussed here use special characters, but otherwise just consist of ordinary one-dimensional lines of text. Mathematica notebooks, however, also make it possible to use two-dimensional forms of input.
two-dimensional
one-dimensional
xyx^ypower
x/ydivision
Sqrt[x]square root
x^(1/n)nth root
fSum[f,{i,imin,imax}]sum
fProduct[f,{i,imin,imax}]product
f xIntegrate[f,x]indefinite integral
Integrate[f,{x,xmin,xmax}]definite integral
xfD[f,x]partial derivative
x, yfD[f,x,y]multivariate partial derivative
z*Conjugate[x]complex conjugate
mTranspose[m]transpose
mConjugateTranspose[m]conjugate transpose
expr[[i, j, ...]]Part[expr,i,j,...]part extraction

Some two-dimensional forms that can be used in Mathematica notebooks.

You can enter two-dimensional forms using any of the mechanisms discussed in "Entering Two-Dimensional Input". Note that upper and lower limits for sums and products must be entered as overscripts and underscripts—not superscripts and subscripts.
This enters an indefinite integral. Note the use of Esc dd Esc to enter the "differential d".
In[10]:=
Click for copyable input
Out[10]=
Here is an indefinite integral that can be explicitly evaluated.
In[11]:=
Click for copyable input
Out[11]=
Here is the usual Mathematica input for this integral.
In[12]:=
Click for copyable input
Out[12]=
short form
long form
Esc sum Esc\[Sum]summation sign
Esc prod Esc\[Product]product sign
Esc int Esc\[Integral]integral sign
Esc dd Esc\[DifferentialD]special for use in integrals
Esc pd Esc\[PartialD]partial derivative operator
Esc co Esc\[Conjugate]conjugate symbol *
Esc tr Esc\[Transpose]transpose symbol
Esc ct Esc\[ConjugateTranspose]conjugate transpose symbol
Esc [[ Esc\[LeftDoubleBracket]part brackets

Some special characters used in entering formulas. "Mathematical and Other Notation" gives a complete list.

You should realize that even though a summation sign can look almost identical to a capital sigma it is treated in a very different way by Mathematica. The point is that a sigma is just a letter; but a summation sign is an operator which tells Mathematica to perform a Sum operation.
Capital sigma is just a letter.
In[13]:=
Click for copyable input
Out[13]=
A summation sign, on the other hand, is an operator.
In[14]:=
Click for copyable input
Out[14]=
Much as Mathematica distinguishes between a summation sign and a capital sigma, it also distinguishes between an ordinary d, the "partial d" that is used for taking derivatives, and the special "differential d" that is used in the standard notation for integrals. It is crucial that you use the differential —entered as Esc dd Esc—when you type in an integral. If you try to use an ordinary d, Mathematica will just interpret this as a symbol called d—it will not understand that you are entering the second part of an integration operator.
This computes the derivative of xn.
In[15]:=
Click for copyable input
Out[15]=
Here is the same derivative specified in ordinary one-dimensional form.
In[16]:=
Click for copyable input
Out[16]=
This computes the third derivative.
In[17]:=
Click for copyable input
Out[17]=
Here is the equivalent one-dimensional input form.
In[18]:=
Click for copyable input
Out[18]=