MatheramaMatherama
← Trigonometry
Trigonometry·Section 6·22 min read

Drawing Graphs

An introduction§

As a point PP traces the path of a unit circle, it encounters the same points repeatedly after completing each full rotation. This recurring journey around the circle results in the trigonometric functions—such as sine and cosine—exhibiting a pattern of repetition known as periodicity. To put it simply, if we take the sine of an angle θ\theta, represented as sin⁡(θ)\sin(\theta), and find that its value is yy, then after the point PP completes one full circle (which corresponds to an angle of 2π2\pi radians), the sine of the new angle, θ+2π\theta + 2\pi, will also be yy.

This concept can be visualized on a graph that plots the sine value against its angle. As the angle increases by 2π2\pi radians, the sine value will follow the same path as before, creating a wave-like pattern that rises and falls. The distance over which this pattern repeats, which in the case of sine and cosine is 2π2\pi radians, is called the period of the function. In essence, the period is the angular distance after which the trigonometric functions start to echo their previous values, illustrating their inherent cyclical nature. This property is what allows these functions to model periodic phenomena so effectively, such as the oscillations of a pendulum or the waves of the sea.

The Graph of Sine§

Unit circle with point P on it with angle theta

The sine function relates an angle with the vertical component(ordinate) of a point located on the unit circle's circumference. Look at the image below. Point PP moves on the circumference of the unit circle with coordinates (x,y)(x,y). Angle AOPAOP is θ\theta. Focus on yy, which we know is the sine of angle θ\theta. Imagine this point, starting from point AA with coordinates (1,0)(1,0), moving on this circle.

  • At AA the value of sine is clearly 00. As it moves further the value of sine (ordinate of P) starts increasing to 1, and it becomes 1 when θ=π2\theta=\frac{\pi}{2}. Keep moving point PP like this around the circle and read the value of the its ordinate for each value of θ\theta.

  • It then reaches second quadrant, where theta changes from π2\frac{\pi}{2} to π\pi and if you observe carefully, the value of sine, i.e. the ordinate of PP decreases from 11 to 00.

  • PP then moves to third quadrant, θ\theta changes from π\pi to 3π2\frac{3\pi}{2}. Correspondingly, sin⁡θ\sin\theta decreases from 00 to −1-1.

  • Eventually, PP reaches the fourth quadrant, where θ\theta changes from 3π2\frac{3\pi}{2} to 2π2\pi and correspondingly sinθsin\theta increases from −1-1 to 00.

  • As PP moves further anti-clockwise, it is again in first quadrant. Now θ\theta changes from 2π2\pi to 5π2\frac{5\pi}{2}. sinθsin\theta again increased from 00 to 11.

  • This cycle keeps on repeating and the value of sinθsin\theta oscillates between −1-1 to 11.

Procedure for Plotting the Graph of Sine Function

Step 1: Preparation of the Axes To begin plotting sin⁡θ\sin \theta against θ\theta, draw two perpendicular lines to establish the x-axis (for θ\theta) and the y-axis (for sin⁡θ\sin \theta). The range of sin⁡θ\sin \theta is from -1 to 1.

Step 2: Scaling the x-axis and y-axis Divide the x-axis into units where each unit corresponds to π/2\pi/2 radians. The segment between 0 to π/2\pi/2 radians denotes the first quadrant of the unit circle. Calibrate the y-axis in integers as the range is [−1,1][-1,1], on y-axis.

Figure for step 2

Figure for step 2

Step 3: Plotting Points in the First Quadrant At θ=0\theta = 0, plot the initial point where sin⁡θ=0\sin \theta = 0. Continue to mark the sine values at θ=π/6,π/3,\theta = \pi/6, \pi/3, and π/2\pi/2. Note that π/4\pi/4 is the midpoint between π/6\pi/6 and π/3\pi/3. Use the table below. Plot the ordered pair (θ,sin⁡(θ))(\theta, \sin(\theta)) on the cartesian coordinate system that you made in step 2 above.

