Trig graphs — sin graph, cos graph and tan graph

Choose a function and change A, k, φ and B: the calculator draws y = A · f(kx + φ) + B — from the sin graph to the tan graph — shows the original curve as a dashed line, and works out the period, the range and the roots.

y = sin x
−2π −3π/2 −π −π/2 π/2 π 3π/2 2π −2 −1 1 2 xy (0, 0)

Drag the sliders and the graph and its properties update straight away. Drag the graph with the mouse to move it, and use the buttons in the top right to zoom in and out.

Function
y = sin x

The period of y = sin x is 2π.

Step-by-step breakdown
  1. Domain(−∞, +∞)
  2. Range[−1, 1]
  3. PeriodT = 2π
  4. Amplitude1
  5. Roots (x-intercepts)x = πn, n ∈ ℤ
  6. Odd or evenodd

Formula

y=A · f(kx + φ) + B

A stretches the graph parallel to the y-axis (the amplitude is |A|), k stretches or squashes it parallel to the x-axis (the period is 2π/k for sin and cos, π/k for tan and cot), φ moves it left or right, and B moves it up or down.

How we got there

y = sin x

The x-axis is marked in radians — π/2, π, 3π/2 — as at A level. At GCSE the same trig graphs are drawn in degrees: π/2 = 90°, π = 180°, 2π = 360°.

How to draw a trig graph

  1. Start from the basic graph

    For y = 2 sin(2x) + 1, this is the sin graph y = sin x.

  2. Squash it using k

    The 2 in front of x halves the period, from 2π to π: a stretch parallel to the x-axis, scale factor 1/2.

  3. Stretch it using A

    The 2 in front of sin doubles the amplitude: the values now go from −2 to 2.

  4. Translate it using B

    +1 moves the graph up by 1: the range becomes [−1, 3], or −1 ≤ y ≤ 3.

Still mixing up the sin and cos graphs? Find a maths tutor for Year 11

Where the sine curve comes from

As a point moves round the unit circle, its y-coordinate changes like sin x. Spread that motion out over time and you get a wave.

That is why sine curves describe oscillations: a pendulum, sound, alternating current. A is the amplitude, k is linked to the frequency and φ is the phase.

How to read the graph

The period is the distance after which the graph repeats itself; the amplitude is half the distance between the highest and lowest points.

Trig equations and inequalities can be solved from the graph: see where the curve is above or below the line you need. At A level, this is how you find every solution in a given interval, such as 0 ≤ x ≤ 2π.

Common mistakes

  • Thinking sin 2x has period 4π: k divides the period, it does not multiply it.
  • Getting the direction of the translation wrong: the graph of sin(x + π/3) moves to the left, not the right.
  • Looking for tan x at π/2 + πn: tan is undefined there.

Table of values

Values of the function at a few points, so you can plot the graph by hand.

y = sin x

xy
00
π/60.5
π/40.7071
π/30.866
π/21
2π/30.866
π0

Frequently asked questions

The graph of y = sin x is a wave, the sine curve; y = cos x is the same wave translated π/2 (90°) to the left; y = tan x and y = cot x are repeating curves with vertical asymptotes.

sin x and cos x have period 2π (360°); tan x and cot x have period π (180°). For y = f(kx), the period is divided by |k|: for sin 3x, it is 2π/3.

[−1, 1], or −1 ≤ y ≤ 1. For y = A sin x + B, it is [B − |A|, B + |A|]. tan and cot take every value.

At x = πn, n ∈ ℤ: that is, 0, ±π, ±2π and so on. The roots of cos x are at x = π/2 + πn, n ∈ ℤ.

tan x = sin x / cos x is undefined where cos x = 0, that is, at x = π/2 + πn (90°, 270° and so on). On the graph, these are vertical asymptotes.

Only cos: cos(−x) = cos x, so its graph is symmetrical in the y-axis. sin, tan and cot are odd: their graphs have rotational symmetry about the origin.

Struggling with trigonometry?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.