Ders notları İngilizce olarak yayımlanmaktadır.

Contents
  1. P.1 Real Numbers and the Real Line
  2. Quiz 1: Real Numbers, Inequalities and Absolute Value
  3. P.2 Cartesian Coordinates in the Plane
  4. P.3 Graphs of Quadratic Equations
  5. Quiz 2: Coordinates, Lines and Graphs
  6. P.4 Functions and Their Graphs
  7. P.5 Combining Functions
  8. P.6 Polynomials and Rational Functions
  9. Quiz 3: Functions and Polynomials
  10. P.7 Trigonometric Functions
  11. Exponential and Logarithmic Functions
  12. Inverse Functions
  13. Quiz 4: Trigonometric, Exponential, Logarithmic and Inverse Functions
  14. Limits
  15. Quiz 5: Limits
  16. Flashcards

AP Calculus: Lecture Notes

These are the notes of my AP Calculus lectures. The course runs in this order:

Preliminaries→Limits→Differentiation→Integration→Series of functions (BC)

For the preliminaries we follow the preliminary chapter of Adams & Essex, Calculus: A Complete Course (sections P.1–P.7), together with exponential, logarithmic and inverse functions from its Chapter 3. From limits on we follow Barron's AP Calculus. The examples are the ones we worked through on the board. After each part there is a quiz of 15 multiple-choice questions.

Part Topic Status
P.1 Real numbers, inequalities, absolute value covered
P.2–P.3 Coordinates, lines, circles, parabolas, ellipses covered
P.4–P.6 Functions, combining functions, polynomials covered
P.7 Trigonometric functions covered
3.1–3.5 Exponential, logarithmic and inverse functions covered
Unit 1 Limits and continuity in progress
Units 2–10 Derivatives, integrals, differential equations, series coming later

P.1 Real Numbers and the Real Line

Number Systems

  • Natural numbers: N={(0),1,2,3,4,…} (some books start at 0).
  • Integers: Z={…,−2,−1,0,1,2,…}.
  • Rational numbers: Q={mn:m,n∈Z, n≠0}.

The rational numbers are dense, but they have gaps. Split Q into two sets: A, the rationals that are negative or have x2<2, and B, the positive rationals with x2>2. Then A∪B=Q and A∩B=∅, but there is no rational number at the place where A ends and B begins: that place is 2, which is not rational.

A number line: the rationals A on the left of the square root of 2, the rationals B on the right, and an open circle at the square root of 2
The rationals A and B meet at 2, which is not a rational number.

Definition. The real numbers R are the smallest number system that contains Q and has no gaps. A real number that is not rational is called irrational.

Proposition. 2 is not a rational number.

Proof. Suppose, on the contrary, that 2=mn with m,n∈Z, n≠0, and that m and n have no common divisor (we can always cancel the fraction). Then m2n2=2⇒m2=2n2⇒m2 is even⇒m is even. Write m=2k. Then 4k2=2n2, so n2=2k2, and n is even too. Now m and n are both even, so 2 is a common divisor: a contradiction. Therefore no such m and n exist. ◼

Decimal Expansions

Every real number has a decimal expansion. Every irrational number has an infinite decimal expansion, but not every infinite decimal is irrational: a decimal that repeats is always rational.

Example. Write x=0.132―=0.132132… as a fraction. Multiply by 1000, since the block 132 has three digits: 1000x=132.132―=132+0.132―=132+x⇒999x=132⇒x=132999=44333.

Order in the Real Numbers

x<y means y−x>0, and x≤y means y−x≥0. The rules for working with inequalities:

  1. If x<y, then x+c<y+c for every real c. (Adding or subtracting a number keeps the direction.)
  2. If x<y and c>0, then xc<yc. If x<y and c<0, then xc>yc: multiplying by a negative number reverses the inequality. For example 1<10, but −1>−10.
  3. If a>0, then 1a>0.
  4. If 0<a<b, then 1b<1a.

Intervals

Notation Set Name
(a,b) a<x<b open interval
[a,b] a≤x≤b closed interval
[a,b), (a,b] a≤x<b, a<x≤b half-open (half-closed) interval
(a,∞), (−∞,a] x>a, x≤a infinite intervals
(−∞,∞) all of R the real line
Seven number lines showing open, closed and half-open intervals with open and filled endpoints, and three infinite intervals with arrows
An open circle means the endpoint is not included, a filled one means it is.

∞ is not a number, so it never gets a square bracket.

Solving Inequalities

Example (a). 2x+1>x+3. Subtract x, then 1: x>2. Solution: (2,∞).

Example (b). −x3≥2x−1. Multiply by −3 (reverse!): x≤−6x+3, so 7x≤3 and x≤37. Solution: (−∞,37].

Example (c). 2x−1≥5. We cannot just multiply by x−1, because its sign is unknown. Two cases:

  • x−1>0: then 2≥5(x−1)=5x−5, so 7≥5x and x≤75. Together with x>1: (1,75].
  • x−1<0: then the inequality reverses, 2≤5x−5, so x≥75. This contradicts x<1: no solution.

Solution: (1,75].

Another solution. Bring everything to one side: 2x−1−5≥0⇒2−5(x−1)x−1≥0⇒7−5xx−1≥0. A quotient is positive when numerator and denominator have the same sign. 7−5x≥0 and x−1>0 gives (1,75]; 7−5x≤0 and x−1<0 has no solution.

Example (d). 3x−1<5x+3≤2x+15. Solve both parts: 3x−1<5x+3⟺−2<x,5x+3≤2x+15⟺x≤4. Both must hold: (−2,∞)∩(−∞,4]=(−2,4].

Quadratic Inequalities

A quadratic is a polynomial of degree two, ax2+bx+c with a≠0.

Example. x2−5x+6<0. Factor: (x−3)(x−2)<0. A product is negative when the two factors have opposite signs:

  • x−3>0 and x−2<0: x>3 and x<2, no solution.
  • x−3<0 and x−2>0: 2<x<3.

Solution: (2,3).

A general method. To find the roots of ax2+bx+c we use the discriminant Δ=b2−4ac,x1,2=−b±Δ2a.

Δ Roots
Δ>0 two different real roots
Δ=0 one double root: ax2+bx+c=a(x−x1)2
Δ<0 no real roots

Examples.

  • x2−5x+6: a=1, b=−5, c=6, Δ=25−24=1, so x1=5+12=3 and x2=5−12=2.
  • 2x2+5x−3: Δ=52−4(2)(−3)=25+24=49, so x1,2=−5±74: x1=12, x2=−3. Indeed 2x2+5x−3=(2x−1)(x+3).
  • x2−4x+4: Δ=16−16=0, one double root x=−b2a=2; indeed x2−4x+4=(x−2)2.

Proof of the Quadratic Formula

Motivation: (a±b)2=a2±2ab+b2. This lets us complete the square: x2−6x+2=0⟺(x−3)2−9+2=0⟺(x−3)2=7⟺x−3=±7⟺x=3±7.

Proof (of the quadratic formula). Divide ax2+bx+c=0 by a≠0 and complete the square: x2+bax+ca=0⇒(x+b2a)2−b24a2+ca=0⇒(x+b2a)2=b2−4ac4a2. Taking square roots, x+b2a=±b2−4ac2a⇒x=−b±b2−4ac2a.◼

Sign Charts

If ax2+bx+c has two roots x1<x2, it has the sign of a outside the roots and the opposite sign between them: for a>0 the signs are +−+, for a<0 they are −+−.

The same idea works for any polynomial whose roots we know: mark the roots on a line and find the sign on each piece. The sign changes at a root of odd multiplicity and does not change at a root of even multiplicity.

Example. f(x)=(x−2)2(x−1)3(x+1). The roots are −1, 1 (triple) and 2 (double). For large x everything is positive, so going from right to left the signs are + (after 2), + (no change at the double root 2), − (change at 1), + (change at −1).

  • f(x)>0: (−∞,−1)∪(1,2)∪(2,∞).
  • f(x)≤0: [−1,1]∪{2}.
Sign charts: (x − 2)(x − 3) is plus, minus, plus; (x − 2)²(x − 1)³(x + 1) is plus, minus, plus, plus, with its graph touching the axis at 2
At the double root 2 the graph touches the axis and does not change sign.

Example. (x−1)3x2(x−2)2<0. Roots of the numerator: 0 (double) and 1 (triple); x=2 is not allowed. The signs, from the left: −, − (no change at 0), +, + (no change at 2).

  • <0: (−∞,0)∪(0,1).
  • ≥0: {0}∪[1,2)∪(2,∞).

The Absolute Value

