5.1 Graphing the Trigonometric Functions

tikzpicture[every node/.style=font=] [black!60,line width=0.3pt,-latex] (-2,0) -- (2,0) node[right] x; [black!60,line width=0.3pt,-latex] (0,-1.8) -- (0,2) node[above] y; [line width=1pt] (60:1.5) arc (60:360:1.5); [right] at (35:1.5) s=r\, = ; [dashed] (0,0) -- (60:1.5) node[black,midway,above] 1; [-latex,dashed] (0:0.6) arc (0:60:0.6); [linecolor,-latex,line width=1.5pt] (0:1.5) arc (0:59:1.5); (0:1.5) circle (2pt); (60:1.5) circle (2pt); at (35:0.4) ; [below right] at (0:1.5) 1; [below left] at (0:0) 0; [above right] at (60:1.5) (x,y)=( \; , \; ); [right] at (-2,1.8) x^2 + y^2 = 1; tikzpicture

Figure 5.1.1

The first function we will graph is the sine function. We will describe a geometrical way to create the graph, using the unit circle. This is the circle of radius \(1\) in the \(xy\)-plane consisting of all points \((x,y)\) which satisfy the equation \(x^2 + y^2 = 1\).

We see in Figure 5.1.1 that any point on the unit circle has coordinates \((x,y)=(\cos\;\theta,\sin\;\theta)\), where \(\theta\) is the angle that the line segment from the origin to \((x,y)\) makes with the positive \(x\)-axis (by definition of sine and cosine). So as the point \((x,y)\) goes around the circle, its \(y\)-coordinate is \(\sin\;\theta\).

We thus get a correspondence between the \(y\)-coordinates of points on the unit circle and the values \(f(\theta)=\sin\;\theta\), as shown by the horizontal lines from the unit circle to the graph of \(f(\theta)=\sin\;\theta\) in Figure 5.1.2 for the angles \(\theta = 0\), \(\tfrac{\pi}{6}\), \(\tfrac{\pi}{3}\), \(\tfrac{\pi}{2}\).

