Free preview
82 lessons
Mathematical Foundations for ML
Free preview
Mathematical Foundations for ML · 82 lessons
No surprise gaps
Actually remember it
Skip what you know
One subscription. All learning paths included.
Our content is best on a larger screen
The sine graph
On the unit circle, the -coordinate of the terminal point is . As increases from to , that -coordinate rises to , falls back through zero to , and returns to zero, tracing out a smooth wave. The graph of records this motion on a standard set of axes.
Drag the purple point around the unit circle. The right-hand graph is
Five key points mark out one complete cycle:
Two numbers measure the wave itself: how long one full cycle takes, and how far it reaches above and below the centre line. We call these the period and the amplitude.
Definition
The period of is , the length of one complete cycle. The amplitude is , the distance from the centre line () to a peak or trough.
Because the unit circle has no start or end, the wave repeats identically in both directions. The portion from to is one copy of a pattern that extends forever in each direction.
Practice questions
4 questions
What is the value of ?
Select the correct answer:
+ 3 more questions
The cosine graph
The sine graph tracks the -coordinate of the unit-circle point. The cosine graph tracks the -coordinate instead. As increases from to , starts at , falls through zero, reaches , and returns to . The result is a wave with the same shape as sine, shifted along the horizontal axis.
Cosine starts at its maximum (), crosses zero at , hits its minimum () at , crosses zero again at , and returns to at . Like sine, it has period and amplitude .
Comparing the two curves, every feature of cosine appears earlier than the same feature of sine. The cosine peak is at while the sine peak is at ; cosine crosses zero at while sine crosses zero at ; and so on. This relationship is captured by the identity:
Definition
Cosine is sine shifted left by . Equivalently, cosine "leads" sine - it reaches every landmark earlier.
Practice questions
4 questions
What is ?
Select the correct answer:
+ 3 more questions
Domain and range
Sine and cosine accept any real number as input - the wave keeps oscillating no matter how large or negative becomes. Their outputs, however, are tightly bounded: a unit-circle point has coordinates on a circle of radius , so neither coordinate can exceed in size or fall below .
Definition
Both and have domain (equivalently ) and range .
To tell the curves apart without labels, check the starting value: (the curve starts on the axis), while (the curve starts at the top).
Practice questions
4 questions
What are the domain and range of ?
Select the correct answer:
+ 3 more questions
Number of solutions to and
Suppose we want to find every in that satisfies for some target value . The number of solutions is determined entirely by where sits relative to the range .
Visually, each value of corresponds to a horizontal line . The number of solutions is the number of places that line meets the sine curve.
Choose an equation, then drag the slider to change
2 solutions in
The same three cases apply equally to both functions. Switching the toggle changes where the solutions sit, not how many there are.
Definition
For both and :
Advanced
Practice questions
4 questions
How many values of in satisfy ?
Select the correct answer:
+ 3 more questions