Skip to content

Unit 4 & 13: Polynomial & Rational Functions and Applications to Optimization

AP Precalc cheatsheet

Open β†—

Loading…


Linear and quadratic functions are the first two polynomial families. They are worth separating out because they show up constantly in modeling and optimization.

A linear function has the form

f(x)=mx+b.f(x)=mx+b.

The number mm is the slope and b=f(0)b=f(0) is the yy-intercept. If a line is written in standard form

Ax+By=C,Ax+By=C,

then, as long as B≠0B\ne 0, the slope is

m=βˆ’AB.m=-\frac{A}{B}.

Example. Find a linear function ff such that f(2)=1f(2)=1 and the graph of y=f(x)y=f(x) is perpendicular to the graph of 6xβˆ’3y=26x-3y=2.

First put the given line in slope-intercept form:

6xβˆ’3y=2⟹y=2xβˆ’23.6x-3y=2 \quad\Longrightarrow\quad y=2x-\frac{2}{3}.

Its slope is 22, so a perpendicular line has slope βˆ’12-\frac12. Thus

f(x)=βˆ’12x+b.f(x)=-\frac12x+b.

Use f(2)=1f(2)=1:

1=βˆ’12(2)+b=βˆ’1+b,1=-\frac12(2)+b=-1+b,

so b=2b=2. Therefore

f(x)=βˆ’12x+2.f(x)=-\frac12x+2.
24124xy

A quadratic function has the form

f(x)=ax2+bx+c,a≠0.f(x)=ax^{2}+bx+c,\qquad a\ne 0.

Its graph is a parabola.

  • If a>0a>0, the parabola opens upward and has a minimum.
  • If a<0a<0, the parabola opens downward and has a maximum.

Sometimes it is useful to complete the square on a quadratic to see some of its properties.

Example. Find the vertex of the quadratic ax2+bx+cax^2+bx+c.

The vertex (minimum/maximum depending on the shape) of the quadratic occurs at

x=βˆ’b2a.x=-\frac{b}{2a}.

You can see why by completing the square:

f(x)=ax2+bx+c=a(x2+bax)+c=a(x+b2a)2+cβˆ’b24a.\begin{aligned} f(x) &=ax^{2}+bx+c\\ &=a\left(x^{2}+\frac{b}{a}x\right)+c\\ &=a\left(x+\frac{b}{2a}\right)^{2}+c-\frac{b^{2}}{4a}. \end{aligned}

The corresponding output is

f(βˆ’b2a),f\left(-\frac{b}{2a}\right),

so the vertex is

(βˆ’b2a, cβˆ’b24a).(-\frac{b}{2a},\,c-\frac{b^2}{4a}).

This is vertex form:

f(x)=a(xβˆ’h)2+k,f(x)=a(x-h)^{2}+k,

where the vertex is (h,k)(h,k).

Β‘3Β‘2Β‘1123246xy

If a function is built from this quadratic in a way that preserves order, the same input may still be optimal. For example,

y=f(x)y=\sqrt{f(x)}

is minimized at x=12x=\frac12 because the square-root function is increasing, so the smallest legal value of f(x)f(x) gives the smallest value of f(x)\sqrt{f(x)}.


A polynomial function has the form

f(x)=anxn+anβˆ’1xnβˆ’1+β‹―+a1x+a0,anβ‰ 0,f(x)=a_{n}x^{n}+a_{n-1}x^{n-1}+\cdots+a_{1}x+a_{0}, \qquad a_n\ne 0,

where nn is a nonnegative integer and all coefficients are real numbers.

  • nn is the degree of the polynomial.
  • anxna_nx^n is the leading term.
  • ana_n is the leading coefficient.
  • a0a_0 is the constant term.

