Rational Expressions & Functions

Study Sheet

Rational Expressions & Functions

Everything for Topic 6 on one desk reference

Simplifying Rational Expressions & Domain

Concept
What is a Rational Expression?

A rational expression is a ratio of two polynomials, P(x)Q(x)\dfrac{P(x)}{Q(x)}. It is undefined wherever the denominator equals zero --- those inputs are the excluded values. The domain is every real number except the excluded values.

To simplify: factor the numerator and denominator completely, then cancel any common factors. Always list excluded values from the original denominator.

Example
Worked Example: Factor, then Cancel

Simplify x29x2x6\dfrac{x^2-9}{x^2-x-6} and state the domain.

x29x2x6=(x3)(x+3)(x3)(x+2)factor both=x+3x+2cancel the common factor (x3)\begin{aligned} \frac{x^2-9}{x^2-x-6} &= \frac{(x-3)(x+3)}{(x-3)(x+2)} &&\text{factor both}\\ &= \frac{x+3}{x+2} &&\text{cancel the common factor }(x-3) \end{aligned}

Excluded values come from the original denominator (x3)(x+2)=0(x-3)(x+2)=0, so x3x\neq 3 and x2x\neq -2. Domain: all reals except 2-2 and 33.

Tip

Cancel factors, never terms. You may cancel (x3)(x3)\dfrac{(x-3)}{(x-3)} because x3x-3 is a factor. You may not cancel the xx's in x+3x+2\dfrac{x+3}{x+2} --- those are terms joined by ++, not factors.

Multiplying & Dividing

Concept
Multiply Straight Across; Divide by Flipping

Multiply: factor everything, cancel any factor in a numerator against a matching factor in a denominator, then write what remains.

Divide: multiply by the reciprocal of the second fraction --- “keep, change, flip” --- then proceed as a multiplication.

Example
Worked Example: Multiply

Simplify x24x2+6x+9x+3x2\dfrac{x^2-4}{x^2+6x+9}\cdot\dfrac{x+3}{x-2}.

=(x2)(x+2)(x+3)2x+3x2factor=x+2x+3cancel (x2) and one (x+3)\begin{aligned} &= \frac{(x-2)(x+2)}{(x+3)^2}\cdot\frac{x+3}{x-2} &&\text{factor}\\ &= \frac{x+2}{x+3} &&\text{cancel }(x-2)\text{ and one }(x+3) \end{aligned}
Example
Worked Example: Divide

Simplify x21x+2÷x1x24\dfrac{x^2-1}{x+2}\div\dfrac{x-1}{x^2-4}.

=(x1)(x+1)x+2(x2)(x+2)x1flip and factor=(x+1)(x2)cancel (x1) and (x+2)\begin{aligned} &= \frac{(x-1)(x+1)}{x+2}\cdot\frac{(x-2)(x+2)}{x-1} &&\text{flip and factor}\\ &= (x+1)(x-2) &&\text{cancel }(x-1)\text{ and }(x+2) \end{aligned}

Adding & Subtracting (LCD)

Concept
Common Denominators

You can only combine fractions over a common denominator. Find the LCD: factor each denominator, then take each distinct factor to its highest power that appears. Rewrite each fraction with the LCD, combine the numerators, then simplify.

Example
Worked Example: Add with Unlike Denominators

Simplify 3x+2+2x1\dfrac{3}{x+2}+\dfrac{2}{x-1}. The LCD is (x+2)(x1)(x+2)(x-1).

=3(x1)(x+2)(x1)+2(x+2)(x+2)(x1)=3x3+2x+4(x+2)(x1)=5x+1(x+2)(x1)\begin{aligned} &= \frac{3(x-1)}{(x+2)(x-1)}+\frac{2(x+2)}{(x+2)(x-1)}\\ &= \frac{3x-3+2x+4}{(x+2)(x-1)} = \frac{5x+1}{(x+2)(x-1)} \end{aligned}
Example
Worked Example: Subtract (watch the sign!)

Simplify xx32x+1\dfrac{x}{x-3}-\dfrac{2}{x+1}. The LCD is (x3)(x+1)(x-3)(x+1).

