Lemonmath
Tiếng Việt

Studying and graphing a function

Lesson 1.4 · 25 min read · Updated

Lan wants to draw the graph of y=x3−3x+1y=x^3-3x+1 by hand. She plots five points:

xx −2-2 −1-1 00 11 22
yy −1-1 33 11 −1-1 33

and joins them up. But what if, between two plotted points, the graph has a "bump" that Lan cannot see? And how many solutions does the equation x3−3x+1=0x^3-3x+1=0 have?

The curve-sketching procedure

Explore: the derivative tells the shape

The derivative y′=3x2−3=3(x−1)(x+1)y'=3x^2-3=3(x-1)(x+1) is zero only at x=−1x=-1 and x=1x=1. So the graph can only "turn round" at those two points: it goes up on (−∞,−1)(-\infty, -1), down on (−1,1)(-1, 1) and up on (1,+∞)(1, +\infty). There is no other bump between Lan's points.

So a few points and the table of variations are enough to draw the graph with the right shape. That is the idea of the procedure.

Cubic functions

-3-2-1123-3-2-11245xyO(-1, 3)(1, -1)(0, 1)
The graph of y=x3−3x+1y=x^3-3x+1

The point (0,1)(0, 1) is the midpoint of the two turning points, and the graph is symmetric about it. Every cubic graph has a centre of symmetry: the point whose x-coordinate is the root of y′′=0y''=0 (here y′′=6x=0  ⟺  x=0y''=6x=0\iff x=0).

Not every cubic has extrema. When y′y' does not change sign, the graph goes one way only.

-1.0-0.50.52.53.0-2-11234xyO(0, 2)I(2, 0)
The graph of y=−x3+3x2−3x+2y=-x^3+3x^2-3x+2

Rational functions

For a rational function, the step "limits and asymptotes" matters more: we draw the asymptotes first as dashed lines, then draw the branches close to them.

-6-4-22468-6-42468xyO(-1, 0)(0, -1)
The graph of y=x+1x−1y=\dfrac{x+1}{x-1}

For y=ax2+bx+cmx+ny=\dfrac{ax^2+bx+c}{mx+n}, we divide first: we see the oblique asymptote, and the derivative becomes easier.

-4-2246-8-6-4246810xyO(0, -2)(2, 2)
The graph of y=x2−2x+2x−1y=\dfrac{x^2-2x+2}{x-1}

Reading graphs and applications

Once we have the graph, we can read a lot without computing again, for example the number of solutions of f(x)=kf(x)=k (for a given number kk): it is the number of intersection points of the graph with the horizontal line y=ky=k.

134-112356xyO(0, 4)(2, 0)(-1, 0)
The graph of a cubic y=f(x)y=f(x) and the line y=1y=1

Finally, we recall how to write a tangent line from grade 11: the tangent at M(x0,y0)M(x_0, y_0) is y=f′(x0)(x−x0)+y0y=f'(x_0)(x-x_0)+y_0.

Key terms

Summary

  • Procedure: domain → y′y', limits, asymptotes, table of variations → intercepts, special points → draw.
  • A cubic has either two extrema or none; its centre of symmetry is the point where y′′=0y''=0.
  • y=ax+bcx+dy=\dfrac{ax+b}{cx+d}: always increasing or always decreasing on each interval; its two asymptotes meet at the centre of symmetry.
  • y=ax2+bx+cmx+ny=\dfrac{ax^2+bx+c}{mx+n}: divide to get the oblique asymptote and a tidy derivative.
  • The number of solutions of f(x)=kf(x)=k is the number of intersections of the graph with the line y=ky=k. Tangent at x0x_0: y=f′(x0)(x−x0)+f(x0)y=f'(x_0)(x-x_0)+f(x_0).

Practice

Each exercise comes with what you need and some steps to start. Try it yourself first, then open the solution.

Exercise 1

Analyse y=x3−3xy=x^3-3x and sketch its graph.

