You are on page 1of 6

How to make a graph of any function :

(1)
In[1]:= Plot[Sin[2 x], {x, 0, 2}]

1.0

0.5

Out[1]=

0.5 1.0 1.5 2.0

-0.5

(2)
In[2]:= PlotSin[x], x, 0, π  2

1.0

0.8

0.6

Out[2]=

0.4

0.2

0.5 1.0 1.5

(3)
2

In[3]:= Plot[Sin[5 x], {x, - 1, 1}]

1.0

0.5

Out[3]=
-1.0 -0.5 0.5 1.0

-0.5

-1.0

(4)
In[4]:= Plot[Sin[2 x + 1] + Sin[3 x + 2], {x, 0, 2 π}]

Out[4]= 1 2 3 4 5 6

-1

-2

(5)
3

In[5]:= Plot[{Sin[10 x], Sin[15 x]}, {x, 0, π / 4}]

1.0

0.5

Out[5]=
0.2 0.4 0.6 0.8

-0.5

-1.0

(6)
In[6]:= Plot{Sin[20 x + 3], Sin[5 x + 1], Sin[45 x + 3]}, x, 0, π  3

1.0

0.5

Out[6]=
0.2 0.4 0.6 0.8 1.0

-0.5

-1.0

(7)
4

In[7]:= Plot3Dx ^ 2 + 3 y ^ 2 ⅇ ^ - x ^ 2 + y ^ 2, {x, - 3, 3}, {y, - 3, 3}

Out[7]=

(8)
In[8]:= Plot3Dx5 + y5  ⅇ ^ - x ^ 2 + y ^ 2, {x, - 2, 2}, {y, - 2, 2}

Out[8]=

(9)
5

In[9]:= Plot[Cos[2 x + 3] + Sin[6 x + 4], {x, 0, 2 π}]

Out[9]=
1 2 3 4 5 6

-1

-2

(10)
In[11]:= Plot[Cos[x] + Cos[3 x + 1] + Cos[2 x] + Sin[x], {x, - 3, 3}]

Out[11]=
-3 -2 -1 1 2 3

-1

-2

-3

(11)
In[12]:= Plot[{Tan[10 x + 3], Tan[3 x + 1], Tan[9 x + 3]}, {x, - 1, 1}]

Out[12]=
-1.0 -0.5 0.5 1.0

-2

-4

-6
6

(12)
In[13]:= Plot[Tan[x], {x, - 2, 2}]

10

Out[13]=
-2 -1 1 2

-5

-10

13

In[14]:= Plot[Sec[x] + Sec[2 x + 2] + Sec[5 x + 1], {x, - π, π}]

20

10

Out[14]=
-3 -2 -1 1 2 3

-10

-20

You might also like