# Rational Functions and Expressions

Source: https://cca.twango.dev/Algebra-2-Honors/lectures/rational-functions

# Rational Functions and Expressions

## Direct and inverse variation

- **Direct variation:** $y=kx$; for nonzero $x$, $y/x$ is constant.
- **Inverse variation:** $y=k/x$; $xy$ is constant and $x\ne0$.
- If neither test holds, the relationship need not be either type.

The original table listed $y=x$ under “none.” It is direct variation with $k=1$.

## Rational functions and graphs

A rational function is $f(x)=p(x)/q(x)$, where $p$ and $q$ are polynomials and the denominator is not the zero polynomial. Exclude every input where the original denominator is zero. A zero numerator is allowed.

For $a\ne0$,

$$
f(x)=\frac{a}{x-h}+k
$$

has vertical asymptote $x=h$, horizontal asymptote $y=k$, domain $x\ne h$, and range $y\ne k$.

To graph it:

1. Draw the asymptotes.
2. Plot points on both sides of $x=h$.
3. Draw the branches approaching the asymptotes.

For $f(x)=(ax+b)/(cx+d)$ with $c\ne0$, the horizontal asymptote is $y=a/c$.
The denominator vanishes at $x=-d/c$. This is a vertical asymptote only when the corresponding factor does not cancel.

> [!warning] Domain and cancellation
> The original notes treated every denominator zero as a vertical asymptote. Cancellation can instead leave a **hole**. Keep the excluded input even after simplifying. The simple $a/x$ graph also assumes $a\ne0$.

## Arithmetic with rational expressions

Factor before canceling. Only **factors** cancel, not individual terms in a sum.

$$
\frac{ac}{bc}=\frac ab\quad(b,c\ne0),\qquad
\frac ab\cdot\frac cd=\frac{ac}{bd}\quad(b,d\ne0),
$$

$$
\frac ab\div\frac cd=\frac{ad}{bc}\quad(b,c,d\ne0).
$$

With a common denominator,

$$
\frac ac\pm\frac bc=\frac{a\pm b}{c}\quad(c\ne0).
$$

With different denominators,

$$
\frac ac\pm\frac bd=\frac{ad\pm bc}{cd}\quad(c,d\ne0).
$$

When solving $a/b=c/d$, cross-multiply to obtain $ad=bc$ only after requiring $b,d\ne0$. Check candidate solutions against the original restrictions.

Related: [[polynomial-methods|Polynomial division]], [[transformations|Transformations]], and [[../final-notes|Final review]].