θ\theta sin⁡(θ)\sin(\theta) Ordered Pair (θ,sin⁡(θ))(\theta, \sin(\theta))
0 0 (0,0)(0, 0)
π6\frac{\pi}{6} 12\frac{1}{2} (π6,12)(\frac{\pi}{6}, \frac{1}{2})
π4\frac{\pi}{4} 22\frac{\sqrt{2}}{2} (π4,22)(\frac{\pi}{4}, \frac{\sqrt{2}}{2})
π3\frac{\pi}{3} 32\frac{\sqrt{3}}{2} (π3,32)(\frac{\pi}{3}, \frac{\sqrt{3}}{2})
π2\frac{\pi}{2} 1 (π2,1)(\frac{\pi}{2}, 1)

figure for step 3

Step 4: Reflecting the Curve for the Second Quadrant Recognize the symmetry of the unit circle and reflect the plotted points across the second quadrant. Here, as θ\theta advances from π/2\pi/2 to π\pi, the sine value gradually returns to 0.

figure for step 3 and 4

Step 5: Extending the Curve to the Third and Fourth Quadrants Proceed to the third quadrant, marking the declining sine values until they reach -1 at θ=3π/2\theta = 3\pi/2. In the fourth quadrant, plot the increasing sine values, which rise back to 0 at θ=2π\theta = 2\pi.

Step 6: Completion of the Sine Wave Join all the points with a smooth, flowing line to create a wave pattern, which represents the sine function's periodic nature.

Conclusion Upon completing the graph, one will observe the periodic and oscillatory nature of the sine function, repeating every 2π2\pi radians. Each quadrant of the unit circle gives a quarter of the wave. This visualization helps in comprehending the behavior of sine across different angles.

The graph of cosine§

Similar to the graph of sine, we draw the graph of cosine. This time since we know that cosine of thetatheta is defined to be the abscissa of point PP, we focus on xx as PP moves in anticlockwise direction starting from AA. With the similar process that we used above we draw the graph of cosine. You may use the following table:

θ\theta cos⁡(θ)\cos(\theta) Ordered Pair (θ,cos⁡(θ))(\theta, \cos(\theta))
0 1 (0,1)(0, 1)
π6\frac{\pi}{6} 32\frac{\sqrt{3}}{2} (π6,32)(\frac{\pi}{6}, \frac{\sqrt{3}}{2})
π4\frac{\pi}{4} 22\frac{\sqrt{2}}{2} (π4,22)(\frac{\pi}{4}, \frac{\sqrt{2}}{2})
π3\frac{\pi}{3} 12\frac{1}{2} (π3,12)(\frac{\pi}{3}, \frac{1}{2})
π2\frac{\pi}{2} 0 (π2,0)(\frac{\pi}{2}, 0)

The complete graph of cosine

Graph of Sine and Cosine superimposed§

Sine and cosine graphs together

When the graphs of sine and cosine functions are plotted on the same axes, several interesting and fundamental properties of these trigonometric functions become evident.

1. Shape and Symmetry:

  • Both sine and cosine graphs have the same shape – a smooth, continuous wave that oscillates between 1 and -1.
  • The sine graph starts at the origin (0,0), while the cosine graph starts at its peak (0,1). This difference in starting points is crucial to understanding their relationship.

2. Periodicity:

  • Both functions are periodic with a period of 2π2\pi radians. This means the wave patterns repeat every 2π2\pi radians along the x-axis.

3. Phase Shift:

  • The sine graph can be seen as a shifted version of the cosine graph, or vice versa. Specifically, the sine graph is a horizontal shift of the cosine graph by π2\frac{\pi}{2} to the right. In other words, sin⁡(θ)=cos⁡(θ−π2)\sin(\theta) = \cos(\theta - \frac{\pi}{2}). This represents a phase shift between the two functions.

4. Points of Intersection:

  • The sine and cosine graphs intersect at points where their values are equal. This occurs at θ=π4\theta = \frac{\pi}{4} and θ=5π4\theta = \frac{5\pi}{4} within the first 2π2\pi interval. At these points, both sine and cosine have the same value of 22\frac{\sqrt{2}}{2} and −22-\frac{\sqrt{2}}{2} respectively.

