Solveeit Logo

Question

Question: How do you graph \[y = \cot x\]?...

How do you graph y=cotxy = \cot x?

Explanation

Solution

We need to graph the given function. We will use the domain and some values of xx lying between 2π- 2\pi and 2π2\pi to find some values of yy. Then, we will observe the behavior of the value of yy, and use it and the coordinates obtained to graph the function.

Complete step-by-step solution:
The domain of the function y=cotxy = \cot x is given by \left\\{ {x:x \in R{\rm{ and }}x \ne n\pi ,n \in Z} \right\\}. This means that the cotangent of any multiple of π\pi does not exist.
The graph of the cotangent function reaches arbitrarily large positive or negative values at these multiples of π\pi .
Now, we will find some values of yy for some values of xx lying between 2π- 2\pi and 2π2\pi .
Substituting x=3π2x = - \dfrac{{3\pi }}{2} in the function y=cotxy = \cot x, we get
y=cot(3π2) y=0\begin{array}{l}y = \cot \left( { - \dfrac{{3\pi }}{2}} \right)\\\ \Rightarrow y = 0\end{array}
Substituting x=π2x = - \dfrac{\pi }{2} in the function y=cotxy = \cot x, we get
y=cot(π2) y=0\begin{array}{l}y = \cot \left( { - \dfrac{\pi }{2}} \right)\\\ \Rightarrow y = 0\end{array}
Substituting x=π2x = \dfrac{\pi }{2} in the function y=cotxy = \cot x, we get
y=cot(π2) y=0\begin{array}{l}y = \cot \left( {\dfrac{\pi }{2}} \right)\\\ \Rightarrow y = 0\end{array}
Substituting x=3π2x = \dfrac{{3\pi }}{2} in the function y=cotxy = \cot x, we get
y=cot(3π2) y=0\begin{array}{l}y = \cot \left( {\dfrac{{3\pi }}{2}} \right)\\\ \Rightarrow y = 0\end{array}
The value of yy at x=2π,π,0,π,2πx = 2\pi ,\pi ,0,\pi ,2\pi is infinite.
Arranging the values of xx and yy in a table and writing the coordinates, we get

xxyy
2π- 2\pi\infty
3π2 - \dfrac{{3\pi }}{2}00
π- \pi\infty
π2 - \dfrac{\pi }{2}00
00\infty
π2\dfrac{\pi }{2}00
π\pi \infty
3π2\dfrac{{3\pi }}{2}00
2π2\pi \infty

The value of y=cotxy = \cot x decreases from \infty to 0 at x=3π2x = - \dfrac{{3\pi }}{2}, and then to - \infty in the interval (2π,π)\left( { - 2\pi , - \pi } \right).
Similarly, the value of y=cotxy = \cot x decreases from \infty to 0 at x=π2,π2,3π2x = - \dfrac{\pi }{2},\dfrac{\pi }{2},\dfrac{{3\pi }}{2}, and then to - \infty in the intervals (π,0)\left( { - \pi ,0} \right), (0,π)\left( {0,\pi } \right), and (π,2π)\left( {\pi ,2\pi } \right).
Now, we will use the points (3π2,0)\left( { - \dfrac{{3\pi }}{2},0} \right), (π2,0)\left( { - \dfrac{\pi }{2},0} \right), (π2,0)\left( {\dfrac{\pi }{2},0} \right), (3π2,0)\left( {\dfrac{{3\pi }}{2},0} \right) and the behaviour of the value of y=cotxy = \cot x to graph the function.
Therefore, we get the graph

This is the required graph of the function y=cotxy = \cot x.

Note:
The period of the function y=cotxy = \cot x is π\pi . This means that the graph of y=cotxy = \cot x will repeat for every π\pi distance on the xx-axis. It can be observed that the pattern and shape of the graph of y=cotxy = \cot x is the same from 2π- 2\pi to π- \pi, from π- \pi to 0, from 0 to π\pi , and from π\pi to 2π2\pi . The range of cotangent functions is from - \infty to \infty . As tangent function is a reciprocal function cotangent function, so their graph faces opposite to each other.