Examples:

  • 3x4βˆ’2x2+5xβˆ’13x^{4}-2x^{2}+5x-1 is a polynomial of degree 44.
  • 55 is a polynomial of degree 00.
  • 00 is usually called the zero polynomial and does not have a well-defined degree.
  • x2+1xβˆ’3\dfrac{x^2+1}{x-3} is not a polynomial because the domain is not all real numbers.
  • x3βˆ’xx^{3}-\sqrt{x} is not a polynomial because x=x1/2\sqrt{x}=x^{1/2} has a non-integer exponent.

When graphing a polynomial, use end behavior to sketch the broad shape, then mark the zeros and use their multiplicities to decide how the graph behaves there. Plot a few nonzero points as a reference.

The end behavior of a polynomial is controlled by its leading term. For large positive or negative values of xx, the leading term eventually dominates the rest of the polynomial. The reason comes from calculus, and we will not go into detail on the explanations.

For

f(x)=anxn+⋯ ,f(x)=a_nx^n+\cdots,

use this table:

DegreeLeading coefficientLeft endRight end
evenpositiveupup
evennegativedowndown
oddpositivedownup
oddnegativeupdown

For example,

f(x)=βˆ’2x5+7x2βˆ’1f(x)=-2x^{5}+7x^{2}-1

has odd degree and negative leading coefficient, so

xβ†’βˆ’βˆžβ‡’f(x)β†’βˆž,xβ†’βˆžβ‡’f(x)β†’βˆ’βˆž.x\to -\infty \Rightarrow f(x)\to \infty, \qquad x\to \infty \Rightarrow f(x)\to -\infty.

If

f(x)=a(xβˆ’r1)m1(xβˆ’r2)m2β‹―(xβˆ’rk)mk,f(x)=a(x-r_1)^{m_1}(x-r_2)^{m_2}\cdots(x-r_k)^{m_k},

then r1,r2,…,rkr_1,r_2,\ldots,r_k are zeros of ff. The exponent on each factor is the multiplicity of that zero.

Multiplicity tells you how the graph behaves near the xx-intercept:

  • odd multiplicity: the graph crosses the xx-axis,
  • even multiplicity: the graph touches the xx-axis and turns around,
  • multiplicity 11: crosses normally,
  • larger odd multiplicity: crosses while flattening or β€œwiggling” near the intercept.

For example,

f(x)=(xβˆ’2)3(x+1)(x+3)2f(x)=(x-2)^3(x+1)(x+3)^2

has zeros 2,βˆ’1,βˆ’32,-1,-3. The graph crosses at x=2x=2 and x=βˆ’1x=-1, and bounces at x=βˆ’3x=-3.

The degree is

3+1+2=6,3+1+2=6,

so the maximum possible number of turning points is

6βˆ’1=5.6-1=5.

In general, a polynomial of degree nn has at most nβˆ’1n-1 turning points. This does not mean it must have nβˆ’1n-1 turning points; it is only an upper bound.

Example. Suppose P(x)=2x4+5x3βˆ’38x2+28x+24P(x)=2x^{4}+5x^{3}-38x^{2}+28x+24 and we are given that P(2)=0P(2)=0 with a multiplicity of 2. Graph the polynomial.

Since P(2)=0P(2)=0, xβˆ’2x-2 is a factor. Synthetic division by 22 gives:

225βˆ’382824418βˆ’40βˆ’2429βˆ’20βˆ’120\begin{array}{r|rrrrr} 2 & 2 & 5 & -38 & 28 & 24\\ & & 4 & 18 & -40 & -24\\ \hline & 2 & 9 & -20 & -12 & 0 \end{array}

Thus

P(x)=(xβˆ’2)(2x3+9x2βˆ’20xβˆ’12).P(x)=(x-2)(2x^{3}+9x^{2}-20x-12).

Factoring the cubic further (you can first divide by xβˆ’2x-2 again and then factoring the resulting quadratic):

2x3+9x2βˆ’20xβˆ’12=(x+6)(2x+1)(xβˆ’2).2x^{3}+9x^{2}-20x-12 =(x+6)(2x+1)(x-2).

