Skip to main content

Graphs of trigonometric functions

Sine, cosine and tangent repeat with a fixed period, and their reciprocals sec, cosec and cot have asymptotes wherever the function they invert is zero. x is in radians throughout.

Every value in the key-features tables is checked by script against the Grapher's own calculations (roots, turning points, asymptotes, domain and range).

Graph of y = sin x

The sine wave (x in radians): it oscillates between −1 and 1 and repeats every 2π. It passes through the origin.

Graph of y = sin x (y = sin(x)) drawn on a grid and its key points marked
The graph of y = sin x (x in radians). Grey dots mark the intercepts and turning points.

Key features

Domainall real numbers (x ∈ ℝ)
Range−1 ≤ y ≤ 1
x-interceptsx = kπ for every integer k (… −π, 0, π, 2π …)
y-intercept(0, 0)
Turning pointsmaxima (π/2 + 2kπ, 1); minima (−π/2 + 2kπ, −1)
Asymptotesnone
Period2π
Amplitude1
Symmetryodd function: f(−x) = −f(x), rotational symmetry of order 2 about the origin

How to sketch it

  1. Mark the x-intercepts x = kπ for every integer k (… −π, 0, π, 2π …), the y-intercept (0, 0), the maxima (π/2 + 2kπ, 1); minima (−π/2 + 2kπ, −1).
  2. The domain is every real number, so the curve continues off both sides of your axes.
  3. Check the range: −1 ≤ y ≤ 1. Your sketch should not go anywhere else.
  4. Use the symmetry: draw the right-hand half and rotate it 180° about the origin.
  5. Draw one period (2π long) and repeat it.

Graphs made from this one: y = cos x, y = sin 2x, y = 2 sin x + 1, y = cosec x, y = arcsin x. Transform it with sliders for a, b, c and d in y = af(b(x − c)) + d.

Graph of y = cos x

The cosine wave (x in radians): the sine wave shifted π/2 to the left, so it starts at its maximum, (0, 1).

Graph of y = cos x (y = cos(x)) drawn on a grid and its key points marked
The graph of y = cos x (x in radians). Grey dots mark the intercepts and turning points.

Key features

Domainall real numbers (x ∈ ℝ)
Range−1 ≤ y ≤ 1
x-interceptsx = π/2 + kπ for every integer k
y-intercept(0, 1)
Turning pointsmaxima (2kπ, 1); minima (π + 2kπ, −1)
Asymptotesnone
Period2π
Amplitude1
Symmetryeven function: f(−x) = f(x), symmetric about the y-axis

How to sketch it

  1. Mark the x-intercepts x = π/2 + kπ for every integer k, the y-intercept (0, 1), the maxima (2kπ, 1); minima (π + 2kπ, −1).
  2. The domain is every real number, so the curve continues off both sides of your axes.
  3. Check the range: −1 ≤ y ≤ 1. Your sketch should not go anywhere else.
  4. Use the symmetry: draw the right-hand half and reflect it in the y-axis.
  5. Draw one period (2π long) and repeat it.

y = cos x is y = sin x translated π/2 to the left: cos x = sin(x + π/2): see the graph of y = sin x. Graphs made from this one: y = sec x, y = arccos x. Transform it with sliders for a, b, c and d in y = af(b(x − c)) + d.

Graph of y = tan x

The tangent graph (x in radians): it repeats every π, with vertical asymptotes where cos x = 0.

Graph of y = tan x (y = tan(x)) drawn on a grid, with its asymptotes dashed and its key points marked
The graph of y = tan x (x in radians). Asymptotes are dashed; grey dots mark the intercepts and turning points.

Key features

Domainx ≠ π/2 + kπ (k an integer)
Rangeall real numbers (y ∈ ℝ)
x-interceptsx = kπ for every integer k
y-intercept(0, 0)
Point of inflection(kπ, 0)
Asymptotesvertical: x = π/2 + kπ (… −π/2, π/2, 3π/2 …)
Periodπ
Symmetryodd function: f(−x) = −f(x), rotational symmetry of order 2 about the origin