=x(x+1)2(x3)(x3)(x+1)distribute the minus to both terms=x2+x2x+6(x3)(x+1)=x2x+6(x3)(x+1)\begin{aligned} &= \frac{x(x+1)-2(x-3)}{(x-3)(x+1)} &&\text{distribute the minus to \emph{both} terms}\\ &= \frac{x^2+x-2x+6}{(x-3)(x+1)} = \frac{x^2-x+6}{(x-3)(x+1)} \end{aligned}
Tip

Subtraction trap. The minus sign applies to the entire numerator of the second fraction. Wrap it in parentheses first: (2)(x3)=2x+6-\,(2)(x-3) = -2x+6, not 2x6-2x-6.

Complex Fractions

Concept
A Fraction Inside a Fraction

A complex fraction has fractions in its numerator, denominator, or both. The fastest method: find the LCD of all the little fractions and multiply the top and bottom by that LCD. This clears every small denominator at once.

Example
Worked Example: Clear the Small Denominators

Simplify 14x212x\dfrac{\,1-\frac{4}{x^2}\,}{\,1-\frac{2}{x}\,}. The LCD of x2x^2 and xx is x2x^2.

=x2(14x2)x2(12x)=x24x22x=(x2)(x+2)x(x2)=x+2x\begin{aligned} &= \frac{x^2\left(1-\frac{4}{x^2}\right)}{x^2\left(1-\frac{2}{x}\right)} = \frac{x^2-4}{x^2-2x}\\ &= \frac{(x-2)(x+2)}{x(x-2)} = \frac{x+2}{x} \end{aligned}

Solving Rational Equations & Extraneous Solutions

Concept
Clear the Denominators

To solve (not simplify) a rational equation, multiply every term by the LCD to clear all fractions, then solve the resulting polynomial equation. Because multiplying by a variable expression can introduce false roots, you must check each answer.

Tip

Extraneous solutions. Any answer that makes an original denominator zero is extraneous --- discard it. Always list the excluded values before you start, then reject any solution that lands on one.

Example
Worked Example: Extraneous Root

Solve xx4=4x4+3\dfrac{x}{x-4}=\dfrac{4}{x-4}+3.   Excluded: x4x\neq 4.

x=4+3(x4)multiply every term by (x4)x=4+3x122x=8  x=4\begin{aligned} x &= 4 + 3(x-4) &&\text{multiply every term by }(x-4)\\ x &= 4 + 3x - 12\\ -2x &= -8 \ \Rightarrow\ x = 4 \end{aligned}

But x=4x=4 is excluded, so it is extraneous. No solution.

Example
Worked Example: Quadratic Result

Solve x+6x=5x+\dfrac{6}{x}=5.   Excluded: x0x\neq 0.

x2+6=5xmultiply every term by xx25x+6=0(x2)(x3)=0  x=2 or x=3\begin{aligned} x^2 + 6 &= 5x &&\text{multiply every term by }x\\ x^2 - 5x + 6 &= 0\\ (x-2)(x-3) &= 0 \ \Rightarrow\ x=2 \text{ or } x=3 \end{aligned}

Neither is excluded, so both check: x=2, 3x=2,\ 3.

Graphing Rational Functions

Concept
The Full Checklist

For f(x)=P(x)Q(x)f(x)=\dfrac{P(x)}{Q(x)} in lowest terms:

  • [leftmargin=*,itemsep=1pt]
  • Holes: a factor that cancels from top and bottom gives a hole at that xx-value.
  • Vertical asymptotes (VA): set the remaining denominator equal to 00.
  • Horizontal asymptote (HA): compare degrees of PP and QQ.
  • Intercepts: xx-intercepts where P(x)=0P(x)=0; yy-intercept at f(0)f(0).
Tip

How to find the HA. Let n=degPn=\deg P, m=degQm=\deg Q.

  • [leftmargin=*,itemsep=1pt]
  • n<mn<m: HA is y=0y=0 (the xx-axis).
  • n=mn=m: HA is y=leading coeff. of Pleading coeff. of Qy=\dfrac{\text{leading coeff. of }P}{\text{leading coeff. of }Q}.
  • n>mn>m: no HA (there is a slant/oblique asymptote instead).
Example
Worked Example: Full Analysis

