Sine Function Derivative Calculator & Tangent Line Visualizer

An interactive calculus tool that visually demonstrates the relationship between sine functions, their derivatives (cosine functions), and tangent lines. Perfect for students learning trigonometric derivatives.

Interactive Sine Function Explorer

Explore the sine function:

\[ f(x) = a \cdot \sin(b \cdot x) \]

Where:

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
Your browser does not support the canvas element.
Drag slider to explore tangent line at different points:
x = -6.28 radians

Learning Activities & Exploration Guide

  1. 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.
  2. 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?
  3. 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?
  4. 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?
  5. 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?
  6. 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?
  7. 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?
  8. 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.
  9. 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?
  10. 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?
  11. 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):

First Derivative Test

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|} \]

Further Calculus Resources