What you need and how to start

What you need: the procedure; an odd function has a graph symmetric about the origin.

Steps:

  1. Compute y′y', find the extrema and draw the table of variations.
  2. Find the x-intercepts: x(x2−3)=0x(x^2-3)=0.
Show solution

y′=3(x−1)(x+1)y'=3(x-1)(x+1); increasing on (−∞,−1)(-\infty, -1) and (1,+∞)(1, +\infty), decreasing on (−1,1)(-1, 1). Local maximum (−1,2)(-1, 2), local minimum (1,−2)(1, -2). The graph meets the x-axis at x=0x=0, x=±3x=\pm\sqrt3, and is symmetric about OO (also the point where y′′=6x=0y''=6x=0).

Answer. Local maximum (−1,2)(-1, 2), local minimum (1,−2)(1, -2); the graph passes through (−3,0)(-\sqrt3, 0), O(0,0)O(0, 0), (3,0)(\sqrt3, 0), with centre of symmetry OO.

Exercise 2

Analyse y=x−2x+1y=\dfrac{x-2}{x+1} and sketch its graph.

What you need and how to start

What you need: y=ax+bcx+dy=\dfrac{ax+b}{cx+d} has y′=ad−bc(cx+d)2y'=\dfrac{ad-bc}{(cx+d)^2}, vertical asymptote x=−dcx=-\dfrac dc and horizontal asymptote y=acy=\dfrac ac.

Steps:

  1. Compute y′y' and its sign.
  2. Find the two asymptotes and the intercepts.
Show solution

D=R∖{−1}D=\mathbb{R}\setminus\{-1\}, y′=1⋅1−(−2)⋅1(x+1)2=3(x+1)2>0y'=\dfrac{1\cdot1-(-2)\cdot1}{(x+1)^2}=\dfrac{3}{(x+1)^2}>0: increasing on each interval (−∞,−1)(-\infty, -1) and (−1,+∞)(-1, +\infty). Vertical asymptote x=−1x=-1, horizontal asymptote y=1y=1. Intercepts: (2,0)(2, 0) and (0,−2)(0, -2).

Answer. Increasing on each interval of the domain; asymptotes x=−1x=-1, y=1y=1; centre of symmetry I(−1,1)I(-1, 1); the graph passes through (2,0)(2, 0) and (0,−2)(0, -2).

Exercise 3

Analyse y=x2+x+1x+1y=\dfrac{x^2+x+1}{x+1}: find its extrema and asymptotes.

What you need and how to start

What you need: divide to write y=x+1x+1y=x+\dfrac{1}{x+1}.

Steps:

  1. Compute y′=1−1(x+1)2y'=1-\dfrac{1}{(x+1)^2} and write it as one fraction.
  2. Draw the table of variations with −2-2, −1-1, 00 marked.
Show solution

y′=x(x+2)(x+1)2=0  ⟺  x=0y'=\dfrac{x(x+2)}{(x+1)^2}=0\iff x=0 or x=−2x=-2. y′y' is positive on (−∞,−2)(-\infty, -2) and (0,+∞)(0, +\infty), negative on (−2,−1)(-2, -1) and (−1,0)(-1, 0). y(−2)=−3y(-2)=-3, y(0)=1y(0)=1. Vertical asymptote x=−1x=-1, oblique asymptote y=xy=x.

Answer. Local maximum (−2,−3)(-2, -3), local minimum (0,1)(0, 1); vertical asymptote x=−1x=-1, oblique asymptote y=xy=x.

Exercise 4

Using the graph of y=x3−3xy=x^3-3x (exercise 1), find how many solutions each equation has: a) x3−3x=1x^3-3x=1; b) x3−3x=−3x^3-3x=-3.

What you need and how to start

What you need: the number of solutions of f(x)=kf(x)=k is the number of intersections of the graph with the line y=ky=k.

Steps:

  1. Compare kk with the local maximum 22 and the local minimum −2-2.
  2. Count the intersections.
