I'm going to assume that you are taking calculus:
Sketching graphs is really all about translating what you know about a function unto a Cartesian plane.
Here is how I usually do it:
- Find the domain and range
- Find the end behavior of the function
- Find the local minima/maxima
- Find infection points
- Find zeroes
- Sketch
I will do an example here for you:
Let us consider the function $\sin ^2 (x)$, what does its graph look like?
First I will find the domain and range:
Domain: Since the $\sin^2 (x) $ function does not have any holes (and is continuous), we must check three cases: real positive numbers, real negative numbers, and zero. Since
$ \sin^2\left(\frac{\pi}{2}\right) = 1 $ we see that the function works for positive reals, since $ \sin ^2 \left(\frac{-\pi}{2}\right) = 1$ we see it works for negative reals, and the zero case is $\sin^2(0)=0$. (Note that this is not rigorous at all, you could also just rely on the domain of the sine function, and see that it is all real number)
Range: Since the $\sin (x)$ function oscillates between $\frac{+}{-} 1$ then we can see that this function does too, but since anything real to the second power is positive, this function is positive only. We will leave it at that and find the actual oscillation when we find local minima and maxima.
Next is end behavior:
We can take the limit as $x$ goes to infinity, but for this function it does not exist (the function happens to oscillate until infinity). but I think that from our knowledge of the sin function we can know that this function oscillates until infinity.
Next are the local minima and maxima:
For this we need derivatives: Remember that the slope of a tangent line at a maxima or minima is zero, so we just set the derivative equal to zero. Since
$$ \frac{d}{dx} \sin^2(x) = \frac{d}{dx} f( g(x)) = f'(g(x)) \cdot g'(x) = 2\sin(x) \cdot \cos(x)$$
we can set that equal to zero $$ 0 = 2\sin(x)\cdot \cos(x)$$ wich will be true whenever $\sin (x)$ is equal to zero (i.e $ \pi n , n \in \mathbb{z}$) and when $\cos(x)$ is equal to zero (i.e $ \pi n + \frac{\pi}{2}, n \in \mathbb{z}$). Now we plug these values back into our original function:
- $\sin^2(0) = 0$
- $\sin^2\left(\frac{\pi}{2}\right) = 1$
- $\sin^2\left(-\pi + \frac{\pi}{2}\right) = 1$
- $\sin^2(- \pi) = 0$
So we can see that this graph oscillates between 1 and 0 with a wavelength of $\frac{\pi}{2}$
next we should do inflection points, through second derivatives, but for this function it is unnecessary because we have enough information to graph it. So our sketch might look like:
This