tikzpicture[scale=1.2,every node/.style=font=] scope[shift=(3,0),color=linecolor,line width=1.5pt,x=12cm/360] [black!60,line width=0.3pt,-latex] (-5,0) -- (200,0) node[right] ; [black!60,line width=0.3pt,-latex] (0,-0.5) -- (0,2.4) node[above] f( ); 0,5,...,180 2*sin( ) stroke [black,below left] at (0,0) 0; in 30,60,90,120,150,180 [black!60,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in 2 [black!60,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] 1; [black,below] at (30,-0.1) 6; [black,below] at (60,-0.1) 3; [black,below] at (90,-0.1) 2; [black,below] at (120,-0.1) 2 3; [black,below] at (150,-0.1) 5 6; [black,below] at (180,-0.1) ; [black,above] at (180,1) f( )= \; ; scope [black!60,line width=0.3pt] (-2.2,0) -- (0,0); [black,-latex] (0:0.8) arc (0:30:0.8); [red,line width=0.3pt] (0,0) -- ++(30:2) node[black,pos=0.7,fill=white] 6 -- ++(2.268,0) -- ++(0,-1); [green!60!black,line width=0.3pt] (0,0) -- ++(60:2) node[black,pos=0.7,fill=white] 3 -- ++(4,0) -- ++(0,-1.732); [yellow!60!black,line width=0.3pt] (0,0) -- ++(90:2) node[black,pos=0.7,fill=white] 2 -- ++(6,0) -- ++(0,-2); [cyan!80!black,line width=0.3pt] (0,0) -- (3,0) node[black,pos=0.46,fill=white] 0; [black,line width=1pt] (0:2) arc (0:180:2); [black,below] at (2,0) 1; [black,above left] at (0,2) 1; [black,below] at (0,-0.2) x^2 + y^2 = 1; [black] at (15:0.6) ; (0,0) circle (2pt); tikzpicture

Figure 5.1.2Graph of sine function based on \(y\)-coordinate of points on unit circle

We can extend the above picture to include angles from \(0\) to \(2\pi\) radians, as in Figure 5.1.3. This illustrates what is sometimes called the unit circle definition of the sine function.

tikzpicture[scale=1.2,every node/.style=font=] scope[shift=(3,0),color=linecolor,line width=1.5pt,x=6cm/360] [black!60,line width=0.3pt,-latex] (-5,0) -- (380,0) node[right] ; [black!60,line width=0.3pt,-latex] (0,-1.2) -- (0,1.3) node[above] f( ); 0,5,...,360 sin( ) stroke [black,below left] at (0,0) 0; in 30,60,90,120,150,180,225,270,315,360 [black!60,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in -1,1 [black!60,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] ; [black,below] at (30,-0.1) 6; [black,below] at (60,-0.1) 3; [black,below] at (90,-0.1) 2; [black,below] at (120,-0.1) 2 3; [black,below] at (150,-0.1) 5 6; [black,below] at (180,-0.1) ; [black,below] at (225,-0.1) 5 4; [black,below] at (270,-0.1) 3 2; [black,below] at (315,-0.1) 7 4; [black,below] at (360,-0.1) 2 ; [black,above] at (180,1) f( )= \; ; scope [black!60,line width=0.3pt,-latex] (-1.5,0) -- (1.5,0) node[below right] x; [black!60,line width=0.3pt,-latex] (0,-1) -- (0,1.3) node[above] y; [black,-latex] (0:0.8) arc (0:30:0.8); [red,line width=0.3pt] (0,0) -- ++(30:1); [red,line width=0.3pt] (0,0) -- ++(150:1) -- ++(4.366,0) -- ++(0,-0.5); [red,line width=0.3pt] (3.5,0.5) -- (5.5,0.5) -- (5.5,0); [green!60!black,line width=0.3pt] (0,0) -- ++(60:1); [green!60!black,line width=0.3pt] (0,0) -- ++(120:1) -- ++(4.5,0) -- ++(0,-0.866); [green!60!black,line width=0.3pt] (4,0.866) -- (5,0.866) -- (5,0); [yellow!60!black,line width=0.3pt] (0,0) -- ++(90:1) -- ++(4.5,0) -- ++(0,-1); [cyan!80!black,line width=0.3pt] (0,0) -- (3,0); [blue,line width=0.3pt] (0,0) -- (225:1) -- ++(7.457,0) -- ++(0,0.707); [blue,line width=0.3pt] (0,0) -- (315:1) -- ++(7.543,0) -- ++(0,0.707); [black,line width=1pt] (0,0) circle (1); [black,below right] at (1,0) 1; [black,below] at (0,-1) x^2 + y^2 = 1; [black] at (15:0.6) ; tikzpicture

Figure 5.1.3Unit circle definition of the sine function

Since the trigonometric functions repeat every \(2\pi\) radians (\(360\Degrees\)), we get, for example, the following graph of the function \(y=\sin\;x\) for \(x\) in the interval \(\ival{-2\pi}{2\pi}\):

tikzpicture[scale=1.1,every node/.style=font=] scope[shift=(3,0),color=linecolor,line width=1.5pt,x=6cm/360] [black!60,line width=0.3pt,dotted] (-360,-1) grid[xstep=45,ystep=1] (360,1); [black!60,line width=0.3pt,-latex] (-380,0) -- (380,0) node[right] x; [black!60,line width=0.3pt,-latex] (0,-1.2) -- (0,1.5) node[above] y; -360,-355,...,360 sin( ) stroke [black,below right] at (0,0) 0; in -360,-315,-270,-225,-180,-135,-90,-45,45,90,135,180,225,270,315,360 [black!60,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in -1,1 [black!60,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] ; [black,below] at (45,-0.1) 4; [black,below] at (90,-0.1) 2; [black,below] at (135,-0.1) 3 4; [black,below] at (180,-0.1) ; [black,below] at (225,-0.1) 5 4; [black,below] at (270,-0.1) 3 2; [black,below] at (315,-0.1) 7 4; [black,below] at (360,-0.1) 2 ; [black,below] at (-45,-0.1) - 4; [black,below] at (-90,-0.1) - 2; [black,below] at (-135,-0.1) - 3 4; [black,below] at (-180,-0.1) - ; [black,below] at (-225,-0.1) - 5 4; [black,below] at (-270,-0.1) - 3 2; [black,below] at (-315,-0.1) - 7 4; [black,below] at (-360,-0.1) -2 ; [black,above] at (180,1) y= \;x; scope tikzpicture

Figure 5.1.4Graph of \(y=\sin\;x\)

To graph the cosine function, we could again use the unit circle idea (using the \(x\)-coordinate of a point that moves around the circle), but there is an easier way. Recall from Section 1.5 that \(\cos\;x = \sin\;(x+90\Degrees)\) for all \(x\). So \(\cos\;0\Degrees\) has the same value as \(\sin\;90\Degrees\), \(\cos\;90\Degrees\) has the same value as \(\sin\;180\Degrees\), \(\cos\;180\Degrees\) has the same value as \(\sin\;270\Degrees\), and so on. In other words, the graph of the cosine function is just the graph of the sine function shifted to the left by \(90\Degrees = \pi/2\) radians, as in Figure 5.1.5:

tikzpicture[scale=1.1,every node/.style=font=] scope[shift=(3,0),color=linecolor,line width=1.5pt,x=6cm/360] [black!60,line width=0.3pt,dotted] (-360,-1) grid[xstep=45,ystep=1] (360,1); [black!60,line width=0.3pt,-latex] (-380,0) -- (380,0) node[right] x; [black!60,line width=0.3pt,-latex] (0,-1.2) -- (0,1.5) node[above] y; -360,-355,...,360 cos( ) stroke [black,below left] at (0,0) 0; in -360,-315,-270,-225,-180,-135,-90,-45,45,90,135,180,225,270,315,360 [black!60,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in -1,1 [black!60,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] ; [black,below] at (45,-0.1) 4; [black,below] at (90,-0.1) 2; [black,below] at (135,-0.1) 3 4; [black,below] at (180,-0.1) ; [black,below] at (225,-0.1) 5 4; [black,below] at (270,-0.1) 3 2; [black,below] at (315,-0.1) 7 4; [black,below] at (360,-0.1) 2 ; [black,below] at (-45,-0.1) - 4; [black,below] at (-90,-0.1) - 2; [black,below] at (-135,-0.1) - 3 4; [black,below] at (-180,-0.1) - ; [black,below] at (-225,-0.1) - 5 4; [black,below] at (-270,-0.1) - 3 2; [black,below] at (-315,-0.1) - 7 4; [black,below] at (-360,-0.1) -2 ; [black,above] at (180,1) y= \;x; scope tikzpicture

Figure 5.1.5Graph of \(y=\cos\;x\)

To graph the tangent function, use \(\tan\;x = \frac{\sin\;x}{\cos\;x}\) to get the following graph:

tikzpicture[scale=1.1,every node/.style=font=] scope[shift=(3,0),color=linecolor,line width=1.5pt,x=6cm/360,y=4cm/10] [black!60,line width=0.3pt,dotted] (-360,-10) grid[xstep=45,ystep=2] (360,10); [black!60,line width=0.3pt,-latex] (-380,0) -- (380,0) node[right] x; [black!60,line width=0.3pt,-latex] (0,-10) -- (0,10) node[above] y; [linecolor,line width=0.5pt,dashed] (90,-10) -- (90,10); [linecolor,line width=0.5pt,dashed] (270,-10) -- (270,10); [linecolor,line width=0.5pt,dashed] (-90,-10) -- (-90,10); [linecolor,line width=0.5pt,dashed] (-270,-10) -- (-270,10); -360,-356,...,-276 tan( ) -264,-260,...,-96 tan( ) -84,-80,...,84 tan( ) 96,100,...,264 tan( ) 276,280,...,360 tan( ) stroke [black,below right] at (0,0) 0; in -360,-315,-270,-225,-180,-135,-90,-45,45,90,135,180,225,270,315,360 [black!60,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in -8,-6,-4,-2,2,4,6,8 [black!60,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] ; [black,below] at (45,-0.1) 4; [black,below] at (90,-0.1) 2; [black,below] at (135,-0.1) 3 4; [black,below] at (180,-0.1) ; [black,below] at (225,-0.1) 5 4; [black,below] at (270,-0.1) 3 2; [black,below] at (315,-0.1) 7 4; [black,below] at (360,-0.1) 2 ; [black,below] at (-45,-0.1) - 4; [black,below] at (-90,-0.1) - 2; [black,below] at (-135,-0.1) - 3 4; [black,below] at (-180,-0.1) - ; [black,below] at (-225,-0.1) - 5 4; [black,below] at (-270,-0.1) - 3 2; [black,below] at (-315,-0.1) - 7 4; [black,below] at (-360,-0.1) -2 ; [black,above] at (180,1) y= \;x; scope tikzpicture

Figure 5.1.6Graph of \(y=\tan\;x\)

Recall that the tangent is positive for angles in QI and QIII, and is negative in QII and QIV, and that is indeed what the graph in Figure 5.1.6 shows. We know that \(\tan\;x\) is not defined when \(\cos\;x = 0\), i.e. at odd multiples of \(\frac{\pi}{2}\): \(x=\pm\,\frac{\pi}{2}\), \(\pm\,\frac{3\pi}{2}\), \(\pm\,\frac{5\pi}{2}\), etc. We can figure out what happens near those angles by looking at the sine and cosine functions. For example, for \(x\) in QI near \(\frac{\pi}{2}\), \(\sin\;x\) and \(\cos\;x\) are both positive, with \(\sin\;x\) very close to \(1\) and \(\cos\;x\) very close to \(0\), so the quotient \(\tan\;x = \frac{\sin\;x}{\cos\;x}\) is a positive number that is very large. And the closer \(x\) gets to \(\frac{\pi}{2}\), the larger \(\tan\;x\) gets. Thus, \(x=\frac{\pi}{2}\) is a vertical asymptote of the graph of \(y=\tan\;x\).

Likewise, for \(x\) in QII very close to \(\frac{\pi}{2}\), \(\sin\;x\) is very close to \(1\) and \(\cos\;x\) is negative and very close to \(0\), so the quotient \(\tan\;x = \frac{\sin\;x}{\cos\;x}\) is a negative number that is very large, and it gets larger in the negative direction the closer \(x\) gets to \(\frac{\pi}{2}\). The graph shows this. Similarly, we get vertical asymptotes at \(x=-\frac{\pi}{2}\), \(x=\frac{3\pi}{2}\), and \(x=-\frac{3\pi}{2}\), as in Figure 5.1.6. Notice that the graph of the tangent function repeats every \(\pi\) radians, i.e. two times faster than the graphs of sine and cosine repeat.

The graphs of the remaining trigonometric functions can be determined by looking at the graphs of their reciprocal functions. For example, using \(\csc\;x = \frac{1}{\sin\;x}\) we can just look at the graph of \(y=\sin\;x\) and invert the values. We will get vertical asymptotes when \(\sin\;x=0\), namely at multiples of \(\pi\): \(x=0\), \(\pm\,\pi\), \(\pm\,2\pi\), etc. Figure 5.1.7 shows the graph of \(y=\csc\;x\), with the graph of \(y=\sin\;x\) (the dashed curve) for reference.

tikzpicture[scale=1.1,every node/.style=font=] scope[shift=(3,0),dashed,x=6cm/360,y=3cm/4] [black!60,line width=0.3pt,dotted] (-360,-4) grid[xstep=45,ystep=1] (360,4); [black!60,solid,line width=0.3pt,-latex] (-380,0) -- (380,0) node[right] x; [black!60,solid,line width=0.3pt,-latex] (0,-4.2) -- (0,4.5) node[above] y; -360,-355,...,360 sin( ) stroke [black,below right] at (0,0) 0; in -360,-315,-270,-225,-180,-135,-90,-45,45,90,135,180,225,270,315,360 [black!60,solid,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in -4,-3,-2,-1,1,2,3,4 [black!60,solid,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] ; [black,below] at (45,-0.1) 4; [black,below] at (90,-0.1) 2; [black,below] at (135,-0.1) 3 4; [black,below] at (180,-0.1) ; [black,below] at (225,-0.1) 5 4; [black,below] at (270,-0.1) 3 2; [black,below] at (315,-0.1) 7 4; [black,below] at (360,-0.1) 2 ; [black,below] at (-45,-0.1) - 4; [black,below] at (-90,-0.1) - 2; [black,below] at (-135,-0.1) - 3 4; [black,below] at (-180,-0.1) - ; [black,below] at (-225,-0.1) - 5 4; [black,below] at (-270,-0.1) - 3 2; [black,below] at (-315,-0.1) - 7 4; [black,below] at (-360,-0.1) -2 ; [black,above] at (90,3) y= \;x; scope scope[shift=(3,0),color=linecolor,line width=1.5pt,x=6cm/360,y=3cm/4] [line width=0.5pt,dashed] (360,-4) -- (360,4); [line width=0.5pt,dashed] (180,-4) -- (180,4); [line width=0.5pt,dashed] (-360,-4) -- (-360,4); [line width=0.5pt,dashed] (-180,-4) -- (-180,4); -345,-340,...,-195 1/sin( ) -165,-160,...,-15 1/sin( ) 15,20,...,165 1/sin( ) 195,200,...,345 1/sin( ) stroke scope tikzpicture

Figure 5.1.7Graph of \(y=\csc\;x\)

Likewise, Figure 5.1.8 shows the graph of \(y=\sec\;x\), with the graph of \(y=\cos\;x\) (the dashed curve) for reference. Note the vertical asymptotes at \(x=\pm\,\frac{\pi}{2}\), \(\pm\,\frac{3\pi}{2}\). Notice also that the graph is just the graph of the cosecant function shifted to the left by \(\frac{\pi}{2}\) radians.

tikzpicture[scale=1.1,every node/.style=font=] scope[shift=(3,0),dashed,x=6cm/360,y=3cm/4] [black!60,line width=0.3pt,dotted] (-360,-4) grid[xstep=45,ystep=1] (360,4); [black!60,solid,line width=0.3pt,-latex] (-380,0) -- (380,0) node[right] x; [black!60,solid,line width=0.3pt,-latex] (0,-4.2) -- (0,4.5) node[above] y; -360,-355,...,360 cos( ) stroke [black,below right] at (0,0) 0; in -360,-315,-270,-225,-180,-135,-90,-45,45,90,135,180,225,270,315,360 [black!60,solid,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in -4,-3,-2,-1,1,2,3,4 [black!60,solid,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] ; [black,below] at (45,-0.1) 4; [black,below] at (90,-0.1) 2; [black,below] at (135,-0.1) 3 4; [black,below] at (180,-0.1) ; [black,below] at (225,-0.1) 5 4; [black,below] at (270,-0.1) 3 2; [black,below] at (315,-0.1) 7 4; [black,below] at (360,-0.1) 2 ; [black,below] at (-45,-0.1) - 4; [black,below] at (-90,-0.1) - 2; [black,below] at (-135,-0.1) - 3 4; [black,below] at (-180,-0.1) - ; [black,below] at (-225,-0.1) - 5 4; [black,below] at (-270,-0.1) - 3 2; [black,below] at (-315,-0.1) - 7 4; [black,below] at (-360,-0.1) -2 ; [black,above] at (180,3) y= \;x; scope scope[shift=(3,0),color=linecolor,line width=1.5pt,x=6cm/360,y=3cm/4] [line width=0.5pt,dashed] (270,-4) -- (270,4); [line width=0.5pt,dashed] (90,-4) -- (90,4); [line width=0.5pt,dashed] (-270,-4) -- (-270,4); [line width=0.5pt,dashed] (-90,-4) -- (-90,4); -360,-355,...,-285 1/cos( ) -255,-250,...,-105 1/cos( ) -75,-70,...,75 1/cos( ) 105,110,...,255 1/cos( ) 285,290,...,360 1/cos( ) stroke scope tikzpicture

Figure 5.1.8Graph of \(y=\sec\;x\)

The graph of \(y=\cot\;x\) can also be determined by using \(\cot\;x = \frac{1}{\cot\;x}\). Alternatively, we can use the relation \(\cot\;x = -\tan\;(x+90\Degrees)\) from Section 1.5, so that the graph of the cotangent function is just the graph of the tangent function shifted to the left by \(\frac{\pi}{2}\) radians and then reflected about the \(x\)-axis, as in Figure 5.1.9:

tikzpicture[scale=1.1,every node/.style=font=] scope[shift=(3,0),color=linecolor,line width=1.5pt,x=6cm/360,y=4cm/10] [black!60,line width=0.3pt,dotted] (-360,-10) grid[xstep=45,ystep=2] (360,10); [black!60,line width=0.3pt,-latex] (-380,0) -- (380,0) node[right] x; [black!60,line width=0.3pt,-latex] (0,-10) -- (0,10) node[above] y; [linecolor,line width=0.5pt,dashed] (180,-10) -- (180,10); [linecolor,line width=0.5pt,dashed] (360,-10) -- (360,10); [linecolor,line width=0.5pt,dashed] (-180,-10) -- (-180,10); [linecolor,line width=0.5pt,dashed] (-360,-10) -- (-360,10); -354,-348,...,-186 -tan(90+ ) -174,-168,...,-6 -tan(90+ ) 6,12,...,174 -tan(90+ ) 186,192,...,354 -tan(90+ ) stroke [black,below right] at (0,0) 0; in -360,-315,-270,-225,-180,-135,-90,-45,45,90,135,180,225,270,315,360 [black!60,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in -8,-6,-4,-2,2,4,6,8 [black!60,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] ; [black,below] at (45,-0.1) 4; [black,below] at (90,-0.1) 2; [black,below] at (135,-0.1) 3 4; [black,below] at (180,-0.1) ; [black,below] at (225,-0.1) 5 4; [black,below] at (270,-0.1) 3 2; [black,below] at (315,-0.1) 7 4; [black,below] at (360,-0.1) 2 ; [black,below] at (-45,-0.1) - 4; [black,below] at (-90,-0.1) - 2; [black,below] at (-135,-0.1) - 3 4; [black,below] at (-180,-0.1) - ; [black,below] at (-225,-0.1) - 5 4; [black,below] at (-270,-0.1) - 3 2; [black,below] at (-315,-0.1) - 7 4; [black,below] at (-360,-0.1) -2 ; [black,above] at (90,1) y= \;x; scope tikzpicture

Figure 5.1.9Graph of \(y=\cot\;x\)

Example 5.1

Draw the graph of \(y=-\sin\;x\) for \(0 \le x \le 2\pi\).

Solution: Multiplying a function by \(-1\) just reflects its graph around the \(x\)-axis. So reflecting the graph of \(y=\sin\;x\) around the \(x\)-axis gives us the graph of \(y=-\sin\;x\):

tikzpicture[scale=1.2,every node/.style=font=] scope[shift=(3,0),color=linecolor,line width=1.5pt,x=6cm/360] [black!60,line width=0.3pt,dotted] (0,-1) grid[xstep=45,ystep=1] (360,1); [black!60,line width=0.3pt,-latex] (0,0) -- (380,0) node[right] x; [black!60,line width=0.3pt,-latex] (0,-1.2) -- (0,1.5) node[above] y; 0,5,...,360 -sin( ) stroke [black,left] at (0,0) 0; in 45,90,135,180,225,270,315,360 [black!60,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in -1,1 [black!60,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] ; [black,below] at (45,-0.1) 4; [black,below] at (90,-0.1) 2; [black,below] at (135,-0.1) 3 4; [black,below] at (180,-0.1) ; [black,below] at (225,-0.1) 5 4; [black,below] at (270,-0.1) 3 2; [black,below] at (315,-0.1) 7 4; [black,below] at (360,-0.1) 2 ; [black,above] at (180,1) y=- \;x; scope tikzpicture

Note that this graph is the same as the graphs of \(y=\sin\;(x \pm \pi)\) and \(y=\cos\;(x+\frac{\pi}{2})\).


It is worthwhile to remember the general shapes of the graphs of the six trigonometric functions, especially for sine, cosine, and tangent. In particular, the graphs of the sine and cosine functions are called sinusoidal curves. Many phenomena in nature exhibit sinusoidal behavior, so recognizing the general shape is important.

Example 5.2

Draw the graph of \(y=1+\cos\;x\) for \(0 \le x \le 2\pi\).

Solution: Adding a constant to a function just moves its graph up or down by that amount, depending on whether the constant is positive or negative, respectively. So adding \(1\) to \(\cos\;x\) moves the graph of \(y=\cos\;x\) upward by \(1\), giving us the graph of \(y=1+\cos\;x\):

tikzpicture[scale=1.2,every node/.style=font=] scope[shift=(3,0),color=linecolor,line width=1.5pt,x=6cm/360] [black!60,line width=0.3pt,dotted] (0,0) grid[xstep=45,ystep=1] (360,2); [black!60,line width=0.3pt,-latex] (0,0) -- (380,0) node[right] x; [black!60,line width=0.3pt,-latex] (0,0) -- (0,2.5) node[above] y; 0,5,...,360 1+cos( ) stroke [black,below left] at (0,0) 0; in 45,90,135,180,225,270,315,360 [black!60,line width=0.3pt,shift=( ,0)] (0pt,3pt) -- (0pt,-3pt); in 1,2 [black!60,line width=0.3pt,shift=(0, )] (3pt,0pt) -- (-3pt,0pt) node[black,left] ; [black,below] at (45,-0.1) 4; [black,below] at (90,-0.1) 2; [black,below] at (135,-0.1) 3 4; [black,below] at (180,-0.1) ; [black,below] at (225,-0.1) 5 4; [black,below] at (270,-0.1) 3 2; [black,below] at (315,-0.1) 7 4; [black,below] at (360,-0.1) 2 ; [black,above] at (180,1) y=1+ \;x; scope tikzpicture


Exercises

For Exercises 1-12, draw the graph of the given function for \(0 \le x \le 2\pi\).

4

  1. \(y=-\cos\;x\)

  2. \(y=1+\sin\;x\)

  3. \(y=2-\cos\;x\)

  4. \(y=2-\sin\;x\)

    4

  5. \(y=-\tan\;x\)

  6. \(y=-\cot\;x\)

  7. \(y=1+\sec\;x\)

  8. \(y=-1-\csc\;x\)

    4

  9. \(y=2\sin\;x\)

  10. \(y=-3\cos\;x\)

  11. \(y=-2\tan\;x\)

  12. \(y=-2\sec\;x\)

    tikzpicture[every node/.style=font=, scale=0.8] [black!60,line width=0.3pt,-latex] (-2.2,0) -- (2.8,0) node[right] x; [black!60,line width=0.3pt,-latex] (0,-2.2) -- (0,2.8) node[above] y; [linecolor,line width=1.5pt] (0,0) circle (2); [line width=1pt] (0,0) -- (2,3.464) -- (2,0); [line width=1pt] (60:2) -- (1,0); [line width=1pt] (0,2) -- (1.155,2); (0,0) circle (2pt); [below left] at (0,0) O; [below] at (1,0) M; [above right] at (2,0) N; [left] at (60:1.9) P; [right] at (2,3.464) Q; [above left] at (0.1,2) R; [above] at (1.1,2) S; [below right] at (2,0) 1; at (0.4,0.2) ; [dashed] (0:0.7) arc (0:60:0.7); tikzpicture

    Figure 5.1.10
  13. We can extend the unit circle definition of the sine and cosine functions to all six trigonometric functions. Let \(P\) be a point in QI on the unit circle, so that the line segment \(\overline{OP}\) in Figure 5.1.10 has length \(1\) and makes an acute angle \(\theta\) with the positive \(x\)-axis. Identify each of the six trigonometric functions of \(\theta\) with exactly one of the line segments in Figure 5.1.10, keeping in mind that the radius of the circle is \(1\). To get you started, we have \(\sin\;\theta = MP\) (why?).

  14. For Exercise 13, how would you draw the line segments in Figure 5.1.10 if \(\theta\) was in QII? Recall that some of the trigonometric functions are negative in QII, so you will have to come up with a convention for how to treat some of the line segment lengths as negative.

  15. For any point \((x,y)\) on the unit circle and any angle \(\alpha\), show that the point \(R_{\alpha} (x,y)\) defined by \(R_{\alpha} (x,y) = (x\,\cos\;\alpha \,-\, y\,\sin\;\alpha , x\,\sin\;\alpha \,+\, y\,\cos\;\alpha)\) is also on the unit circle. What is the geometric interpretation of \(R_{\alpha} (x,y)\)? Also, show that \(R_{-\alpha} (R_{\alpha} (x,y)) = (x,y)\) and \(R_{\beta} (R_{\alpha} (x,y)) = R_{\alpha + \beta} (x,y)\).