Find the Inverse of a Quadratic Function

Inverse functions can be very useful in solving numerous mathematical problems. Being able to take a function and find its inverse function is a powerful tool. With quadratic equations, however, this can be quite a complicated process. First, you must define the equation carefully, be setting an appropriate domain and range. You then have a choice of three methods to calculate the inverse function. The choice of method is mostly up to your personal preference.

Steps

Finding the Inverse of a Simple Function

  1. Look for a function in the form of <math>y=ax^2+c</math>. If you have the “right” kind of function to begin, you can find the inverse using some simple algebra. This form is something of a variation of <math>y=ax^2+c</math>. Comparing this to a standard form quadratic function, <math>y=ax^2+bx+c</math>, you should notice that the central term, <math>bx</math>, is missing. Another way to say this is that the value of b is 0. If your function is in this form, finding the inverse is fairly easy.
    • Your beginning function does not have to look exactly like <math>y=ax^2+c</math>. As long as you can look at it and see that the function consists only of <math>x^2</math> terms and constant numbers, you will be able to use this method.
    • For example, suppose you begin with the equation, <math>2y-6+x^2=y+3x^2-4</math>. A quick examination of this equation shows that there are no terms of <math>x</math> to the first power. This equation is a candidate for this method to find an inverse function.
  2. Simplify by combining like terms. The initial equation may have multiple terms in a combination of addition and subtraction. Your first step is to combine like terms to simplify the equation and rewrite it in the standard format of <math>y=ax^2+c</math>.
    • Taking the sample equation, <math>2y-6+x^2=y+3x^2-4</math>, the y-terms can be consolidated on the left by subtracting a y from both sides. The other terms can be consolidated on the right by adding 6 to both sides and subtracting x^2 from both sides. The resulting equation will be <math>y=2x^2+2</math>.
  3. Determine the domain and range of the simplified function. Recall that the domain of a function consists of the possible values of x that can be applied to provide a real solution. The range of a function consists of the values of y that will result. To determine the domain of the function, look for values that create a mathematically impossible result. You will then report the domain as all other values of x. To find the range, consider the values of y at any boundary points and look at the behavior of the function.[1]
    • Consider the sample equation <math>y=2x^2+2</math>. There is no limitation on allowable values of x for this equation. However, you should recognize that this is the equation of a parabola, centered at x=0, and a parabola is not a function because it does not consist of a one-to-one mapping of x and y values. To limit this equation and make it a function, for which we can find an inverse, we must define the domain as x≥0.
    • The range is similarly limited. Notice that the first term, <math>2x^2</math>, will always be positive or 0, for any value of x. When the equation then adds +2, the range will be any values y≥2.
    • Defining the domain and range at this early stage is necessary. You will use these definitions later in defining the domain and range of the inverse function. In fact, the domain of the original function will become the range of the inverse function, and the range of the original will become the domain of the inverse.[1]
  4. Switch the roles of the x and y terms. Without changing the equation in any other way, you need to replace all appearance of y with an x, and all appearances of x with a y. This is the step that actually “inverts” the equation.[1]
    • Working with the sample equation <math>y=2x^2+2</math>, this inversion step will result in the new equation of <math>x=2y^2+2</math>.
    • An alternate format is to replace the y terms with x, but replace the x terms with either <math>y^-1</math> or <math>f(x)^-1</math> to indicate the inverse function.
  5. Rewrite the inverted equation in terms of y. Using a combination of algebraic steps, and taking care to perform the same operation evenly on both sides of the equation, you will need to isolate the y variable. For the working equation <math>x=2y^2+2</math>, this revision will look like the following:[1]
    • <math>x=2y^2+2</math> (original starting point)
    • <math>x-2=2y^2</math> (subtract 2 from both sides)
    • <math>\frac{x-2}{2}=y^2</math> (divide both sides by 2)
    • ±<math>\sqrt{\frac{x-2}{2}}=y</math> (square root of both sides; remember that the square root results in both positive and negative possible answers)
  6. Determine the domain and range of the inverse function. As you did at the beginning, examine the inverted equation to define its domain and range. With two possible solutions, you will select the one that has a domain and range that are inverses of the original domain and range.[1]
    • Examine the sample equation solution of ±<math>\sqrt{\frac{x-2}{2}}=y</math>. Because the square root function is not defined for any negative values, the term <math>\frac{x-2}{2}</math> must always be positive. Therefore, allowable values of x (the domain) must be x≥2. Using that as the domain, the resulting values of y (the range) are either all values y≥0, if you take the positive solution of the square root, or y≤0, if you select the negative solution of the square root. Recall that you originally defined the domain as x≥0, in order to be able to find the inverse function. Therefore, the correct solution for the inverse function is the positive option.
    • Compare the domain and range of the inverse to the domain and range of the original. Recall that for the original function, <math>y=2x^2+2</math>, the domain was defined as all values of x≥0, and the range was defined as all values y≥2. For the inverse function, now, these values switch, and the domain is all values x≥2, and the range is all values of y≥0.
  7. Check that your inverse function works. To make sure that your work is correct and your inverse is the right equation, select any value for x and place it into the original equation to find y. Then, put that value of y in the place of x in your inverse equation, and see if you generate the number that you started with. If so, your inverse function is correct.[1]
    • As a sample, select the value x=1 to place in the original equation <math>y=2x^2+2</math>. This gives the result y=4.
    • Next, place that value of 4 into the inverse function <math>\sqrt{\frac{x-2}{2}}=y</math>. This does give the result of y=1. You can conclude that your inverse function is correct.