Analyze f(x)=x+1x2f(x)=\dfrac{x+1}{x-2}.

  • [leftmargin=*,itemsep=1pt]
  • Domain / VA: denominator x2=0x-2=0\Rightarrow VA at x=2x=2; domain x2x\neq 2.
  • HA: degrees equal (1=11=1), so y=11=1y=\frac{1}{1}=1.
  • xx-intercept: x+1=0(1,0)x+1=0\Rightarrow(-1,0).
  • yy-intercept: f(0)=12=12(0,12)f(0)=\frac{1}{-2}=-\frac{1}{2}\Rightarrow\left(0,-\tfrac12\right).
  • Holes: no common factor, so none.
Example
Worked Example: A Hole

Analyze g(x)=x24x2=(x2)(x+2)x2=x+2g(x)=\dfrac{x^2-4}{x-2}=\dfrac{(x-2)(x+2)}{x-2}=x+2, with x2x\neq 2. The factor (x2)(x-2) cancels, so instead of a vertical asymptote there is a hole at x=2x=2. Its height is gg's reduced form at x=2x=2: 2+2=42+2=4, so the hole is at (2,4)(2,4). The graph is the line y=x+2y=x+2 with a single point punched out.

Direct, Inverse & Joint Variation

Concept
Three Variation Models

Every variation problem hides a constant kk. Use one data point to find kk, then answer the question.

  • [leftmargin=*,itemsep=1pt]
  • Direct: y=kxy=kx (as xx grows, yy grows proportionally).
  • Inverse: y=kxy=\dfrac{k}{x} (as xx grows, yy shrinks).
  • Joint: y=kxzy=kxz (yy varies with the product of two quantities).
Example
Worked Example: Inverse Variation

yy varies inversely with xx, and y=8y=8 when x=3x=3. Find yy when x=6x=6.

y=kx:8=k3  k=24So y=24x;at x=6,  y=246=4\begin{aligned} y=\frac{k}{x}:\quad 8 &= \frac{k}{3} \ \Rightarrow\ k = 24\\ \text{So } y=\frac{24}{x};\quad \text{at } x=6,\ \ y &= \frac{24}{6} = 4 \end{aligned}

Applications: Work/Rate & Mixture

Concept
Rates Add

If one worker finishes a job in aa hours, their rate is 1a\dfrac{1}{a} job per hour. When several work together, rates add. For a shared time tt:

ta+tb=1(one whole job completed).\frac{t}{a}+\frac{t}{b}=1\qquad\text{(one whole job completed).}

For mixture problems, track the amount of pure substance and set the concentration equal to your target.

Example
Worked Example: Working Together

Pipe A fills a tank in 44 hours, pipe B in 66 hours. How long together?

t4+t6=1LCD 123t+2t=125t=12  t=125=2.4 hours (2 h 24 min).\begin{aligned} \frac{t}{4}+\frac{t}{6} &= 1 &&\text{LCD }12\\ 3t + 2t &= 12\\ 5t &= 12 \ \Rightarrow\ t=\frac{12}{5}=2.4\text{ hours (2 h 24 min).} \end{aligned}
Example
Worked Example: Dilution

How much water must be added to 1010 L of 40%40\% acid to weaken it to 25%25\%? The pure acid stays at 0.40(10)=40.40(10)=4 L. Let x=x= liters of water added:

410+x=0.25  4=2.5+0.25x  x=6 L.\frac{4}{10+x}=0.25 \ \Rightarrow\ 4 = 2.5 + 0.25x \ \Rightarrow\ x = 6\text{ L}.
Tip

Sanity check. A “together” time must be shorter than either worker alone. If your answer is longer than the fastest worker, recheck the setup.

Going Deeper: Advanced Rational Functions

Concept
Holes vs. Vertical Asymptotes --- Told Precisely

Both come from a zero of the original denominator, but they behave very differently. Factor top and bottom completely and compare the multiplicity of each root:

  • [leftmargin=*,itemsep=1pt]
  • Vertical asymptote at x=ax=a: the factor (xa)(x-a) survives in the denominator of the reduced form. The function blows up (±\to\pm\infty) there.
  • Hole at x=ax=a: the factor (xa)(x-a) cancels completely. If it appears to power pp on top and qq on the bottom, the outcome depends on which is larger.

