The voltage in a wall socket does not stay constant: it makes 50 full oscillations every second, from positive values to negative ones and back again. In Azerbaijan the mains voltage has an effective value of 220 V and a peak value of 220√2 ≈ 311 V. The voltage follows the law u(t) = 311 · sin(100πt), and its graph is a chain of identical waves — a sine wave (a sinusoid). A pendulum, a load on a spring, a sound wave and the cabin of a turning wheel all “wave” in the same way. To understand these waves, we need to know the graphs of the trigonometric functions.
In the lesson “Radian measure, basic identities and reduction formulas”, every angle got a point P(cos α, sin α) on the unit circle, and the periodicity and parity formulas come from there too. Now we take one more step: we write the radian measure of the angle as an ordinary real number x. Each number x gives one number sin x — this is a function, and it has a graph. In this lesson we draw the graphs of the four trigonometric functions, read their properties off the graphs, and then learn to stretch, compress and shift a graph. The next lesson, “Trigonometric equations and inequalities”, relies on these graphs.
The function y = sin x and the sine wave
On a graph both axes must use the same unit, so x is taken in radians: the number x is an arc of length x on the unit circle, and sin x is the y-coordinate of the end point of that arc. As x grows from 0 to π/2, the point climbs to the top of the circle and sin x grows from 0 to 1; at x = π the sine is 0 again; between π and 2π the point is on the lower half of the circle and the sine is negative. After 2π ≈ 6.28 the point starts a second turn and everything repeats.
Periodic functionDefinition
A function f is periodic if there is a number T ≠ 0 such that for every x in the domain, x + T and x − T are also in the domain and f(x + T) = f(x). T is called a period. The smallest positive period is usually just called the period; for sin x it is 2π.
Why exactly 2π, with no smaller period? Suppose T is a period of the sine. Then sin(π/2 + T) = sin(π/2) = 1. The sine equals 1 only at the points π/2 + 2πn, so T = 2πn, and the smallest positive such T is 2π. That is why it is enough to draw the graph of the sine on the segment [0, 2π]: the rest is this one “wave” repeated to the right and to the left. Remember the five key points: at 0, π/2, π, 3π/2 and 2π the sine takes the values 0, 1, 0, −1, 0 — “zero, peak, zero, trough, zero”.
| x | sin x | cos x |
|---|---|---|
| 0 | 0 | 1 |
| π/6 | 1/2 | √3/2 |
| π/3 | √3/2 | 1/2 |
| π/2 | 1 | 0 |
| 2π/3 | √3/2 | −1/2 |
| 5π/6 | 1/2 | −√3/2 |
| π | 0 | −1 |
| 7π/6 | −1/2 | −√3/2 |
| 3π/2 | −1 | 0 |
| 11π/6 | −1/2 | √3/2 |
| 2π | 0 | 1 |
Where
- D(y)
- the domain: all real numbers (ℝ)
- E(y)
- the range (the set of values)
- T
- the smallest positive period
The sine is an odd function, so the sine wave is symmetric about the origin.
- Zeros: sin x = 0 when x = πn (n ∈ ℤ) — the graph crosses the x-axis at 0, ±π, ±2π, …
- Greatest and least values: sin x = 1 at x = π/2 + 2πn, and sin x = −1 at x = −π/2 + 2πn.
- Monotonicity: increasing on the segments [−π/2 + 2πn, π/2 + 2πn], decreasing on the segments [π/2 + 2πn, 3π/2 + 2πn].
- Sign: sin x > 0 on the intervals (2πn, π + 2πn), and sin x < 0 on (π + 2πn, 2π + 2πn).
Comparing with monotonicity
Problem
Which number is greater?
1) sin(π/7) or sin(π/5)
2) sin 2 or sin 3
3) sin(−1) or sin(−1.5)
Show solutionHide solution
Solution
2) π/2 ≈ 1.57 < 2 < 3 < 3π/2 ≈ 4.71 — both numbers lie in a segment where the sine decreases. Since 2 < 3, sin 2 > sin 3 (≈ 0.909 and ≈ 0.141).
3) −π/2 ≈ −1.57 < −1.5 < −1 — a segment where the sine increases. Since −1.5 < −1, sin(−1.5) < sin(−1), so sin(−1) is greater (≈ −0.841 versus ≈ −0.997).
Finding the range
Problem
Find the range of the function:
1) y = 3 sin x − 1
2) y = 5 − 2 sin x
3) y = sin²x + 2
Show solutionHide solution
Solution
1) Multiply by 3: −3 ≤ 3 sin x ≤ 3; subtract 1: −4 ≤ y ≤ 2. E(y) = [−4, 2].
2) Multiplying by −2 reverses the inequality signs: −2 ≤ −2 sin x ≤ 2; add 5: 3 ≤ y ≤ 7. E(y) = [3, 7].
3) A square cannot be negative: 0 ≤ sin²x ≤ 1, so 2 ≤ y ≤ 3. E(y) = [2, 3].
y = cos x: the same wave, shifted
Recall one of the reduction formulas: sin(x + π/2) = cos x. It says that the cosine at x equals the sine π/2 further to the right: whatever value the sine takes at x + π/2, the cosine takes π/2 earlier, at x. So the graph of the cosine is the sine wave shifted π/2 to the left — it is a sine wave too. The cosine is an even function, so its graph is symmetric about the y-axis: the wave starts at its top point at x = 0.
Where
- D(y)
- the domain
- E(y)
- the range (the set of values)
- T
- the smallest positive period
- cos x = sin(x + π/2)cos x = sin(x + π/2)
- the cosine wave is the sine wave shifted π/2 to the left
Zeros: x = π/2 + πn; greatest value 1 (at x = 2πn), least value −1 (at x = π + 2πn); decreasing on [2πn, π + 2πn], increasing on [π + 2πn, 2π + 2πn] (n ∈ ℤ).
Interactive
Comparing cosines
Problem
Compare:
1) cos 1 and cos 1.2
2) cos(−π/5) and cos(π/4)
3) cos 1 and sin 1
Show solutionHide solution
Solution
2) The cosine is even: cos(−π/5) = cos(π/5). Since π/5 < π/4 and both lie in [0, π], cos(−π/5) > cos(π/4).
3) By a reduction formula, cos 1 = sin(π/2 − 1) ≈ sin 0.571. Since 0.571 < 1 and both lie where the sine increases, cos 1 < sin 1 (≈ 0.540 and ≈ 0.841).
Greatest and least values on a segment
Problem
Find the greatest and least values of the function on the given segment:
1) y = sin x on [π/6, 4π/3]
2) y = cos x on [−π/3, 3π/4]
3) y = 2 cos x + 1 on [0, π]
Show solutionHide solution
Solution
1) π/2 lies inside the segment: the greatest value is 1. At the ends sin(π/6) = 1/2 and sin(4π/3) = −√3/2 ≈ −0.87. The sine decreases from π/2 to 4π/3, so the least value is −√3/2.
2) x = 0 lies inside the segment: the greatest value is 1. At the ends cos(−π/3) = 1/2 and cos(3π/4) = −√2/2, so the least value is −√2/2.
3) On [0, π] cos x decreases, so y decreases too: the greatest value is y(0) = 2 · 1 + 1 = 3, the least is y(π) = 2 · (−1) + 1 = −1.
y = tan x and y = cot x: graphs with asymptotes
The fraction tan x = sin x / cos x loses its meaning when cos x = 0, that is at the points x = π/2 + πn. As x approaches π/2 from the left, sin x approaches 1 and cos x approaches 0 while staying positive, so the fraction grows without bound: tan x → +∞. From the right cos x is negative and tan x → −∞. The graph gets endlessly close to the line x = π/2 but never meets it. The period of the tangent is π, so the same “branch” repeats every π; the tangent is odd, and its graph is symmetric about the origin.
Vertical asymptoteDefinition
If the graph gets arbitrarily close to the line x = a while the function values go to +∞ or −∞, the line x = a is called a vertical asymptote of the graph. For y = tan x the vertical asymptotes are the lines x = π/2 + πn; for y = cot x they are the lines x = πn.
Where
- x ≠ π/2 + πnx ≠ π/2 + πn
- the domain: the points where cos x = 0 are removed
- E(y) = ℝ
- the tangent takes every real value
- T
- the smallest positive period
Zeros: x = πn. On each interval (−π/2 + πn, π/2 + πn) the tangent increases and takes every real value exactly once. It has no greatest or least value.
Where
- x ≠ πn
- the domain: the points where sin x = 0 are removed
- cot x = −tan(x − π/2)cot x = −tan(x − π/2)
- the graph of the cotangent is the tangent graph shifted π/2 to the right and reflected in the x-axis
Zeros: x = π/2 + πn. The cotangent is odd and decreases on each interval (πn, π + πn).
Interactive
| Property | y = sin x | y = cos x | y = tan x | y = cot x |
|---|---|---|---|---|
| Domain | ℝ | ℝ | x ≠ π/2 + πn | x ≠ πn |
| Range | [−1, 1] | [−1, 1] | ℝ | ℝ |
| Period | 2π | 2π | π | π |
| Parity | odd | even | odd | odd |
| Zeros | πn | π/2 + πn | πn | π/2 + πn |
| Increasing on | [−π/2 + 2πn, π/2 + 2πn] | [π + 2πn, 2π + 2πn] | (−π/2 + πn, π/2 + πn) | — |
| Decreasing on | [π/2 + 2πn, 3π/2 + 2πn] | [2πn, π + 2πn] | — | (πn, π + πn) |
Domains and comparisons
Problem
1) Find the domain of y = tan 2x.
2) Find the domain of y = cot(x − π/3).
3) Compare: tan 1 and tan 1.5; tan 100° and tan 170°; cot 2 and cot 3.
Show solutionHide solution
Solution
2) The argument of the cotangent cannot be πn: x − π/3 ≠ πn, so x ≠ π/3 + πn.
3) 1 and 1.5 lie on the same branch (−π/2, π/2) (π/2 ≈ 1.57), where the tangent increases: tan 1 < tan 1.5 (≈ 1.56 and ≈ 14.1). 100° and 170° lie on the same branch (90°, 270°): tan 100° < tan 170° (≈ −5.67 and ≈ −0.18). 2 and 3 lie on the branch (0, π) of the cotangent, where it decreases: cot 2 > cot 3 (≈ −0.46 and ≈ −7.02).
Even and odd functions
Problem
Decide whether the function is even, odd or neither:
1) y = x · sin x
2) y = sin x + tan x
3) y = cos x + sin x
4) y = x² · tan x
Show solutionHide solution
Solution
1) f(−x) = (−x) · sin(−x) = (−x) · (−sin x) = x sin x = f(x) — even.
2) f(−x) = −sin x − tan x = −f(x) — odd.
3) f(−x) = cos x − sin x, which is neither f(x) nor −f(x) (for example, f(π/4) = √2 but f(−π/4) = 0) — neither.
4) f(−x) = x² · (−tan x) = −f(x) — odd. Rule: odd · odd = even, even · odd = odd.
Transforming the graphs: y = A·sin(kx + b) + c
In the lesson “The quadratic function and its graph” we obtained the parabola y = a(x − m)² + n from y = x² by shifting and stretching. The same four moves work for a sine wave; each just has its own name. A multiplies every value by A: the wave is stretched vertically, its height — the amplitude — becomes |A|, and if A < 0 the graph is also reflected in the x-axis. k “speeds up” the argument: y = sin kx takes at x the value that the sine takes at kx, so the wave is compressed horizontally k times and the period becomes 2π/|k|.
b gives the phase shift. Take k out of the bracket: sin(kx + b) = sin(k(x + b/k)). So the graph of y = sin kx moves b/k to the left (to the right if b/k < 0); the “start” of the wave comes from the equation kx + b = 0: x₀ = −b/k. Finally, c lifts the whole graph by c: the midline of the wave becomes y = c, and the values run from c − |A| to c + |A|.
Where
- A
- sets the amplitude |A|; for A < 0 the graph is reflected in the x-axis
- k
- the horizontal compression factor (k ≠ 0); the period is T = 2π/|k|
- b
- the initial phase; the wave “starts” at x₀ = −b/k
- c
- the vertical shift; the midline is y = c
The same rules hold for y = A · cos(kx + b) + c.
Reading the parameters
Problem
Find the amplitude, the period and the range:
1) y = 3 sin 2x + 1
2) y = −2 cos(x/3)
3) y = 4 − cos πx
Show solutionHide solution
Solution
2) A = −2: amplitude |−2| = 2 (the graph is reflected in the x-axis); k = 1/3: T = 2π/(1/3) = 6π; E(y) = [−2, 2].
3) A = −1, k = π, c = 4: amplitude 1, T = 2π/π = 2, E(y) = [3, 5]. A period can be a number without π!
Where
- k
- the coefficient of x (k ≠ 0)
- T
- the smallest positive period
The period of a sum: the smallest number that contains both periods, T₁ and T₂, a whole number of times (their least common multiple). For π and 2π/3 it is 2π: 2π = 2 · π = 3 · (2π/3).
Finding the period
Problem
Find the smallest positive period of the function:
1) y = tan 3x
2) y = cos(2x/5)
3) y = sin 2x + cos 3x
4) y = sin²x
Show solutionHide solution
Solution
2) k = 2/5: T = 2π/(2/5) = 5π.
3) sin 2x has period π and cos 3x has period 2π/3. The smallest number that contains both a whole number of times is 2π (π twice, 2π/3 three times).
4) By the power-reduction formula from the lesson “Addition, double-angle and half-angle formulas”, sin²x = (1 − cos 2x)/2 — a transformed cos 2x, whose period is π. The graph shows it too: sin²x is never negative and repeats every π.
Any graph y = A · sin(kx + b) + c can be sketched without a table of values, from five key points:
Read the parameters
Find A, k, b and c; if necessary, first bring the function to the form y = A · sin(kx + b) + c.
Find the start and the period
x₀ = −b/k and T = 2π/|k|. Split the period into four equal parts: the step is T/4.
Mark five points
At x₀, x₀ + T/4, x₀ + T/2, x₀ + 3T/4 and x₀ + T the values of y are c, c + A, c, c − A, c: midline, peak, midline, trough, midline (for A > 0).
Draw the wave and continue it
Join the points with a smooth wave and repeat it period by period in both directions.
Check
Substitute one point, for example x = 0, into the formula and compare the value with the graph.
A graph from five points
Problem
Sketch the graph of y = 2 sin(2x − π/3) + 1 from five key points.
Show solutionHide solution
Solution
Start: 2x − π/3 = 0 ⇒ x₀ = π/6 (not π/3!). Period: T = 2π/2 = π, step T/4 = π/4.
Key points: (π/6, 1), (5π/12, 3), (2π/3, 1), (11π/12, −1), (7π/6, 1).
Midline y = 1, E(y) = [−1, 3].
Check: y(0) = 2 sin(−π/3) + 1 = 1 − √3 ≈ −0.73. The point x = 0 lies to the left of x₀ = π/6, between a trough and the start, so the value is below the midline — it fits.
The formula from the graph
Problem
1) A sine wave has greatest value 5, least value −1 and period 4π; at x = 0 it crosses its midline going up. Write its formula in the form y = A sin kx + c.
2) A graph has greatest value 4, reached at x = 0, least value −2 and period π. Write its formula with a cosine.
Show solutionHide solution
Solution
2) A = (4 − (−2))/2 = 3, c = (4 + (−2))/2 = 1, k = 2π/π = 2. Starting at a peak is how the cosine starts: y = 3 cos 2x + 1.
Check: y(0) = 3 · 1 + 1 = 4, and the least value is 1 − 3 = −2.
Interactive
Harmonic oscillations
There is a reason why sine waves are everywhere: the height of a point turning at a constant rate is a sine function of time. A point moving round the unit circle with constant angular speed has turned through the angle ωt + φ₀ at time t, and its y-coordinate is sin(ωt + φ₀). A load on a spring, the small swings of a pendulum, alternating current and sound follow the same law.
Harmonic oscillationDefinition
A change of a quantity with time by the law x(t) = A · sin(ωt + φ₀) (or the same with a cosine). Here A is the amplitude, ω the angular frequency and φ₀ the initial phase.
Where
- T
- the period — the time of one full oscillation, s
- ω
- the angular frequency, rad/s
- ν
- the frequency — full oscillations per second, Hz
This is exactly the formula T = 2π/|k|: the time t plays the role of x and ω the role of k.
The voltage in a socket
Problem
The voltage in a socket changes by the law u(t) = 311 · sin(100πt) (u in volts, t in seconds). Find the amplitude, the period and the frequency. What is the voltage at t = 0.0025 s?
Show solutionHide solution
Solution
T = 2π/(100π) = 0.02 s, ν = 1/T = 50 Hz — 50 full oscillations per second.
At t = 0.0025 s: 100π · 0.0025 = π/4, u = 311 · sin(π/4) = 311 · √2/2 ≈ 220 V.
Note: in every period the voltage reaches +311 V once and −311 V once and passes through zero twice, so the current changes direction 100 times a second.
The observation wheel
Problem
An observation wheel has a radius of 28 m, its centre is 30 m above the ground, and it makes one turn in 30 minutes. Elvin gets into a cabin at the lowest point, and his height is h(t) = 30 − 28 cos(πt/15) (h in metres, t in minutes). Find the period, the greatest and least heights, h(5) and h(10).
Show solutionHide solution
Solution
A = −28, c = 30: the height changes from 30 − 28 = 2 m (t = 0, the lowest point) to 30 + 28 = 58 m (t = 15 min, the highest point).
h(5) = 30 − 28 cos(π/3) = 30 − 14 = 16 m; h(10) = 30 − 28 cos(2π/3) = 30 + 14 = 44 m.
The negative A makes sense here: the wave starts at a trough, not at a peak. The question “When will Elvin be 44 m high?” is already an equation — we solve it in the next lesson.
Remember
- sin x and cos x: D = ℝ, E = [−1, 1], period 2π; sin is odd, cos is even; cos x = sin(x + π/2), so the cosine wave is the sine wave shifted π/2 to the left.
- The sine increases on [−π/2 + 2πn, π/2 + 2πn], the cosine decreases on [2πn, π + 2πn]; zeros: πn for sin, π/2 + πn for cos.
- tan x: x ≠ π/2 + πn; cot x: x ≠ πn; both have range ℝ and period π and both are odd; between the asymptotes tan increases and cot decreases.
- y = A·sin(kx + b) + c: amplitude |A|, period 2π/|k| (π/|k| for tan and cot), start x₀ = −b/k, E = [c − |A|, c + |A|].
- From a graph to a formula: A = (max − min)/2, c = (max + min)/2, k = 2π/T.
- A harmonic oscillation x(t) = A·sin(ωt + φ₀): T = 2π/ω, ν = 1/T; the mains voltage u = 311·sin(100πt) V has a frequency of 50 Hz.