topic badge

5.05 Solving rational equations

Introduction

We can solve equations with rational expressions and write rational functions representing real world phenomena. In this lesson, we will use our tools with performing operations on rational expressions, determining types of solutions, and stating domain and range in context to solve equations.

Solving rational equations

A rational equation is any equation containing at least one rational expression.

When working algebraically to find solutions we can get viable, non-viable, and/or extraneous solutions.

Viable solution

A valid solution that makes sense within the context of the question or problem

Non-viable solution

An algebraically valid solution that does not make sense within the context of the question or problem

Extraneous solution

A solution to an equation that emerges from the algebraic process of solving the problem, but does not satisfy the original equation

For rational equations, extraneous solutions typically occur at values which make both the numerator and denominator of a rational expression equal to 0. That is, for f\left(x\right)=\dfrac{P\left(x\right)}{Q\left(x\right)}, if we have that {P\left(a\right)=0} and Q\left(a\right)=0 then x=a is extraneous.

When solving rational equations, it is important to keep in mind both the algebraic restrictions on the variables as well as any context involved in the question.

Examples

Example 1

Consider the rational equation:

\frac{x + 5}{x - 3} = 0

a

Determine whether x = 3 is a viable solution, an extraneous solution, or not a solution at all.

Worked Solution
Create a strategy

Substitute x=3 in the equation and evaluate the addition, subtraction, and division.

Apply the idea

\frac{3 + 5}{3 - 3} = \frac{8}{0} = \text{undefined}

x = 3 is not a solution to this equation.

b

Graph the corresponding function, f\left(x\right)=\dfrac{x + 5}{x - 3}, and explain how any viable solutions, extraneous solutions or restricted domain values are displayed in the graph.

Worked Solution
Create a strategy

By solving the denominator equal to zero we can determine any domain restrictions of the function:

\displaystyle x-3\displaystyle =\displaystyle 0Set the denominator equal to zero
\displaystyle x\displaystyle =\displaystyle 3Add 3 to both sides of the equation

And by solving the equation \dfrac{x+5}{x-3}=0, we have:

\displaystyle \dfrac{x+5}{x-3}\displaystyle =\displaystyle 0
\displaystyle x+5\displaystyle =\displaystyle 0Multiply both sides of the equation by x-3
\displaystyle x\displaystyle =\displaystyle -5Subtract 5 from both sides of the equation

Since x=-5 does not make the denominator of the function equal to zero, it is a viable solution.

Use technology to graph the function and analyze the function at x=3 and x=-5.

Apply the idea
A screenshot of the GeoGebra graphing calculator showing the graph of f of x equals x plus 5 all over x minus 3. Speak to your teacher for more details.

We can see that as the function approaches the undefined value at x=3 from the left, f\left(x\right) \to -\infty, and as the function approaches x=3 from the right, f\left(x\right) \to \infty. Hence, we see a vertical asymptote.

When x=-5, the value of the function is equal to zero and we can see an x-intercept at \left(-5,0\right) on the graph.

Reflect and check

Recall for a rational function, if a value of x=a leads to a zero denominator but not a zero numerator or is a zero of lower multiplicity in the numerator, a vertical asymptote forms on the graph at x=a. We also have if a value of x=b leads to a zero numerator but not a zero denominator the graph of the function will have an x-intercept at x=b.

Example 2

Consider the rational equation:

\frac{\left(x - 3\right)^2}{x - 3} = 0

a

Determine whether x = 3 is a viable solution, an extraneous solution, or not a solution at all.

Worked Solution
Apply the idea

We can solve the equation for x as shown and get the solution x=3:

\displaystyle \dfrac{\left(x-3 \right) ^2}{x-3}\displaystyle =\displaystyle 0
\displaystyle \left(x-3 \right)^2\displaystyle =\displaystyle 0Multiply both sides of the equation by x-3
\displaystyle x-3\displaystyle =\displaystyle 0Evaluate the square root of both sides of the equation
\displaystyle x\displaystyle =\displaystyle 3Add 3 to both sides of the equation

It looks like x=3 is a solution to the equation. However, we still need to examine the denominator.

