# Dependent and Independent Variables and Inverting Functions

This video explains the differences between dependent and independent variables and inverting functions.

## Dependent and Independent Variables and Inverting

Hey guys! Today we’re going to take a look at independent and dependent variables, and then dive into the process of inverting functions.

Let’s step back and do a quick review of functions before we begin. Remember that a function relates inputs (x) and outputs (y). The output value will always depend on what you input. For a relationship to be a function, each input must have exactly one output.

 x (input) y (output) 0 3 1 6 2 9 3 12

We refer to these input and output values as either independent or dependent variables. We can plug in any value for x, so it is our independent variable. The y variable, however, will always depend on what was plugged in for x. So, we refer to the y variable as the dependent variable.

Let’s look at the function f(x) = 2x + 4 as an example. This equation is written in what’s called functional notation. f(x) essentially represents “y”, just as it would in the linear equation y = 2x + 4. f(x) is simply stating that the “y” value is “a function of x”, meaning that the “y” value will depend on what the “x” value is.

This particular function could reflect a scenario where x represents how many plants you sell at a farmers market, and f(x), or “y”, is how much money you will make. If you started with $4, and you sell each plant for$2, the money you earn (y) will depend on how many plants you sell (x). So in this scenario, the number of plants you sell is the independent variable, and the amount of money you make is the dependent variable. This makes sense because the amount of money you make should depend on how many plants you sell.

We can use this function to solve for y in terms of x. This means that we can choose any value for x, and use it to find the value of y.

For example, let’s say we started with the $4, and then we sell 26 plants at the farmers market. This means that x is equal to 26. Let’s plug 26 in for “x”, and then solve for y in terms of x to find out how much money we will make. f(x) = 2x + 4 f(26) = 2(26) + 4 Now with a bit of algebra we can simplify the right side of the equation. 2 times 26 is 52, and then we add 4. This leaves us with f(26) = 56. We have solved for y in terms of x, or solved for y by plugging in a value for x. We can see that when x is equal to 26, y will be 56. So if we sell 26 plants at the farmers market at the end of the day we will have$56.

With this understanding of independent and dependent variables, we’re prepared to dive into the process of inverting functions.

Up to this point we have used examples of functions where we solve for “y” in terms of “x”.

Now let’s move on to the process of solving the inverse of a function. Finding the inverse of a function is essentially switching the input and the output. This means we are no longer using “x” to find “y”. We will now be using “y” to find “x”.

Let’s take it step by step to find the inverse of the function f(x) = 3x – 4.

Since we’re looking to find the inverse, we’ll need to write it like this: $$f^{-1} (x)=?$$

Finding the inverse of a function will be a 4-step process.

Step 1 is to write the function as a linear equation. So in this case we will write
f(x) = 3x – 4 as y = 3x – 4. Because we are switching the input and the output, we want to be working with x and y, instead of x and f(x). This will make the switch easier to see visually.

Step 2 is to simply swap x and y. This inverts the scenario from x being the input, to now y being the input.

Now the function should look like this: x equals 3y minus 4y.

$$y=3x-4$$
$$x=3y-4$$

Step 3 is simply to solve for y. To do that, let’s use inverse operations to isolate the variable. We’ll add 4 to both sides, and then divide by 3. X equals 3y minus 4, now becomes y equals x plus 4 over 3.

x = 3y – 4 now becomes y = x + 43

Our last step, Step 4, is to write the equation in inverse notation. So f inverse of x is equal to x plus 4 over 3.

$$f^{-1} (x)=\frac{x+4}{3}$$

And there you have it! The inverse of the function f(x) = 3x – 4 is f -1(x)= x + 43.

It is important to note that when you graph a function and its inverse on the same coordinate grid, an important relationship should be visible. You should notice that the two lines are reflected over the line y=x. So essentially, when you’re finding the inverse of a function, you are simply reflecting that function over the line y=x. Let’s graph the function and its inverse from the previous example so we can see this relationship.

f(x) = 3x – 4 (the original function)
f -1(x) = x + 43 (inverse of the function)

In our graph we can see the red line representing the line y=x. The blue line represents our original function, and the green line is the inverse of that function. When we graph the function and its inverse we are able to see visually that the lines are reflected over the red line y=x.

That’s all there is to it! I hope this review was helpful. Thanks for watching, and happy studying!

704764

by Mometrix Test Preparation | Last Updated: July 23, 2020