How to sketch it

  1. Draw the asymptotes first as dashed lines: x = π/2 + kπ (… −π/2, π/2, 3π/2 …).
  2. Mark the x-intercepts x = kπ for every integer k, the y-intercept (0, 0).
  3. Only draw the curve where it is defined: x ≠ π/2 + kπ (k an integer).
  4. Check the range: all real numbers (y ∈ ℝ). Your sketch should not go anywhere else.
  5. Use the symmetry: draw the right-hand half and rotate it 180° about the origin.
  6. Draw one period (π long) and repeat it.

Graphs made from this one: y = cot x, y = arctan x. Transform it with sliders for a, b, c and d in y = af(b(x − c)) + d.

Graph of y = sin 2x

The sine wave squashed horizontally by a factor of 2, so it repeats twice as often: period π.

Graph of y = sin 2x (y = sin(2x)) drawn on a grid and its key points marked
The graph of y = sin 2x (x in radians). Grey dots mark the intercepts and turning points.

Key features

Domainall real numbers (x ∈ ℝ)
Range−1 ≤ y ≤ 1
x-interceptsx = kπ/2 for every integer k
y-intercept(0, 0)
Turning pointsmaxima (π/4 + kπ, 1); minima (−π/4 + kπ, −1)
Asymptotesnone
Periodπ
Amplitude1
Symmetryodd function: f(−x) = −f(x), rotational symmetry of order 2 about the origin

How to sketch it

  1. Mark the x-intercepts x = kπ/2 for every integer k, the y-intercept (0, 0), the maxima (π/4 + kπ, 1); minima (−π/4 + kπ, −1).
  2. The domain is every real number, so the curve continues off both sides of your axes.
  3. Check the range: −1 ≤ y ≤ 1. Your sketch should not go anywhere else.
  4. Use the symmetry: draw the right-hand half and rotate it 180° about the origin.
  5. Draw one period (π long) and repeat it.

y = sin 2x is y = sin x stretched horizontally by scale factor 1/2: see the graph of y = sin x. Transform it with sliders for a, b, c and d in y = af(b(x − c)) + d.

Graph of y = 2 sin x + 1

A sine wave with amplitude 2 and principal axis y = 1, so it oscillates between −1 and 3.

Graph of y = 2 sin x + 1 (y = 2sin(x) + 1) drawn on a grid and its key points marked
The graph of y = 2 sin x + 1 (x in radians). Grey dots mark the intercepts and turning points.

Key features

Domainall real numbers (x ∈ ℝ)
Range−1 ≤ y ≤ 3
x-interceptswhere sin x = −1/2: x = −π/6 + 2kπ and x = 7π/6 + 2kπ
y-intercept(0, 1)
Turning pointsmaxima (π/2 + 2kπ, 3); minima (−π/2 + 2kπ, −1)
Asymptotesnone
Period2π
Amplitude2
Principal axisy = 1
Symmetryneither even nor odd

How to sketch it

  1. Mark the x-intercepts where sin x = −1/2: x = −π/6 + 2kπ and x = 7π/6 + 2kπ, the y-intercept (0, 1), the maxima (π/2 + 2kπ, 3); minima (−π/2 + 2kπ, −1).
  2. The domain is every real number, so the curve continues off both sides of your axes.
  3. Check the range: −1 ≤ y ≤ 3. Your sketch should not go anywhere else.
  4. Draw one period (2π long) and repeat it.

y = 2 sin x + 1 is y = sin x stretched vertically by scale factor 2, then translated up 1: see the graph of y = sin x. Transform it with sliders for a, b, c and d in y = af(b(x − c)) + d.

Graph of y = sec x

sec x = 1/cos x: U-shaped and ∩-shaped branches between vertical asymptotes where cos x = 0. It repeats every 2π.

Graph of y = sec x (y = sec(x)) drawn on a grid, with its asymptotes dashed and its key points marked
The graph of y = sec x (x in radians). Asymptotes are dashed; grey dots mark the intercepts and turning points.

Key features