Completing the Square to Determine the Inverse Function

  1. Set up the quadratic equation in the proper form. In order to begin finding the inverse, you must begin with the equation in the format <math>f(x)=ax^2+bx+c</math>. If necessary, you may need to combine similar terms to get the equation into this format. With the equation written this way, you can begin to tell some information about it.[2]
    • The first thing to notice is the value of the coefficient a. If a>0, then the equation defines a parabola whose ends point upward. If a<0, the equation defines a parabola whose ends point downward. Notice that a≠0. If it did, then this would be a linear function and not quadratic.
  2. Recognize the standard format of the quadratic. Before you can find the inverse function, you will need to rewrite your equation into the standard format. The standard format for any quadratic function is <math>f(x)=a(x-h)^2+k</math>. The numerical terms a, h and k will be developed as you transform the equation through a process known as completing the square.[2]
    • Notice that this standard format consists of a perfect square term, <math>(x-h)^2</math>, which is then adjusted by the other two elements a and k. To get to this perfect square form, you will need to create certain conditions in your quadratic equation.
  3. Recall the form of a perfect square quadratic function. Remember that a quadratic function that is a perfect square originates with two binomials of <math>(x+b)(x+b)</math>, or <math>(x+b)^2</math>. When you perform this multiplication, you get a result of <math>x^2+2bx+b^2</math>. Thus, the first term of the quadratic is the first term of the binomial, squared, and the last term of the quadratic is the square of the second term of the binomial. The middle term is comprised of 2 times the product of the two terms, in this case <math>2*x*b</math>.[2]
    • To complete the square, you will be working in reverse. You will start with <math>x^2</math> and some second x-term. From the coefficient of that term, which you can define as “2b,” you will need to find <math>b^2</math>. This will require a combination of dividing by two and then squaring that result.
  4. Make sure the coefficient on <math>x^2</math> is 1. Recall the original form of the quadratic function <math>ax^2+bx+c</math>. If the first coefficient is anything other than 1, then you must divide all terms by that value, to set a=1.[2]
    • For example, consider the quadratic function <math>f(x)=2x^2+6x-4</math>. You must simplify this by dividing all terms by 2, to yield the resulting function <math>f(x)=2(x^2+3x-2)</math>. The coefficient 2 will remain outside of the parentheses and will be part of your final solution.
    • If all terms are not multiples of a, you will wind up with fractional coefficients. For example, the function <math>f(x)=3x^2-2x+6</math> will simplify to <math>f(x)=3(x^2-\frac{2x}{3}+2)</math>. Work carefully with the fractions as necessary.
  5. Find one-half of the middle coefficient and square it. You already have the first two terms of the perfect square quadratic. These are the <math>x^2</math> term and whatever coefficient appears in front of the x-term. By taking that coefficient to be whatever value it is, you will add or subtract whatever number is necessary to create a perfect square quadratic. Recall from above that the required third term of the quadratic is this second coefficient, divided by two, and then squared.[2]
    • For example, if the first two terms of your quadratic function are <math>x^2+3x</math>, you will find the needed third term by dividing 3 by 2, which gives the result 3/2, and then squaring that, to get 9/4. The quadratic <math>x^2+3x+9/2</math> is a perfect square.
    • As another example, suppose your first two terms are <math>x^2-4x</math>. Half of the middle term is -2, and then you square that to get 4. The resulting perfect square quadratic is <math>x^2-4x+4</math>.
  6. Add AND subtract the needed third term, at the same time. This is a tricky concept but it works. By both adding and subtracting the same number in different locations of your function, you are really making no change to the value of the function. However, doing this will allow you to get your function into the proper format.[2]
    • Suppose you have the function <math>f(x)=x^2-4x+9</math>. As noted above, you will use the first two terms to work on completing the square. Using the middle term of -4x, you will generate a third term of +4. Add and subtract 4 to the equation, in the form <math>f(x)=(x^2-4x+4)+9-4</math>. The parentheses are placed just to define the perfect square quadratic that you are creating. Notice the +4 inside the parentheses and the -4 on the outside. Simplify the numbers to give the result of <math>f(x)=(x^2-4x+4)+5</math>.
  7. Factor the perfect square quadratic. The polynomial inside the parentheses should be a perfect square quadratic, which you can rewrite in the form <math>(x+b)^2</math>. In the example from the prior step, <math>f(x)=(x^2-4x+4)+5</math>, the quadratic factors into <math>(x-2)^2</math>. Carry along the rest of the equation, so your solution will be <math>f(x)=(x-2)^2+5</math>. This is the same function as your original quadratic, <math>f(x)=x^2-4x+9</math>, simply revised into standard <math>f(x)=a(x-h)^2+k</math> form.[2]
    • Notice that for this function, a=1, h=2, and k=5. The value of writing the equation in this form is that a, being positive, tells you that the parabola points upward. The values of (h,k) tell you the apex point at the bottom of the parabola, if you wanted to graph it.
  8. Define the domain and range of the function. The domain is the set of x-values that can be used as input into the function. The range is the set of y-values that can be the outcome. Recall that a parabola is not a function with a definable inverse, because there is not a one-to-one mapping of x-values to y-values, as a result of the symmetry of the parabola. To resolve this problem, you need to define the domain as all values of x that are greater than x=h, the apex point of the parabola.[1]
    • Continue working with the sample function <math>f(x)=(x-2)^2+5</math>. Because this is in standard format, you can identify the apex point as x=2, y=5. Thus, to avoid the symmetry, you will only work with the right-side of the graph, and set the domain as all values x≥2. Inserting the value x=2 into the function gives the result of y=5. You can see that the values of y will increase as x increases. Therefore the range of this equation is y≥5.
  9. Switch the x and y values. This is the step where you begin to find the inverted form of the equation. Leave the equation in its entirety, except for switching these variables.[1]
    • Continue to work with the function <math>f(x)=(x-2)^2+5</math>. Insert x in place of f(x), and insert y (or f(x), if you prefer) in place of x. This will yield the new function <math>x=(y-2)^2+5</math>.
  10. Rewrite the inverted equation in terms of y. Using a combination of algebraic steps, and taking care to perform the same operation evenly on both sides of the equation, you will need to isolate the y variable. For the working equation <math>x=(y-2)^2+5</math>, this revision will look like the following:[1]
    • <math>x=(y-2)^2+5</math> (original starting point)
    • <math>x-5=(y-2)^2</math> (subract 5 from both sides)
    • ±<math>\sqrt{x-5}=y-2</math> (square root of both sides; remember that the square root results in both positive and negative possible answers)
    • ±<math>\sqrt{x-5}+2=y</math> (add 2 to both sides)
  11. Determine the domain and range of the inverse function. As you did at the beginning, examine the inverted equation to define its domain and range. With two possible solutions, you will select the one that has a domain and range that are inverses of the original domain and range.[1]
    • Examine the sample equation solution of ±<math>\sqrt{x-5}+2=y</math>. Because the square root function is not defined for any negative values, the term <math>{x-5}</math> must always be positive. Therefore, allowable values of x (the domain) must be x≥5. Using that as the domain, the resulting values of y (the range) are either all values y≥2, if you take the positive solution of the square root, or y≤2 if you select the negative solution of the square root. Recall that you originally defined the domain as x≥2, in order to be able to find the inverse function. Therefore, the correct solution for the inverse function is the positive option.
    • Compare the domain and range of the inverse to the domain and range of the original. Recall that for the original function the domain was defined as all values of x≥2, and the range was defined as all values y≥5. For the inverse function, now, these values switch, and the domain is all values x≥5, and the range is all values of y≥2.
  12. Check that your inverse function works. To make sure that your work is correct and your inverse is the right equation, select any value for x and place it into the original equation to find y. Then, put that value of y in the place of x in your inverse equation, and see if you generate the number that you started with. If so, your inverse function is correct.[1]
    • As a sample, select the value x=3 to place in the original equation <math>f(x)=x^2-4x+9</math>. This gives the result y=6.
    • Next, place that value of 6 into the inverse function <math>\sqrt{x-5}+2=y</math>. This does give the result of y=3, which is the number you started with. You can conclude that your inverse function is correct.

