2. Functions

Graphing Functions

Graphing Functions 📈

Introduction: Seeing Functions in Action

Welcome, students, to the lesson on graphing functions. A function is a rule that assigns each input exactly one output, and a graph is one of the best ways to see that rule in action. Instead of only working with numbers, you can look at the shape, direction, and important features of a function all at once. That is why graphing is such an important part of IB Mathematics: Analysis and Approaches HL.

In this lesson, you will learn how to read and sketch graphs of common functions, how transformations change a graph, and how graphing helps you solve equations and inequalities. You will also see how graphing connects to polynomial, rational, exponential, and logarithmic models. By the end, you should be able to describe a graph clearly and use it to answer mathematical questions with confidence. 🚀

What a Graph Tells Us

A graph shows the relationship between the independent variable and the dependent variable. For a function written as $y=f(x)$, the input is $x$ and the output is $f(x)$. Each point on the graph has coordinates $(x,f(x))$.

A graph can show many important features:

  • where the function crosses the $x$-axis, called the roots or zeros, where $f(x)=0$
  • where the function crosses the $y$-axis, found by setting $x=0$
  • intervals where the function is increasing or decreasing
  • maximum and minimum points
  • asymptotes, which are lines the graph approaches but may never touch
  • domain, the set of allowed input values
  • range, the set of output values

For example, if a school club earns money from ticket sales, the function $f(x)$ might represent profit based on the number of tickets sold, $x$. A graph can show when the profit is positive, where it breaks even, and how fast profit changes as more tickets are sold.

A key skill in graphing is learning to read the language of the graph. If the graph rises as you move from left to right, the function is increasing. If it falls, the function is decreasing. If the graph is flat over an interval, the output is constant there.

Graphs of Common Function Types

Different families of functions have different graph shapes, and recognizing them is a major IB skill. Let us look at the most important ones.

