I got stuck and decided to go here. How would I draw two graphs of sin x and cos x next to each on TikZ with intervals of -2π to 2π? This seemed like something easy to do in TikZ but I'm having trouble learning how to create intervals and draw functions.
Something like this? Except I would also want to add a graph of sin x to the left of the cos x graph. I have tiny bits of code so far but have tried this to start.
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\draw (-0.5,0) -- (11,0) (0,-1.5) -- (0,1.5);
\draw plot[domain=0:2*pi,smooth] (\x,{sin(\x r)});
\draw plot[domain=0:3*pi/.9,smooth] (\x,{sin(0.9*\x r)});
\end{tikzpicture}
\end{document}
Thanks!