MathematicsGrade 10–11

General sine function

Change the amplitude, period and shift of a sine curve with sliders or by dragging.

Loading simulation …

What is it about?

The general sine function

f(x)=a⋅sin⁡(b (x−c))+df(x) = a \cdot \sin\big(b\,(x - c)\big) + d

describes periodic processes such as oscillations, tides or the length of the day over a year. Each parameter has a clear meaning:

Parameter Meaning Effect on the graph
aa amplitude ∣a∣\lvert a \rvert vertical stretch; a<0a < 0 reflects in the midline
bb period p=2πbp = \frac{2\pi}{b} horizontal compression (b>1b > 1) or stretch (b<1b < 1)
cc horizontal shift by cc to the right (c>0c > 0) or left (c<0c < 0)
dd vertical shift midline y=dy = d

The range is W=[ d−∣a∣,  d+∣a∣ ]W = [\,d - |a|,\; d + |a|\,].

The x-values are in radians: π\pi corresponds to 180∘180^\circ, and a full period of the sine, 2π2\pi, corresponds to 360∘360^\circ.

Notation: some books write f(x)=a⋅sin⁡(bx+c)+df(x) = a \cdot \sin(bx + c) + d. There the horizontal shift is −cb-\frac{c}{b}, not cc.

The cosine is a shifted sine: cos⁡(x)=sin⁡ ⁣(x+π2)\cos(x) = \sin\!\left(x + \frac{\pi}{2}\right). That is why the simulation can treat both base functions the same way.

Explore

  1. Change aa and dd. Both act only vertically. Amplitude 3 Midline y = 1
  2. Change bb. Does the period get longer or shorter for larger bb? b = 2 b = 0.5
  3. Shift the graph with cc or drag the point (c,d)(c, d) on the midline where the period starts. c = π/4
  4. Drag the maximum (amplitude) and the hollow point at the end of the period directly in the coordinate system.
  5. Show that the cosine is a shifted sine. Sine shifted π/2 to the left – compare with the cosine.

Exercises

Exercise 1: Read off the parameters

Load exercise Determine the amplitude, period, shifts, range and the equation. The dashed curve is y=sin⁡xy = \sin x.

Show solution

Midline y=1y = 1, so d=1d = 1. Amplitude 2, so a=2a = 2. A full period is π\pi long, so b=2ππ=2b = \frac{2\pi}{\pi} = 2. The graph starts shifted π4\frac{\pi}{4} to the right:

f(x)=2sin⁡ ⁣(2(x−π4))+1,W=[−1, 3]f(x) = 2 \sin\!\left(2\left(x - \tfrac{\pi}{4}\right)\right) + 1, \qquad W = [-1,\, 3]

Any shift that differs by whole periods also works, e.g. c=5π4c = \frac{5\pi}{4}. In the notation a⋅sin⁡(b(x+c))+da \cdot \sin(b(x + c)) + d, c=−π4c = -\frac{\pi}{4}. Check your result under Display → Show values and guides.

Exercise 2: Period

What is the period of f(x)=sin⁡(3x)f(x) = \sin(3x)? How many complete oscillations fit into [0,2π][0, 2\pi]?

Show solution

p=2π3p = \frac{2\pi}{3}. The interval [0,2π][0, 2\pi] contains exactly 3 oscillations. Show in simulation

Exercise 3: Length of the day (modelling)

In Munich the longest day (around 21 June) is about 16 hours long, the shortest (around 21 December) about 8 hours 20 minutes. Describe the difference between the length of the day and 12 hours with a sine function (tt: time in months from 1 January).

Show solution
  • Mean: 16+8.332≈12.2\frac{16 + 8.33}{2} \approx 12.2, so midline d≈0.2d \approx 0.2 (difference from 12 h).
  • Amplitude: a≈16−8.332≈3.8a \approx \frac{16 - 8.33}{2} \approx 3.8.
  • Period 12 months: b=2π12≈0.52b = \frac{2\pi}{12} \approx 0.52.
  • Maximum at the end of June (t≈5.7t \approx 5.7). For the sine, the maximum lies a quarter period (3 months) after cc, so c≈2.7c \approx 2.7.

f(t)≈3.8⋅sin⁡(0.52 (t−2.7))+0.2f(t) \approx 3.8 \cdot \sin\big(0.52\,(t - 2.7)\big) + 0.2

Show the model in the simulation

Ideas for the classroom

  • Order: first the “vertical” parameters aa and dd, then cc, and bb last – many students find its effect the least intuitive.
  • Common stumbling blocks:
    • “Larger bb means a longer period”: in fact the period gets shorter.
    • The sign of cc is misread, just as with parabolas.
    • In sin⁡(bx+c)\sin(bx + c), cc is read directly as the shift.
  • π axis: by default the x-axis is labelled in multiples of π\pi and cc snaps to steps of π12\frac{\pi}{12}. Turn this off under Display for modelling tasks; cc can then be set as a decimal.
  • Exercise mode: switch off Show values and guides. Sliders, guides and results are then hidden, and the class reads the parameters off the graph. You can pass such a state on as a link via Share.
  • Introduction: the simulation “Unit circle” shows how the sine curve arises from motion on a circle.
  • Notation: some curricula and textbooks write a⋅sin⁡(b⋅(x+c))+da \cdot \sin(b \cdot (x + c)) + d. You can switch the simulation to this form under Display → Notation; a positive cc then shifts to the left.