Compare powers: with (xa)p(x-a)^p on top and (xa)q(x-a)^q on the bottom, the net factor is (xa)pq(x-a)^{p-q}. If pqp\ge q the point is a hole (removable); if p<qp<q it is a vertical asymptote of order qpq-p.

Example
Worked Example: Same Root, Two Fates

Analyze f(x)=(x3)2(x+1)(x3)(x3)(x3)=(x3)2(x+1)(x3)3f(x)=\dfrac{(x-3)^2(x+1)}{(x-3)(x-3)(x-3)}=\dfrac{(x-3)^2(x+1)}{(x-3)^3} near x=3x=3.

f(x)=(x3)2(x+1)(x3)3count multiplicities: p=2, q=3=x+1x3net factor (x3)23=(x3)1\begin{aligned} f(x) &= \frac{(x-3)^2(x+1)}{(x-3)^3} &&\text{count multiplicities: } p=2,\ q=3\\ &= \frac{x+1}{x-3} &&\text{net factor }(x-3)^{2-3}=(x-3)^{-1} \end{aligned}

Since p<qp<q, one factor of (x3)(x-3) remains below: there is a vertical asymptote at x=3x=3, not a hole. Had the top been (x3)3(x-3)^3 instead, all three would cancel and x=3x=3 would be a hole.

Concept
Slant (Oblique) Asymptotes via Long Division

When degP=degQ+1\deg P = \deg Q + 1 (numerator exactly one degree higher), there is no horizontal asymptote --- instead the graph follows a slant line y=mx+by=mx+b. Find it by polynomial long division:

P(x)Q(x)=(mx+b)slant asymptote+remainderQ(x).\frac{P(x)}{Q(x)} = \underbrace{(mx+b)}_{\text{slant asymptote}} + \frac{\text{remainder}}{Q(x)}.

As x±x\to\pm\infty the remainder term 0\to 0, so the curve hugs the line y=mx+by=mx+b. The remainder is what you discard for the asymptote --- but its sign tells you whether the curve sits above or below the line.

Example
Worked Example: Find a Slant Asymptote

Find the slant asymptote of f(x)=x2+3x+5x+1f(x)=\dfrac{x^2+3x+5}{x+1}.

x2+3x+5x+1=x+2+3x+1long division: quotient x+2, remainder 3\begin{aligned} \frac{x^2+3x+5}{x+1} &= x+2+\frac{3}{x+1} &&\text{long division: quotient }x+2,\ \text{remainder }3 \end{aligned}

The slant asymptote is y=x+2y=x+2. Because the remainder 3x+1>0\dfrac{3}{x+1}>0 for x>1x>-1, the curve lies above the line to the right and below it to the left. (Degrees: degP=2=degQ+1\deg P=2=\deg Q+1, confirming a slant, not horizontal, asymptote.)

Tip

When does a graph cross its horizontal asymptote? A horizontal asymptote only describes end behavior (x±x\to\pm\infty); it may be crossed in the middle. Set f(x)=Lf(x)=L (the HA value) and solve. If there is a real solution, the graph crosses its HA there. A graph can never cross a vertical asymptote, but crossing a horizontal or slant asymptote is perfectly legal.

Example
Worked Example: Crossing the Horizontal Asymptote

Does f(x)=x22xx2+1f(x)=\dfrac{x^2-2x}{x^2+1} cross its horizontal asymptote? Degrees are equal, so HA=y=11=1\text{HA}=y=\tfrac11=1. Set f(x)=1f(x)=1:

x22xx2+1=1x22x=x2+1cross-multiply (denominator never 0)2x=1  x=12\begin{aligned} \frac{x^2-2x}{x^2+1} &= 1\\ x^2-2x &= x^2+1 &&\text{cross-multiply (denominator never }0\text{)}\\ -2x &= 1 \ \Rightarrow\ x=-\tfrac12 \end{aligned}

Yes --- the graph crosses y=1y=1 at (12,1)\left(-\tfrac12,\,1\right). Beyond that point it approaches y=1y=1 without touching it again.

Concept
Partial-Fraction Decomposition