Definition. The absolute value of x is |x|={x,x≥0,−x,x<0.

|x| is the distance from x to 0 on the real line; for example |−3|=(−1)(−3)=3. More generally, |x−a| is the distance between x and a.

Equations and inequalities with |⋅|. For k>0:

means solution
|x|=k x=k or x=−k two points
|x|<k −k<x<k (−k,k)
|x|>k x>k or x<−k (−∞,−k)∪(k,∞)=R∖[−k,k]

The same with ≤ and ≥, endpoints included. Replacing x by x−a: |x−a|<D⟺−D<x−a<D,|x−a|>D⟺x−a>D or x−a<−D.

Examples.

  • |x|=7: x=7 or x=−7.
  • |x|<1: (−1,1). |x|>2: (−∞,−2)∪(2,∞).
  • |x−3|=4: x−3=4 or x−3=−4, so x=7 or x=−1: the two points at distance 4 from 3.
  • |x−1|≤2: −2≤x−1≤2, so −1≤x≤3: [−1,3].
  • |x−3|>5: x>8 or x<−2: (−∞,−2)∪(8,∞).
  • |x−a|=0 only for x=a.

Properties.

  • |a|=|−a|; for example |x−y|=|y−x| and |x2−3x+y+2|=|−x2+3x−y−2|.
  • |ab|=|a||b|; for example |(x−2)(x−3)|=|x−2||x−3|.
  • |ab|=|a||b| for b≠0.

Exercise (41). Solve |x+1|>|x−3|.

Solution. Split the line at −1 and 3, where the expressions inside change sign.

  • x≥3: x+1>x−3⟺1>−3, always true. All x≥3 work.
  • −1≤x<3: x+1>3−x⟺x>1. This gives 1<x<3.
  • x<−1: −x−1>3−x⟺−1>3, never true.

Solution: (1,∞). As a statement about distances: x is closer to 3 than to −1, which means x is to the right of the midpoint 1.


Quiz 1: Real Numbers, Inequalities and Absolute Value

15 multiple-choice questions on P.1. No calculator. Suggested time: 30 minutes.

1. Which of the following numbers is irrational?

  • (A) 0.25―
  • (B) 2⋅8
  • (C) 2+1
  • (D) 227

2. Which fraction in lowest terms is equal to 0.36―=0.363636…?

  • (A) 36100
  • (B) 411
  • (C) 925
  • (D) 3690

3. If x<y and c<0, which of the following must be true?

  • (A) x+c>y+c
  • (B) xc<yc
  • (C) xc>yc
  • (D) x−c>y−c

4. What is the solution set of 3−2x>7?

  • (A) (−∞,−2)
  • (B) (−2,∞)
  • (C) (−∞,2)
  • (D) (2,∞)

5. What is the solution set of 3x−2≥1?

  • (A) [2,5]
  • (B) (−∞,2)∪[5,∞)
  • (C) (2,5)
  • (D) (2,5]

6. What is the solution set of x2−x−6<0?

  • (A) (−2,3)
  • (B) (−∞,−2)∪(3,∞)
  • (C) (−3,2)
  • (D) [−2,3]

7. What are the roots of 2x2+5x−3?

  • (A) −1 and 32
  • (B) 1 and −32
  • (C) −12 and 3
  • (D) 12 and −3

8. For which value of k does x2−6x+k have exactly one (double) real root?

  • (A) 6
  • (B) 3
  • (C) 9
  • (D) 36

9. What is the solution set of (x+2)(x−1)2(x−4)>0?

  • (A) (−2,1)∪(1,4)
  • (B) (−∞,−2)∪(4,∞)
  • (C) (−∞,−2)∪(1,4)
  • (D) (−2,4)

10. What are the solutions of |2x−3|=5?

  • (A) x=4 only
  • (B) x=1 or x=−4
  • (C) x=−1 or x=4
  • (D) There is no solution.

11. What is the solution set of |x−2|<3?

  • (A) (−1,5)
  • (B) (−5,1)
  • (C) (−∞,−1)∪(5,∞)
  • (D) [−1,5]

12. What is the solution set of |x+1|≥4?

  • (A) [−5,3]
  • (B) (−∞,−3]∪[5,∞)
  • (C) (−5,3)
  • (D) (−∞,−5]∪[3,∞)

13. Which inequality describes the open interval (2,8)?

  • (A) |x−3|<5
  • (B) |x+5|<3
  • (C) |x−5|<3
  • (D) |x−5|≤3

14. What is the solution set of |x+1|>|x−3|?

  • (A) (−∞,1)
  • (B) (1,∞)
  • (C) (−∞,−1)∪(1,∞)
  • (D) (−1,3)

15. Which statement is true for all real numbers a and b?

  • (A) |a+b|=|a|+|b|
  • (B) |ab|=|a||b|
  • (C) |−a|=a
  • (D) |a−b|=|a|−|b|
Answer key
Question Answer Why
1 C A repeating decimal and 22/7 are rational, and 2⋅8=16=4.
2 B 0.36―=3699=411.
3 C Multiplying by a negative number reverses the inequality.
4 A −2x>4; dividing by −2 reverses it: x<−2.
5 D 3x−2−1=5−xx−2≥0; x=2 is not allowed, x=5 is.
6 A (x−3)(x+2)<0: negative between the roots.
7 D Δ=25+24=49, x=−5±74; or (2x−1)(x+3).
8 C Δ=36−4k=0.
9 B No sign change at the double root 1: signs +,−,−,+.
10 C 2x−3=5 or 2x−3=−5.
11 A −3<x−2<3.
12 D x+1≥4 or x+1≤−4.
13 C Centre 5, half-length 3; open interval, so a strict inequality.
14 B x is closer to 3 than to −1: to the right of the midpoint 1.
15 B The others fail for a=1, b=−1 (A, D) or a=−1 (C).

P.2 Cartesian Coordinates in the Plane

The two axes divide the plane into four quadrants, numbered I to IV counterclockwise starting from the upper right. The point (a,b) is a units along the x-axis and b units along the y-axis.

The Distance Formula

The distance between P1(x1,y1) and P2(x2,y2) is the hypotenuse of a right triangle with legs Δx=x2−x1 and Δy=y2−y1, so by Pythagoras d(P1,P2)=(x2−x1)2+(y2−y1)2.

Example. P1(3,4), P2(7,8): d=(7−3)2+(8−4)2=32=42.

The points (3, 4) and (7, 8) joined by a segment, with the horizontal leg 4 and the vertical leg 4 of a right triangle
The distance is the hypotenuse of the triangle with legs Δx and Δy.

The Equation of a Circle

A point (x,y) is on the circle with centre (0,0) and radius 1 exactly when its distance to the centre is 1: (x−0)2+(y−0)2=1⟺x2+y2=1(the unit circle). In general, the circle with centre (a,b) and radius r is (x−a)2+(y−b)2=r2.

Left: the unit circle with a point (x, y) at distance 1 from the origin. Right: a circle with centre (a, b) and radius r
A circle is the set of points at distance r from the centre.

Examples.

  • (x+2)2+(y−1)2=4 is the circle with centre (−2,1) and radius 2.
  • x2−2x+y2+4y=20. Complete the squares: (x−1)2−1+(y+2)2−4=20, so (x−1)2+(y+2)2=25=52: the circle with centre (1,−2) and radius 5.

The Equation of a Parabola

y=x2 is the basic parabola, with its vertex at the origin. Moving the vertex to (a,b) gives y−b=(x−a)2,that is,y=(x−a)2+b.

Example. y=x2+2x+4=(x+1)2−1+4=(x+1)2+3, so y−3=(x+1)2: a parabola with vertex (−1,3).

Straight Lines

The slope of a line is m=ΔyΔx=riserun=tan⁡θ, where θ is the angle the line makes with the positive x-axis. A line rising 2 units for every 1 unit to the right has m=2; a line falling 1 unit for every 1 unit has m=−1.

Point-slope form. If the line has slope m and passes through P1(x1,y1), then for any other point (x,y) on it m=y−y1x−x1⇒y−y1=m(x−x1)⇒y=m(x−x1)+y1.

Example. Through (1,7) with slope 2: y−7=2(x−1), so y=2x+5.

Two-point form. Through P1(x1,y1) and P2(x2,y2): first the slope m=y2−y1x2−x1, then the point-slope form with either point. Both points give the same equation.

Example. Through (1,7) and (3,1): m=1−73−1=−3. With (1,7): y−7=−3(x−1), so y=−3x+10. With (3,1): y−1=−3(x−3), again y=−3x+10.

Perpendicular lines. Two lines with slopes m1 and m2 are perpendicular when m1⋅m2=−1.

Example. The line through (1,4) perpendicular to y=3x+1. Here m1=3, so m2=−13 and y−4=−13(x−1), that is, y=−x3+133.

Intercepts. The y-intercept is where the line meets the y-axis (put x=0); the x-intercept is where it meets the x-axis (put y=0). For y=3x+1: x=0 gives y=1, and y=0 gives x=−13. So the line passes through (0,1) and (−13,0).

Intercept form. The line with x-intercept a and y-intercept b (through (a,0) and (0,b)) is xa+yb=1.


P.3 Graphs of Quadratic Equations

Circles and Disks

The circle (x−a)2+(y−b)2=r2 has centre (a,b) and radius r. An equality describes a curve, an inequality describes a region:

  • x2+y2=0 is only the point (0,0).
  • x2+y2=4 is the circle of radius 2.
  • x2+y2≤2, that is, x2+y2≤4, is the closed disk of radius 2: the circle together with its inside.
  • x2+y2<4 is the open disk (the inside only).

On the circle x2+y2=4 lie, for example, (2,0), (0,2), (−2,0) and (1,3).

Shifting a Graph

Replace by The graph moves
x x−a (a>0) a units to the right
x x+a (a>0) a units to the left
y y−b (b>0) b units up
y y+b (b>0) b units down

Examples.

  • x2+y2=1→(x−1)2+y2=1: one unit to the right. →(x−1)2+(y+2)2=1: then two units down.
  • y=x→y=x−3: three units to the right.
  • y=x2→y−2=(x+1)2: one unit to the left and two units up; the vertex moves to (−1,2).
Left: y = x squared and the shifted parabola with vertex (−1, 2). Right: the unit circle and the shifted circle with centre (1, −2)
Shifting moves the graph without changing its shape.

Scaling a Graph

Multiplying the function by a number stretches or squeezes the graph vertically: y=2x2 is narrower than y=x2, y=12x2 is wider, and y=−x2 is y=x2 reflected in the x-axis.

The parabolas y = x squared, y = 2x squared, y = one half x squared and y = minus x squared on the same axes
A factor greater than 1 makes the parabola narrower; a negative factor turns it upside down.

Ellipses

We can write the equation of a circle as x2+y2=9⟺x232+y232=1. Changing one of the two denominators squeezes the circle into an ellipse: x232+y222=1 still meets the x-axis at ±3, but meets the y-axis at ±2. In general, x2a2+y2b2=1 is the ellipse through (±a,0) and (0,±b).

The circle x squared + y squared = 9 dashed, and the ellipse through (±3, 0) and (0, ±2) inside it
The ellipse is the circle of radius 3 squeezed vertically to height 2.

Quiz 2: Coordinates, Lines and Graphs

15 multiple-choice questions on P.2 and P.3. No calculator. Suggested time: 30 minutes.

1. What is the distance between (−1,2) and (5,10)?

  • (A) 8
  • (B) 10
  • (C) 14
  • (D) 50

2. What are the centre and the radius of the circle x2+y2−6x+4y=3?

  • (A) centre (−3,2), radius 4
  • (B) centre (3,−2), radius 16
  • (C) centre (3,−2), radius 4
  • (D) centre (−3,2), radius 16

3. Which is the equation of the circle with centre (−2,1) that passes through the origin?

  • (A) (x+2)2+(y−1)2=5
  • (B) (x−2)2+(y+1)2=5
  • (C) (x+2)2+(y−1)2=5
  • (D) (x+2)2+(y−1)2=25

4. What is the slope of the line through (2,−1) and (5,8)?

  • (A) 13
  • (B) −3
  • (C) 73
  • (D) 3

5. Which is the line through (1,7) with slope 2?

  • (A) y=2x+7
  • (B) y=2x+5
  • (C) y=2x−5
  • (D) y=7x+2

6. Which line passes through (1,4) and is perpendicular to y=3x+1?

  • (A) y=3x+1
  • (B) y=−3x+7
  • (C) y=−x3+133
  • (D) y=x3+113

7. A line makes an angle of 45∘ with the positive x-axis. What is its slope?

  • (A) 1
  • (B) 22
  • (C) 0
  • (D) 3

8. What are the intercepts of the line 2x−3y=12?

  • (A) x-intercept 6, y-intercept 4
  • (B) x-intercept −6, y-intercept 4
  • (C) x-intercept 4, y-intercept −6
  • (D) x-intercept 6, y-intercept −4

9. Which is the line with x-intercept 4 and y-intercept −2?

  • (A) x−2y=4
  • (B) 2x−y=4
  • (C) x+2y=4
  • (D) x−2y=−4

10. What is the vertex of the parabola y=x2−4x+7?

  • (A) (−2,3)
  • (B) (2,3)
  • (C) (2,7)
  • (D) (4,7)

11. How is the graph of y=(x+3)2−1 obtained from the graph of y=x2?

  • (A) 3 units right and 1 unit down
  • (B) 3 units left and 1 unit up
  • (C) 3 units left and 1 unit down
  • (D) 3 units right and 1 unit up

12. The circle (x−1)2+(y+2)2=1 is the unit circle moved

  • (A) 1 unit right and 2 units down.
  • (B) 1 unit left and 2 units up.
  • (C) 1 unit right and 2 units up.
  • (D) 1 unit left and 2 units down.

13. Compared with the graph of y=x2, the graph of y=−12x2 is

  • (A) narrower and opens upward.
  • (B) narrower and opens downward.
  • (C) wider and opens upward.
  • (D) wider and opens downward.

14. Where does the ellipse x216+y29=1 meet the axes?

  • (A) (±16,0) and (0,±9)
  • (B) (±4,0) and (0,±3)
  • (C) (±3,0) and (0,±4)
  • (D) (±8,0) and (0,±6)

15. Which set does x2+y2≤9 describe?

  • (A) only the circle of radius 3
  • (B) the disk of radius 9
  • (C) the circle of radius 3 together with its inside
  • (D) the points outside the circle of radius 3
Answer key
Question Answer Why
1 B 62+82=100.
2 C (x−3)2+(y+2)2=3+9+4=16=42.
3 A r2=(0+2)2+(0−1)2=5.
4 D 8−(−1)5−2=93.
5 B y−7=2(x−1).
6 C Slope −13: y−4=−13(x−1).
7 A m=tan⁡45∘.
8 D y=0 gives x=6; x=0 gives y=−4.
9 A x4+y−2=1; multiply by 4.
10 B (x−2)2+3.
11 C x→x+3 moves left, −1 moves down.
12 A x−1: right; y+2: down.
13 D A factor smaller than 1 widens; the minus sign flips.
14 B a2=16, b2=9.
15 C An inequality gives a region: the closed disk of radius 9=3.

P.4 Functions and Their Graphs

Definition of a Function

Definition. A function f on a set D into a set S is a rule that assigns a unique element f(x) in S to each element x in D. The set D is the domain of f, written D(f); the set of all values f(x) is the range of f, written R(f).

Two ovals D and S; an arrow sends x in D to f(x) in S, and a crossed dashed arrow to a second value is not allowed
Each x goes to exactly one f(x).

Think of a function as a machine: x goes in (from the domain), y=f(x) comes out (into the range). In calculus we study functions on numbers, mostly on the real numbers R.

Examples of functions.

  1. f(x)=1: a constant function. Its graph is the horizontal line y=1.
  2. f(x)=x2.
  3. x2+y2=4 is not a function of x: for x=1 we get both y=3 and y=−3.
  4. Motion along a line: the position at time t is x(t)=3t2. Its velocity is v(t)=6t and its acceleration is a(t)=6 (we will see why when we study derivatives).
  5. The area of a rectangle with sides d and 2d: A(d)=2d2.
  6. The volume of a cone of height 10 and base radius r: V(r)=13πr2⋅10.

The Vertical Line Test

Theorem (Vertical line test). A curve in the plane is the graph of a function if and only if every vertical line meets it at most once.

Left: the vertical line x = 1 meets the circle x squared + y squared = 4 at two points. Right: it meets the parabola y = x squared once
The circle fails the test; the parabola passes it.

The Domain Convention

Definition (The domain convention). When a function is given only by its rule, without its domain, we take as its domain the set of all real numbers x for which f(x) is a real number. This is the maximal domain of f.

Two functions are equal if (1) their rules are the same and (2) their domains are the same. For example, f:[0,∞)→[0,∞), f(x)=x2andg:R→[0,∞), g(x)=x2 are different functions: the graph of f is only the right half of the parabola.

Finding the maximal domain of a function is tested on the AP exam. Watch out for square roots (the inside must be ≥0) and denominators (they must be ≠0).

  • f(x)=x: D(f)=[0,∞).
  • f(x)=x2x−1: D(f)=R∖{1}.

Graphs of Basic Functions

You should know these graphs by heart; most of the functions in the course are built from them.

Fifteen small graphs: y = x and y = −x, y = |x|, y = x squared, y = x cubed, y = 1/x squared, y = 1/x, y = e to the x, y = ln x, y = square root of x, sin x, cos x, tan x, inverse sine, inverse cosine and inverse tangent
Fifteen graphs to know by heart.
  • y=x2 looks like every even power y=x2n, and y=x3 like every odd power y=x2n+1 (flatter near 0, steeper far away).
  • y=1x2 looks like y=1x2n, and y=1x like y=1x2n+1.
  • The graph of y=−1−x2 is the lower half of the unit circle, and y=1−x2 the upper half.

P.5 Combining Functions

Sums, Differences, Products and Quotients

Definition. If f and g are functions, then for every x in the domains of both f and g: (f+g)(x)=f(x)+g(x),(f−g)(x)=f(x)−g(x),(fg)(x)=f(x)g(x),(fg)(x)=f(x)g(x) where g(x)≠0.

Example. f(x)=x, g(x)=x2−1: (f⋅g)(x)=x(x2−1),(f+g)(x)=x+x2−1,(fg)(x)=xx2−1. D(f)=[0,∞) and g(x)=0 at x=±1, so D(f/g)=[0,∞)∖{1}=[0,1)∪(1,∞).

Recall: the domain (tanım kümesi) is the set of inputs we may use; the range (değer kümesi) is the set of values the function actually takes.

  • f(x)=|x|: domain R, range [0,∞).
  • f(x)=x: domain [0,∞), range [0,∞).
  • f(x)=x−3: domain [3,∞), range [0,∞).

Exercise. For f(x)=x and g(x)=1−x, find formulas for 3f, f+g, f−g, fg, f/g and g/f, and their domains.

Solution. D(f)=[0,∞) and D(g)=(−∞,1], so all combinations live on [0,1] at most.

Function Formula Domain
3f 3x [0,∞)
f+g x+1−x [0,1]
f−g x−1−x [0,1]
fg x(1−x) [0,1]
f/g x/(1−x) [0,1)
g/f (1−x)/x (0,1]

In f/g we remove x=1, where g=0; in g/f we remove x=0, where f=0.

Composite Functions

Definition. If f and g are functions, the composite function (bileşke fonksiyon) f∘g is defined by (f∘g)(x)=f(g(x)). Its domain consists of the numbers x in the domain of g for which g(x) is in the domain of f. In particular, if the range of g is contained in the domain of f, then D(f∘g)=D(g).

Example. f(x)=x, g(x)=x+1:

Function Formula Domain
f∘g f(x+1)=x+1 [−1,∞)
g∘f g(x)=x+1 [0,∞)
f∘f x=x1/4 [0,∞)
g∘g (x+1)+1=x+2 R

g(x)=x+1 is defined for all x, but g(x) is in the domain of f only if x+1≥0, that is, x≥−1. Note that f∘g≠g∘f in general.

Piecewise Defined Functions

Sometimes a function is given by different formulas on different parts of its domain. The absolute value is one example: |x|={x,x≥0,−x,x<0.

Example. f(x)={x−1,x≤1,x2−1,x>1. Then f(3)=32−1=8 and f(0)=0−1=−1.

Example. f(x)={3,x<−1,−x,−1≤x<2,x−2,x≥2.

Left: the line x − 1 up to x = 1, then the curve x squared − 1. Right: the constant 3 for x less than −1, the line −x from −1 to 2, and the square root of x − 2 from 2 on
Draw each piece only on its own part of the domain; mark the endpoints open or filled.

P.6 Polynomials and Rational Functions

Polynomials

Definition. A polynomial is a function P whose value at x is P(x)=anxn+an−1xn−1+⋯+a2x2+a1x+a0, where an,…,a1,a0 are constants, called the coefficients, and an≠0 if n>0. The number n is the degree of P. (The degree of the zero polynomial is not defined.)

Examples. p(x)=1+2x+x2 has degree 2; p(x)=3 and p(x)=π have degree 0; p(x)=x+3 has degree 1.

Definition. If P and Q are polynomials and Q is not the zero polynomial, then R(x)=P(x)Q(x) is a rational function. By the domain convention, its domain is all x with Q(x)≠0.

Division of Polynomials

Polynomials can be divided like numbers, with a quotient and a remainder of lower degree than the divisor.

Example. Divide 2x3−3x2+3x+4 by x2+1. At each step, divide the leading term by x2 and subtract:

  1. 2x3x2=2x: (2x3−3x2+3x+4)−2x(x2+1)=−3x2+x+4.
  2. −3x2x2=−3: (−3x2+x+4)−(−3)(x2+1)=x+7.
  3. x+7 has lower degree than x2+1, so we stop.

So the quotient is 2x−3 and the remainder is x+7: 2x3−3x2+3x+4=(x2+1)(2x−3)+(x+7),2x3−3x2+3x+4x2+1=2x−3+x+7x2+1. Writing a rational function this way will be useful later, for limits at infinity and for integration.

Roots, Zeros and Factors

Definition. A number r is a root (or zero) of the polynomial P if P(r)=0.

Examples. p(x)=x2−2x+1 has the root 1, since p(1)=0. p(x)=x3−4x has the root 0 (and also 2 and −2).

Theorem (The factor theorem). The number r is a root of the polynomial P of degree at least 1 if and only if x−r is a factor of P(x), that is, P(x)=(x−r)Q(x) for some polynomial Q.

If (x−r)k is a factor of P but (x−r)k+1 is not, r is a root of multiplicity k.

Example. f(x)=x3(x−1)2(x+4)4(x−3) has the roots 0,1,−4,3 with multiplicities 3,2,4,1.

How to Find Roots

  1. Degree 1: ax+b=0 gives x=−ba.
  2. Degree 2: ax2+bx+c, with Δ=b2−4ac:
    • Δ>0: two real roots x1,2=−b±Δ2a;
    • Δ=0: one real root x1=x2=−b2a of multiplicity 2;
    • Δ<0: no real roots.
  3. Degree 3 and higher: there are formulas for degrees 3 and 4, but we do not use them. (The discriminant of the cubic ax3+bx2+cx+d is Δ=18abcd−4b3d+b2c2−4ac3−27a2d2; it tells the nature of the roots.) Instead, try small integers 0,±1,±2,±3,…; once a root r is found, divide by x−r and continue with a polynomial of lower degree.

Examples.

  • x2−2x+1: Δ=4−4=0, x1=x2=1, and x2−2x+1=(x−1)2.
  • If the roots are rational, we may find them by factoring: x2−7x+6=(x−6)(x−1), roots 6 and 1; 2x2−3x−5=(2x−5)(x+1), roots 52 and −1.
  • 3x2−16x+28: Δ=256−336=−80<0, no real roots.
  • 3x2−16x+5: Δ=256−60=196, so x1,2=16±146: x1=5, x2=13. Indeed 3x2−16x+5=(3x−1)(x−5).
  • p(x)=x3+6x2+11x+6. Try x=−1: p(−1)=−1+6−11+6=0, so x+1 is a factor. Dividing, p(x)=(x+1)(x2+5x+6)=(x+1)(x+2)(x+3), and the roots are −1,−2,−3.

Exercise. Find the roots of 3x2−16x+7.

Solution. Δ=256−84=172=4⋅43, so x1,2=16±2436=8±433.

Factorization Rules

  • a2−b2=(a−b)(a+b). For example x2−2=(x−2)(x+2). This works not only for polynomials: x−4=(x−2)(x+2), so x−4x+2=x−2.
  • x3−a3=(x−a)(x2+xa+a2).
  • In general, an−bn=(a−b)(an−1+an−2b+an−3b2+⋯+abn−2+bn−1).
  • a3+b3=(a+b)(a2−ab+b2); for odd n, also x5+b5=(x+b)(x4−x3b+x2b2−xb3+b4).

The Binomial Expansion

(x+a)2=x2+2xa+a2,(x+a)3=x3+3x2a+3xa2+a3. For example (x+1)2=x2+2x+1 and (x+1)3=x3+3x2+3x+1. In general (a+b)n=(nn)an+(nn−1)an−1b+(nn−2)an−2b2+⋯+(n1)abn−1+(n0)bn, where (nk) is the number of combinations of n things taken k at a time: (nk)=n!k!(n−k)!,(nn)=(n0)=1,(nn−1)=(n1)=n,(na)=(nb) if a+b=n. The coefficients can also be read off Pascal's triangle, where each number is the sum of the two above it: 111121133114641151010511615201561

Example. (x+2)5=x5+5x4⋅2+10x3⋅22+10x2⋅23+5x⋅24+25=x5+10x4+40x3+80x2+80x+32.


Quiz 3: Functions and Polynomials

15 multiple-choice questions on P.4–P.6. No calculator. Suggested time: 30 minutes.

1. Which of the following is not the graph of a function of x?

  • (A) y=x2
  • (B) x2+y2=4
  • (C) y=|x|
  • (D) y=x

2. What is the domain of f(x)=x−3?

  • (A) (3,∞)
  • (B) (−∞,3]
  • (C) [3,∞)
  • (D) R

3. What is the domain of f(x)=x2x−1?

  • (A) R∖{1}
  • (B) R∖{0,1}
  • (C) (1,∞)
  • (D) R

4. What is the domain of g(x)=14−x2?

  • (A) (−2,2)
  • (B) [−2,2]
  • (C) (−∞,−2)∪(2,∞)
  • (D) R∖{−2,2}

5. What is the range of f(x)=|x|+2?

  • (A) R
  • (B) [0,∞)
  • (C) (2,∞)
  • (D) [2,∞)

6. Let f(x)=x and g(x)=x2−1. What is the domain of f/g?

  • (A) [0,∞)
  • (B) [0,1)∪(1,∞)
  • (C) R∖{−1,1}
  • (D) (0,1)∪(1,∞)

7. Let f(x)=x and g(x)=x+1. What are (f∘g)(x) and its domain?

  • (A) x+1, domain [0,∞)
  • (B) x+1, domain [0,∞)
  • (C) x+1, domain [−1,∞)
  • (D) x+1, domain [−1,∞)

8. Let f(x)=2x−1 and g(x)=x2. What is (g∘f)(2)?

  • (A) 7
  • (B) 9
  • (C) 3
  • (D) 16

9. Which pair consists of two equal functions (each with its maximal domain)?

  • (A) f(x)=x and g(x)=x2x
  • (B) f(x)=x and g(x)=(x)2
  • (C) f(x)=|x| and g(x)=x2
  • (D) f(x)=x+1 and g(x)=x2−1x−1

10. Let f(x)={x−1,x≤1,x2−1,x>1. What is f(3)+f(0)?

  • (A) 7
  • (B) 9
  • (C) 6
  • (D) 8

11. What is the degree of p(x)=(2x3−x)(x2+1)?

  • (A) 3
  • (B) 6
  • (C) 5
  • (D) 2

12. What are the quotient and the remainder when 2x3−3x2+3x+4 is divided by x2+1?

  • (A) quotient 2x−3, remainder x+7
  • (B) quotient 2x−3, remainder x−7
  • (C) quotient 2x+3, remainder x+1
  • (D) quotient 2x−3, remainder 7

13. Which statement about f(x)=x3(x−1)2(x+4)4(x−3) is true?

  • (A) 0 is not a root.
  • (B) 1 is a root of multiplicity 1.
  • (C) 3 is a root of multiplicity 3.
  • (D) −4 is a root of multiplicity 4.

14. x=−1 is a root of x3+6x2+11x+6. What is its complete factorization?

  • (A) (x−1)(x−2)(x−3)
  • (B) (x+1)(x+2)(x+3)
  • (C) (x+1)(x2+6x+6)
  • (D) (x+1)(x−2)(x+3)

15. What is the coefficient of x3 in (x+2)5?

  • (A) 10
  • (B) 20
  • (C) 80
  • (D) 40
Answer key
Question Answer Why
1 B The vertical line x=1 meets the circle twice.
2 C x−3≥0.
3 A Only the zero of the denominator, x=1, is removed.
4 A 4−x2>0; it must be positive, not zero, because it is in the denominator.
5 D |x|≥0, so |x|+2≥2, and 2 is reached at x=0.
6 B x≥0 and x2−1≠0; −1 is already excluded.
7 C f(g(x))=x+1 needs x+1≥0.
8 B f(2)=3 and g(3)=9.
9 C Same rule and both domains are R; in the others the domains differ.
10 A f(3)=8 and f(0)=−1.
11 C The leading term is 2x3⋅x2=2x5.
12 A (x2+1)(2x−3)=2x3−3x2+2x−3; the rest is x+7.
13 D The exponent of (x+4) is 4.
14 B Divide by x+1: x2+5x+6=(x+2)(x+3).
15 D (52)x3⋅22=10⋅4x3.

P.7 Trigonometric Functions

Trigonometric Ratios

In a right triangle with an acute angle α: cos⁡α=adjacenthypotenuse,sin⁡α=oppositehypotenuse,tan⁡α=oppositeadjacent,cot⁡α=adjacentopposite.

Special Triangles

A right triangle with hypotenuse, opposite and adjacent sides; the 30-60-90 triangle with sides 1/2, √3/2, 1; the 45-45-90 triangle with sides 1/√2, 1/√2, 1
Half of an equilateral triangle, and half of a square, both with hypotenuse 1.

From these two triangles:

0∘ 30∘ 45∘ 60∘ 90∘
sin 0 12 12 32 1
cos 1 32 12 12 0
tan 0 13 1 3 undefined
cot undefined 3 1 13 0

If a+b=90∘, then cos⁡a=sin⁡b: the cosine of an angle is the sine of its complement.

Radians

360∘=2π radians, so radians=degrees⋅π180,degrees=radians⋅180π. For example 30∘=π6, 45∘=π4, 60∘=π3, 90∘=π2, 180∘=π. In calculus, angles are always in radians.

In physics, a velocity v at angle θ has the components vx=vcos⁡θ and vy=vsin⁡θ.

The Unit Circle

Definition. Measure the angle x (in radians) from the positive x-axis, counterclockwise for positive x and clockwise for negative x. The point where it meets the unit circle x2+y2=1 is (cos⁡x,sin⁡x). This defines sin⁡x and cos⁡x for every real number x, and tan⁡x=sin⁡xcos⁡x,cot⁡x=cos⁡xsin⁡x.

The unit circle with the point (cos x, sin x) at angle x; cos x along the x-axis and sin x along the y-axis; the angles 0, π/2, π and 3π/2 marked
The point at angle x on the unit circle is (cos⁡x,sin⁡x).

Since the point is on the unit circle, sin2⁡x+cos2⁡x=1.

Examples.

  • cos⁡120∘: the point at 120∘ makes 60∘ with the negative x-axis, so it is (−12,32). Thus cos⁡120∘=−12 and sin⁡120∘=32.
  • sin⁡(−135∘): 135∘=90∘+45∘, so −135∘=−3π4 ends in the third quadrant at (−12,−12). Thus sin⁡(−135∘)=−12 and cos⁡(−135∘)=−12.
Two unit circles: the angle 120 degrees ending at (−1/2, √3/2), and the angle −135 degrees ending at (−1/√2, −1/√2)
Read the coordinates from a special triangle in the right quadrant.

Exercise. Fill in sin and cos at 0, π2, π, 3π2, 2π.

Solution.

0 π2 π 3π2 2π
sin 0 1 0 −1 0
cos 1 0 −1 0 1

Important Trigonometric Identities

  • If a+b=π2, then cos⁡a=sin⁡b.
  • cos⁡(−x)=cos⁡x: cosine is an even function. sin⁡(−x)=−sin⁡x: sine is an odd function.
  • sin2⁡x+cos2⁡x=1.
  • Addition formulas: sin⁡(a+b)=sin⁡acos⁡b+cos⁡asin⁡b,cos⁡(a+b)=cos⁡acos⁡b−sin⁡asin⁡b.
  • Double-angle formulas: sin⁡2x=2sin⁡xcos⁡x,cos⁡2x=cos2⁡x−sin2⁡x.
  • Half-angle formulas (from cos2⁡x−sin2⁡x=cos⁡2x and cos2⁡x+sin2⁡x=1, adding or subtracting): cos2⁡x=1+cos⁡2x2,sin2⁡x=1−cos⁡2x2.
  • −1≤sin⁡x≤1 and −1≤cos⁡x≤1: the range of both is [−1,1], and the domain of both is (−∞,∞).

Graphs of the Trigonometric Functions

sin⁡x and cos⁡x are periodic with period 2π. tan⁡x has period π and is undefined where cos⁡x=0, at x=π2+kπ; there its graph has vertical asymptotes.

The graphs of sin x and cos x between −2π and 2π, and the graph of tan x with vertical asymptotes at ±π/2 and ±3π/2
The graph of cos⁡x is the graph of sin⁡x shifted π2 to the left.

The Sine and Cosine Laws

In a triangle ABC with sides a, b, c opposite the angles A, B, C: Sine law:sin⁡Aa=sin⁡Bb=sin⁡Cc. Cosine law:a2=b2+c2−2bccos⁡A,b2=a2+c2−2accos⁡B,c2=a2+b2−2abcos⁡C.

Exercise (7–12). Express in terms of sin⁡x and cos⁡x: (7) cos⁡(π+x), (8) sin⁡(2π−x), (9) sin⁡(3π2−x), (10) cos⁡(3π2+x), (11) tan⁡x+cot⁡x, (12) tan⁡x−cot⁡xtan⁡x+cot⁡x.

Solution. Use the unit circle or the addition formulas.

  • (7) cos⁡(π+x)=cos⁡πcos⁡x−sin⁡πsin⁡x=−cos⁡x.
  • (8) sin⁡(2π−x)=sin⁡2πcos⁡x−cos⁡2πsin⁡x=−sin⁡x.
  • (9) sin⁡(3π2−x)=sin⁡3π2cos⁡x−cos⁡3π2sin⁡x=−cos⁡x.
  • (10) cos⁡(3π2+x)=cos⁡3π2cos⁡x−sin⁡3π2sin⁡x=sin⁡x.
  • (11) tan⁡x+cot⁡x=sin⁡xcos⁡x+cos⁡xsin⁡x=sin2⁡x+cos2⁡xsin⁡xcos⁡x=1sin⁡xcos⁡x.
  • (12) Multiply numerator and denominator by sin⁡xcos⁡x: sin⁡xcos⁡x−cos⁡xsin⁡xsin⁡xcos⁡x+cos⁡xsin⁡x=sin2⁡x−cos2⁡xsin2⁡x+cos2⁡x=−cos⁡2x1=−cos⁡2x.

Exponential and Logarithmic Functions

Exponential Functions

Definition. If a>0, then a0=1,an=a⋅a⋯a⏟n factors,a−n=1an,am/n=amn(n=1,2,3,…, m=±1,±2,…), where an is the number b>0 with bn=a.

For example 37/4=374. Irrational exponents are approximated by rational ones: 31.7,31.73,31.732,… approach 33; in the same way 3π makes sense. This is why we need a>0: (−2)7/2=(−2)7 is not a real number.

The exponential function with base a is f(x)=ax (a>0), defined for all x∈(−∞,∞).

Theorem (Laws of exponents). If a>0, b>0 and x, y are any real numbers, then

  1. a0=1,
  2. ax+y=axay,
  3. a−x=1ax,
  4. ax−y=axay,
  5. (ax)y=axy,
  6. (ab)x=axbx.

The graph of y=ax always passes through (0,1). For a>1 it is increasing, for 0<a<1 it is decreasing, and for a=1 it is the constant line y=1. The larger a is, the steeper the graph for x>0.

Logarithmic Functions

Definition. For a>0, a≠1, the logarithm loga⁡x is the number y with ay=x: y=loga⁡x⟺ay=x. The function f(x)=loga⁡x has domain (0,∞).

For example log3⁡9=2 because 32=9, and log2⁡1=0 because 20=1.

Left: the graphs of a to the x for a greater than 1, a between 0 and 1, and a = 1, all through (0, 1). Right: the graphs of log base a of x for a greater than 1 and a between 0 and 1, both through (1, 0)
Every ax passes through (0,1), every log⁡_ax through (1,0).

Definition. The logarithm with base e≈2.718 is the natural logarithm: ln⁡x=loge⁡x.

ln⁡e=1, ln⁡e2=2, ln⁡1e=−1. (Here e≈2.7 and π≈3.1; ln⁡π is a little more than 1.)

ax and loga⁡x are inverse functions of each other: aloga⁡x=x (x>0),loga⁡ax=x,eln⁡x=x,ln⁡ex=x.

Theorem (Laws of logarithms). If x>0, y>0, a>0, b>0, a≠1 and b≠1, then

  1. loga⁡1=0,
  2. loga⁡(xy)=loga⁡x+loga⁡y,
  3. loga⁡(1x)=−loga⁡x,
  4. loga⁡(xy)=loga⁡x−loga⁡y,
  5. loga⁡(xy)=yloga⁡x; for example log2⁡33=3log2⁡3,
  6. loga⁡x=logb⁡xlogb⁡a (change of base).

Some of these follow from the others:

  • (3) follows from (5): loga⁡1x=loga⁡x−1=−loga⁡x.
  • (4) follows from (2) and (3): loga⁡xy=loga⁡(x⋅y−1)=loga⁡x+loga⁡y−1=loga⁡x−loga⁡y.

By change of base, any logarithm can be computed with ln or log=log10: loga⁡x=ln⁡xln⁡a=log⁡xlog⁡a=log2⁡xlog2⁡a.

Exercise (12). Simplify logx⁡(x(logy⁡y2)).

Solution. logy⁡y2=2logy⁡y=2, so logx⁡(x⋅2)=logx⁡x+logx⁡2=1+logx⁡2.


Inverse Functions

One-to-One Functions

The function f(x)=x3 takes only one value for each x, as every function does. But it also has a second property: different values of x always give different values f(x). Geometrically, every horizontal line meets its graph at most once.

Definition. A function f is one-to-one if f(x1)≠f(x2) whenever x1 and x2 are in the domain of f and x1≠x2; equivalently, if f(x1)=f(x2)⟹x1=x2.

Theorem (Horizontal line test). A function is one-to-one if and only if every horizontal line meets its graph at most once.

Examples.

  • f(x)=x2 is not one-to-one: f(−1)=f(1)=1 but −1≠1. From the definition: f(a)=f(b) means a2=b2, that is, |a|=|b|, so a=b or a=−b.
  • f(x)=x3 is one-to-one: f(a)=f(b)⟺a3=b3⟺a=b.
  • f(x)=sin⁡x is not one-to-one: horizontal lines between −1 and 1 meet its graph infinitely often.
Left: the line y = 1 meets y = x squared at x = −1 and x = 1. Right: a horizontal line meets y = x cubed once
x2 fails the horizontal line test; x3 passes it.

The Inverse Function

Definition. If f is one-to-one, it has an inverse function f−1. The value f−1(x) is the unique number y in the domain of f for which f(y)=x: y=f−1(x)⟺x=f(y).

Careful: f−1 is not 1f.

How to find the inverse. Write y=f(x) and solve for x.

Example. f(x)=2x+1. From y=2x+1 we get x=y−12, so f−1(x)=x−12. f sends 1↦3 and 0↦1; f−1 sends them back: f−1(3)=1 and f−1(1)=0.

For any inverse function, (f∘f−1)(x)=xand(f−1∘f)(x)=x. In the example: f(f−1(x))=2⋅x−12+1=x and f−1(f(x))=(2x+1)−12=x.

Restricting the Domain to Get an Inverse

f(x)=x2 on R has no inverse. But the function F(x)=x2 with domain [0,∞) (the right half of the parabola) is one-to-one, so it has an inverse: from y=x2, x≥0, we get x=y, and F−1(x)=x. Note that f≠F, because their domains differ.

The graph of f−1 is the graph of f reflected in the line y=x. In the same way ln⁡x and ex are inverses of each other.

Left: F(x) = x squared for x ≥ 0 and its inverse square root of x, mirror images in the dashed line y = x. Right: e to the x and ln x, mirror images in y = x
A function and its inverse are mirror images in y=x.

Inverse Trigonometric Functions

The inverse sine. sin⁡x is not one-to-one. We keep only the part of its graph on [−π2,π2]: there it takes every value between −1 and 1 exactly once. This restricted function is written Sin⁡x.

Definition. The inverse sine function sin−1⁡x (or arcsin⁡x) is the inverse of the restricted sine: y=sin−1⁡x⟺x=Sin⁡y⟺x=sin⁡y and −π2≤y≤π2. Its domain is [−1,1] and its range is [−π2,π2].

Examples.

  • arcsin⁡12=sin−1⁡12=π6, because sin⁡π6=12 and π6 is in [−π2,π2].
  • arcsin⁡(−32)=−π3.
  • sin−1⁡(−12)=−π4 and sin−1⁡(−1)=−π2.
  • sin−1⁡2 is not defined: 2 is not in the range of sine.

The inverse cosine. Similarly we restrict cos⁡x to [0,π].

Definition. The inverse cosine function is cos−1⁡x=arccos⁡x=π2−sin−1⁡x(−1≤x≤1). Its domain is [−1,1] and its range is [0,π].

Left: sine restricted to [−π/2, π/2] over the dashed full sine curve. Middle: arcsin x from (−1, −π/2) to (1, π/2). Right: arccos x from (−1, π) to (1, 0)
The graph of sin−1 is the restricted sine reflected in y=x.

Quiz 4: Trigonometric, Exponential, Logarithmic and Inverse Functions

15 multiple-choice questions on P.7 and on exponential, logarithmic and inverse functions. No calculator. Suggested time: 30 minutes.

1. What is 150∘ in radians?

  • (A) 5π6
  • (B) 2π3
  • (C) 3π4
  • (D) 5π3

2. What is cos⁡120∘?

  • (A) 12
  • (B) −32
  • (C) −12
  • (D) 32

3. What is sin⁡(−135∘)?

  • (A) 12
  • (B) −12
  • (C) −12
  • (D) 32

4. Which expression is equal to cos⁡(π+x)?

  • (A) cos⁡x
  • (B) sin⁡x
  • (C) −sin⁡x
  • (D) −cos⁡x

5. Which expression is equal to tan⁡x−cot⁡xtan⁡x+cot⁡x?

  • (A) cos⁡2x
  • (B) −cos⁡2x
  • (C) sin⁡2x
  • (D) 1

6. If sin⁡θ=35 and π2<θ<π, what is cos⁡θ?

  • (A) 45
  • (B) −35
  • (C) −45
  • (D) 34

7. Which statement about f(x)=tan⁡x is true?

  • (A) Its domain is all real numbers.
  • (B) Its range is [−1,1].
  • (C) Its period is 2π.
  • (D) Its graph has vertical asymptotes at x=π2+kπ.

8. What is 2log2⁡8+log3⁡19?

  • (A) 6
  • (B) 10
  • (C) 8
  • (D) 4

9. What is ln⁡e3−ln⁡1+eln⁡5?

  • (A) 15
  • (B) 8
  • (C) 3
  • (D) 5

10. What is the solution of log2⁡x+log2⁡(x−2)=3?

  • (A) x=−2 or x=4
  • (B) x=−2
  • (C) x=2
  • (D) x=4

11. Which expression is equal to logx⁡(x(logy⁡y2))?

  • (A) 2
  • (B) 1+logx⁡2
  • (C) logx⁡2
  • (D) 2logx⁡y

12. Which function is one-to-one on its maximal domain?

  • (A) f(x)=x2
  • (B) f(x)=sin⁡x
  • (C) f(x)=x3
  • (D) f(x)=|x|

13. What is the inverse of f(x)=3x−25?

  • (A) f−1(x)=5x+23
  • (B) f−1(x)=5x−23
  • (C) f−1(x)=53x−2
  • (D) f−1(x)=3x+25

14. What is sin−1⁡(−32)?

  • (A) 4π3
  • (B) −π6
  • (C) −π3
  • (D) 5π3

15. What are the domain and the range of cos−1⁡x?

  • (A) domain [−1,1], range [−π2,π2]
  • (B) domain [0,π], range [−1,1]
  • (C) domain R, range [0,π]
  • (D) domain [−1,1], range [0,π]
Answer key
Question Answer Why
1 A 150⋅π180=5π6.
2 C The point at 120∘ is (−12,32).
3 B The point at −135∘ is in the third quadrant.
4 D cos⁡πcos⁡x−sin⁡πsin⁡x.
5 B It equals sin2⁡x−cos2⁡x.
6 C cos2⁡θ=1−925, and cosine is negative in the second quadrant.
7 D tan⁡x is undefined where cos⁡x=0; its period is π.
8 A 8+(−2).
9 B 3−0+5.
10 D x(x−2)=8 gives 4 or −2, but log2⁡(−2) is not defined.
11 B logy⁡y2=2, then logx⁡(2x)=1+logx⁡2.
12 C a3=b3 forces a=b; the others take some value twice.
13 A Solve y=3x−25 for x.
14 C sin⁡(−π3)=−32 and −π3 is in [−π2,π2].
15 D Cosine is restricted to [0,π].

Limits

Definition and First Examples

Definition (Informal definition of a limit). The number L is the limit of f(x) as x approaches c if, as x gets arbitrarily close to c (but not equal to c), f(x) gets arbitrarily close to L. We write limx→cf(x)=L.

x goes to c but is never equal to c: the value f(c) itself plays no role, and f need not even be defined at c.

A curve with an open circle at (c, L); points x on both sides of c move towards c, and their values f(x) move towards L
As x approaches c from both sides, f(x) approaches L.

One-sided limits. x can approach c from the left (through values less than c) or from the right (through values greater than c): limx→c−f(x)(left-hand limit),limx→c+f(x)(right-hand limit).

Theorem. limx→cf(x)=L⟺limx→c−f(x)=limx→c+f(x)=L.

Example. limx→3(x+1)=4.

Example. f(x)=x2−3x+2x−1 is not defined at x=1. But for x≠1, f(x)=(x−1)(x−2)x−1=x−2,solimx→1f(x)=limx→1(x−2)=−1. A table confirms it: f(0.9)=−1.1, f(0.99)=−1.01, f(0.999)=−1.001. Far from 1 the values are different: f(3)=1, f(1.5)=−0.5.

Example. In the graph below, limx→4−f(x)=3≠5=limx→4+f(x), so limx→4f(x) does not exist.

The Greatest Integer Function

Definition. [x] is the greatest integer less than or equal to x.

For example [1.7]=1, [2]=2, [−3.7]=−4. Its graph is a staircase (a step function). At every integer the left and right limits differ; for example limx→1−[x]=0≠1=limx→1+[x],solimx→1[x] does not exist (DNE).

Left: a graph with a jump at x = 4, left limit 3 and right limit 5. Right: the staircase graph of the greatest integer function
When the two one-sided limits differ, the limit does not exist.

Constant functions. For f(x)=k the limit is always k: limx→ck=k. For example limx→83=3, limx→eπ2=π2, limx→π/4e=e.

A Worked Example

f(x)={x+1,−2<x<0,2,x=0,−x,0<x<2,0,x=2,x−4,2<x≤4. Does f have a limit at (a) x=−2, (b) x=0, (c) x=2, (d) x=4?

The graph: a line from the open point (−2, −1) to the open point (0, 1); a filled point (0, 2); a line from (0, 0) down to the open point (2, −2); a filled point (2, 0); a line from (2, −2) up to (4, 0)
The values f(0)=2 and f(2)=0 do not affect the limits there.

The domain is (−2,4], and its boundary points are −2 and 4. At a boundary point we check only the one-sided limit from inside the domain.

  • (a) limx→−2+f(x)=−1, so the limit exists and equals −1.
  • (b) limx→0−f(x)=1≠0=limx→0+f(x): the limit does not exist.
  • (c) limx→2−f(x)=−2=limx→2+f(x), so limx→2f(x)=−2 (although f(2)=0).
  • (d) x=4 is a boundary point: limx→4−f(x)=0, so limx→4f(x)=0.

More Examples

Example. Prove that limx→0|x|=0. The domain of |x| is (−∞,∞) and |x|={−x,x≤0,x,x>0,limx→0−(−x)=0=limx→0+x. Since the left and right limits are equal, limx→0|x|=0.

Example. What is the domain of f(x)=sin⁡x? We need sin⁡x≥0: D(f)=⋯∪[−2π,−π]∪[0,π]∪[2π,3π]∪⋯=⋃k∈Z[2kπ,π+2kπ].

The dashed graph of sin x and the graph of the square root of sin x, drawn only over the intervals [2kπ, π + 2kπ], which are marked on the x-axis
sin⁡x exists only where sin⁡x≥0.

Example. For f(x)=x2sin⁡(2x), limx→2f(x)=4sin⁡4≈−3.03 (just substitute; sin⁡4 in radians).

Example. Let f(x)={x2+a2,x≤1,5,x>1. If f has a limit at x=1, what values can a take?

The two one-sided limits must be equal: limx→1−(x2+a2)=1+a2,limx→1+5=5⇒1+a2=5⇒a2=4⇒a=±2. For example, for a=2, f(x)=x2+4 for x≤1 and 5 for x>1.

The parabola x squared + 4 up to x = 1, where it reaches 5, then the horizontal line y = 5
With a=±2 the two pieces meet at (1,5).

The Formal Definition of a Limit

Definition (Epsilon-delta definition). limx→af(x)=L means: for every ε>0 there is a δ>0 such that 0<|x−a|<δ⟹|f(x)−L|<ε.

ε and δ are small distances. However small an ε we are given, we must find a δ such that every x within δ of a (except a itself) has f(x) within ε of L. In the picture: the horizontal band (L−ε,L+ε) is given; we must find a vertical band (a−δ,a+δ) such that the piece of the graph inside the vertical band stays inside the horizontal band.

The graph of x squared near x = 2, with a grey horizontal band from 3 to 5 and a pink vertical band from 2 − δ to 2 + δ; the piece of the graph in the vertical band lies inside the horizontal band
For f(x)=x2 at a=2 and ε=1, the largest δ that works is 5−2.

Here |x2−4|<1 means 3<x<5; the distance from 2 to the nearer end is min(2−3,5−2)=5−2≈0.236. Any larger δ fails. Try it yourself with the epsilon-delta tool.

Infinite Limits

Definition. f(x) becomes infinite as x approaches c if f(x) can be made arbitrarily large (positive or negative) by taking x close enough to c. We write limx→cf(x)=+∞orlimx→cf(x)=−∞. The same definition works for one-sided limits x→c− and x→c+.

Since ±∞ is not a number, the limit does not exist in these cases; writing =∞ says how it fails to exist.

Example. f(x)=1x. Some investigation: 10.1=10,10.01=100,10.0001=10000;1−0.1=−10,1−0.01=−100,1−0.0001=−10000. So limx→0+1x=+∞ and limx→0−1x=−∞; the one-sided limits are different, and limx→01x does not exist (we cannot even write ±∞).

Remark. A nonzero number divided by something that goes to 0 goes to ±∞. The sign follows the usual rules: +number0+=+∞,+number0−=−∞,−number0+=−∞,−number0−=+∞. Here 0+ means "approaching 0 through positive values" and 0− "through negative values".

Examples.

  • limx→14x−1: check the one-sided limits. limx→1+4x−1=40+=+∞ and limx→1−4x−1=40−=−∞. Hence the limit does not exist.
  • limx→42(x−4)2: from both sides (x−4)2→0+, so both one-sided limits are +∞. The limit still does not exist, but we can write limx→42(x−4)2=+∞.
  • limx→−1−3(x+1)3: x+1 is negative to the left of −1 and positive to the right, and so is its cube. So limx→−1−=−30−=+∞ and limx→−1+=−30+=−∞.
  • g(x)=1(x−1)2 near x=1: limx→1g(x)=+∞.
  • limx→π/21sin⁡(x−π/2): as x→π2+, x−π2→0+ and sin→0+, so the limit is +∞; as x→π2− it is −∞.
  • limx→0cos⁡x−41−cos⁡x: the numerator goes to −3, and 1−cos⁡x→0+ from both sides (since cos⁡x≤1). So both one-sided limits are −30+=−∞.
  • limx→π/2sin⁡x−3cos⁡x: the numerator goes to −2. From the left cos⁡x→0+, giving −∞; from the right cos⁡x→0−, giving +∞.
  • limx→0cos⁡(ex−1)sin⁡(ex−1): the numerator goes to cos⁡0=1. For x→0−, ex<1, so ex−1→0− and sin⁡(ex−1)→0−: the limit is −∞. For x→0+ it is +∞.
Left: y = 2/(x − 4) squared rising to +∞ on both sides of x = 4. Right: y = 4/(x − 1) going to +∞ on the right of x = 1 and to −∞ on the left
The dashed vertical lines are vertical asymptotes.

Tip. If you can see that the limit is infinite but are not sure of the sign, use your calculator (in radians): compute f at a value very close to a, once from the left and once from the right.

Limits at Infinity

Definition. We write limx→∞f(x)=L(or limx→−∞f(x)=L) if the difference between f(x) and L can be made arbitrarily small by making x sufficiently large positive (or negative).

Example. f(x)=1x: 110=0.1, 1100=0.01, 11000=0.001, so limx→∞1x=0, and likewise limx→−∞1x=0. In general, number±∞=0.

Example. h(x)=1+3x−2: limx→∞h(x)=1+0=1. The line y=1 is a horizontal asymptote.

The graph of h(x) = 1 + 3/(x − 2) with the vertical asymptote x = 2 and the horizontal asymptote y = 1
Far to the left and far to the right, the graph approaches the line y=1.

Infinite limits at infinity. If f(x) becomes infinite as x becomes infinite, we write limx→±∞f(x)=+∞ or −∞. For example limx→∞(x2+1)=∞,limx→−∞(−x)3=∞,limx→∞(−x2)=−∞.

Limits of Polynomials and Rational Functions

A polynomial is p(x)=a0+a1x+a2x2+⋯+anxn, of degree n if an≠0, and a rational function is p(x)q(x) with polynomials p and q.

Theorem. For any polynomial p and any number a, limx→ap(x)=p(a).

We continue from here in the next lecture.


Quiz 5: Limits

15 multiple-choice questions on limits. No calculator unless a question says so. Suggested time: 30 minutes.

1. What is limx→1x2−3x+2x−1?

  • (A) 0
  • (B) −1
  • (C) 1
  • (D) It does not exist.

For questions 2 and 3, let f(x)={x2−1,x<2,2x+1,x≥2.

2. What is limx→2−f(x)?

  • (A) 5
  • (B) 4
  • (C) 3
  • (D) It does not exist.

3. What is limx→2f(x)?

  • (A) 3
  • (B) 5
  • (C) 4
  • (D) It does not exist.

4. Let [x] be the greatest integer less than or equal to x. Which statement is true?

  • (A) limx→1[x]=1
  • (B) limx→1−[x]=0 and limx→1+[x]=1
  • (C) limx→1−[x]=1
  • (D) [x] has a limit at every integer.

5. What is [−2.5]?

  • (A) −3
  • (B) −2
  • (C) 2
  • (D) −2.5

6. Let f(x)={x2+a2,x≤1,5,x>1. For which values of a does limx→1f(x) exist?

  • (A) a=2 only
  • (B) a=±5
  • (C) a=±2
  • (D) a=4

7. What is limx→3−5x−3?

  • (A) +∞
  • (B) −∞
  • (C) 0
  • (D) 5

8. What is limx→42(x−4)2?

  • (A) +∞
  • (B) −∞
  • (C) 0
  • (D) 2

9. What is limx→−1+−3(x+1)3?

  • (A) +∞
  • (B) 0
  • (C) −3
  • (D) −∞

10. What is limx→0cos⁡x−41−cos⁡x?

  • (A) +∞
  • (B) −3
  • (C) −∞
  • (D) 0

11. What is limx→∞(1+3x−2)?

  • (A) 0
  • (B) 3
  • (C) +∞
  • (D) 1

12. What is limx→−∞(−x3)?

  • (A) +∞
  • (B) −∞
  • (C) 0
  • (D) −1

13. For f(x)=3x+1 we have limx→2f(x)=7. For ε=0.3, what is the largest δ such that 0<|x−2|<δ implies |f(x)−7|<ε?

  • (A) 0.3
  • (B) 0.9
  • (C) 0.1
  • (D) 0.03

14. Which interval is contained in the domain of f(x)=sin⁡x?

  • (A) [π,2π]
  • (B) [0,π]
  • (C) [−π,0]
  • (D) [π2,3π2]

15. What is limx→2(x3−2x+1)?

  • (A) 5
  • (B) 7
  • (C) 3
  • (D) It does not exist.
Answer key
Question Answer Why
1 B Cancel x−1: the limit of x−2 at 1.
2 C From the left we use x2−1: 4−1.
3 D The left limit is 3 and the right limit is 2⋅2+1=5.
4 B Just left of 1, [x]=0; just right of 1, [x]=1.
5 A The greatest integer that is ≤−2.5 is −3, not −2.
6 C 1+a2=5.
7 B 50−.
8 A (x−4)2→0+ from both sides.
9 D (x+1)3→0+, so −30+.
10 C The numerator goes to −3 and 1−cos⁡x→0+ from both sides.
11 D 3x−2→0.
12 A For large negative x, x3 is large negative, so −x3 is large positive.
13 C |3x+1−7|=3|x−2|<0.3 exactly when |x−2|<0.1.
14 B sin⁡x≥0 on [0,π].
15 A For a polynomial, substitute: 8−4+1.

Flashcards

One card for every definition in these notes. Tap or click a card (or press the space bar) to see the definition; use the arrows to move between cards.

Rational number

A number of the form mn with m,n∈Z and n≠0. Its decimal expansion ends or repeats.

Irrational number

A real number that is not rational, such as 2 or π. Its decimal expansion is infinite and does not repeat.

Real numbers R

The smallest number system that contains Q and has no gaps.

Open and closed intervals

(a,b) is a<x<b, endpoints excluded; [a,b] is a≤x≤b, endpoints included. [a,b) and (a,b] are half-open.

Absolute value |x|

|x|=x if x≥0 and |x|=−x if x<0: the distance from x to 0. |x−a| is the distance between x and a.

Discriminant Δ

For ax2+bx+c, Δ=b2−4ac. Two real roots if Δ>0, one double root if Δ=0, none if Δ<0.

Slope of a line

m=ΔyΔx=y2−y1x2−x1=tan⁡θ, where θ is the angle with the positive x-axis.

Point-slope form

The line through (x1,y1) with slope m: y−y1=m(x−x1).

Perpendicular lines

Lines with slopes m1 and m2 are perpendicular when m1m2=−1.

Equation of a circle

(x−a)2+(y−b)2=r2: centre (a,b), radius r.

Function

A rule that assigns a unique element f(x) of S to each element x of the domain D.

Domain and range

The domain is the set of inputs x; the range is the set of all values f(x).

Domain convention

If only the rule is given, the domain is all real x for which f(x) is a real number (the maximal domain).

Equal functions

Two functions are equal if they have the same rule and the same domain.

Composite function f∘g

(f∘g)(x)=f(g(x)), defined for x in the domain of g with g(x) in the domain of f.

Polynomial and its degree

P(x)=anxn+⋯+a1x+a0 with an≠0; n is the degree.

Rational function

R(x)=P(x)Q(x) with polynomials P, Q; its domain is all x with Q(x)≠0.

Root of a polynomial

A number r with P(r)=0. By the factor theorem, r is a root if and only if x−r divides P(x).

Multiplicity of a root

r has multiplicity k if (x−r)k divides P(x) but (x−r)k+1 does not. The sign changes at roots of odd multiplicity only.

Radian

360∘=2π radians, so radians = degrees ⋅π180.

sin⁡x and cos⁡x on the unit circle

The point at angle x (counterclockwise from the positive x-axis) on x2+y2=1 is (cos⁡x,sin⁡x).

Even and odd functions

f is even if f(−x)=f(x) (like cos⁡x) and odd if f(−x)=−f(x) (like sin⁡x).

Exponential function

f(x)=ax with a>0, defined for all real x; increasing if a>1, decreasing if 0<a<1.

Logarithm loga⁡x

For a>0, a≠1: y=loga⁡x⟺ay=x. Domain (0,∞).

Natural logarithm ln⁡x

ln⁡x=loge⁡x with e≈2.718; eln⁡x=x and ln⁡ex=x.

One-to-one function

f(x1)=f(x2)⟹x1=x2; every horizontal line meets the graph at most once.

Inverse function f−1

For one-to-one f: y=f−1(x)⟺x=f(y). Its graph is the graph of f reflected in y=x.

sin−1⁡x (arcsin)

y=sin−1⁡x⟺x=sin⁡y and −π2≤y≤π2. Domain [−1,1], range [−π2,π2].

cos−1⁡x (arccos)

cos−1⁡x=π2−sin−1⁡x. Domain [−1,1], range [0,π].

Limit limx→cf(x)=L

As x gets arbitrarily close to c (but x≠c), f(x) gets arbitrarily close to L.

One-sided limits

limx→c−f(x) uses x<c, limx→c+f(x) uses x>c. The limit exists exactly when both exist and are equal.

Greatest integer function [x]

The greatest integer less than or equal to x; for example [1.7]=1 and [−3.7]=−4.

Epsilon-delta definition of a limit

For every ε>0 there is a δ>0 such that 0<|x−a|<δ implies |f(x)−L|<ε.

Infinite limit

limx→cf(x)=±∞ if f(x) becomes arbitrarily large (positive or negative) as x→c. The limit then does not exist.

Limit at infinity

limx→∞f(x)=L if f(x) gets arbitrarily close to L for sufficiently large x; for example limx→∞1x=0.