We can see that x = 3 is a zero of both the numerator and denominator of the rational expression:\dfrac{\left( 3-3 \right) ^2}{3-3}= \dfrac{0}{0} = \text{undefined}

Although x=3 will be an algebraic solution to the equation, it is also a value which makes the equation undefined.

So x = 3 is an extraneous solution to this equation.

Reflect and check

Unlike \dfrac{x+5}{x-3}=0, x=3 would be a solution of the equation \dfrac{\left(x - 3\right)^2}{x - 3} = 0 but it will lead to a zero denominator, which makes the type of solution different.

b

Graph the corresponding function, f\left(x\right)=\dfrac{\left(x - 3\right)^2}{x - 3}, and explain how any viable solutions, extraneous solutions or restricted domain values are displayed in the graph.

Worked Solution
Create a strategy

Use technology to graph the function and analyze the function at x=3.

Apply the idea
A screenshot of the GeoGebra graphing calculator showing the graph of f of x equals left parenthesis x minus 3 right parenthesis squared all over x minus 3. The point of intersection of the graph and the x axis is highlighted. Speak to your teacher for more details.

We know that x=3 is an extraneous solution by analyzing any restrictions on the function. Without that, the graph of f\left(x\right)=\dfrac{\left(x - 3\right)^2}{x - 3} looks as though it includes the point \left(3, 0 \right), but when tracing the function, the point is excluded.

We consider the extraneous solution x=3 a removable point of discontinuity because it is a zero of both the numerator and denominator, and the zero in the numerator is not of lower multiplicity than the denominator. So, the graph should include a removable point of discontinuity or a hole, which we can manually enter to show this restriction on the domain:

A screenshot of the GeoGebra graphing calculator showing the graph of f of x equals left parenthesis x minus 3 right parenthesis squared all over x minus 3 and an unfilled point A at (3, 0). Speak to your teacher for more details.

Example 3

Consider the rational equation:

\frac{x^2 + 5x - 24}{x^2 - 9x + 18} = 0

a

Solve the equation.

Worked Solution
Create a strategy

In order for a rational expression to be equal to 0, its numerator must be equal to 0. So we will factor the numerator to solve this equation.

We also want to factor the denominator, however, to check restrictions on the variable that could make each solution viable or extraneous.

When finding solutions to the equation, it's best not to simplify common factors in the numerator and denominator, as that may make us miss any possible extraneous solutions.

Apply the idea

The expression in the numerator is x^2 + 5x - 24, which can be factored to \left(x + 8\right)\left(x - 3\right).

The expression in the denominator is x^2 - 9x + 18, which can be factored to \left(x - 6\right)\left(x - 3\right).

So we can rewrite the equation as\frac{\left(x + 8\right)\left(x - 3\right)}{\left(x - 6\right)\left(x - 3\right)} = 0

From the denominator, we can see that x cannot be equal to 3 or 6.

From the numerator, we can see that the possible solutions are x = -8 and x=3.

Putting this together, we have that x = -8 is a viable solution, while x = 3 is an extraneous solution.

Reflect and check

If we were to solve the equation by first multiplying both sides by x^2 - 9x + 18, and then factoring the remaining quadratic, we would still get the two possible solutions of x = -8 and x = 3.

In order to determine whether they were valid or extraneous, we could substitute into the initial expression \dfrac{x^2 + 5x - 24}{x^2 - 9x + 18}:

For x=-8:\quad\dfrac{\left(-8\right)^2 + 5\left(-8\right) - 24}{\left(-8\right)^2 - 9\left(-8\right) + 18} = \dfrac{64 - 40 - 24}{64 + 72 + 18} = \dfrac{0}{154} = 0

For x=3:\quad\dfrac{3^2 + 5\left(3\right) - 24}{3^2 - 9\left(3\right) + 18} = \dfrac{9 + 15 - 24}{9 - 27 + 18} = \dfrac{0}{0}

So only the solution of x = -8 is valid. The solution of x = 3 produces an undefined expression and is therefore extraneous.

b

Graph the corresponding function, f\left(x\right)=\dfrac{x^2 + 5x - 24}{x^2 - 9x + 18}, and explain how any viable solutions, extraneous solutions or restricted domain values are displayed in the graph.

Worked Solution
Create a strategy