5. Quadrant Analysis:

  • In the first quadrant (0 to π2\frac{\pi}{2}), both sine and cosine values are positive. In the second quadrant (π2\frac{\pi}{2} to π\pi), sine values are positive while cosine values are negative. This pattern continues, reflecting the signs of these functions in each quadrant.

The graph of tan§

To understand how to draw the graph of tangent, we first analyze the graph in the first quadrant.

The graph of tan in the first quadrant

By definition tan⁡θ=yx\tan\theta=\frac{y}{x}, where (x,y)(x,y) are the coordinates of terminal point PP of angle θ\theta. as shown in the figure above.

We calibrate the x-axis and y-axis like we did in the grpahs of sine and cosine. We can use the following table to obtain few points on the graph.

θ\theta tan⁡(θ)\tan(\theta) Ordered Pair (θ,tan⁡(θ))(\theta, \tan(\theta))
0 0 (0,0)(0, 0)
π6\frac{\pi}{6} 13\frac{1}{\sqrt{3}} or 33\frac{\sqrt{3}}{3} (π6,33)(\frac{\pi}{6}, \frac{\sqrt{3}}{3})
π4\frac{\pi}{4} 1 (π4,1)(\frac{\pi}{4}, 1)
π3\frac{\pi}{3} 3\sqrt{3} (π3,3)(\frac{\pi}{3}, \sqrt{3})

Exploring the Tangent Function as It Nears π2\frac{\pi}{2}

tan⁡(θ)\tan(\theta) shows some interesting behavior near θ=π2\theta = \frac{\pi}{2} (or 90 degrees). We say that tan⁡(θ)\tan(\theta) is 'undefined' at π2\frac{\pi}{2}. This is because, at this angle on the unit circle, the xx-coordinate of the point is zero, and since tangent is the division yy by xx, it's like dividing by zero, which we can't do.

However, what happens when θ\theta is very close to π2\frac{\pi}{2}, but not quite there, is quite interesting. For angles just a little bit less than 90 degrees, like 89 degrees, 89.9 degrees, or even closer, the tangent function is still something we can calculate. But, as θ\theta gets closer to 90 degrees, the value of tan⁡(θ)\tan(\theta) becomes very, very large.

Here's a simple table to show how big the tangent function gets as the angle θ\theta gets closer to 90 degrees:

Angle θ\theta (Degrees) Tangent Value tan⁡(θ)\tan(\theta)
85 11.43
89 57.29
89.9 572.96
89.99 5729.58
89.999 57295.78

graph of tan in first quadrant When we consider angles θ\theta that are less than π2\frac{\pi}{2} but increasingly close to it, the behavior of the tangent function, tan⁡(θ)\tan(\theta), the xx-coordinate of the point on the unit circle corresponding to θ\theta approaches zero, while the yy-coordinate approaches 1. As a result, the tangent function, which is the ratio of yy over xx (or sin⁡(θ)\sin(\theta) over cos⁡(θ)\cos(\theta)), starts to approach positive infinity. This means that tan⁡(θ)\tan(\theta) becomes larger and larger as θ\theta gets closer to π2\frac{\pi}{2}. The closer θ\theta is to 90 degrees, the closer xx is to zero, and the higher the value of tan⁡(θ)\tan(\theta) becomes, illustrating a fundamental characteristic of the tangent function near its undefined point at π2\frac{\pi}{2}.

The graph of tan in second quadrant

To get an idea of how the graph might look like, let us plot some points in the second quadrant. We choose theta=π,5π6,3π4,2π3theta=\pi, \frac{5\pi}{6}, \frac{3\pi}{4}, \frac{2\pi}{3}.

θ\theta tan⁡(θ)\tan(\theta) Ordered Pair (θ,tan⁡(θ))(\theta, \tan(\theta))
π\pi 0 (π,0)(\pi, 0)
5π6\frac{5\pi}{6} −13-\frac{1}{\sqrt{3}} or −33-\frac{\sqrt{3}}{3} (5π6,−13)(\frac{5\pi}{6}, -\frac{1}{\sqrt{3}}) or (5π6,−33)(\frac{5\pi}{6}, -\frac{\sqrt{3}}{3})
3π4\frac{3\pi}{4} -1 (3π4,−1)(\frac{3\pi}{4}, -1)
2π3\frac{2\pi}{3} −3-\sqrt{3} (2π3,−3)(\frac{2\pi}{3}, -\sqrt{3})