A polynomial function has the form $f(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0$. Its graph is smooth and continuous, with no breaks or asymptotes. The degree and leading coefficient influence its general end behavior. For example, $f(x)=x^2-4x+3$ is a quadratic polynomial. Its graph is a parabola opening upward because the coefficient of $x^2$ is positive.

A rational function is a quotient of two polynomials, such as $f(x)=\frac{1}{x-2}$. Rational graphs often have vertical asymptotes where the denominator is $0$, so here $x=2$ is not allowed. They may also have horizontal or oblique asymptotes. These features help you sketch the graph quickly.

An exponential function has the form $f(x)=a\cdot b^x$, where $b>0$ and $b\neq 1$. If $b>1$, the graph shows exponential growth; if $0<b<1$, it shows exponential decay. For example, $f(x)=2^x$ grows rapidly, while $f(x)=\left(\frac{1}{2}\right)^x$ decays as $x$ increases.

A logarithmic function is the inverse of an exponential function. A basic example is $f(x)=\log_b(x)$, where $b>0$ and $b\neq 1$. Its graph has a vertical asymptote at $x=0$ and is only defined for $x>0$. Logarithmic graphs grow slowly and are very useful for modeling quantities that increase quickly at first and then level off.

Transformations: Changing a Graph Without Starting Over

One powerful idea in graphing functions is transformation. Instead of drawing every new graph from scratch, you can start with a known graph and transform it.

If $y=f(x)$ is the original graph, then:

  • $y=f(x)+k$ shifts the graph up by $k$
  • $y=f(x)-k$ shifts the graph down by $k$
  • $y=f(x-h)$ shifts the graph right by $h$
  • $y=f(x+h)$ shifts the graph left by $h$
  • $y=af(x)$ stretches vertically by factor $|a|$ if $|a|>1$
  • $y=af(x)$ compresses vertically if $0<|a|<1$
  • $y=f(-x)$ reflects the graph in the $y$-axis
  • $y=-f(x)$ reflects the graph in the $x$-axis

For example, if you know the graph of $y=x^2$, then the graph of $y=(x-3)^2+2$ is the same parabola shifted right $3$ and up $2$. Its vertex moves from $(0,0)$ to $(3,2)$.

This is especially useful in IB questions because many functions are built from a simple base graph. If you can identify the transformation, you can sketch accurately and quickly. That saves time and reduces mistakes. ✅

Intercepts, Symmetry, and Key Features

When graphing, you should always look for intercepts and symmetry.

The $y$-intercept is found by substituting $x=0$. For example, if $f(x)=x^3-2x$, then $f(0)=0$, so the graph crosses the $y$-axis at $(0,0)$.

The $x$-intercepts are found by solving $f(x)=0$. For the same function, $x^3-2x=0$ can be factored as $x(x^2-2)=0$, giving $x=0$ and $x=\pm\sqrt{2}$. So the graph crosses the $x$-axis at three points.

Symmetry helps too. A function is even if $f(-x)=f(x)$, which means its graph is symmetric about the $y$-axis. A function is odd if $f(-x)=-f(x)$, which means its graph is symmetric about the origin. For example, $f(x)=x^2$ is even, and $f(x)=x^3$ is odd.

Identifying these features makes sketching much easier. If you know a function is even, you only need to draw one side and mirror it. If a graph has an asymptote, you should show how the curve approaches it.

Graphing to Solve Equations and Inequalities

Graphs are not just pictures; they are tools for solving problems.

To solve an equation like $f(x)=g(x)$, you can graph both functions and find their intersection points. The $x$-coordinates of those points are the solutions. For example, solving $x^2=2x+3$ can be done by graphing $y=x^2$ and $y=2x+3$. Their intersections give the solutions $x=-1$ and $x=3$.

Inequalities can also be solved using graphs. If you want to solve $f(x)>0$, you look for where the graph lies above the $x$-axis. If you want to solve $f(x)\leq g(x)$, you compare the two graphs and find where one is below or equal to the other.

This graphical method is especially helpful when exact algebra is difficult. It also gives a visual check on your answers. For example, if a rational function is negative on one interval and positive on another, the graph clearly shows where the sign changes.

Graphing in the Bigger Picture of Functions

Graphing functions connects directly to the whole topic of functions in IB Mathematics: Analysis and Approaches HL.

First, graphing helps with function language and representation. A function can be written as a formula, a table, a graph, or a description in words. Being able to move between these forms is an important mathematical skill.

Second, graphing supports work with composite and inverse functions. If $f$ and $g$ are functions, then $(f\circ g)(x)=f(g(x))$. You can often understand the result better by thinking about how the graph changes. For inverse functions, the graph of $f^{-1}(x)$ is the reflection of the graph of $f(x)$ in the line $y=x$.

Third, graphing is essential for modeling. Real situations often use polynomial, rational, exponential, or logarithmic functions. For example, an exponential graph can model population growth, while a logarithmic graph can model the time needed for a phone battery percentage to change in a way that slows over time. A rational graph can model average cost per item when fixed costs are spread across more units.

Finally, graphing helps develop reasoning. In IB HL, it is not enough to memorize shapes. You must explain why a graph has certain features, using domain restrictions, algebraic structure, and transformations. That is why graphing is both a visual and analytical skill.

Conclusion

Graphing functions is a central skill in IB Mathematics: Analysis and Approaches HL because it brings together algebra, reasoning, and visual thinking. students, when you graph a function, you are not just drawing a curve. You are interpreting a rule, identifying key features, and using the graph to solve equations, inequalities, and modeling problems.

The most important habits are to recognize the family of function, check domain and intercepts, look for asymptotes or turning points, and use transformations when possible. With practice, graphing becomes faster and more accurate, and it gives you a deeper understanding of how functions behave. 📚

Study Notes

  • A function graph shows pairs $(x,f(x))$.
  • The $x$-intercepts satisfy $f(x)=0$.
  • The $y$-intercept is found by evaluating $f(0)$.
  • Polynomial graphs are smooth and continuous.
  • Rational graphs may have vertical and horizontal asymptotes.
  • Exponential graphs model growth or decay.
  • Logarithmic graphs are the inverse of exponential graphs and require $x>0$.
  • Transformations change a known graph using shifts, stretches, compressions, and reflections.
  • Even functions satisfy $f(-x)=f(x)$.
  • Odd functions satisfy $f(-x)=-f(x)$.
  • Solving $f(x)=g(x)$ can be done by finding graph intersections.
  • Inequalities can be solved by comparing which graph is above or below another.
  • Graphing connects directly to function notation, inverses, composites, and mathematical modeling.

Practice Quiz

5 questions to test your understanding

Graphing Functions — IB Mathematics Analysis And Approaches HL | A-Warded