Use technology to graph the function and determine the behavior of the function at the points of interest, x=-8, x=3, and x=6.

Apply the idea
A screenshot of the GeoGebra graphing calculator showing the graph of f of x equals x squared plus 5 x minus 24 all over x squared minus 9 x plus 18. Speak to your teacher for more details.

We know that x=-8 is a viable solution, and we see on the graph that the x-intercept is at \left( -8, 0 \right).

Since x=6 is undefined, but not extraneous, there is a vertical asymptote at x=6.

We know that x=3 is an extraneous solution, so there is a removable point of discontinuity at x=3. This is not obvious with a visible inspection of the computer-generated graph. When we draw a sketch of the graph, we show the visible hole in the graph at x=3 in order to draw attention to the fact that the function is undefined at this point.

A screenshot of the GeoGebra graphing calculator showing the graph of f of x equals x squared plus 5 x minus 24 all over x squared minus 9 x plus 18 and an unfilled point A at (3, negative 3.65). Speak to your teacher for more details.

Notice that if we had simplified the equation in part (a) to \dfrac{\left( x + 8 \right)}{\left( x - 6 \right)}, we may have missed the fact that x=3 is an extraneous solution, and may not have recognized there was a point of discontinuity in the graph.

Example 4

Consider the rational equation:\frac{1}{x + 6} = \frac{2}{2x - 5}

a

Solve the equation for x.

Worked Solution
Create a strategy

Since there are two rational expressions in this equation, we will start by rearranging the equation to have both rational expressions on the same side, equal to zero, and then combine them by making a common denominator.

Apply the idea
\displaystyle \frac{1}{x + 6}\displaystyle =\displaystyle \frac{2}{2x - 5}State the equation
\displaystyle \frac{1}{x + 6} - \frac{2}{2x - 5}\displaystyle =\displaystyle 0Subtract \dfrac{2}{2x - 5} from both sides
\displaystyle \frac{2x - 5}{\left(x + 6\right)\left(2x - 5\right)} - \frac{2\left(x + 6\right)}{\left(x + 6\right)\left(2x - 5\right)}\displaystyle =\displaystyle 0Rewrite each rational expression to have a common denominator
\displaystyle \frac{2x - 5 - 2\left(x + 6\right)}{\left(x + 6\right)\left(2x - 5\right)}\displaystyle =\displaystyle 0Subtract the numerators
\displaystyle \frac{-17}{\left(x + 6\right)\left(2x - 5\right)}\displaystyle =\displaystyle 0Simplify the numerator

At this point, we can see that the equation has no solutions (viable or otherwise), since there is no value of x that can make the numerator of the rational expression be 0.

Reflect and check

It is also possible to draw this conclusion by rewriting the initial equation\frac{1}{x + 6} = \frac{2}{2x - 5}as\frac{2}{2x + 12} = \frac{2}{2x - 5}At this point the numerators are equal, while the functions in the denominators are linear expressions with the same slope (i.e. parallel lines). So the denominators will never be equal for any value of x, and therefore the equation has no solutions.

b

Graph the corresponding function, f\left(x\right)=\dfrac{1}{x + 6} - \dfrac{2}{2x - 5}, and explain how any viable solutions, extraneous solutions or restricted domain values are displayed in the graph.

Worked Solution
Create a strategy

Before graphing with technology, we can algebraically determine key features of the function.

We know there are no removable points of discontinuity because no values of x will make the numerator of the function equal to zero.

When x+6=0 or 2x-5=0, the graph will have vertical asymptotes and the function will be undefined. So, when x=-6 and x=\dfrac{5}{2}, the function is undefined and there will be two vertical asymptotes.

We determined that the equation \dfrac{1}{x+6}=\dfrac{2}{2x-5} has no solutions, so f\left(x\right) will have no x-intercepts.

Apply the idea
A screenshot of the GeoGebra graphing calculator showing the graph of f of x equals the fraction 1 over the quantity x plus 6 minus the fraction 2 over the quantity 2 x minus 5. Speak to your teacher for more details.

Examining the graph, we see there is a horizontal asymptote at f \left(x \right)=0, which means there are no solutions to f \left(x \right)=0. Two vertical asymptotes are located at x=-6 and x=\dfrac{5}{2}.