The reverse of adding fractions: split one complicated rational expression into a sum of simple ones. First make sure the fraction is proper (degP<degQ\deg P<\deg Q); if not, divide first. Then factor QQ and assign an unknown numerator to each factor type:

  • [leftmargin=*,itemsep=1pt]
  • Distinct linear (xa)(x-a): term Axa\dfrac{A}{x-a}.
  • Repeated linear (xa)k(x-a)^k: one term per power, A1xa+A2(xa)2++Ak(xa)k\dfrac{A_1}{x-a}+\dfrac{A_2}{(x-a)^2}+\dots+\dfrac{A_k}{(x-a)^k}.
  • Irreducible quadratic (x2+bx+c)(x^2+bx+c): term Bx+Cx2+bx+c\dfrac{Bx+C}{x^2+bx+c} (a linear numerator).

Clear denominators and solve for the constants --- either by substituting convenient xx-values or by matching coefficients.

Example
Worked Example: Distinct Linear Factors

Decompose 5x+1(x+2)(x1)\dfrac{5x+1}{(x+2)(x-1)}. Write 5x+1(x+2)(x1)=Ax+2+Bx1\dfrac{5x+1}{(x+2)(x-1)}=\dfrac{A}{x+2}+\dfrac{B}{x-1} and clear denominators:

5x+1=A(x1)+B(x+2)x=1:6=3B  B=2x=2:9=3A  A=3\begin{aligned} 5x+1 &= A(x-1)+B(x+2)\\ x=1:\quad 6 &= 3B \ \Rightarrow\ B=2\\ x=-2:\quad -9 &= -3A \ \Rightarrow\ A=3 \end{aligned}

So 5x+1(x+2)(x1)=3x+2+2x1\dfrac{5x+1}{(x+2)(x-1)}=\dfrac{3}{x+2}+\dfrac{2}{x-1}. (This is exactly the “add” example from Section 3, run backwards.)

Example
Worked Example: Repeated and Irreducible-Quadratic Factors

Decompose x2+2(x1)2(x2+1)\dfrac{x^2+2}{(x-1)^2(x^2+1)}. Set up every required term:

x2+2(x1)2(x2+1)=Ax1+B(x1)2+Cx+Dx2+1.\frac{x^2+2}{(x-1)^2(x^2+1)}=\frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{Cx+D}{x^2+1}.

Clearing denominators gives x2+2=A(x1)(x2+1)+B(x2+1)+(Cx+D)(x1)2x^2+2=A(x-1)(x^2+1)+B(x^2+1)+(Cx+D)(x-1)^2.

x=1:3=2B  B=32match x3:0=A+Cmatch x0:2=A+B+Dmatch x2:1=A+B+C2C+D\begin{aligned} x=1:\quad 3 &= 2B \ \Rightarrow\ B=\tfrac32\\ \text{match }x^3:\quad 0 &= A+C\\ \text{match }x^0:\quad 2 &= -A+B+D\\ \text{match }x^2:\quad 1 &= A+B+C-2C+D \end{aligned}

Solving the system yields A=12, B=32, C=12, D=0A=\tfrac12,\ B=\tfrac32,\ C=-\tfrac12,\ D=0, so

x2+2(x1)2(x2+1)=1/2x1+3/2(x1)2+12xx2+1.\frac{x^2+2}{(x-1)^2(x^2+1)}=\frac{1/2}{x-1}+\frac{3/2}{(x-1)^2}+\frac{-\tfrac12 x}{x^2+1}.

Note the repeated factor gets two terms and the quadratic gets a linear numerator Cx+DCx+D.

Concept
Telescoping Sums from Partial Fractions

Partial fractions turn many “impossible” sums into telescoping sums, where adjacent terms cancel in a cascade. The key identity is

1n(n+1)=1n1n+1.\frac{1}{n(n+1)}=\frac{1}{n}-\frac{1}{n+1}.

Summing it, every interior term is cancelled by its neighbour, leaving only the first and last:

n=1N1n(n+1)=(112)+(1213)++(1N1N+1)=11N+1.\sum_{n=1}^{N}\frac{1}{n(n+1)}=\left(1-\frac12\right)+\left(\frac12-\frac13\right)+\dots+\left(\frac1N-\frac1{N+1}\right)=1-\frac{1}{N+1}.
Example
Worked Example: Telescoping a Finite Sum

