How to Graph Sine Functions

Learn how to graph sine functions step by step. Understand amplitude, period, phase shift, vertical shift, and how to plot key points of the sine wave.

Understanding the Sine Wave

The sine function is one of the most fundamental functions in mathematics. Its graph, the sine wave, is a smooth, repeating oscillation that appears in sound, light, tides, electrical signals, and countless natural phenomena. The basic sine function y = sin(x) starts at the origin, rises to a maximum of 1 at x = pi/2, returns to 0 at x = pi, drops to a minimum of -1 at x = 3pi/2, and returns to 0 at x = 2pi, completing one full cycle. This pattern then repeats indefinitely in both directions along the x-axis.

The General Form: y = A sin(Bx - C) + D

The general sine function has four parameters that control its shape and position. A is the amplitude, B controls the period, C introduces a phase (horizontal) shift, and D is the vertical shift. Each of these parameters transforms the basic sine wave in a specific way. Understanding each one individually makes it straightforward to graph any sine function, no matter how complex it looks at first glance. The key is to handle each transformation one at a time.

Amplitude (A)

The amplitude is the distance from the center line of the wave to its peak (or trough). For y = A sin(x), the amplitude is |A|. When A = 1, the wave oscillates between -1 and 1. When A = 3, it oscillates between -3 and 3. The amplitude stretches or compresses the wave vertically. If A is negative, the wave is also reflected across the x-axis, meaning it starts by going downward instead of upward. For example, y = -2 sin(x) has an amplitude of 2 but is flipped, starting at the origin and immediately decreasing.

Period and Frequency (B)

The period is the horizontal length of one complete cycle. For the general form y = sin(Bx), the period is 2pi/|B|. When B = 1, the period is 2pi (about 6.28). When B = 2, the period is pi, meaning the wave completes a full cycle in half the horizontal distance. Larger values of B compress the wave horizontally, making it oscillate faster. Smaller values stretch it out. The frequency is the reciprocal of the period and tells you how many cycles fit into a 2pi interval. For example, y = sin(3x) has a period of 2pi/3, so it completes three full cycles in the same interval where sin(x) completes one.

Phase Shift (C)

The phase shift moves the entire sine wave left or right along the x-axis. In y = sin(Bx - C), the phase shift is C/B to the right. If C is positive, the wave shifts right; if C is negative, it shifts left. For example, y = sin(x - pi/2) shifts the standard sine wave pi/2 units to the right, which actually produces the cosine function. Phase shifts are critical in physics and engineering, where they describe how waves are offset in time or space relative to each other. To graph a phase-shifted sine function, find the new starting point of the cycle and then plot key points from there.

Vertical Shift (D)

The vertical shift moves the entire wave up or down. In y = sin(x) + D, the center line of the wave moves from y = 0 to y = D. If D = 3, the wave oscillates between 3 - 1 = 2 and 3 + 1 = 4 (assuming amplitude 1). The vertical shift does not change the shape of the wave, only its vertical position. Combined with amplitude, it determines the maximum value (D + |A|) and minimum value (D - |A|) of the function.

Plotting the Five Key Points

Every sine cycle can be sketched accurately using five key points: the start, the first peak, the midpoint, the trough, and the end of the cycle. For y = sin(x), these are at x = 0, pi/2, pi, 3pi/2, and 2pi, with y-values of 0, 1, 0, -1, 0 respectively. For the general form y = A sin(Bx - C) + D, first compute the period P = 2pi/|B| and the phase shift S = C/B. The five key x-values are then S, S + P/4, S + P/2, S + 3P/4, and S + P. The corresponding y-values are D, D + A, D, D - A, D. Plot these five points, connect them with a smooth wave shape, and extend the pattern in both directions.

Common Mistakes to Avoid

One frequent mistake is confusing the coefficient of x inside the sine with the period itself. Remember that B is not the period; the period is 2pi/B. Another common error is getting the direction of the phase shift wrong. In sin(Bx - C), the shift is to the right by C/B, not to the left. Be careful with negative amplitudes as well: y = -sin(x) is a reflection, not a shift. Finally, always label your axes with pi-based values (pi/2, pi, 3pi/2, etc.) rather than decimal approximations, which makes the periodic nature of the function much clearer on your graph.

Try These Calculators

Put what you learned into practice with these free calculators.

Try It Yourself

Put what you learned into practice with our free graphing calculator.