Functions and their graphs
A function assigns each input value a single output value, and its graph shows it at a glance: where it cuts the axes, where it increases, its maxima and its asymptotes. This topic explains domain and range, transformations of a graph, asymptotes of rational functions, the inverse function and curves that are not functions (implicit, parametric and polar).
Domain and range
The domain is the set of for which the formula makes sense: remove the zeros of denominators, whatever makes the radicand of an even root negative and whatever makes the argument of a logarithm . The range is the set of values the function reaches.
| Function | Domain | Range |
|---|---|---|
Transformations
Knowing the graph of , others are obtained without computing again:
| Formula | Effect on the graph |
|---|---|
| moves up units (down if ) | |
| moves to the right (the sign is misleading) | |
| stretches vertically by | |
| compresses horizontally by | |
| , | reflection in the axis, reflection in the axis |
Asymptotes of rational functions
In , each root of that is not a root of gives a vertical asymptote: the function goes to . At infinity the highest-degree terms dominate: if and have the same degree, there is a horizontal asymptote at the ratio of their leading coefficients; if has lower degree, at ; if it has one degree more, there is a slant asymptote (the division gives the line).
Inverse function
If is one-to-one (it does not repeat values), it has an inverse : it undoes what does, . It is found by solving for and swapping the letters. Its graph is the reflection of that of in the line ; the domain of one is the range of the other.
Curves that are not functions
A circle is not the graph of a function: one corresponds to two . It is described as an implicit curve (), in parametric form (, ) or in polar form (). The graphing calculator draws all three, as well as inequalities and piecewise functions.
Common mistakes
- Moving to the right: it goes 2 to the left.
- Confusing with .
- Giving as a vertical asymptote a root that also cancels the numerator: there is a hole there, not an asymptote.
- Forgetting that a curve can cross its horizontal asymptote (what it does not do is cross a vertical one).
Worked examples
Example 1Shifting a graph
Solution
- is moved 1 to the right and 2 up: each point goes to . Maximum , minimum .
- Expanding, : roots and (double: the graph touches the axis at the minimum).
- Crossings: → → , that is, and .
Solve it in Simuveliq
- In Math → Graphing calculator type
f(x)=x^3-3xandg(x)=f(x-1)+2, one per row (with + Expression), and tap the row of . Below it appear «Roots: x = −1, x = 2», «Maxima: (0, 4)», «Minima: (2, 0)» and «Intersections: (−0.758306, 1.83887), (1.75831, 0.16113)».
Example 2Rational function: domain, range and asymptotes
Solution
- Domain: → . At the numerator is 3: vertical asymptote .
- Same degree on top and bottom: horizontal asymptote .
- Range: → , which exists except for : range (exactly the asymptote).
- Intercepts: when → ; .
Solve it in Simuveliq
- In Math → Symbolic calculator, topic Calculus, operation Domain and range: type
(2x+1)/(x-1)and press Compute. The Answer is , . - In the Graphing calculator,
y=(2x+1)/(x-1)gives «Roots: x = −0.5» and «y-intercept: (0, −1)».
Example 3Line and circle
Solution
- Substitute : → → .
- : () and ().
Solve it in Simuveliq
- In Math → Graphing calculator type
x^2+y^2=9andy=x+1, one per row (with + Expression), and tap the row of the line. Below it appear «Intersections: (−2.56155, −1.56155), (1.56155, 2.56155)» (and its root, x = −1).
Example 4The exponential and the logarithm
Solution
- → : swapping letters, . Domain of : , the range of .
- cuts the axis at and has no roots; has the root , that is, the point , and does not cut the axis. They are the same point with the coordinates swapped.
- Neither meets : for all .
Solve it in Simuveliq
- In Math → Graphing calculator type
y=e^x,y=ln(x)andy=x, one per row (with + Expression), and tap the row of . Below it appear «Roots: x = 1» and no intersections; on the row of , «y-intercept: (0, 1)».