Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store
seo-qna
SearchIcon
banner

How do you graph y=tanx?

Answer
VerifiedVerified
468.3k+ views
like imagedislike image
Hint:
To graph the function given, we need to locate the roots. We will use the fact that the function tanx is not bounded, but approaches infinity at some points. So we will locate the infinite approaching points too, the vertical lines through which are called asymptotes. We will curve pass through the obtained roots, and make it approach the asymptotes to graph the given function.

Complete step by step solution:
We know that the period of the given function y=tanx is equal to π.
This means that the function y=tanx repeats itself after an interval of π.
So we can draw the graph of the given function in any interval of length π and copy it for the other intervals to obtain the final graph.
For this we need to choose the interval in which we make the graph. Before choosing it, let us try to locate the roots of y=tanx. Therefore substituting y=0 in the given equation, we get
tanx=0
x=nπ
So the roots are located at π,0,π,2π......
Also, we try to locate the asymptotes. We know that the asymptotes for y=tanx are given byx=(2n+1)π2.
So let us choose our interval to be (π2,π2).
From the above information, we can draw the graph of y=tanx in the interval (π2,π2) as
seo images

Since the function y=tanx is periodic, so we copy the above graph for the other intervals to obtain the final graph of y=tanx as
seo images


Note:
Here, we might make a mistake by drawing the graph by plotting the points. This is because then we have to ensure proper scaling, and then we will not be able to obtain a rough sketch. Also, for obtaining the proper shape, we can consider the derivative of the function y=tanx at the roots. All trigonometric functions are periodic in nature, and hence the graph is repeated after a certain interval.