So

P(x)=(xβˆ’2)2(x+6)(2x+1),P(x)=(x-2)^2(x+6)(2x+1),

and the real zeros are

x=2,Β βˆ’6,Β βˆ’12.x=2,\ -6,\ -\frac12.

Since x=2x=2 has multiplicity 22, the graph touches/bounces at x=2x=2. The end behavior of this function is up & up since the highest degree is even and the leading coefficient is positive. It goes through (βˆ’6,0)(-6,0) and (βˆ’1/2,0)(-1/2,0) while bouncing at (2,0)(2,0). A graph of the polynomial is shown below:

Β‘6Β‘4Β‘22Β‘100100200xP(x)

Once you know the general graph behavior, the next job is usually to find zeros. A general formula for higher degree polynomials are either very complicated or don’t exist (in fact, a formula doesn’t exist for polynomials of degree 5 or higher!), but guessing rational roots is much easier to do.

The Remainder Theorem says:

If a polynomial f(x)f(x) is divided by xβˆ’mx-m, then the remainder is f(m)f(m).

Why? Polynomial division gives

f(x)=(xβˆ’m)q(x)+r,f(x)=(x-m)q(x)+r,

where rr is a constant and q(x)q(x) is another polynomial. Substitute x=mx=m:

f(m)=(mβˆ’m)q(m)+r=r.f(m)=(m-m)q(m)+r=r.

The Factor Theorem is the most important special case:

xβˆ’mΒ isΒ aΒ factorΒ ofΒ f(x)⟺f(m)=0.x-m \text{ is a factor of } f(x) \quad\Longleftrightarrow\quad f(m)=0.

So these statements all mean the same thing:

  • mm is a zero of ff,
  • mm is a root of f(x)=0f(x)=0,
  • (m,0)(m,0) is an xx-intercept,
  • xβˆ’mx-m is a factor of f(x)f(x).

The Rational Root Theorem helps list possible rational zeros.

So possible rational zeros are

Β±factorΒ ofΒ constantΒ termfactorΒ ofΒ leadingΒ coefficient.\pm\frac{\text{factor of constant term}}{\text{factor of leading coefficient}}.

Example. Find the possible rational zeros of f(x)=2x4βˆ’x3+7x2+3xβˆ’3.f(x)=2x^{4}-x^{3}+7x^{2}+3x-3.

Here the constant term is βˆ’3-3 and the leading coefficient is 22. Thus

p=Β±1,Β±3andq=Β±1,Β±2.p=\pm1,\pm3 \qquad\text{and}\qquad q=\pm1,\pm2.

The possible rational zeros are

Β±1,Β Β±3,Β Β±12,Β Β±32.\pm1,\ \pm3,\ \pm\frac12,\ \pm\frac32.

This theorem only gives candidates. You still need to test them.


The Rational Root Theorem helps find rational zeros, but polynomials can also have irrational and complex zeros. These results tell you how many zeros to expect and when zeros come in pairs.

The Fundamental Theorem of Algebra says that every polynomial of degree at least 11 has at least one complex zero.

The more useful version for factoring is:

A polynomial of degree nn has exactly nn complex zeros, counted with multiplicity.

For example, the polynomial

F(x)=(x2βˆ’25)(x+1)2(x2+3)(2βˆ’3x)F(x)=(x^{2}-25)(x+1)^2(x^2+3)(2-3x)

has degree

2+2+2+1=7,2+2+2+1=7,

so it has exactly 77 complex zeros counted with multiplicity.

Over the real numbers,

F(x)=(xβˆ’5)(x+5)(x+1)2(x2+3)(2βˆ’3x).F(x)=(x-5)(x+5)(x+1)^2(x^2+3)(2-3x).

Over the complex numbers,

x2+3=(xβˆ’i3)(x+i3),x^2+3=(x-i\sqrt3)(x+i\sqrt3),

