122-23lec6 CurveSketching
122-23lec6 CurveSketching
Curve Sketching
1
Outline
1 Polynomial Functions
2 Rational Functions
2
Why is Curve Sketching on the Syllabus?
In the era of graphing calculators and software, it is normal to ask if one needs to learn
how to sketch curves of functions.
3
Polynomial Functions
Sketching Graphs of Polynomial Functions
f (x) = a0 + a1 x + a2 x2 + a3 x3 + ⋯ + an xn .
Polynomial functions are smooth functions, with domain the set of real numbers,
R.
4
Sketching Graphs of Polynomial Functions
1 intercepts
2 intervals of increase/decrease
4 intervals of concavity
5 points of inflection.
For polynomial functions p(x), lim p(x) = ∞ or − ∞, and the same holds when
x→∞
x → −∞.
5
In fact,
● for an > 0 and n even, lim p(x) = ∞ and lim p(x) = ∞.
x→∞ x→−∞
● or an > 0 and n odd, lim p(x) = ∞ and lim p(x) = −∞.
x→∞ x→−∞
● for an < 0 and n even, lim p(x) = −∞ and lim p(x) = −∞.
x→∞ x→−∞
● or an < 0 and n odd, lim p(x) = −∞ and lim p(x) = ∞.
x→∞ x→−∞
6
Example
Solution:
1 Intercepts: The y-intercept is (0, 3). We can use a calculator to compute the
x-intercepts.
f (2) = 2(2)3 − 3(2)2 − 12(2) + 3 = −17, we check the points (−1, 10) and (2, −17).
f ′′ (x) = 12x − 6, so f ′′ (−1) = −18 < 0. Therefore (−1, 10) is a maximum point.
Similarly f ′′ (2) = 18 > 0, and so (2, −17) is a minimum point.
8
4 Intervals of Concavity: Since f ′′ (x) = 12x − 6, f ′′ (x) > 0 when x > 1/2 and
f ′′ (x) < 0 when x < 1/2.
Therefore f is concave upward on the interval (1/2, ∞), and concave downward
on the interval (−∞, 1/2).
9
10
Rational Functions
Rational Functions
P (x)
R(x) = ,
Q(x)
1
If Q(x) = 0 has real solutions, then the domain cannot be the set of all real numbers.
11
Asymptotes
Vertical asymptotes occur at the point(s) where Q(x) = 0. For instance, for
2x
R(x) = , the line x = −1 is a vertical asymptote. Note that the graph of R(x)
x+1
can NEVER cross a vertical asymptote.2
P (x)
For R(x) = , if deg P (x) ≤ deg Q(x), then there exits a horizontal
Q(x)
asymptote.
Oblique or slant asymptotes occur when deg P (x) = deg Q(x) + 1 . For
instance,
x2 − 2 (x2 − 1) − 1 1
f (x) == =x−1− .
x+1 x+1 x+1
So y = x − 1 is a slant asymptote for the graph of f (x).
Note: For rational functions, either horizontal asymptotes or slant asymptotes will
occur, but not both.4
4
It helps to simplify functions, before applying the rules of differentiation.
13
Examples
x
Consider the function f (x) = . Let us sketch the graph of f (x).
x2 − 1
1 Domain: The domain of f (x) is the set {x ∈ R∣x ≠ ±1}.
2 Intercepts: The x-intercept of f (x) is (0, 0). This is also the y-intercept.
14
4 Intervals of Increase or Decrease:
x
f (x) =
x2 − 1
(x2 − 1)(x)′ − x(x2 − 1)′
f ′ (x) =
(x2 − 1)2
(x2 − 1) − x ⋅ (2x) x2 − 1 − 2x2
= =
(x2 − 1)2 (x2 − 1)2
2
1+x
=− 2
(x − 1)2
15
5 Intervals of Concavity:
6
Remember f (x) is not defined at x = −1 and x = 1.
17
6 Behavior: Finally, let us consider the behavior of f (x). From our work on limits,
we see that
= 0+ = 0−
x x
lim lim
x→∞ x2 − 1 x→−∞ x2 − 1
x x
lim = −∞ lim =∞
x→−1− x2 − 1 x→−1+ x2 − 1
x x
lim = −∞ lim+ 2 =∞
x→1− x2 − 1 x→1 x − 1
18
19
x2 + x − 6
Let us consider another example: g(x) = .
x−1
x2 + x − 6 (x + 3)(x − 2) 4 7
Note that g(x) = = = (x + 2) − .
x−1 x−1 x−1
1 Domain: The domain of g(x) is {x ∈ R ∣ x ≠ 1}.
2 Intercepts: The x-intercepts of the graph of g(x) are (−3, 0) and (2, 0). The
y-intercept is (0, 6).
7
the degree of the numerator is 1 greater than the degree of the denominator
20
4 Intervals of Increase/Decrease:
= (x + 2) − 4(x − 1)−1
4
g(x) = (x + 2) −
x−1
g ′ (x) = 1 + 4(x − 1)−2
4
=1+ >0
(x − 1)2
Therefore g(x) is increasing on the intervals (−∞, 1) and (1, ∞). There are no
maximum/minimum points.
21
5 Intervals of Concavity:
g ′ (x) = 1 +
4
(x − 1)2
g ′′ (x) = −
8
(x − 1)3
Therefore g ′′ (x) > 0 when x < 1, and g ′′ (x) < 0 when x > 1. Hence g(x) is
concave upward on the interval (−∞, 1), and concave downward on the interval
(1, ∞).
22
23
x
Let us consider one more example, the function h(x) = .
x2 +4
1 Domain: Since x2 + 4 is always positive, the domain of h(x) is the set of real
numbers, R.
24
4 Intervals of Increase/Decrease:
x
h(x) =
x2 + 4
(x2 + 4)(1) − x(2x)
h′ (x) =
(x2 + 4)4
4 − x2
= 2
(x + 4)2
8
h(−2) = −1/4 and h(2) = 1/4.
26
We see that h′′ (−2) =
−4(4 − 12)
> 0, so (−2, −1/4) is a minimum point.
(4 + 4)3
27
7 Behavior:
→ 0+
x
As x → ∞,
x2 + 4
→ 0− .
x
as x → −∞, 2
x +4
28
29
More General Functions
More General Functions
We can use the techniques above to sketch graphs of more general differentiable
functions. Consider the function f (x) = xe−x .
f (x) has (0, 0) as the only intercept, and there are no vertical asymptotes.
x
Since lim x = 0, the line y = 0 is a horizontal asymptote. On the other hand,
x→∞ e
lim (f (x)) = −∞.
x→−∞
30
f ′ (x) = e−x − xe−x =
1−x
. Since ex > 0, we see that f (x) is increasing when
ex
1 − x > 0, that is on the interval (−∞, 1), and decreasing when 1 − x < 0, that is on the
interval (1, ∞).
Further, f is concave downwards on the interval (−∞, 2) and concave upwards on the
interval (2, ∞), and the point (2, 2/e2 ) is a point of inflection. The graph of f is given
below.
31
32
Let us consider one more example: g(x) = x1/3 . This function is not a polynomial, but
is defined for all real values of x.
g ′′ (x) = − x−5/3 , and so g ′′ (x) > 0 when x < 0 and less than zero when x > 0. This
2
9
means that g(x) is concave upward on (−∞, 0) and concave downward at (0, ∞). The
point (0, 0) is a point of inflection. The graph of g is as follows:
33
34