Show solution

a) −2<1<2-2<1<2, so the line y=1y=1 cuts all three "pieces" of the graph: 33 solutions. b) −3<−2-3<-2, so the line y=−3y=-3 only cuts the left-hand part (where yy goes from −∞-\infty up to 22): 11 solution.

Answer. a) 33 solutions; b) 11 solution.

Exercise 5

Consider y=x3−6x2+9x−2y=x^3-6x^2+9x-2. Is each claim true or false?

a) The graph meets the y-axis at the point (0,−2)(0, -2).

b) The local maximum point of the graph is (1,2)(1, 2).

c) The equation x3−6x2+9x−2=0x^3-6x^2+9x-2=0 has exactly two solutions.

d) The centre of symmetry of the graph is the point (2,0)(2, 0).

What you need and how to start

What you need: the table of variations of a cubic; the centre of symmetry has the root of y′′=0y''=0 as its x-coordinate.

Steps:

  1. Compute y′y' and find the extrema.
  2. Compare 00 with the local maximum and minimum values to count solutions.
  3. Solve y′′=0y''=0.
Show solution

y′=3(x−1)(x−3)y'=3(x-1)(x-3); y(1)=2y(1)=2 (local maximum), y(3)=−2y(3)=-2 (local minimum).

a) True: y(0)=−2y(0)=-2.

b) True: y′y' changes sign +→−+\to- at x=1x=1 and y(1)=2y(1)=2.

c) False: −2<0<2-2<0<2, so the line y=0y=0 cuts the graph at 33 points (the solutions are 22 and 2±32\pm\sqrt3).

d) True: y′′=6x−12=0  ⟺  x=2y''=6x-12=0\iff x=2, y(2)=8−24+18−2=0y(2)=8-24+18-2=0.

Answer. a) True; b) True; c) False; d) True.

Exercise 6

The tangent to the graph of y=x3−3x2+4y=x^3-3x^2+4 at the point with x-coordinate x0=3x_0=3 meets the y-axis at a point. What is the y-coordinate of that point?

What you need and how to start

What you need: the tangent at x0x_0 is y=f′(x0)(x−x0)+f(x0)y=f'(x_0)(x-x_0)+f(x_0) (derivatives, grade 11).

Steps:

  1. Compute f(3)f(3) and f′(3)f'(3).
  2. Write the tangent and put x=0x=0.
Show solution

f(3)=27−27+4=4f(3)=27-27+4=4, and f′(x)=3x2−6xf'(x)=3x^2-6x, so f′(3)=9f'(3)=9. Tangent: y=9(x−3)+4=9x−23y=9(x-3)+4=9x-23. For x=0x=0: y=−23y=-23.

Answer. −23-23.

Exercise 7

The number of bacteria in a culture after tt hours is N(t)=500t+100t+1N(t)=\dfrac{500t+100}{t+1} (thousand), t≥0t\ge0. Analyse the function on [0,+∞)[0, +\infty) and say: how many bacteria are there at the start, does the number increase or decrease, and what does it approach in the long run?

What you need and how to start

What you need: the sign of N′(t)N'(t) tells whether it increases or decreases; the horizontal asymptote gives the long-run value.

Steps:

  1. Compute N(0)N(0) and N′(t)N'(t).
  2. Compute lim⁡t→+∞N(t)\lim\limits_{t\to+\infty}N(t).
Show solution

N(0)=100N(0)=100. N′(t)=500(t+1)−(500t+100)(t+1)2=400(t+1)2>0N'(t)=\dfrac{500(t+1)-(500t+100)}{(t+1)^2}=\dfrac{400}{(t+1)^2}>0, so NN is increasing. lim⁡t→+∞N(t)=500\lim\limits_{t\to+\infty}N(t)=500: horizontal asymptote N=500N=500.

Answer. 100100 thousand at the start; the number always increases and approaches 500500 thousand without exceeding it.

Exercise 8