so a full complex factorization is

F(x)=(xβˆ’5)(x+5)(x+1)2(xβˆ’i3)(x+i3)(2βˆ’3x).F(x)=(x-5)(x+5)(x+1)^2(x-i\sqrt3)(x+i\sqrt3)(2-3x).

The real zeros are

5,Β βˆ’5,Β βˆ’1,Β 23,5,\ -5,\ -1,\ \frac23,

with βˆ’1-1 counted twice.

If a polynomial has real coefficients and a+bia+bi is a zero, then aβˆ’bia-bi is also a zero.

For example, if a real-coefficient quartic has zeros 22, βˆ’3-3, and 1+i1+i, then the fourth zero must be 1βˆ’i1-i.

If a polynomial has rational coefficients and a+ba+\sqrt{b} is a zero, then aβˆ’ba-\sqrt{b} is also a zero, as long as b\sqrt{b} is irrational.

For example, if a rational-coefficient polynomial has zero 3+23+\sqrt2, then 3βˆ’23-\sqrt2 must also be a zero.


A rational function is a function of the form

R(x)=f(x)g(x),R(x)=\frac{f(x)}{g(x)},

where f(x)f(x) and g(x)g(x) are polynomials and g(x)β‰ 0g(x)\ne 0.

The domain excludes all real numbers that make the denominator zero.

For example,

R(x)=2x+3xβˆ’1R(x)=\frac{2x+3}{x-1}

has domain

x≠1.x\ne 1.

For

R(x)=f(x)g(x),R(x)=\frac{f(x)}{g(x)},

the xx-intercepts occur where f(x)=0f(x)=0 and the denominator is not zero (basically the zeros of the top polynomial). The yy-intercept is R(0),R(0), as long as 00 is in the domain.

When solving out rational polynomials, always factor first. If a factor cancels, it creates a hole at that place, and the yy-value would be the yy-value of the point if it were on the rational polynomial’s graph.

If a denominator factor does not cancel, it creates a vertical asymptote, where the values approach ±∞\pm \infty.

Example. Find the vertical asymptotes and holes ofR(x)=(xβˆ’2)(x+1)(xβˆ’2)(xβˆ’3).R(x)=\frac{(x-2)(x+1)}{(x-2)(x-3)}.

The original denominator is zero at x=2x=2 and x=3x=3. After canceling,

R(x)=x+1xβˆ’3,xβ‰ 2,3.R(x)=\frac{x+1}{x-3}, \qquad x\ne 2,3.

So:

  • x=2x=2 is a hole,
  • x=3x=3 is a vertical asymptote.

To find the hole’s yy-value, plug x=2x=2 into the simplified function:

2+12βˆ’3=βˆ’3.\frac{2+1}{2-3}=-3.

Thus the hole is at (2,βˆ’3).(2,-3).

Β‘22346Β‘6Β‘336xy

For

R(x)=f(x)g(x),R(x)=\frac{f(x)}{g(x)},

a horizontal asymptote is the value of which yy approaches as xx approaches ∞\infty. If yy approaches ±∞\pm \infty, it is NOT considered a horizontal asymptote!. To determine horizontal asymptotes, always compare the degree of the numerator and denominator.

  • If denominator degree is bigger, the horizontal asymptote is y=0y=0.
  • If degrees are equal, the horizontal asymptote is the ratio of leading coefficients.
  • If numerator degree is exactly one bigger, there is a slant asymptote from polynomial division.
  • If numerator degree is more than one bigger, there is a polynomial asymptote from polynomial division.

Below are two common examples of rational polynomials and their horizontal asymptotes.

Example. Find the horizontal/slant asymptote of 2x+3xβˆ’1\frac{2x+3}{x-1}.

The numerator and denominator have equal degrees, so the horizontal asymptote is

y=2.y=2.

You can also see this by dividing numerator and denominator by xx:

