Interactive Sine Function Explorer
Explore the sine function:
\[
f(x) = a \cdot \sin(b \cdot x)
\]
Where:
- a = amplitude (controls the height of the wave)
- b = frequency (controls how many cycles occur in 2π)
The first derivative (using the chain rule) is:
\[
f'(x) = a \cdot b \cdot \cos(b \cdot x)
\]
(amplitude)
(frequency)
f(x) = a·sin(b·x) - Sine Function
f'(x) = a·b·cos(b·x) - First Derivative (Cosine)
Tangent Line at Selected Point
Current x-value (radians):
-6.28
f(x) = a·sin(b·x) =
0.00
f'(x) = a·b·cos(b·x) =
1.00
Slope of tangent:
1.00
Learning Activities & Exploration Guide
- Basic Exploration: Click "Update Graph". Observe the blue sine curve (f(x)), red cosine curve (f'(x)), and black tangent line. Change a and b values to see how the graphs transform.
- Local Extrema: Use the slider to position the tangent line at local maximum or minimum points of the sine function. Notice the slope is zero at these points. What is f'(x) at these points?
- Increasing/Decreasing Intervals:
- Start from a minimum and move to the next maximum. The function increases. What is the sign of f'(x) in this interval?
- Start from a maximum and move to the next minimum. The function decreases. What is the sign of f'(x) in this interval?
- Amplitude Effect (parameter a): Change only parameter a. How does it affect both f(x) and f'(x)? Try a = 0.5, a = 1, a = 2. What happens to the maximum slope?
- Frequency Effect (parameter b): Change only parameter b. Try b = 1, b = 2, b = 3, b = 4. How does it affect:
- The number of cycles in the displayed range?
- The maximum value of the derivative?
- The slope of the tangent line at similar points?
- Zero Slope Points: Find points where the tangent line is horizontal. These occur when f'(x) = 0. For the default values (a=1, b=1), this happens at x = π/2, 3π/2, etc. What is f(x) at these points?
- Maximum Slope Points: Find points where the tangent line is steepest (maximum absolute slope). These occur when |f'(x)| is maximum. For the default values, this happens at x = 0, π, 2π, etc. What is f(x) at these points?
- Period Investigation: The period of f(x) = a·sin(b·x) is 2π/b. Verify this by counting complete cycles between x = -2π and x = 2π for different b values.
- Chain Rule Visualization: Observe that f'(x) = a·b·cos(b·x). The factor 'b' appears in the derivative because of the chain rule. How does changing b affect the amplitude of the derivative?
- Phase Shift: Set a = 1, b = 1 and observe where f(x) = 0. Now set b = 2. Where does f(x) = 0 now? How does frequency affect the zeros of the function?
- Advanced Exploration: Try negative values for a and/or b. What happens? Can you predict the behavior before changing the values?
Key Calculus Concepts Demonstrated
\[
\text{Slope of tangent line} = f'(x_0) = \lim_{h \to 0} \frac{f(x_0+h)-f(x_0)}{h}
\]
Derivative of Sine Function
Using the chain rule:
\[
\frac{d}{dx}[a \cdot \sin(b \cdot x)] = a \cdot b \cdot \cos(b \cdot x)
\]
Critical Points & Extrema
For f(x) = a·sin(b·x):
- Local maxima occur when sin(b·x) = 1 ⇒ b·x = π/2 + 2πn
- Local minima occur when sin(b·x) = -1 ⇒ b·x = 3π/2 + 2πn
- At these points, f'(x) = a·b·cos(b·x) = 0
First Derivative Test
- If f'(x) changes from positive to negative at x₀, then f has a local maximum at x₀.
- If f'(x) changes from negative to positive at x₀, then f has a local minimum at x₀.
- For sine functions, this pattern repeats periodically.
Periodicity
Both f(x) and f'(x) are periodic:
\[
\text{Period of } f(x) = \frac{2\pi}{|b|}, \quad \text{Period of } f'(x) = \frac{2\pi}{|b|}
\]