Period of a Sinusoid

This can be used to explore the effect of the parameter B on the graph of y = [sin(B x) or y = cos(B x). Use the input box to use either g(x) = sin(x) or g(x) = cos(x). Use the slider to change the value of B.. The red graph is the graph of y = g(x) and remains fixed for reference.