I am considering the function $f(x)=\sin(2x+30)$ and have been thinking of how I would sketch it. (NOTE: I have not looked at a graph of the function yet because I would rather know where my mistake is considering the algebraically...)
I first thought of f(x) as being a composite function $f(x)=j(g(h(x)))$ where $j(x)= \sin(x)$ and either:
- $g(x)=x+30$ and $h(x)=2x$ or...
- $g(x)=2x$ and $h(x)=x+15$
both of which I think would work.
Now when I am sketching the curve using the first method, and I consider the point that is $(0,0)$ on the graph of $y=\sin(x)$, then I would first squash the curve by factor 2, and then shift it to the left by 30, landing at $(-30,0)$- Something tells me that I am not doing this right because if I am squashing the x axis then a shift of 30 won't really be of 30? But I'm not quite sure...
If I use the second method, I shift by 15 to the left and then squash the curve by factor 2, which leaves me at $(-7.5,0)$.
I have a feeling that neither of these are correct and I am looking for $(-15,0)$... Actually, thinking about it now, of course I would be trying to get to $(-15,0)$ because when $x=-15$, then $2x+30=0$, and $sin(0)=0$. However I am not sure how to arrive at $(-15,0)$ working through composite functions. In the above case, I have always applied the inner function first to the graph, and then the outer function, as you would when evaluating each new point in a composite function...
I am not sure where I am going wrong! Any help would be much appreciated!
The easiest way it to break it down into steps. Put:
$$g(x)=\sin (2x) $$
which you can sketch knowing the graph of $\sin$ (stretch vertically by a factor of $2$).
Now note that $f(x)=g(x+15)$. So the graph of $f$ is the same as the graph of $g$ shifted to the left by $15$ units.
Therefore, the graph of $f$ is obtained from that of $\sin$ by first stretching by a facotr of $2$, and then translating by $15$.