Obviously tanθtan\theta is negative in the second quadrant. When we approach pi2\frac{pi}{2}(=90∘=90^\circ), like before the graph shoots down to negative infinity. The reason to which should be apparent by now. If not then, observe the following table:

θ\theta (Degrees) tan⁡(θ)\tan(\theta) (Approximate Value)
95 -11.43
91 -57.29
90.1 -572.96
90.01 -5729.58
90.001 -57295.78

Which makes the graph looks like this:

graph of tan in first and second quadrant

The graph of tan in third quadrant

The graph of the tangent function, tan⁡(θ)\tan(\theta), shows a notable pattern: it is identical in the first and third quadrants. This symmetry arises because of the identity tan⁡(π+θ)=tan⁡(θ)\tan(\pi + \theta) = \tan(\theta). Simply put, when you add π\pi (180 degrees) to an angle in the first quadrant, you get an angle in the third quadrant with the same tangent value. This relationship results in the tangent function having a period of π\pi radians, and its graph repeats every 180 degrees. So, the portion of the tan⁡(θ)\tan(\theta) graph from 0 to π2\frac{\pi}{2} (first quadrant) is mirrored in the π\pi to 3π2\frac{3\pi}{2} range (third quadrant).

Similarly, the graph in the fourth quadrant is exactly the same as the graph in second quadrant. Interestingly the graph of tan repeats itself every π\pi units. Finally, we get the follwoing graph which we must remember.

Complete graph of tan

Domain of the Tangent Function: The domain of the tangent function, which is the set of all possible input values (angles in this case), includes all real numbers except for the points where the function is undefined. From the graph, it's clear that the tangent function is undefined at π2\frac{\pi}{2}, 3π2\frac{3\pi}{2}, and every odd multiple of π2\frac{\pi}{2} (e.g., 5π2\frac{5\pi}{2}, 7π2\frac{7\pi}{2}, etc.), where the graph shows vertical asymptotes. Therefore, the domain of tan⁡(θ)\tan(\theta) can be expressed as all real numbers θ\theta such that θ≠(2n+1)π2\theta \neq \frac{(2n+1)\pi}{2}, where nn is an integer.

Range of the Tangent Function: The range of the tangent function is the set of all possible output values (tangent of the angle). From the graph, we can observe that as the function approaches its undefined points, the values of tan⁡(θ)\tan(\theta) increase or decrease without bound. This means that the range of the tangent function is all real numbers, which can be expressed as (−∞,∞)(-\infty, \infty).

This graph is an excellent visualization of the periodic and unbounded nature of the tangent function.

The graph of cosec§

The graph of csc⁡(θ)\csc(\theta) can be easily constructed from the graph of sin⁡(θ)\sin(\theta) since csc⁡(θ)=1sin⁡(θ)\csc(\theta) = \frac{1}{\sin(\theta)}. Here's is the process of drwing the graph of csc⁡(θ)\csc(\theta):

  1. Start with the Sine Graph: Begin by plotting the graph of sin⁡(θ)\sin(\theta), which oscillates between -1 and 1 and crosses the horizontal axis at multiples of π\pi (0, π\pi, 2π2\pi, etc.).

  2. Identify Non-Zero Points: Identify the points where sin⁡(θ)\sin(\theta) is not zero since csc⁡(θ)\csc(\theta) will be undefined where sin⁡(θ)=0\sin(\theta) = 0.

  3. Take Reciprocals: For each non-zero value of sin⁡(θ)\sin(\theta), find the reciprocal to get the value of csc⁡(θ)\csc(\theta). For example, when sin⁡(θ)=1\sin(\theta) = 1 at θ=π2\theta = \frac{\pi}{2}, the reciprocal is also 1, so csc⁡(π2)=1\csc(\frac{\pi}{2}) = 1.

  4. Plot Reciprocal Values: For values of sin⁡(θ)\sin(\theta) that are greater than 0 but less than 1, their reciprocals will be greater than 1. Plot these on the graph above the horizontal axis.

  5. Handle Values Less Than 1: For values of sin⁡(θ)\sin(\theta) that are negative and greater than -1, their reciprocals will be less than -1. Plot these on the graph below the horizontal axis.

  6. Approaching Zero: As sin⁡(θ)\sin(\theta) approaches zero (as θ\theta approaches multiples of π\pi), the reciprocal will grow without bound, meaning csc⁡(θ)\csc(\theta) will tend towards positive or negative infinity.

  7. Draw Asymptotes: Draw vertical lines (asymptotes) at the points where sin⁡(θ)=0\sin(\theta) = 0 (multiples of π\pi) since csc⁡(θ)\csc(\theta) will be undefined at these points.

  8. Mirror Sine's Behavior: Remember that csc⁡(θ)\csc(\theta) will mirror the behavior of sin⁡(θ)\sin(\theta), but with the values flipped and stretched as you're taking the reciprocal.