2x+3xβˆ’1=2+3x1βˆ’1xβ†’21=2\frac{2x+3}{x-1} =\frac{2+\frac3x}{1-\frac1x} \to \frac21=2

as xβ†’Β±βˆžx\to \pm\infty.

Example. Find the horizontal/slant asymptote for R(x)=x2+1xβˆ’2.R(x)=\frac{x^2+1}{x-2}.

The numerator degree is one more than the denominator degree. Divide:

x2+1xβˆ’2=x+2+5xβˆ’2.\frac{x^2+1}{x-2} =x+2+\frac{5}{x-2}.

Since

5xβˆ’2β†’0\frac{5}{x-2}\to 0

as xβ†’Β±βˆžx\to \pm\infty, the slant asymptote is

y=x+2.y=x+2.

To graph a rational function:

When graphing, always list out these key features! They will make graphing the rational function much easier to do.


An optimization problem asks for the input that makes a quantity as large or as small as possible.

The usual workflow is:

Example.

What is the largest possible area of a rectangle with perimeter 80Β cm80\text{ cm}?

Let the rectangle have length xx and width yy. Since

2x+2y=80,2x+2y=80,

we get

y=40βˆ’x.y=40-x.

The area is

A(x)=xy=x(40βˆ’x)=40xβˆ’x2.A(x)=xy=x(40-x)=40x-x^2.

This parabola opens downward, so its maximum occurs at

x=βˆ’402(βˆ’1)=20.x=-\frac{40}{2(-1)}=20.

Then

y=40βˆ’20=20.y=40-20=20.

So the largest rectangle is a square, and its maximum area is

400Β cm2.400\text{ cm}^2.
10203040100200300400xA(x)

Example.

Suppose the efficiency of a machine after xx hours is modeled by

E(x)=120xx2+16,xβ‰₯0.E(x)=\frac{120x}{x^{2}+16}, \qquad x\ge 0.

Find the time when the efficiency is largest.

Set y=E(x)y=E(x):

y=120xx2+16.y=\frac{120x}{x^{2}+16}.

Multiply:

y(x2+16)=120x.y(x^{2}+16)=120x.

Rearrange as a quadratic in xx:

yx2βˆ’120x+16y=0.yx^{2}-120x+16y=0.

For a real input xx to exist, the discriminant must be nonnegative:

(βˆ’120)2βˆ’4(y)(16y)β‰₯0.(-120)^2-4(y)(16y)\ge 0.

Thus

14400βˆ’64y2β‰₯0⟹y2≀225.14400-64y^2\ge 0 \quad\Longrightarrow\quad y^2\le 225.

Since E(x)β‰₯0E(x)\ge 0 for xβ‰₯0x\ge 0, the largest possible value is y=15y=15. To find where it happens:

15=120xx2+16.15=\frac{120x}{x^2+16}.

Then

15x2+240=120x⟹x2βˆ’8x+16=0⟹(xβˆ’4)2=0.15x^2+240=120x \quad\Longrightarrow\quad x^2-8x+16=0 \quad\Longrightarrow\quad (x-4)^2=0.

So the efficiency is largest at

x=4.x=4.

This method is useful when the equation can be rewritten as a quadratic in the input and the discriminant tells which output values are possible.

