document.write( "Question 1202196: Determine the equation of a cosine function for the following graph of a sinusoidal function:
\n" );
document.write( "https://gyazo.com/80871eaf3fe6163e135f3fbce5538d74\r
\n" );
document.write( "\n" );
document.write( " \n" );
document.write( "
Algebra.Com's Answer #836858 by math_tutor2020(3817)![]() ![]() ![]() You can put this solution on YOUR website! \n" ); document.write( "Answer: y = 2.5*cos(2x)-1 \n" ); document.write( "This is when you are in degree mode.\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "=============================================================================\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Explanation:\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The image from the question is this \n" ); document.write( " ![]() \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The template for cosine is \n" ); document.write( "y = A*cos(B(x-C))+D\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The variables are: \n" ); document.write( "|A| = amplitude \n" ); document.write( "B = helps determine the period, more on that later \n" ); document.write( "C = phase shift, which is the side to side shift \n" ); document.write( "D = up and down shift, useful to determine midline\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The goal is to determine the values of A, B, C, and D.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "-----------------------------\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Let's start with A.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The amplitude is half of the height of the sine wave. \n" ); document.write( "The peak occurs when y = 1.5 and the valley is when y = -3.5; these represent the largest and smallest possible y values respectively.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Subtract and use absolute value to find the vertical distance between peak and valley. \n" ); document.write( "|peak - valley| = |1.5 - (-3.5)| \n" ); document.write( "|peak - valley| = |1.5 + 3.5| \n" ); document.write( "|peak - valley| = |5| \n" ); document.write( "|peak - valley| = 5\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Or you could say \n" ); document.write( "|valley - peak| = |-3.5 - 1.5| \n" ); document.write( "|valley - peak| = |-5| \n" ); document.write( "|valley - peak| = 5\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The vertical distance from peak to valley is 5 units. \n" ); document.write( "Half of this is 5/2 = 2.5 and it is the amplitude.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "|A| = 2.5 leads to either A = 2.5 or A = -2.5 \n" ); document.write( "We use A = 2.5 because the cosine graph is above the x axis when x = 0.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "-----------------------------\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Now onto the variable B.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "This variable is tied to the period. \n" ); document.write( "The period is the length of each cycle, aka wavelength.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "One peak occurs at x = 0 \n" ); document.write( "The next neighboring peak to the right is when x = 180 \n" ); document.write( "This is a gap of 180-0 = 180 units \n" ); document.write( "The period is 180 because the curve repeats itself every 180 units.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "T = 180 = period \n" ); document.write( "B = 2pi/T \n" ); document.write( "B = 2pi/180 \n" ); document.write( "B = pi/90 \n" ); document.write( "That would be the value of B if we are in radian mode.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "However, the next set of steps show a much nicer result for B when in degree mode. \n" ); document.write( "B = 360/T \n" ); document.write( "B = 360/180 \n" ); document.write( "B = 2\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Because the x axis shows 90,180,270,etc it appears your teacher might want degree mode.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "-----------------------------\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The phase shift is C = 0 because cosine has x = 0 lead to a peak. We haven't shifted the peak left or right off the y axis. \r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "I recommend using a graphing tool like Desmos to look at y = cos(x) to see what I mean. \n" ); document.write( "GeoGebra is another handy graphing tool I use all the time.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "-----------------------------\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The midline is y = D to represent the horizontal line cutting through the middle of this cosine curve.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Apply the midpoint of the peak and valley \n" ); document.write( "(peak+valley)/2 = (1.5+(-3.5))/2 = -2/2 = -1\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The midline is y = -1 and we get D = -1\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "-----------------------------\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Summary \n" ); document.write( "A = 2.5 \n" ); document.write( "B = 2 (when in degree mode) \n" ); document.write( "C = 0 \n" ); document.write( "D = -1\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Then \n" ); document.write( "y = A*cos(B(x-C))+D \n" ); document.write( "y = 2.5*cos(2(x-0))+(-1) \n" ); document.write( "y = 2.5*cos(2x)-1 \n" ); document.write( "This is when your calculator is in degree mode.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Graph using Desmos \n" ); document.write( "https://www.desmos.com/calculator/ju2jkpfbkq \n" ); document.write( " \n" ); document.write( " |