The graph of y=ax+bx+cy=\dfrac{ax+b}{x+c} has the vertical asymptote x=1x=1, the horizontal asymptote y=2y=2, and passes through the point (0,−1)(0, -1). Find aa, bb, cc.

What you need and how to start

What you need: y=ax+bx+cy=\dfrac{ax+b}{x+c} has the vertical asymptote x=−cx=-c and the horizontal asymptote y=ay=a.

Steps:

  1. Deduce cc and aa from the two asymptotes.
  2. Substitute the point (0,−1)(0, -1) to find bb.
Show solution

Vertical asymptote x=−c=1x=-c=1, so c=−1c=-1; horizontal asymptote y=a=2y=a=2. Substituting (0,−1)(0, -1): b−1=−1\dfrac{b}{-1}=-1, so b=1b=1. The function is y=2x+1x−1y=\dfrac{2x+1}{x-1} (with ad−bc=2⋅(−1)−1⋅1=−3≠0ad-bc=2\cdot(-1)-1\cdot1=-3\neq0).

Answer. a=2a=2, b=1b=1, c=−1c=-1.

Exercise 9 Review

Find the coordinates of the intersection points of the graph of y=x+1x−1y=\dfrac{x+1}{x-1} and the line y=x−1y=x-1.

What you need and how to start

What you need: the x-coordinates of the intersections solve x+1x−1=x−1\dfrac{x+1}{x-1}=x-1 with x≠1x\neq1; solve a quadratic equation (grade 10).

Steps:

  1. Multiply both sides by x−1x-1 and get a quadratic equation.
  2. Check the condition x≠1x\neq1, then compute the y-coordinates.
Show solution

x+1=(x−1)2  ⟺  x2−3x=0  ⟺  x=0x+1=(x-1)^2\iff x^2-3x=0\iff x=0 or x=3x=3 (both different from 11). The y-coordinates: y=0−1=−1y=0-1=-1 and y=3−1=2y=3-1=2.

Answer. (0,−1)(0, -1) and (3,2)(3, 2).

Exercise 10 Challenge

Write the equations of the tangents to the graph of y=x+1x−1y=\dfrac{x+1}{x-1} that are parallel to the line y=−2xy=-2x.

What you need and how to start

What you need: parallel lines have the same gradient; the gradient of the tangent at x0x_0 is y′(x0)y'(x_0).

Steps:

  1. Solve y′(x0)=−2(x0−1)2=−2y'(x_0)=\dfrac{-2}{(x_0-1)^2}=-2.
  2. For each root, compute y0y_0 and write the tangent; check that it is not the line y=−2xy=-2x itself.
Show solution

(x0−1)2=1  ⟺  x0=0(x_0-1)^2=1\iff x_0=0 or x0=2x_0=2. At x0=0x_0=0: y0=−1y_0=-1, tangent y=−2x−1y=-2x-1. At x0=2x_0=2: y0=3y_0=3, tangent y=−2(x−2)+3=−2x+7y=-2(x-2)+3=-2x+7. Both differ from y=−2xy=-2x.

Answer. y=−2x−1y=-2x-1 and y=−2x+7y=-2x+7.

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. The centre of symmetry of the graph of y=x3−3x2+2y=x^3-3x^2+2 is the point
Question 2. Which function has a graph with the vertical asymptote x=2x=2 and the horizontal asymptote y=−1y=-1?
Question 3. A function y=f(x)y=f(x) is continuous on R\mathbb{R}, increasing on (−∞,−1)(-\infty, -1) and (3,+∞)(3, +\infty), decreasing on (−1,3)(-1, 3), with f(−1)=4f(-1)=4, f(3)=−2f(3)=-2, lim⁡x→−∞f(x)=−∞\lim\limits_{x\to-\infty}f(x)=-\infty and lim⁡x→+∞f(x)=+∞\lim\limits_{x\to+\infty}f(x)=+\infty. How many solutions does f(x)+2=0f(x)+2=0 have?
Question 4. The gradient of the tangent to the graph of y=2x−1x+1y=\dfrac{2x-1}{x+1} at the point with x-coordinate x0=0x_0=0 is