48121651015xE(x)

  1. Let f(x)=mx+bf(x)=mx+b. Suppose f(a+b)=f(a)+f(b)βˆ’6f(a+b)=f(a)+f(b)-6 for all real numbers a,ba,b and f(4)=10f(4)=10. Find f(x)f(x), its xx-intercept, and the equation of the line perpendicular to ff through (4,10)(4,10).
  1. A quadratic function has xx-intercepts βˆ’1-1 and 55 and passes through (0,10)(0,10). Find the function, its vertex, maximum/minimum value, and range.
  1. For h(x)=βˆ’2x2+8x+10h(x)=\sqrt{-2x^2+8x+10}, find the domain, range, and maximum value of hh.
  1. Find the lowest-degree polynomial p(x)p(x) with real coefficients such that x=βˆ’3x=-3 is a zero of multiplicity 22, x=1x=1 is a zero of multiplicity 33, and p(0)=βˆ’18p(0)=-18. Give the end behavior.
  1. For f(x)=βˆ’12(x+4)(xβˆ’1)2(xβˆ’3)3f(x)=-\dfrac12(x+4)(x-1)^2(x-3)^3, give the degree, leading coefficient, end behavior, zeros with multiplicities, crossing/bouncing behavior, yy-intercept, and maximum possible number of turning points. Give a rough graph of the function.
  1. Find the lowest-degree polynomial with real coefficients, leading coefficient positive, zeros 22 with multiplicity 22, βˆ’1-1, and 3+i3+i, and f(0)=100f(0)=100.
  1. Factor P(x)=x4βˆ’3x3βˆ’11x2+39xβˆ’18P(x)=x^4-3x^3-11x^2+39x-18 completely over the real numbers, given that P(3)=0P(3)=0.
  1. Use the Rational Root Theorem to list the possible rational zeros of f(x)=2x4βˆ’x3βˆ’20x2+13x+30f(x)=2x^4-x^3-20x^2+13x+30, then find all real zeros.
  1. A polynomial f(x)f(x) leaves remainder 55 when divided by xβˆ’2x-2 and remainder βˆ’4-4 when divided by x+1x+1. Find the remainder when f(x)f(x) is divided by (xβˆ’2)(x+1)(x-2)(x+1).
  1. Find the monic polynomial with rational coefficients whose zeros include 1+i1+i and 2βˆ’32-\sqrt3.
  1. For R(x)=(xβˆ’2)(x+1)2(x+1)(xβˆ’3)R(x)=\dfrac{(x-2)(x+1)^2}{(x+1)(x-3)}, state the domain, hole, vertical asymptote, slant asymptote, and intercepts. Give a rough graph of this function.
  1. Solve in R\mathbb{R}: (xβˆ’4)(x+1)2(xβˆ’2)(x+1)≀0\dfrac{(x-4)(x+1)^2}{(x-2)(x+1)}\le 0.
  1. A box with no top is made by cutting squares of side length xx from each corner of a 24Β in24\text{ in} by 18Β in18\text{ in} sheet and folding up the sides. Write the volume function, state the practical domain, and use a graph or calculator to approximate the value of xx that maximizes the volume.
  1. A machine’s output is modeled by M(x)=150xx2+25M(x)=\dfrac{150x}{x^2+25} for xβ‰₯0x\ge 0. Use an algebraic method to find the maximum possible output and the input where it occurs.
  1. A farmer has 240240 feet of fencing to build three identical rectangular pens side-by-side, sharing interior fences. If the pens together form one large rectangle split by two parallel dividers, find the dimensions of the large rectangle that maximize the total area.
  1. (Bonus, Rational Root Theorem)

The Rational Root Theorem narrows down the possible rational roots. Prove it below.

Let

f(x)=anxn+anβˆ’1xnβˆ’1+β‹―+a1x+a0f(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0

have integer coefficients. Suppose pq\frac{p}{q} is a rational zero in lowest terms. Note that a∣ba \mid b means aa divides bb and gcdgcd means greatest common divisor.

(A)(A) Substitute pq\frac{p}{q} into f(x)=0f(x)=0 and multiply by qnq^n and rearrange your equation to show that p∣a0qnp\mid a_0q^n. Also explain why gcd⁑(p,q)=1\gcd(p,q)=1 implies p∣a0p\mid a_0.

(B)(B) Rearrange the equation from part (A)(A) in a different way to show that q∣anpnq\mid a_np^n and explain why gcd⁑(p,q)=1\gcd(p,q)=1 implies q∣anq\mid a_n.

(C)(C) State the Rational Root Theorem in words.