Just like with standard integrals, in graph drawing there are a number of basic graphs that you should absolutely know how to draw.
Linear
For any , we produce a constant -value, . In other words, it’s a horizontal straight line.
y = p
p = 2 What points in the 2D plane have an -coordinate of ? It’s all the points along the vertical line intersecting the -axis at .
It’s identical to , only in a different orientation. Just 2 different ways of thinking about the same concept.
x = q
q = 3 For every -value, we output an equivalent -value. This looks like a straight line at above the positive -axis.
y = x Polynomials
Famously known as a “happy parabola”, symmetrical in the -axis.
y = x^2 y = x^3 For all , will always intersect the origin (because as long as ).
x^p
/slider{ min: 0.1 } :: p = 2 All even positive powers of produce even graphs. This is because an even number of multiplications cancels out pairs of signs.
f\left( x \right) = x^{2p}
f\left( -x \right)
/slider{ min: 2, step: 2 } :: p = 4 All odd positive powers of produce odd graphs. This is because one sign will be left unpaired and hence not cancelled out through the multiplications.
f\left( x \right) = x^{2p-1}
-f\left( -x \right)
/slider{ min: 1, step: 2 } :: p = 3 Only when or does the output becomes . That means the graph intersects the -axis twice, at and .
This is a (positive) quadratic with roots at .
y = \left( x-p \right) \left( x-q \right)
/asympt :: x = p
/dashed :: x = q
p = -2
q = 3 More generally, any factorised polynomial in this form has roots since whenever is one of these values the whole polynomial collapses to .
y = \left( x-p \right) \left( x-q \right) \left( x-r \right)
/dashed :: x = p
/dashed :: x = q
/dashed :: x = r
p = -3
q = 1
/hidden :: r = 2 Fractional Powers
y = \sqrt{x} y = x^{1/p}
/slider{ min: 1 } :: p = 3 Exponentials & Logarithms
y = e^x y = b^x
/slider{ min: 1 } :: b = 2 y = \ln\left( x \right) y = \log_{b}\left( x \right)
/slider{ min: 2 } :: b = 3 Reciprocals
y = \frac{1}{x} y = \frac{1}{x^2} y = \frac{1}{x^p}
/slider{ min: 1 } :: p = 3 Miscellaneous
y = \left| x \right| Also known as the rectified linear unit↗, this looks like a ramp, for all negative values.
y = \operatorname{max}\left( x,\ 0 \right)