How do you graph y= tan (2x)y=tan(2x)?

1 Answer
May 9, 2016

Here's the graph (mousewheel to zoom):
graph{tan(2x) [-5, 5, -2.5, 2.5]}

Explanation:

The graph is just like tan(x), but 2 times faster. It has period pi/2π2. The roots are at npi/2nπ2 for all integers nn and graph has slope 2 at these points. The asymptotes are at (n+1/2)pi/2(n+12)π2. [More info here.](http://www.wolframalpha.com/input/?i=tan%282x%29)

Generally for any fancy function f(x)f(x) we can think of its internal clock (as if it is function of time)

For real number a>1a>1

  • graph of f(ax)f(ax) is squeezed horizontally (clock is faster)
  • graph of f(x/a)f(xa) is stretched horizontally (clock is slower)
  • graph of af(x)af(x) is stretched vertically
  • graph of f(x)/af(x)a is squeezed vertically

And for positive real number bb

  • graph of f(x+b)f(x+b) is shifted left (clock is ahead of time)
  • graph of f(x-b)f(xb) is shifted right (clock is delayed)
  • graph of f(x)+bf(x)+b is shifted up
  • graph of f(x)-bf(x)b is shifted down

Please ask if any clarifications are needed.