Evaluate n=1991n(n+1)\displaystyle\sum_{n=1}^{99}\frac{1}{n(n+1)}. Decompose the general term, then collapse:

1n(n+1)=1n1n+1partial fractionsn=199(1n1n+1)=11100interior terms cancel=99100\begin{aligned} \frac{1}{n(n+1)} &= \frac1n-\frac1{n+1} &&\text{partial fractions}\\ \sum_{n=1}^{99}\left(\frac1n-\frac1{n+1}\right) &= 1-\frac{1}{100} &&\text{interior terms cancel}\\ &= \frac{99}{100} \end{aligned}

The whole sum reduces to just the surviving endpoints --- no other arithmetic needed.

Concept
The x+1xx+\tfrac1x Family

Many problems become easy once you let s=x+1xs=x+\dfrac1x. Squaring and cubing generate the other symmetric powers:

(x+1x)2=x2+2+1x2x2+1x2=s22(x+1x)3=x3+3x+3x+1x3x3+1x3=s33s\begin{aligned} \left(x+\frac1x\right)^2 &= x^2+2+\frac1{x^2} &&\Rightarrow\quad x^2+\frac1{x^2}=s^2-2\\ \left(x+\frac1x\right)^3 &= x^3+3x+\frac3x+\frac1{x^3} &&\Rightarrow\quad x^3+\frac1{x^3}=s^3-3s \end{aligned}

So knowing a single value s=x+1xs=x+\dfrac1x instantly gives x2+1x2x^2+\dfrac1{x^2} and x3+1x3x^3+\dfrac1{x^3} without ever solving for xx.

Example
Worked Example: Powers Without Solving for xx

If x+1x=3x+\dfrac1x=3, find x3+1x3x^3+\dfrac1{x^3}. Let s=3s=3 and use the identities:

x2+1x2=s22=92=7x3+1x3=s33s=279=18\begin{aligned} x^2+\frac1{x^2} &= s^2-2 = 9-2 = 7\\ x^3+\frac1{x^3} &= s^3-3s = 27-9 = 18 \end{aligned}

Answer: x3+1x3=18x^3+\dfrac1{x^3}=18. (Check via x3+1x3=(x+1x) ⁣(x21+1x2)=3(71)=18x^3+\tfrac1{x^3}=\left(x+\tfrac1x\right)\!\left(x^2-1+\tfrac1{x^2}\right)=3(7-1)=18.)

Concept
Continued Fractions

A continued fraction nests division inside division:

a0+1a1+1a2+1a3+.a_0+\cfrac{1}{a_1+\cfrac{1}{a_2+\cfrac{1}{a_3+\cdots}}}.

Evaluate a finite one by working from the bottom up. A periodic infinite continued fraction satisfies a self-referential equation: if yy equals the whole expression and the pattern repeats, substitute yy back into itself and solve the resulting (usually quadratic) equation --- keeping the positive root.

Example
Worked Example: A Self-Referential Continued Fraction

Evaluate y=1+11+11+11+y=1+\cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{1+\cdots}}}, which repeats forever. Because the tail below the first bar is an identical copy of yy:

y=1+1ythe inner expression is yy2=y+1multiply by yy2y1=0  y=1+52\begin{aligned} y &= 1+\frac{1}{y} &&\text{the inner expression \emph{is} }y\\ y^2 &= y+1 &&\text{multiply by }y\\ y^2-y-1 &= 0 \ \Rightarrow\ y=\frac{1+\sqrt5}{2} \end{aligned}

We take the positive root, so y=1+52y=\dfrac{1+\sqrt5}{2}, the golden ratio φ1.618\varphi\approx1.618.

Formulas, Proofs & Tips

Tip
Excluded values
P(x)Q(x) is undefined where Q(x)=0\frac{P(x)}{Q(x)} \text{ is undefined where } Q(x)=0

What it means. A rational expression exists everywhere except where its denominator vanishes.

Example. 1x2\dfrac{1}{x-2} is undefined at x=2x=2, so x2x\ne 2.

Why it works. Division asks "what times the denominator gives the numerator?". If the denominator is 00, no number works (or every number does, when the numerator is 00 too), so the value cannot be defined.

Tip. Find the excluded values from the original denominator, before cancelling. Cancelling can hide a restriction that still applies.