By following these steps, you can draw the graph of csc⁡(θ)\csc(\theta) which will look like a series of arches that become steeper and narrower as they approach the vertical lines drawn at multiples of π\pi, reflecting the reciprocal nature of the cosecant function in relation to sine. Here is the completed graph:

The graph of cosec theta

From this graph of the cosecant function (csc⁡(θ)\csc(\theta)), we can observe:

Domain of csc⁡(θ)\csc(\theta): The domain of csc⁡(θ)\csc(\theta) includes all real numbers except where sin⁡(θ)\sin(\theta) is zero since csc⁡(θ)=1sin⁡(θ)\csc(\theta) = \frac{1}{\sin(\theta)}. On the graph, sin⁡(θ)\sin(\theta) is zero at integer multiples of π\pi (e.g., 0,±π,±2π,±3π,...0, \pm\pi, \pm2\pi, \pm3\pi, ...). Therefore, these points are not included in the domain of the cosecant function. As a result, the domain of csc⁡(θ)\csc(\theta) is θ∈R∖{nπ∣n∈Z}\theta \in \mathbb{R} \setminus \{n\pi \mid n \in \mathbb{Z}\}.

Range of csc⁡(θ)\csc(\theta): The range of csc⁡(θ)\csc(\theta) is all real numbers except between -1 and 1. This is because the cosecant function is the reciprocal of the sine function, and the sine function only takes on values between -1 and 1. Therefore, csc⁡(θ)\csc(\theta) will never take on values between -1 and 1 since there is no real number whose reciprocal falls within this interval. As seen on the graph, the function approaches positive and negative infinity as it nears points where sin⁡(θ)=0\sin(\theta) = 0. Hence, the range is csc⁡(θ)∈(−∞,−1]∪[1,∞)\csc(\theta) \in (-\infty, -1] \cup [1, \infty).

The graph of secant§

To draw the graph of sec⁡(θ)\sec(\theta), which is the reciprocal of cos⁡(θ)\cos(\theta), start by plotting the cosine graph that oscillates between -1 and 1. Wherever the cosine graph has a value, take the reciprocal to get the secant value. For example, when cos⁡(θ)=1\cos(\theta) = 1, sec⁡(θ)\sec(\theta) will also be 1. For values of cos⁡(θ)\cos(\theta) between 0 and 1, the graph of sec⁡(θ)\sec(\theta) will be above the horizontal axis and greater than 1. When cos⁡(θ)\cos(\theta) is negative but greater than -1, the secant graph will be below the horizontal axis and less than -1. As cos⁡(θ)\cos(\theta) approaches zero, sec⁡(θ)\sec(\theta) heads off towards positive or negative infinity, which means you'll draw vertical lines (asymptotes) at the points where cos⁡(θ)=0\cos(\theta) = 0, such as π2\frac{\pi}{2}, 3π2\frac{3\pi}{2}, etc. The graph of sec⁡(θ)\sec(\theta) will form a series of U-shaped curves above and inverted U-shapes below these asymptotes, corresponding to where the cosine graph is positive and negative, respectively.

The graph of secant

