Graphs of Trigonometric Functions
Theory
The graphs of \(y=\sin x\) and \(y=\cos x\) are waves with period \(2\pi\) and amplitude \(1\); the graph of \(y=\tan x\) has period \(\pi\) and vertical asymptotes where \(\cos x=0\). This Year 11 Mathematics Advanced page covers the key points, domain and range, odd and even symmetry, and how to use the graphs to count solutions of equations and to find the range on a restricted domain.
For any angle \(x\), the point at angle \(x\) on the unit circle is \((\cos x,\sin x)\). As \(x\) increases, this point goes round and round the circle, so the values of \(\sin x\) and \(\cos x\) repeat. Plotting \(y=\sin x\) and \(y=\cos x\) against \(x\) gives waves. The angle \(x\) on the horizontal axis can be in degrees or in radians; check the scale.
A function is periodic if its graph repeats. The period is the length of one complete cycle: \(2\pi\) (\(360^\circ\)) for \(\sin x\) and \(\cos x\), so \(\sin(x+2\pi)=\sin x\). The amplitude is the greatest distance of the graph from its centre line. For \(y=\sin x\) and \(y=\cos x\) the centre line is \(y=0\), the maximum is \(1\) and the minimum is \(-1\), so the amplitude is \(1\).
The domain of \(\sin x\) and \(\cos x\) is all real \(x\) (every angle gives a point on the circle) and the range is \(-1\le y\le 1\) (a coordinate on the unit circle).
Since \(\tan x=\dfrac{\sin x}{\cos x}\), \(y=\tan x\) is undefined where \(\cos x=0\), at \(x=\dfrac{\pi}{2}+k\pi\) (\(k\) an integer). Near these values \(\tan x\) becomes very large, positive or negative, so the graph has vertical asymptotes there. Its \(x\)-intercepts are where \(\sin x=0\). It repeats every \(\pi\) (\(180^\circ\)), its range is all real numbers, and it has no maximum or minimum, so it has no amplitude.
A function is even if \(f(-x)=f(x)\) (graph symmetric about the \(y\)-axis) and odd if \(f(-x)=-f(x)\) (point symmetry about the origin). Since \(\cos(-x)=\cos x\), \(\sin(-x)=-\sin x\) and \(\tan(-x)=-\tan x\), \(y=\cos x\) is even and \(y=\sin x\) and \(y=\tan x\) are odd.
The solutions of an equation such as \(\sin x=0.3\) are the \(x\)-values where the line \(y=0.3\) meets the curve \(y=\sin x\), so a graph shows how many solutions there are in a given domain.
Key features (\(k\) is an integer; in degrees the asymptotes of \(\tan x\) are \(x=90^\circ+k\times180^\circ\)):
| \(y=\sin x\) | \(y=\cos x\) | \(y=\tan x\) | |
|---|---|---|---|
| Period | \(2\pi\) (\(360^\circ\)) | \(2\pi\) (\(360^\circ\)) | \(\pi\) (\(180^\circ\)) |
| Amplitude | \(1\) | \(1\) | none |
| Domain | all real \(x\) | all real \(x\) | all real \(x\), \(x\ne\dfrac{\pi}{2}+k\pi\) |
| Range | \(-1\le y\le 1\) | \(-1\le y\le 1\) | all real \(y\) |
| \(y\)-intercept | \(0\) | \(1\) | \(0\) |
| \(x\)-intercepts, \(0\le x\le2\pi\) | \(0,\ \pi,\ 2\pi\) | \(\dfrac{\pi}{2},\ \dfrac{3\pi}{2}\) | \(0,\ \pi,\ 2\pi\) |
| Maximum, \(0\le x\le2\pi\) | \(\left(\dfrac{\pi}{2},1\right)\) | \((0,1)\), \((2\pi,1)\) | none |
| Minimum, \(0\le x\le2\pi\) | \(\left(\dfrac{3\pi}{2},-1\right)\) | \((\pi,-1)\) | none |
| Asymptotes | none | none | \(x=\dfrac{\pi}{2}+k\pi\) |
| Symmetry | odd | even | odd |
Periodic properties:
Odd and even:
Reading and sketching the graphs
- Mark the key points of one period: for \(\sin x\), \(0,1,0,-1,0\) at \(x=0,\dfrac{\pi}{2},\pi,\dfrac{3\pi}{2},2\pi\); for \(\cos x\), \(1,0,-1,0,1\); for \(\tan x\), the intercepts \(0,\pi,\ldots\) and the asymptotes \(\dfrac{\pi}{2},\dfrac{3\pi}{2},\ldots\)
- Repeat the pattern with the period (\(2\pi\), or \(\pi\) for \(\tan x\)) to cover the whole domain, in both directions if it includes negative \(x\).
Counting solutions of \(f(x)=k\)
- Sketch \(y=f(x)\) over the given domain and the line \(y=k\).
- Count the intersections. Count in one period and use the period; for \(\tan x\), use the asymptotes to split the domain into branches (each full branch takes every value exactly once). For a sloping line such as \(y=\dfrac{x}{4}\), first use \(-1\le\sin x\le1\) to restrict \(x\).
Range on a restricted domain
- Check where the graph increases and decreases, and whether a maximum, minimum or asymptote lies inside the domain.
- Evaluate at the endpoints and at any turning point inside; the least and greatest of these give the range.
Odd or even; intersections
- Odd/even: simplify \(f(-x)\) with \(\sin(-x)=-\sin x\), \(\cos(-x)=\cos x\); compare it with \(f(x)\) and \(-f(x)\).
- Intersections of \(y=\sin x\) and \(y=\pm\cos x\): set them equal, divide by \(\cos x\) (which is not \(0\) there) to get \(\tan x=\pm1\), then use the quadrants and the related angle.
One period from \(0\) to \(2\pi\), repeated to the left:
\(\sin x=0\) at \(x=-2\pi,\ -\pi,\ 0,\ \pi,\ 2\pi\).
\(\sin x=1\) at \(x=-\dfrac{3\pi}{2},\ \dfrac{\pi}{2}\).
\(\sin x=-1\) at \(x=-\dfrac{\pi}{2},\ \dfrac{3\pi}{2}\).
(Subtract the period: \(\dfrac{\pi}{2}-2\pi=-\dfrac{3\pi}{2}\) and \(\dfrac{3\pi}{2}-2\pi=-\dfrac{\pi}{2}\).)
\(\therefore\) \(x\)-intercepts: \(-2\pi,\ -\pi,\ 0,\ \pi,\ 2\pi\)
Maximum points: \(\left(-\dfrac{3\pi}{2},1\right)\), \(\left(\dfrac{\pi}{2},1\right)\)
Minimum points: \(\left(-\dfrac{\pi}{2},-1\right)\), \(\left(\dfrac{3\pi}{2},-1\right)\)
(i) \(\cos x=0.7\) for \(-2\pi\le x\le2\pi\)
(ii) \(\tan x=-1\) for \(0\le x\le3\pi\)
(i) In one period, \(0\le x\le2\pi\), the line \(y=0.7\) meets \(y=\cos x\) twice (once in quadrant 1, once in quadrant 4, where \(\cos x\gt 0\)). The domain \(-2\pi\le x\le2\pi\) is two periods, so there are \(2\times2=4\) solutions.
(ii) The asymptotes \(x=\dfrac{\pi}{2},\ \dfrac{3\pi}{2},\ \dfrac{5\pi}{2}\) split \(0\le x\le3\pi\) into four pieces:
\(0\le x\lt\dfrac{\pi}{2}\): \(\tan x\ge0\), no solution.
\(\dfrac{\pi}{2}\lt x\lt\dfrac{3\pi}{2}\): a full branch, one solution.
\(\dfrac{3\pi}{2}\lt x\lt\dfrac{5\pi}{2}\): a full branch, one solution.
\(\dfrac{5\pi}{2}\lt x\le3\pi\): \(\tan x\) rises from \(-\infty\) to \(0\), one solution.
(They are \(x=\dfrac{3\pi}{4},\ \dfrac{7\pi}{4},\ \dfrac{11\pi}{4}\), one period \(\pi\) apart.)
\(\therefore\) (i) \(4\) solutions (ii) \(3\) solutions
(i) \(y=\sin x\) for \(\dfrac{\pi}{6}\le x\le\dfrac{5\pi}{4}\)
(ii) \(y=\tan x\) for \(-\dfrac{\pi}{3}\le x\le\dfrac{\pi}{6}\)
(i) \(\sin x\) increases up to its maximum at \(x=\dfrac{\pi}{2}\), which is inside the domain, then decreases. Check the turning point and both endpoints:
| \(\sin\dfrac{\pi}{6}\) | \(=\) | \(\dfrac{1}{2}\) |
| \(\sin\dfrac{\pi}{2}\) | \(=\) | \(1\) |
| \(\sin\dfrac{5\pi}{4}\) | \(=\) | \(-\sin\dfrac{\pi}{4}=-\dfrac{1}{\sqrt2}\) |
\(\therefore\) the range is \(-\dfrac{1}{\sqrt2}\le y\le1\).
(ii) Between the asymptotes \(x=\pm\dfrac{\pi}{2}\), \(\tan x\) is increasing, and no asymptote lies in the domain:
| \(\tan\left(-\dfrac{\pi}{3}\right)\) | \(=\) | \(-\sqrt3\) |
| \(\tan\dfrac{\pi}{6}\) | \(=\) | \(\dfrac{1}{\sqrt3}\) |
\(\therefore\) the range is \(-\sqrt3\le y\le\dfrac{1}{\sqrt3}\).
(ii) The graphs of \(y=\sin x\) and \(y=-\cos x\) are drawn for \(0\le x\le2\pi\). Find the exact coordinates of their points of intersection.
(i) Find \(f(-x)\) using \(\cos(-x)=\cos x\):
| \(f(-x)\) | \(=\) | \((-x)\cos(-x)\) |
| \(\) | \(=\) | \(-x\cos x\) |
| \(\) | \(=\) | \(-f(x)\) |
\(\therefore f(x)=x\cos x\) is odd.
(ii) At an intersection \(\sin x=-\cos x\). Here \(\cos x\ne0\) (if \(\cos x=0\) then \(\sin x=\pm1\ne0\)), so divide by \(\cos x\):
| \(\tan x\) | \(=\) | \(-1\) |
\(\tan x\lt 0\) in quadrants 2 and 4, related angle \(\dfrac{\pi}{4}\):
| \(x\) | \(=\) | \(\pi-\dfrac{\pi}{4}=\dfrac{3\pi}{4}\ \ \text{or}\ \ 2\pi-\dfrac{\pi}{4}=\dfrac{7\pi}{4}\) |
| \(y\) | \(=\) | \(\sin\dfrac{3\pi}{4}=\dfrac{1}{\sqrt2}\ \ \text{or}\ \ \sin\dfrac{7\pi}{4}=-\dfrac{1}{\sqrt2}\) |
\(\therefore\) the points are \(\left(\dfrac{3\pi}{4},\dfrac{1}{\sqrt2}\right)\) and \(\left(\dfrac{7\pi}{4},-\dfrac{1}{\sqrt2}\right)\).
Common pitfalls
Frequently asked questions
What is the period of sin x, cos x and tan x?
The period of sin x and cos x is 2 pi radians, or 360 degrees. The period of tan x is pi radians, or 180 degrees.
What is the amplitude of y = sin x?
The amplitude is 1. It is the greatest distance of the graph from its centre line y = 0: the maximum value is 1 and the minimum is minus 1. The same is true for y = cos x.
Why does the graph of y = tan x have asymptotes?
tan x equals sin x divided by cos x, which is undefined when cos x = 0, at x = pi over 2 + k pi. Near these values tan x becomes very large, positive or negative, so the graph has vertical asymptotes there.
Is sin x an odd or even function?
sin x is odd, because sin of minus x equals minus sin x, so its graph has point symmetry about the origin. cos x is even and tan x is odd.
What are the domain and range of y = tan x?
The domain is all real x except x = pi over 2 + k pi, where k is an integer. The range is all real numbers, which is why tan x has no amplitude.
How do you find the number of solutions of a trig equation from a graph?
Draw the graph over the given domain and the horizontal line y = k. Each intersection is one solution. Count the intersections in one period, then use the period to cover the whole domain.