# Building a quadratic function from $f(x) = x^2$

## Task

Suppose $f(x) = x^2$ where $x$ can be any real number.

- Sketch a graph of the function $f$.
- Sketch a graph of the function $g$ given by $$ g(x) = f(x) + 2. $$ How do the graphs of $f$ and $g$ compare? Why?
- Sketch a graph of the function $h$ given by $$ h(x) = -2 \cdot f(x). $$ How do the graphs of $f$ and $h$ compare? Why?
- Sketch a graph of the function $p$ given by $$ p(x) = f(x+2). $$ How do the graphs of $f$ and $p$ compare? Why?

## IM Commentary

This is the first of a series of task aiming at understanding the quadratic formula in a geometric way in terms of the graph of a quadratic function. Here the student works with an explicit function and studies the impact of

- An additive scaling of $f$
- A multiplicative scaling of $f$
- A linear change of variables applied to $f$

This task includes an experimental GeoGebra worksheet, with the intent that instructors might use it to more interactively demonstrate the relevant content material. The file should be considered a draft version, and feedback on it in the comment section is highly encouraged, both in terms of suggestions for improvement and for ideas on using it effectively. The file can be run via the free online application GeoGebra, or run locally if GeoGebra has been installed on a computer.

This applet has multiple tasks in one file. There are buttons to select which task is needed and an arrow indicates which task is selected. This task was designed to interactively show how functions vary based on having various operations applied to them. The initial state of this applet shows a given function f(x) in red. On the left side of the screen there is a different window that has various buttons with different colored functions next to them. By clicking these green or red buttons you can toggle the different functions on or off to show how the operations affect the graph of f(x). You are able to change the function to something else by typing in the new function in the top input box. Also you can change the various translated functions using the three other input boxes that are labeled a, b, and c. If you need to reposition the screen you can use the tool at the top of the screen that looks like four arrows to drag the screen to a different position. Also you can use the pointer button at the top of the screen to drag the function f(x) to show how the other functions change.

## Solution

The graphs of $f,g,h,$ and $p$ are shown (within the range of $-2 \leq x \leq 2$) below together to reveal their geometric relationship:

- Since $f(x) = x^2$ the graph of $f$ is a parabola. It opens upward and its vertex is at $(0,0)$.
- Looking at the two points $(x,f(x))$ and $(x,g(x))$ we have $$ (x,g(x)) = (x,f(x)+2) $$ for every value of $x$. So for each point $(x,f(x))$ on the graph of $f$, there is a corresponding point $(x,f(x)+2)$ on the graph of $g$, located two units above $(x,f(x))$. This means that the graph of $g$ is the same as the graph of $f$, displaced $2$ units upward.
- The point $(x,h(x))$ is the same as $(x,-2f(x))$ so the graph of $h$ is the same as the reflection of the graph of $2f$ about the $x$-axis. So the values of $f$ are first doubled, exaggerating the slope of the graph, and then the graph is reflected about the $x$-axis.
- The point $(x,p(x))$ on the graph of $p$ is the same as $(x,f(x+ 2))$ which is two units to the right of the point $(x,f(x))$ on the graph of $f$. So the graph of $p$ looks like the graph of $f$, translated two units to the left: put in other words, $p(x-2) = f(x)$ so the point $(x-2,f(x))$ is on the graph of $p$ while $(x,f(x))$ is the corresponding point of the graph of $f$ and so the graph of $p$ is the graph of $f$ shifted two units to the left.

## Building a quadratic function from $f(x) = x^2$

Suppose $f(x) = x^2$ where $x$ can be any real number.

- Sketch a graph of the function $f$.
- Sketch a graph of the function $g$ given by $$ g(x) = f(x) + 2. $$ How do the graphs of $f$ and $g$ compare? Why?
- Sketch a graph of the function $h$ given by $$ h(x) = -2 \cdot f(x). $$ How do the graphs of $f$ and $h$ compare? Why?
- Sketch a graph of the function $p$ given by $$ p(x) = f(x+2). $$ How do the graphs of $f$ and $p$ compare? Why?