Part II. True or false

Question 1. Let f(x)=−x3+6x2−9x+3f(x)=-x^3+6x^2-9x+3.
a) ff has a local minimum at x=1x=1.
b) The centre of symmetry of the graph is I(2,1)I(2, 1).
c) The equation f(x)=3f(x)=3 has three distinct solutions.
d) The tangent to the graph at I(2,1)I(2, 1) is y=3x−5y=3x-5.

Part III. Short answer

Question 1. Let AA and BB be the two turning points of the graph of y=x3−3x2−9x+1y=x^3-3x^2-9x+1, and OO the origin. Find the area of triangle OABOAB.

Question 2. The tangent to the graph of y=x+2x−1y=\dfrac{x+2}{x-1} at the point with x-coordinate x0=3x_0=3 meets the x-axis at a point. Find the x-coordinate of that point, giving your answer to 1 decimal place.

Show answers and explanations
  1. Part I, question 1: C. y′′=6x−6=0  ⟺  x=1y''=6x-6=0\iff x=1 and y(1)=0y(1)=0. Option B is where the graph meets the y-axis, and option A is the local minimum point of the graph.
  2. Part I, question 2: A. y=ax+bcx+dy=\dfrac{ax+b}{cx+d} has the vertical asymptote x=−dcx=-\dfrac dc and the horizontal asymptote y=acy=\dfrac ac; for A these are x=2x=2 and y=−1y=-1. Option C gets the sign of −dc-\dfrac dc wrong, and option D swaps the roles of the coefficients.
  3. Part I, question 3: B. f(x)=−2f(x)=-2: the line y=−2y=-2 cuts the left-hand part once and only touches the graph at the local minimum point (3,−2)(3, -2), so there are 22 solutions. Option C counts as if −2-2 were between the two extreme values.
  4. Part I, question 4: D. y′=2⋅1−(−1)⋅1(x+1)2=3(x+1)2y'=\dfrac{2\cdot1-(-1)\cdot1}{(x+1)^2}=\dfrac{3}{(x+1)^2}, so y′(0)=3y'(0)=3. Option B is the y-coordinate y(0)y(0), and option C computes bc−adbc-ad by mistake.
  5. Part II, question 1: a) True; b) True; c) False; d) True. a) True: f′(x)=−3(x−1)(x−3)f'(x)=-3(x-1)(x-3) changes sign from −- to ++ at x=1x=1. b) True: f′′(x)=−6x+12=0  ⟺  x=2f''(x)=-6x+12=0\iff x=2 and f(2)=1f(2)=1. c) False: f(3)=3f(3)=3 is the local maximum value, and f(x)=3  ⟺  −x(x−3)2=0f(x)=3\iff -x(x-3)^2=0 has only the 22 solutions x=0x=0, x=3x=3. d) True: f′(2)=3f'(2)=3, so y=3(x−2)+1=3x−5y=3(x-2)+1=3x-5.
  6. Part III, question 1: 4. y′=3(x+1)(x−3)y'=3(x+1)(x-3), so A(−1,6)A(-1, 6) and B(3,−26)B(3, -26). The area is 12∣(−1)⋅(−26)−3⋅6∣=12⋅8=4\dfrac12\left|(-1)\cdot(-26)-3\cdot6\right|=\dfrac12\cdot8=4.
  7. Part III, question 2: 6.3. y(3)=52y(3)=\dfrac52 and y′=−3(x−1)2y'=\dfrac{-3}{(x-1)^2}, so y′(3)=−34y'(3)=-\dfrac34. The tangent y=−34(x−3)+52y=-\dfrac34(x-3)+\dfrac52 equals 00 when x=193≈6.33x=\dfrac{19}{3}\approx6.33, which rounds to 6.36.3.