Using the Quadratic Formula

  1. Remember the Quadratic Formula for solving x. Recall that, when solving quadratic equations, one method was to factor them, if possible. If factoring did not work, then you could resort to the Quadratic Formula, which would yield the real solutions for any quadratic formula. You can use the Quadratic Formula as another method to find inverse functions.[1]
    • The Quadratic Formula is x=[-b±√(b^2-4ac)]/2a.
    • Notice that the Quadratic Formula will result in two possible solutions, one positive and one negative. You will make this selection based on defining the domain and range of the function.
  2. Begin with a quadratic equation to find the inverse. Your quadratic equation must begin in the format <math>f(x)=ax^2+bx+c</math>. Take whatever algebraic steps you must in order to get your equation into that form.[1]
    • For this section of this article, use the sample equation <math>f(x)=x^2+2x-3</math>.
  3. Graph the equation to define the domain and range. Determine the graph of the function, either by using a graphing calculator or just plotting various points until the parabola appears. You will find that this equation defines a parabola with its apex at (-1,-4). Thus, to define this as a function that will have an inverse, define the domain as all values of x≤-1. The range will then be all y≥-4.[1]
  4. Interchange the variables x and y. To begin finding the inverse, switch the variables x and y. Leave the equation unchanged, except for reversing the variables. At this stage, you will replace x for f(x).[1]
    • Using the working equation <math>f(x)=x^2+2x-3</math>, this will give the result <math>x=y^2+2y-3</math>.
  5. Set the left size of the equation equal to 0. Recall that to use the Quadratic Formula, you must set your equation equal to 0, and then use the coefficients in the formula. Similarly, this method of finding an inverse function begins by setting the equation equal to 0.
    • For the sample equation, to get the left side equal to 0, you must subtract x from both sides of the equation. This will give the result <math>0=y^2+2y-3-x</math>.
  6. Redefine the variables to fit the Quadratic Formula. This step is a bit tricky. Recall that the Quadratic Formula solves for x, in the equation <math>0=ax^2+bx+c</math>. So, to get the equation you currently have, <math>0=y^2+2y-3-x</math>, to match that format, you need to redefine terms as follows:[1]
    • Let <math>y^2=ax^2</math>. Therefore, x=1
    • Let <math>2y=bx</math>. Therefore, b=2
    • Let <math>(-3-x)=c</math>. Therefore, c=(-3-x)
  7. Solve the Quadratic Formula using those redefined values. Normally, you would place the values of a, b and c into the Quadratic Formula to solve for x. However, recall that you previously switched x and y for finding the inverse function. Therefore, when you use the Quadratic Formula to solve for x, you are really solving for y, or the f-inverse. The steps of solving the Quadratic Formula will work like this:[1]
    • x=[-b±√(b^2-4ac)]/2a
    • x=(-2)±√((-2)^2-4(1)(-3-x)) / 2(1)
    • x=((-2)±√(4+12+4x))/2
    • x=(-2±√(16+4x))/2
    • x=(-2±√(4)(4+x))/2
    • x=-2±2√(4+x))/2
    • x=-1±√(4+x)
    • f-inverse = -1±√(4+x) (This final step is possible because you earlier put x in place of the f(x) variable.)
  8. Write out the two possible solutions. Notice that the Quadratic Formula gives two possible results, using the ± symbol. Write out the two separate solutions to make it easier to define the domain and range and make the correct final solution. These two solutions are:[1]
    • <math>f^{-1} = -1+\sqrt{4+x}</math>
    • <math>f^{-1} = -1-\sqrt{4+x}</math>
  9. Define the domain and range of the inverse function. Notice that, for the square root to be defined, the domain must be x≥-4. Recall that the domain of the original function was x≤-1 and the range was y≥-4. To choose the inverse function that matches, you will need to choose the second solution, <math>f^{-1} = -1-\sqrt{4+x}</math> as the correct inverse function.[1]
  10. Check that your inverse function works. To make sure that your work is correct and your inverse is the right equation, select any value for x and place it into the original equation to find y. Then, put that value of y in the place of x in your inverse equation, and see if you generate the number that you started with. If so, your inverse function is correct.[1]
    • Using the original function <math>f(x)=x^2+2x-3</math>, choose x=-2. This will give the result of y=-3. Now put the value of x=-3 into the inverse function, <math>f^{-1} = -1-\sqrt{4+x}</math>. This turns out the result of -2, which is indeed the value that you started with. Therefore, your definition of the inverse function is correct.

Related Articles

Sources and Citations