A sine graph can be built from its amplitude, period, phase shift, and midline. This calculator plots the function and shows five reference points for one complete cycle. The reference table starts at the rising midline crossing because the amplitude is positive. It then lists the peak, falling midline crossing, trough, and position where the pattern repeats. The result above the graph gives the minimum and maximum output values.
Turn the four inputs into an equation
Amplitude is the positive distance from the midline to either extreme. If the midline is negative one and the amplitude is two, the peak is one and the trough is negative three. Period is the horizontal distance needed for one complete repeat. The phase shift gives an x coordinate where the curve crosses the midline rising. A whole period added to that coordinate gives the next rising midline crossing.
The equation used here is the midline plus amplitude times the sine of two pi times x minus the phase shift, divided by the period. The division and multiplication take place inside the sine function. The angular coefficient equals two pi divided by the period, in radians per unit of x. This construction ensures that changing x by one period moves the sine argument by exactly one full turn. The graph uses a positive amplitude so an increase through the first crossing defines the displayed reference cycle consistently.
Worked graph with period eight and phase shift one
Choose amplitude 2, period 8, phase shift 1, and midline negative one. At x equal to 1, the sine's input is zero and the graph passes through negative one. A quarter of the eight-unit period equals two. Moving two units right to x equal to 3 reaches the peak at one. Another two units puts the graph at x equal to 5 and on the midline, now moving downward. At x equal to 7, sine is at its negative extreme and the graph reaches negative three. At x equal to 9, the height is back to negative one and the curve resumes the pattern.
The angular coefficient is two pi over eight, or pi over four. Its approximate decimal is 0.7853981634 radians per x unit. This value is different from the period. Using eight as the multiplier inside sine would give a much shorter repeat distance. Opposite extrema are four x units apart, or half the period. Each neighboring point in the reference table is separated by one quarter period.
Check the graph on a handheld calculator
On a TI-83 Plus or TI-84 Plus family graphing calculator, use function mode and radian angle mode for this equation. In the worked example, enter the function with the factor pi divided by four multiplying the parenthesized difference X minus 1. The vertical adjustment of negative one belongs outside sine. Set a window that includes the first cycle and enough vertical room above and below its extremes. For example, an x window from negative one to eleven and a y window from negative four to two covers the worked points with space around them.
A default graph window can obscure the cycle when the period is very small or large. Use the period and phase shift to choose a window reflecting the part of the curve you want to see. A wrong angle mode is another reason a handheld graph might look different. The coefficient used here assumes radians. If you use degrees for your equation, the corresponding angular coefficient is 360 divided by the period instead of two pi divided by it.
Check what changes when you move one input
Increasing amplitude stretches the graph vertically from its midline. It leaves every x coordinate in the table unchanged. Increasing the period stretches the graph horizontally and spaces the reference points farther apart. Changing the midline moves all y values together. Changing the phase shift moves all the listed x values together without changing the repeat distance or vertical range.
A phase shift is not unique because shifting a periodic function by a full period gives the same graph. Entering nine instead of one in the worked example shows a later cycle of the same function. If you are fitting a cycle from observations, select a rising midline crossing that is easy to identify rather than interpreting one reference point as the only possible phase value. The plotted midline can help make those crossings easier to check visually.
Frequently asked questions
Can I enter a negative amplitude?
The input uses positive amplitude as a distance. For a reflected sine wave with a negative coefficient, adding or subtracting half a period to the phase shift gives an equivalent positive-amplitude representation.
Why does the plot show the wave before the first row?
The display includes a little extra range around the chosen cycle. The reference table still begins at the rising crossing entered as the phase shift.
What is the distance from peak to trough?
The horizontal distance is half a period. The vertical distance is twice the amplitude.
Should I enter pi in the period field?
The field accepts a numeric period. If you specifically need a period involving pi, use its decimal approximation here or enter the exact symbolic expression on a calculator that supports it.
Texas Instruments guidance for checking trigonometric graphs