Example 5

The Apoleisk Company wishes to calculate the average cost per item of producing car batteries. The fixed monthly cost of production is \$10 \, 000 and each car battery produced costs \$10.

a

Write the average cost function, A\left(x\right), of producing x car batteries in a month.

Worked Solution
Create a strategy

The average cost function is A \left(x \right)= \dfrac{ \text{total cost of producing batteries for the month}}{\text{total number of batteries produced}}.

Apply the idea

Since the production costs \$10\,000 and each car battery produced costs \$10, the expression that represents the total cost for the month of producing batteries is 10000+10x, for x car batteries produced that month.

The average cost per battery would be calculated by dividing the total by the number of batteries, x, so the average cost function isA\left(x\right)=\dfrac{10000+10x}{x}

b

State the domain and range of the function.

Worked Solution
Create a strategy

Consider the context of the problem and what the variables represent. A \left(x \right) is the average cost per battery and x is the number of batteries.

Then, consider any values of x that lead to non-viable solutions, extraneous solutions, or that make the function undefined.

Apply the idea

Based on the context, we can initially state that the cost must be greater than or equal to \$0 and the number of batteries produced must also be greater than or equal to 0. Also in the real-life context of producing batteries, we would only have whole number values for x, since we can't make a negative number of batteries or make a fraction of a battery.

When x=0, the function is undefined since the denominator is equal to zero, so x=0 is excluded from the domain of the function.

When 10 \,000 + 10x =0, the solution for x will be a negative number of car batteries. This occurs when x=-1 \,000. Since we've already stated that the domain are positive values of x, -1 \,000 is already excluded from the domain and considered a non-viable solution.

The domain of the function can be defined as the integers on the interval \left [1, \infty \right). No maximum number of batteries was indicated in the problem.

Since this is an inverse relationship, as more batteries are produced, the average cost will decrease. Thus, when x=1 the cost of production will be its most expensive, at A \left(1 \right) = \dfrac{10\,000+ 10 \left(1 \right)}{1}= \dfrac{10 \,010}{1}= \$10\,010. As the cost can never be less than \$0, the range of the function can be defined as \left( 0, 10\,010 \right ], in interval notation. Although, in practice this would be a set of discrete values due to the domain being whole numbers.

c

How many car batteries does the Apoleisk Company need to produce each month so that the average cost of production per car battery is \$60?

Worked Solution
Create a strategy

Since we are attempting to find A(x)=60, solve the equation 60 = \dfrac{10 \,000 + 10}{x}.

Apply the idea
\displaystyle 60\displaystyle =\displaystyle \dfrac{10 \,000 + 10x}{x}Substitute A(x)=60
\displaystyle 60x\displaystyle =\displaystyle 10 \,000 + 10xMultiply both sides of the equation by x
\displaystyle 50x\displaystyle =\displaystyle 10 \,000Subtract 10x from both sides of the equation
\displaystyle 200\displaystyle =\displaystyle xDivide both sides of the equation by 50

The Apoleisk Company needs to produce 200 car batteries each month so that the average cost of production per battery is \$60.

Idea summary

We can recognize key features of a rational function by examining zeros and restricted domain values, which can involve factoring the numerator and denominator.

If a solution does not lead to a restriction on the rational function and makes sense within the context of the problem, it is a viable solution.

If there is a value of x that makes the denominator equal to 0, that value must be excluded from the domain of the rational function, which can occur in one of two ways:

  • The excluded value also causes the numerator to be equal to 0, and the numerator is of the same or higher multiplicity as the denominator. In this case, the excluded value is an extraneous solution and the graph of the function will have a removable point of discontinuity
  • The excluded value does not cause the numerator to be zero, and is not a solution to the equation. The graph will have a vertical asymptote

Outcomes

A.CED.A.4

Rearrange formulas to highlight a quantity of interest, using the same reasoning as in solving equations.

A.REI.A.2

Solve simple rational and radical equations in one variable, and give examples showing how extraneous solutions may arise.

F.IF.C.8

Write a function defined by an expression in different but equivalent forms to reveal and explain different properties of the function.

What is Mathspace

About Mathspace