Domainx ≠ π/2 + kπ (k an integer)
Rangey ≤ −1 or y ≥ 1
x-interceptsnone
y-intercept(0, 1)
Turning pointslocal minima (2kπ, 1); local maxima (π + 2kπ, −1)
Asymptotesvertical: x = π/2 + kπ
Period2π
Symmetryeven function: f(−x) = f(x), symmetric about the y-axis

How to sketch it

  1. Draw the asymptotes first as dashed lines: x = π/2 + kπ.
  2. Mark the y-intercept (0, 1), the local minima (2kπ, 1); local maxima (π + 2kπ, −1).
  3. Only draw the curve where it is defined: x ≠ π/2 + kπ (k an integer).
  4. Check the range: y ≤ −1 or y ≥ 1. Your sketch should not go anywhere else.
  5. Use the symmetry: draw the right-hand half and reflect it in the y-axis.
  6. Draw one period (2π long) and repeat it.

y = sec x is the reciprocal of y = cos x: see the graph of y = cos x. Transform it with sliders for a, b, c and d in y = af(b(x − c)) + d.

Graph of y = cosec x

cosec x = 1/sin x: branches between vertical asymptotes where sin x = 0, at every multiple of π. It repeats every 2π.

Graph of y = cosec x (y = csc(x)) drawn on a grid, with its asymptotes dashed and its key points marked
The graph of y = cosec x (x in radians). Asymptotes are dashed; grey dots mark the intercepts and turning points.

Key features

Domainx ≠ kπ (k an integer)
Rangey ≤ −1 or y ≥ 1
x-interceptsnone
y-interceptnone (sin 0 = 0, so x = 0 is not in the domain)
Turning pointslocal minima (π/2 + 2kπ, 1); local maxima (−π/2 + 2kπ, −1)
Asymptotesvertical: x = kπ (… −π, 0, π …)
Period2π
Symmetryodd function: f(−x) = −f(x), rotational symmetry of order 2 about the origin

How to sketch it

  1. Draw the asymptotes first as dashed lines: x = kπ (… −π, 0, π …).
  2. Mark the local minima (π/2 + 2kπ, 1); local maxima (−π/2 + 2kπ, −1).
  3. Only draw the curve where it is defined: x ≠ kπ (k an integer).
  4. Check the range: y ≤ −1 or y ≥ 1. Your sketch should not go anywhere else.
  5. Use the symmetry: draw the right-hand half and rotate it 180° about the origin.
  6. Draw one period (2π long) and repeat it.

y = cosec x is the reciprocal of y = sin x: see the graph of y = sin x. Transform it with sliders for a, b, c and d in y = af(b(x − c)) + d.

Graph of y = cot x

cot x = cos x / sin x: decreasing branches between vertical asymptotes at multiples of π. It repeats every π.

Graph of y = cot x (y = cot(x)) drawn on a grid, with its asymptotes dashed and its key points marked
The graph of y = cot x (x in radians). Asymptotes are dashed; grey dots mark the intercepts and turning points.

Key features

Domainx ≠ kπ (k an integer)
Rangeall real numbers (y ∈ ℝ)
x-interceptsx = π/2 + kπ
y-interceptnone (x = 0 is not in the domain)
Asymptotesvertical: x = kπ (… −π, 0, π …)
Periodπ
Symmetryodd function: f(−x) = −f(x), rotational symmetry of order 2 about the origin

How to sketch it

  1. Draw the asymptotes first as dashed lines: x = kπ (… −π, 0, π …).
  2. Mark the x-intercepts x = π/2 + kπ.
  3. Only draw the curve where it is defined: x ≠ kπ (k an integer).
  4. Check the range: all real numbers (y ∈ ℝ). Your sketch should not go anywhere else.
  5. Use the symmetry: draw the right-hand half and rotate it 180° about the origin.
  6. Draw one period (π long) and repeat it.

y = cot x is the reciprocal of y = tan x: see the graph of y = tan x. Transform it with sliders for a, b, c and d in y = af(b(x − c)) + d.

Notes and more graphs

Other families of graphs

All graphs of common functions · Graph transformations · Open the Grapher

The Grapher is our own free tool (graph.mathrevision.co.uk), built for IB, A Level and IGCSE students. It is not an exam calculator: practise on your own GDC for calculator papers.