Domain of sec⁡(θ)\sec(\theta): The secant function is undefined where the cosine function is zero because taking the reciprocal of zero would be undefined. The graph shows that the cosine function equals zero at odd multiples of π2\frac{\pi}{2} (e.g., ±π2,±3π2,…\pm\frac{\pi}{2}, \pm\frac{3\pi}{2}, \ldots). These points are represented on the graph by vertical asymptotes, indicating that sec⁡(θ)\sec(\theta) approaches infinity as cos⁡(θ)\cos(\theta) approaches zero. Therefore, the domain of sec⁡(θ)\sec(\theta) excludes these points and is θ∈R∖{(2k+1)π2∣k∈Z}\theta \in \mathbb{R} \setminus \left\{ \frac{(2k+1)\pi}{2} \mid k \in \mathbb{Z} \right\}.

Range of sec⁡(θ)\sec(\theta): The secant function can take any real number except for the interval (-1, 1). As seen in the graph, sec⁡(θ)\sec(\theta) has a range of (−∞,−1]∪[1,∞)(-\infty, -1] \cup [1, \infty) because sec⁡(θ)\sec(\theta) approaches negative or positive infinity as the cosine approaches zero and equals ±1 when the cosine equals ±1.

The graph of cot§

To draw the graph of the cotangent function, cot⁡(θ)\cot(\theta), which is the reciprocal of the tangent function, tan⁡(θ)\tan(\theta), you would follow these steps:

  1. Sketch the Tangent Graph: Start by plotting the graph of tan⁡(θ)\tan(\theta), which has a period of π\pi, with vertical asymptotes at every θ=π2+nπ\theta = \frac{\pi}{2} + n\pi for integers nn.

  2. Identify Non-Zero Points: Determine the points on the tangent graph that are not zero, as cot⁡(θ)\cot(\theta) will be undefined at θ\theta where tan⁡(θ)=0\tan(\theta) = 0.

  3. Take Reciprocals: For each point on the tan⁡(θ)\tan(\theta) graph that is not zero, calculate the reciprocal to find the corresponding cot⁡(θ)\cot(\theta) value.

  4. Plot Reciprocal Values: Where tan⁡(θ)\tan(\theta) is positive, cot⁡(θ)\cot(\theta) will be positive and vice versa. As tan⁡(θ)\tan(\theta) approaches zero from positive, cot⁡(θ)\cot(\theta) will approach infinity, and where tan⁡(θ)\tan(\theta) approaches zero from negative, cot⁡(θ)\cot(\theta) will approach negative infinity.

  5. Draw Asymptotes and Curves: The points where tan⁡(θ)=0\tan(\theta) = 0 become the asymptotes for the cot⁡(θ)\cot(\theta) graph. Between the asymptotes, cot⁡(θ)\cot(\theta) will form a series of decreasing curves in each period, going from positive infinity through zero to negative infinity as θ\theta increases from nπn\pi to π2+nπ\frac{\pi}{2} + n\pi.

By repeating this process over the range of θ\theta, you can create the full graph of cot⁡(θ)\cot(\theta), which will appear as a series of downward-opening curves that approach the vertical asymptotes at multiples of π\pi.

The graph of cotangent

Domain of cot⁡(θ)\cot(\theta): The cotangent function is the reciprocal of the tangent function. The graph shows that cot⁡(θ)\cot(\theta) is undefined where the tangent function is zero, which occurs at integer multiples of π\pi (e.g., 0,±π,±2π,…0, \pm\pi, \pm2\pi, \ldots). These points are represented on the graph by vertical asymptotes, indicating that the function approaches infinity as it nears these points. Therefore, the domain of cot⁡(θ)\cot(\theta) excludes these points and is θ∈R∖{kπ∣k∈Z}\theta \in \mathbb{R} \setminus \{k\pi \mid k \in \mathbb{Z}\}.

Range of cot⁡(θ)\cot(\theta): As seen in the graph, cot⁡(θ)\cot(\theta) takes on all real number values. There are no restrictions on the output values of cot⁡(θ)\cot(\theta) as it can go from negative to positive infinity. Thus, the range of the cotangent function is all real numbers, which can be written as cot⁡(θ)∈(−∞,∞)\cot(\theta) \in (-\infty, \infty).

Section 6 of 13 · Trigonometry

Mark this section complete when you have worked through its proofs.