SimuveliqLearnEspañolOpen the simulators
Learn › Math

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.

FunctionDomainRange

Transformations

Knowing the graph of , others are obtained without computing again:

FormulaEffect 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.

When you tap a row, the graphing calculator looks for roots, maxima, minima, the -intercept and the intersections with the other curves on , and it only marks an extremum if it truly is one (not the «peaks» next to an asymptote).

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

has a maximum at and a minimum at . Where are those of ? Where do and meet?
xy−213−22(0, 4)(2, 0)f(x) = x³ − 3xg(x) = f(x − 1) + 21 to the right,2 up

Solution

  1. is moved 1 to the right and 2 up: each point goes to . Maximum , minimum .
  2. Expanding, : roots and (double: the graph touches the axis at the minimum).
  3. Crossings: → → , that is, and .
: maximum , minimum ; they meet at and .

Solve it in Simuveliq

  1. In Math → Graphing calculator type f(x)=x^3-3x and g(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

Study : domain, range, asymptotes and intercepts.
xy−4−224−4468x = 1y = 2vertical asymptote: x = 1horizontal asymptote: y = 2root: x = −0.5y-intercept: (0, −1)

Solution

  1. Domain: → . At the numerator is 3: vertical asymptote .
  2. Same degree on top and bottom: horizontal asymptote .
  3. Range: → , which exists except for : range (exactly the asymptote).
  4. Intercepts: when → ; .
Domain , range ; asymptotes , ; root , intercept .

Solve it in Simuveliq

  1. In Math → Symbolic calculator, topic Calculus, operation Domain and range: type (2x+1)/(x-1) and press Compute. The Answer is , .
  2. In the Graphing calculator, y=(2x+1)/(x-1) gives «Roots: x = −0.5» and «y-intercept: (0, −1)».

Example 3Line and circle

Where does the line cut the circle ?

Solution

  1. Substitute : → → .
  2. : () and ().
,

Solve it in Simuveliq

  1. In Math → Graphing calculator type x^2+y^2=9 and y=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

Check that is the inverse of and compare their intercepts.
xy−2123−2123y = eˣy = ln xy = x(0, 1) ↔ (1, 0):each point (a, b) of oneis (b, a) of the other

Solution

  1. → : swapping letters, . Domain of : , the range of .
  2. 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.
  3. Neither meets : for all .
; .

Solve it in Simuveliq

  1. In Math → Graphing calculator type y=e^x, y=ln(x) and y=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)».

Related topics