Mathematics for Information Science 1. Module 1, limits to concavity.

GAMAT101 · 19 pages · Your place is saved in this browser

Contents · Where each topic sits
Text size18

Page 1 of 19

Module 1 at a glance

This module teaches one big idea in three steps: limits → derivatives → using derivatives.

  1. Limits tell us what value a function is going towards near a point, even if it never reaches that point.
  2. Derivatives are a special kind of limit. They tell us how fast a function is changing. This is the same as the slope of its graph.
  3. Applications use derivatives for real work: tangent and normal lines, straight-line approximation (linearization) and the bending of a curve (concavity).

What you will be able to do

  • Find limits by substitution, factorising, rationalising, the sandwich theorem, and "divide by the highest power".
  • Check whether a function is continuous at a point, and find where it is not.
  • Differentiate from first principle and with the standard rules, including the chain rule and implicit differentiation.
  • Write the equation of a tangent line and a normal line.
  • Find an approximate value of a function near a point using linearization.
  • Use the second derivative to find where a curve bends up or down.

How to use these notes

  • Every topic has the same shape: idea → rule → worked example → common mistakes.
  • Try each worked example yourself first. Cover the answer, solve it, and then compare.
  • Green boxes hold key ideas. Amber boxes marked Watch out show the mistakes that make you lose marks.
  • The last page is a one-page formula sheet. Use it for revision before the exam.

Where each topic sits

PartTopics
LimitsLimits, limit laws, techniques for 0/00/0, sandwich theorem, limits at infinity
ContinuityContinuity at a point, one-sided limits, where a function breaks
DerivativesFirst principle, rules, higher orders, rate of change, chain rule, implicit differentiation
ApplicationsTangent and normal lines, linearization, concavity

Before you start. You should know how to factorise quadratics, the formula (a−b)(a+b)=a2−b2(a-b)(a+b)=a^2-b^2, laws of indices (e.g. x−2=1/x2x^{-2}=1/x^2, x=x1/2\sqrt{x}=x^{1/2}), and the values of sin⁡\sin, cos⁡\cos, tan⁡\tan at 0, π/6, π/4, π/20,\ \pi/6,\ \pi/4,\ \pi/2.

Page 2 of 19

Limits of function values

The idea

A limit answers this question: "As xx gets very close to cc, what value is f(x)f(x) getting close to?"

If f(x)f(x) comes as close as we like to a number LL when xx is close enough to cc (but x≠cx \ne c), we write

lim⁡x→cf(x)=L\lim_{x \to c} f(x) = L

and say "ff approaches LL as xx approaches cc".

Key idea. A limit is about what happens near cc, not at cc. The function need not even be defined at cc. That is why limits help us when substitution gives the meaningless 0/00/0.

Example: a hole in the graph

Find lim⁡x→1x2−1x−1\displaystyle\lim_{x\to 1}\frac{x^2-1}{x-1}.

If we put x=1x=1, we get 0/00/0, so the function is not defined at 11. For x≠1x\ne1 we can cancel the common factor:

x2−1x−1=(x+1)(x−1)x−1=x+1(x≠1)\frac{x^2-1}{x-1}=\frac{(x+1)(x-1)}{x-1}=x+1 \qquad (x\neq 1)

So near x=1x=1 the function behaves exactly like x+1x+1, and

lim⁡x→1x2−1x−1=1+1=2\lim_{x\to1}\frac{x^2-1}{x-1}=1+1=\mathbf{2}

The graph is the line y=x+1y=x+1 with one hole at (1,2)(1,2). The limit is the height of that hole.

Two simple limits to remember

Identity function f(x)=xf(x)=x: as x→cx\to c, the output is xx itself, so

lim⁡x→cx=c\lim_{x\to c} x = c
{ "boundingBox": [-1, 5, 5, -1], "axis": true, "points": [], "segments": [], "circles": [], "functions": [{ "expression": "x", "label": "f(x): y = x" }] }

Constant function f(x)=kf(x)=k: the output never changes, so

lim⁡x→ck=k\lim_{x\to c} k = k

Graph of the constant function y = k, a horizontal line at height k

When a limit does not exist

Consider the unit step function

u(x)={0,x<01,x≥0u(x)=\begin{cases}0, & x<0\\[2pt] 1, & x\ge 0\end{cases}

Graph of the unit step function u(x): 0 to the left of the y-axis, jumping to 1 at x = 0

  • When xx comes to 00 from the left (x<0x<0), u(x)u(x) stays at 00.
  • When xx comes to 00 from the right (x>0x>0), u(x)u(x) stays at 11.

There is no single number that u(x)u(x) goes to, so lim⁡x→0u(x)\displaystyle\lim_{x\to0}u(x) does not exist. The graph jumps.

Rule of thumb. A limit exists only when the function goes to the same value from both sides.

Page 3 of 19

Limit laws

Suppose lim⁡x→cf(x)=L\lim_{x\to c}f(x)=L and lim⁡x→cg(x)=M\lim_{x\to c}g(x)=M, where LL, MM, cc, kk are real numbers. Then:

RuleStatement
Sumlim⁡ [f(x)+g(x)]=L+M\lim\,[f(x)+g(x)] = L+M
Differencelim⁡ [f(x)−g(x)]=L−M\lim\,[f(x)-g(x)] = L-M
Constant multiplelim⁡ [k f(x)]=kL\lim\,[k\,f(x)] = kL
Productlim⁡ [f(x) g(x)]=L⋅M\lim\,[f(x)\,g(x)] = L\cdot M
Quotientlim⁡ f(x)g(x)=LM\lim\,\dfrac{f(x)}{g(x)} = \dfrac{L}{M}, provided M≠0M\neq0
Powerlim⁡ [f(x)]n=Ln\lim\,[f(x)]^n = L^n
Rootlim⁡ f(x)n=Ln\lim\,\sqrt[n]{f(x)} = \sqrt[n]{L} (for even nn, need L≥0L\ge0)

In simple words: you can take the limit inside +, −, ×, ÷+,\ -,\ \times,\ \div, powers and roots, as long as each part has its own limit (and you never divide by a limit equal to 00).

Watch out. The root and power rules work on the whole expression inside. The root of a sum is not the sum of the roots: 16+3≠16+3\sqrt{16+3}\neq\sqrt{16}+\sqrt{3}. First find the limit of what is inside, then take the root.

Polynomials and rational functions: just put the value

If P(x)=anxn+⋯+a1x+a0P(x)=a_nx^n+\dots+a_1x+a_0 is a polynomial, then

lim⁡x→cP(x)=P(c)\lim_{x\to c}P(x)=P(c)

If f(x)=P(x)Q(x)f(x)=\dfrac{P(x)}{Q(x)} is a rational function, then

lim⁡x→cP(x)Q(x)=P(c)Q(c)provided Q(c)≠0\lim_{x\to c}\frac{P(x)}{Q(x)}=\frac{P(c)}{Q(c)}\qquad\text{provided } Q(c)\neq0

Example 1. Substitution works

lim⁡x→c(x3+4x2−3)=c3+4c2−3\lim_{x\to c}(x^3+4x^2-3)=c^3+4c^2-3 lim⁡x→−1x3+4x2−3x2+5=(−1)+4−31+5=06=0\lim_{x\to-1}\frac{x^3+4x^2-3}{x^2+5}=\frac{(-1)+4-3}{1+5}=\frac{0}{6}=\mathbf{0}

Example 2. Root of an expression

lim⁡x→24x2+3=4(2)2+3=16+3=19\lim_{x\to2}\sqrt{4x^2+3}=\sqrt{4(2)^2+3}=\sqrt{16+3}=\mathbf{\sqrt{19}}

Example 3. Substitution fails (the 0/00/0 case)

lim⁡x→1x2+x−2x2−x ⟶ 1+1−21−1=00\lim_{x\to1}\frac{x^2+x-2}{x^2-x}\ \longrightarrow\ \frac{1+1-2}{1-1}=\frac{0}{0}

00\tfrac00 is not the answer. It is a signal that the top and the bottom have a hidden common factor. Factorise, cancel, and then substitute:

x2+x−2x2−x=(x+2)(x−1)x(x−1)=x+2x ⇒ lim⁡x→1x+2x=31=3\frac{x^2+x-2}{x^2-x}=\frac{(x+2)(x-1)}{x(x-1)}=\frac{x+2}{x}\ \Rightarrow\ \lim_{x\to1}\frac{x+2}{x}=\frac{3}{1}=\mathbf{3}

The next page gives a method for this.

Page 4 of 19

Finding limits: a method with the same first step every time

Step 0: try substitution

Put x=cx=c in the expression.

  • If you get a number, that number is the limit. Done.
  • If you get k/0k/0 with k≠0k\neq 0 (for example 5/05/0), the function becomes very large. The limit does not exist (as a finite number).
  • If you get 0/00/0, this is an indeterminate form. The limit may still exist. Use one of the techniques below.

Technique A: factorise and cancel

Use this when the expression is a ratio of polynomials.

Quick factorising tip. To factorise x2+bx+cx^2+bx+c, find two numbers whose product is cc and whose sum is bb. For x2−6x+9x^2-6x+9: product 99, sum −6-6 → (x−3)(x−3)(x-3)(x-3).

Example. lim⁡x→−5x2+3x−10x+5\displaystyle\lim_{x\to-5}\frac{x^2+3x-10}{x+5}

Substitution gives 0/00/0. Product −10-10, sum 33, so the numbers are 55 and −2-2:

x2+3x−10x+5=(x+5)(x−2)x+5=x−2 ⇒ lim⁡x→−5(x−2)=−7\frac{x^2+3x-10}{x+5}=\frac{(x+5)(x-2)}{x+5}=x-2\ \Rightarrow\ \lim_{x\to-5}(x-2)=\mathbf{-7}

Technique B: multiply by the conjugate

Use this when there is a square root in the numerator or denominator. The conjugate of A−B\sqrt{A}-B is A+B\sqrt{A}+B, and

(A−B)(A+B)=A−B2(\sqrt{A}-B)(\sqrt{A}+B)=A-B^2

which removes the root. Multiply the top and the bottom by the conjugate, so the value of the fraction does not change.

Example. lim⁡x→0x2+100−10x2\displaystyle\lim_{x\to0}\frac{\sqrt{x^2+100}-10}{x^2}

=lim⁡x→0(x2+100−10)(x2+100+10)x2 (x2+100+10)=lim⁡x→0(x2+100)−100x2 (x2+100+10)=lim⁡x→0x2x2 (x2+100+10)=lim⁡x→01x2+100+10=110+10=120\begin{aligned} &=\lim_{x\to0}\frac{(\sqrt{x^2+100}-10)(\sqrt{x^2+100}+10)}{x^2\,(\sqrt{x^2+100}+10)}\\[4pt] &=\lim_{x\to0}\frac{(x^2+100)-100}{x^2\,(\sqrt{x^2+100}+10)}\\[4pt] &=\lim_{x\to0}\frac{x^2}{x^2\,(\sqrt{x^2+100}+10)}=\lim_{x\to0}\frac{1}{\sqrt{x^2+100}+10}\\[4pt] &=\frac{1}{10+10}=\mathbf{\tfrac1{20}} \end{aligned}

Technique C: simplify a fraction inside a fraction

Example. lim⁡x→1x−1−1x−1\displaystyle\lim_{x\to1}\frac{x^{-1}-1}{x-1}. Substitution gives 0/00/0.

1x−1x−1=1−xxx−1=−(x−1)x (x−1)=−1x ⇒ lim⁡x→1(−1x)=−1\frac{\tfrac1x-1}{x-1}=\frac{\tfrac{1-x}{x}}{x-1}=\frac{-(x-1)}{x\,(x-1)}=-\frac1x \ \Rightarrow\ \lim_{x\to1}\left(-\frac1x\right)=\mathbf{-1}

Watch out. Cancel only factors, never terms. In x+3x\dfrac{x+3}{x} you cannot cancel the xx's. You can cancel (x−c)(x-c) because x→cx\to c means x≠cx\neq c, so x−c≠0x-c\neq0.

Page 5 of 19

Solved limit problems

The problems are grouped by the technique used. Try each one before looking at the answer.

Group 1: direct substitution

#LimitWorkingAnswer
1lim⁡x→−2(x3−15)\lim_{x\to-2}(x^3-15)(−2)3−15=−8−15(-2)^3-15=-8-15−23-23
2lim⁡x→2(−x2+5x−2)\lim_{x\to2}(-x^2+5x-2)−4+10−2-4+10-244
3lim⁡x→22x+511−x3\lim_{x\to2}\dfrac{2x+5}{11-x^3}911−8=93\dfrac{9}{11-8}=\dfrac9333
4lim⁡x→23(8−3x)(2x−1)\lim_{x\to\frac23}(8-3x)(2x-1)(8−2)(43−1)=6⋅13(8-2)\left(\tfrac43-1\right)=6\cdot\tfrac1322
5lim⁡x→−124x(3x+4)2\lim_{x\to-\frac12}4x(3x+4)^2−2⋅(52)2=−2⋅254-2\cdot\left(\tfrac52\right)^2=-2\cdot\tfrac{25}{4}−252-\tfrac{25}{2}
6lim⁡y→−3(5−y)4/3\lim_{y\to-3}(5-y)^{4/3}84/3=(23)4/3=248^{4/3}=(2^3)^{4/3}=2^41616
7lim⁡h→033h+1+1\lim_{h\to0}\dfrac{3}{\sqrt{3h+1}+1}31+1\dfrac{3}{1+1}32\tfrac32
8lim⁡h→16h+10−5h2\lim_{h\to1}\dfrac{\sqrt{6h+10}-5}{h^2}4−51\dfrac{4-5}{1}−1-1
9lim⁡x→3x+4x2+7x+14\lim_{x\to3}\dfrac{x+4}{x^2+7x+14}79+21+14\dfrac{7}{9+21+14}744\tfrac{7}{44}
10lim⁡t→2t2+4t+3t2−9\lim_{t\to2}\dfrac{t^2+4t+3}{t^2-9}4+8+34−9=15−5\dfrac{4+8+3}{4-9}=\dfrac{15}{-5}−3-3
11lim⁡x→0(2sin⁡x−1)\lim_{x\to0}(2\sin x-1)2sin⁡0−12\sin0-1−1-1
12lim⁡x→01+x+sin⁡x2cos⁡x\lim_{x\to0}\dfrac{1+x+\sin x}{2\cos x}1+0+02⋅1\dfrac{1+0+0}{2\cdot1}12\tfrac12
13lim⁡x→πx+2 sin⁡x2\lim_{x\to\pi}\sqrt{x+2}\,\sin\dfrac x2π+2⋅sin⁡π2\sqrt{\pi+2}\cdot\sin\tfrac\pi2π+2\sqrt{\pi+2}

Group 2: 0/00/0, so factorise

14. lim⁡x→3x2−6x+9x−3=lim⁡x→3(x−3)2x−3=lim⁡x→3(x−3)=0\displaystyle\lim_{x\to3}\frac{x^2-6x+9}{x-3}=\lim_{x\to3}\frac{(x-3)^2}{x-3}=\lim_{x\to3}(x-3)=\mathbf{0}

15. lim⁡x→−42x+8x2+x−12=lim⁡x→−42(x+4)(x+4)(x−3)=2−4−3=−27\displaystyle\lim_{x\to-4}\frac{2x+8}{x^2+x-12}=\lim_{x\to-4}\frac{2(x+4)}{(x+4)(x-3)}=\frac{2}{-4-3}=\mathbf{-\tfrac27}

16. lim⁡x→5x−5x2−25=lim⁡x→5x−5(x+5)(x−5)=110\displaystyle\lim_{x\to5}\frac{x-5}{x^2-25}=\lim_{x\to5}\frac{x-5}{(x+5)(x-5)}=\frac1{10}

17. lim⁡x→2x2−7x+10x−2=lim⁡x→2(x−5)(x−2)x−2=2−5=−3\displaystyle\lim_{x\to2}\frac{x^2-7x+10}{x-2}=\lim_{x\to2}\frac{(x-5)(x-2)}{x-2}=2-5=\mathbf{-3}

18. lim⁡t→−2−2t−4t3+2t2=lim⁡t→−2−2(t+2)t2(t+2)=−2(−2)2=−12\displaystyle\lim_{t\to-2}\frac{-2t-4}{t^3+2t^2}=\lim_{t\to-2}\frac{-2(t+2)}{t^2(t+2)}=\frac{-2}{(-2)^2}=\mathbf{-\tfrac12}

Group 3: the denominator tends to 00 but the numerator does not

19. lim⁡x→5x2−3x−10x2−10x+25=lim⁡x→5(x−5)(x+2)(x−5)2=lim⁡x→5x+2x−5\displaystyle\lim_{x\to5}\frac{x^2-3x-10}{x^2-10x+25}=\lim_{x\to5}\frac{(x-5)(x+2)}{(x-5)^2}=\lim_{x\to5}\frac{x+2}{x-5}

After cancelling one factor, the numerator goes to 77 and the denominator goes to 00. The expression becomes very large (towards +∞+\infty from the right of 55 and towards −∞-\infty from the left), so the limit does not exist.

Watch out. First cancel and remove the 00 from the denominator, and only then decide. Here a 00 is still left in the denominator, so there is no limit. Compare this with question 14, where the 00 was removed.

Group 4: roots, so use the conjugate

20. lim⁡x→1x−1x+3−2\displaystyle\lim_{x\to1}\frac{x-1}{\sqrt{x+3}-2} (gives 0/00/0)

=lim⁡x→1(x−1)(x+3+2)(x+3)−4=lim⁡x→1(x−1)(x+3+2)x−1=lim⁡x→1(x+3+2)=4=\lim_{x\to1}\frac{(x-1)(\sqrt{x+3}+2)}{(x+3)-4}=\lim_{x\to1}\frac{(x-1)(\sqrt{x+3}+2)}{x-1}=\lim_{x\to1}\left(\sqrt{x+3}+2\right)=\mathbf{4}

21. lim⁡x→−32−x2−5x+3\displaystyle\lim_{x\to-3}\frac{2-\sqrt{x^2-5}}{x+3} (gives 0/00/0)

=lim⁡x→−34−(x2−5)(x+3) (2+x2−5)=lim⁡x→−39−x2(x+3) (2+x2−5)=lim⁡x→−3(3−x)(3+x)(x+3) (2+x2−5)=3−(−3)2+9−5=64=32\begin{aligned} &=\lim_{x\to-3}\frac{4-(x^2-5)}{(x+3)\,(2+\sqrt{x^2-5})} =\lim_{x\to-3}\frac{9-x^2}{(x+3)\,(2+\sqrt{x^2-5})}\\[4pt] &=\lim_{x\to-3}\frac{(3-x)(3+x)}{(x+3)\,(2+\sqrt{x^2-5})} =\frac{3-(-3)}{2+\sqrt{9-5}}=\frac{6}{4}=\mathbf{\tfrac32} \end{aligned}

Group 5: fraction inside a fraction

22. lim⁡x→1x−1−1x−1=lim⁡x→11−xxx−1=lim⁡x→1−1x=−1\displaystyle\lim_{x\to1}\frac{x^{-1}-1}{x-1}=\lim_{x\to1}\frac{\frac{1-x}{x}}{x-1}=\lim_{x\to1}\frac{-1}{x}=\mathbf{-1}

Page 6 of 19

The sandwich (squeeze) theorem

The idea

If a function is stuck between two other functions, and both of them go to the same value, then the function in the middle must also go to that value.

Sandwich theorem. Suppose g(x)≤f(x)≤h(x)g(x)\le f(x)\le h(x) for all xx near cc (except possibly at cc itself). If lim⁡x→cg(x)=lim⁡x→ch(x)=L\displaystyle\lim_{x\to c}g(x)=\lim_{x\to c}h(x)=L, then lim⁡x→cf(x)=L\displaystyle\lim_{x\to c}f(x)=L.

Use it when ff is difficult (for example it has sin⁡1x\sin\frac1x, which keeps oscillating), but you can put simple functions below and above it.

Example 1: bounds are given

A function uu satisfies

1−x24 ≤ u(x) ≤ 1+x22(x≠0).1-\frac{x^2}{4}\ \le\ u(x)\ \le\ 1+\frac{x^2}{2}\qquad(x\ne0).

Find lim⁡x→0u(x)\lim_{x\to0}u(x).

lim⁡x→0(1−x24)=1,lim⁡x→0(1+x22)=1\lim_{x\to0}\left(1-\frac{x^2}{4}\right)=1,\qquad \lim_{x\to0}\left(1+\frac{x^2}{2}\right)=1

Both bounds tend to 11, so lim⁡x→0u(x)=1\displaystyle\lim_{x\to0}u(x)=\mathbf{1}.

Example 2: find the bounds yourself

Find lim⁡x→0x2sin⁡1x2\displaystyle\lim_{x\to0}x^2\sin\frac1{x^2}.

We cannot substitute, because sin⁡1x2\sin\frac1{x^2} is not defined at 00. But the sine of any number lies between −1-1 and 11:

−1≤sin⁡1x2≤1-1\le\sin\frac1{x^2}\le1

Multiply every part by x2x^2 (which is ≥0\ge0, so the inequality signs do not change):

−x2 ≤ x2sin⁡1x2 ≤ x2-x^2\ \le\ x^2\sin\frac1{x^2}\ \le\ x^2

Since lim⁡x→0(−x2)=0\lim_{x\to0}(-x^2)=0 and lim⁡x→0x2=0\lim_{x\to0}x^2=0:

lim⁡x→0x2sin⁡1x2=0\lim_{x\to0}x^2\sin\frac1{x^2}=\mathbf{0}

Steps for "find the bounds yourself" questions. (1) Start with a known bound like −1≤sin⁡(⋅)≤1-1\le\sin(\cdot)\le1 or −1≤cos⁡(⋅)≤1-1\le\cos(\cdot)\le1. (2) Multiply by the term outside. (3) Take the limit of both ends. (4) If both limits are equal, you are done.

Example 3: a root between two roots

If 9−5x2≤f(x)≤x2+9\sqrt{9-5x^2}\le f(x)\le\sqrt{x^2+9} for x≠0x\ne0, find lim⁡x→0f(x)\lim_{x\to0}f(x).

lim⁡x→09−5x2=9=3,lim⁡x→0x2+9=9=3 ⇒ lim⁡x→0f(x)=3\lim_{x\to0}\sqrt{9-5x^2}=\sqrt9=3,\qquad\lim_{x\to0}\sqrt{x^2+9}=\sqrt9=3 \ \Rightarrow\ \lim_{x\to0}f(x)=\mathbf{3}

Example 4: one-sided bound

If 1−x26≤u(x)≤11-\dfrac{x^2}{6}\le u(x)\le1 for x≠0x\ne0, find lim⁡x→0u(x)\displaystyle\lim_{x\to0}u(x).

lim⁡x→0(1−x26)=1,lim⁡x→01=1 ⇒ lim⁡x→0u(x)=1\lim_{x\to0}\left(1-\frac{x^2}{6}\right)=1,\qquad\lim_{x\to0}1=1\ \Rightarrow\ \lim_{x\to0}u(x)=\mathbf{1}

Note on the source. The handwritten page used this for 2sin⁡x2−2cos⁡x\dfrac{2\sin x}{2-2\cos x}. That function does not satisfy these bounds (it becomes very large near 00), so it was most likely a copying mistake. The sandwich argument above is correct for any u(x)u(x) that really lies between the two bounds.

Page 7 of 19

Limits at infinity

The idea

lim⁡x→∞f(x)\displaystyle\lim_{x\to\infty}f(x) asks: what value does f(x)f(x) come close to when xx becomes very, very large?

You need only one fact:

lim⁡x→∞1x=0,lim⁡x→∞1x2=0,and in generallim⁡x→∞kxn=0 (n>0)\lim_{x\to\infty}\frac1x=0,\qquad\lim_{x\to\infty}\frac1{x^2}=0,\qquad\text{and in general}\quad \lim_{x\to\infty}\frac{k}{x^n}=0\ (n>0)

A constant divided by a very large number is almost zero.

Method for rational functions

Divide the top and the bottom by the highest power of xx in the denominator. Then every remaining fraction like 2x\frac{2}{x} or 1x2\frac1{x^2} goes to 00.

Example 1

lim⁡x→∞3x2+2x+12x2+x+1=lim⁡x→∞3+2x+1x22+1x+1x2=3+0+02+0+0=32\lim_{x\to\infty}\frac{3x^2+2x+1}{2x^2+x+1} =\lim_{x\to\infty}\frac{3+\frac2x+\frac1{x^2}}{2+\frac1x+\frac1{x^2}} =\frac{3+0+0}{2+0+0}=\mathbf{\tfrac32}

Example 2

lim⁡x→∞4x2−x+22x2+3x−1=lim⁡x→∞4−1x+2x22+3x−1x2=42=2\lim_{x\to\infty}\frac{4x^2-x+2}{2x^2+3x-1} =\lim_{x\to\infty}\frac{4-\frac1x+\frac2{x^2}}{2+\frac3x-\frac1{x^2}} =\frac{4}{2}=\mathbf{2}

Example 3 (take out the highest power as a common factor)

lim⁡x→∞2x2+3x+1x2−x+4=lim⁡x→∞x2(2+3x+1x2)x2(1−1x+4x2)=21=2\lim_{x\to\infty}\frac{2x^2+3x+1}{x^2-x+4} =\lim_{x\to\infty}\frac{x^2\left(2+\frac3x+\frac1{x^2}\right)}{x^2\left(1-\frac1x+\frac4{x^2}\right)} =\frac{2}{1}=\mathbf{2}

Shortcut: compare the degrees

For P(x)Q(x)\dfrac{P(x)}{Q(x)} with deg⁡P=m\deg P=m and deg⁡Q=n\deg Q=n, as x→∞x\to\infty:

CaseLimit
m<nm<n (bottom grows faster)00
m=nm=n (same growth)ratio of the leading coefficients
m>nm>n (top grows faster)no finite limit (it becomes very large)

Check Example 1: both degrees are 22, leading coefficients 33 and 22 → 32\tfrac32 ✓.

Watch out. ∞\infty is not a number. Writing 2∞=0\frac{2}{\infty}=0 is a short form, but the correct statement is 2x→0\frac2x\to0 as x→∞x\to\infty.

Page 8 of 19

Continuity

The idea

A function is continuous at a point if you can draw its graph through that point without lifting your pen. There is no jump, no hole and no break.

Definition

ff is continuous at x=ax=a if all three hold:

  1. f(a)f(a) exists (the function is defined at aa);
  2. lim⁡x→af(x)\displaystyle\lim_{x\to a}f(x) exists;
  3. lim⁡x→af(x)=f(a)\displaystyle\lim_{x\to a}f(x)=f(a) (the limit equals the actual value).

If any one fails, ff is discontinuous at aa.

Example 1: f(x)=x2f(x)=x^2 at x=3x=3

f(3)=9f(3)=9 and lim⁡x→3x2=9\lim_{x\to3}x^2=9, so the limit equals the value. Continuous at 33.

Example 2: f(x)=1xf(x)=\dfrac1x at x=1x=1 and at x=0x=0

  • At x=1x=1: f(1)=1f(1)=1 and lim⁡x→11x=1\lim_{x\to1}\frac1x=1, so it is continuous.
  • At x=0x=0: f(0)=10f(0)=\frac10 is not defined, so condition 1 fails. Not continuous at 00.

A continuous function

A function is continuous (with no "at a point") if it is continuous at every point of its domain.

  • f(x)=x2f(x)=x^2 is continuous everywhere.
  • f(x)=1xf(x)=\dfrac1x is continuous at every point where it is defined. It has a break at x=0x=0, which is not in its domain.

Where is a function continuous?

Polynomials, sin⁡\sin, cos⁡\cos, exe^x and ∣x∣|x| are continuous everywhere. Sums, products and compositions of continuous functions are continuous. Quotients are continuous except where the denominator is 00. So the main work is: find where the denominator is 00.

Practice

1. y=1x−2−3xy=\dfrac1{x-2}-3x. Denominator x−2=0x-2=0 at x=2x=2. Discontinuous only at x=2x=2.

2. y=x+1x2−4x+3y=\dfrac{x+1}{x^2-4x+3}. Solve x2−4x+3=(x−1)(x−3)=0x^2-4x+3=(x-1)(x-3)=0 → x=1, 3x=1,\,3. Continuous except at x=1x=1 and x=3x=3.

3. y=∣x+1∣+sin⁡xy=|x+1|+\sin x. Both parts are continuous everywhere. Continuous at every point.

4. y=1∣x∣+1−x22y=\dfrac1{|x|+1}-\dfrac{x^2}{2}. The denominator ∣x∣+1≥1|x|+1\ge1 is never 00. Continuous at every point.

5. y=cos⁡xxy=\dfrac{\cos x}{x}. Denominator is 00 at x=0x=0. Continuous except at x=0x=0.

6. y=tan⁡πx2y=\tan\dfrac{\pi x}2. Since tan⁡θ=sin⁡θcos⁡θ\tan\theta=\dfrac{\sin\theta}{\cos\theta}, it breaks wherever cos⁡πx2=0\cos\dfrac{\pi x}{2}=0, i.e. when πx2\dfrac{\pi x}2 is an odd multiple of π2\dfrac\pi2. That happens at x=±1,±3,±5,…x=\pm1,\pm3,\pm5,\dots Continuous at every point except the odd integers.

Page 9 of 19

One-sided limits and one-sided continuity

Notation

  • lim⁡x→a−f(x)\displaystyle\lim_{x\to a^-}f(x) is the left-hand limit: xx comes to aa from values less than aa.
  • lim⁡x→a+f(x)\displaystyle\lim_{x\to a^+}f(x) is the right-hand limit: xx comes to aa from values greater than aa.

Key idea. lim⁡x→af(x)\displaystyle\lim_{x\to a}f(x) exists if and only if both one-sided limits exist and are equal. (This is exactly why the step function from page 2 has no limit at 00: its left limit is 00 and its right limit is 11.)

One-sided continuity

TypeCondition at x=ax=a
Continuous from the leftlim⁡x→a−f(x)=f(a)\displaystyle\lim_{x\to a^-}f(x)=f(a)
Continuous from the rightlim⁡x→a+f(x)=f(a)\displaystyle\lim_{x\to a^+}f(x)=f(a)

ff is continuous at aa exactly when it is continuous from both sides.

How to check in 3 steps

  1. Take the formula that is valid on the side from which xx is coming, and find its limit.
  2. Find f(a)f(a) using the formula that includes aa (check the ≤\le and ≥\ge signs carefully).
  3. Compare the two.

Example 1. Left-continuity at x=2x=2

f(x)={x2+3,x<25,x≥2f(x)=\begin{cases}x^2+3,&x<2\\5,&x\ge2\end{cases}
  • Left limit: use x2+3x^2+3 → 22+3=72^2+3=7.
  • Value: f(2)=5f(2)=5 (since x≥2x\ge2 uses the second line).
  • 7≠57\neq5, so not continuous from the left at 22.

(From the right, the limit is 5=f(2)5=f(2), so it is continuous from the right.)

Example 2. Right-continuity at x=−1x=-1

g(x)={sin⁡x,x≤−1x2,x>−1g(x)=\begin{cases}\sin x,&x\le-1\\x^2,&x>-1\end{cases}
  • Right limit: use x2x^2 → (−1)2=1(-1)^2=1.
  • Value: g(−1)=sin⁡(−1)=−sin⁡1≈−0.84g(-1)=\sin(-1)=-\sin1\approx-0.84.
  • 1≠−sin⁡11\neq-\sin1, so not continuous from the right at −1-1.

Example 3. Right-continuity at x=3x=3

f(x)={3x−9,x≤3x2−6x+9,x>3f(x)=\begin{cases}3x-9,&x\le3\\x^2-6x+9,&x>3\end{cases}
  • Right limit: 32−6(3)+9=03^2-6(3)+9=0.
  • Value: f(3)=3(3)−9=0f(3)=3(3)-9=0.
  • Both are equal, so continuous from the right at 33. (The left limit is also 00, so ff is fully continuous at 33.)

Example 4. Left-continuity at x=1x=1

f(x)={2x+1,x<13,x≥1f(x)=\begin{cases}2x+1,&x<1\\3,&x\ge1\end{cases}
  • Left limit: 2(1)+1=32(1)+1=3.
  • Value: f(1)=3f(1)=3.
  • Both are equal, so continuous from the left at 11.

Page 10 of 19

The derivative

The idea

Take two points on a curve and draw a straight line through them (a secant). Now move the second point closer and closer to the first point. The secant becomes the tangent line, and its slope is the derivative.

The slope of the secant between x=ax=a and x=a+hx=a+h is the difference quotient

f(a+h)−f(a)h\frac{f(a+h)-f(a)}{h}

When the gap hh becomes 00, we get the derivative:

 f′(a)=lim⁡h→0f(a+h)−f(a)h \boxed{\,f'(a)=\lim_{h\to0}\frac{f(a+h)-f(a)}{h}\,}

This is the first principle (or definition) of the derivative.

Four ways to say the same thing. f′(a)f'(a) is (1) the slope of the graph of y=f(x)y=f(x) at x=ax=a, (2) the slope of the tangent line to the curve at x=ax=a, (3) the instantaneous rate of change of ff at aa, (4) the derivative of ff at aa.

Method for first-principle questions

  1. Write f(a+h)f(a+h) and f(a)f(a).
  2. Write f(a+h)−f(a)h\dfrac{f(a+h)-f(a)}{h} and simplify until hh cancels from the top and the bottom.
  3. Then put h→0h\to0.

You will see 0/00/0 before simplifying. This is normal. Cancelling removes it.

Examples

1. f(x)=x2f(x)=x^2 at x=2x=2

f′(2)=lim⁡h→0(2+h)2−4h=lim⁡h→04+4h+h2−4h=lim⁡h→0h(4+h)h=lim⁡h→0(4+h)=4f'(2)=\lim_{h\to0}\frac{(2+h)^2-4}{h}=\lim_{h\to0}\frac{4+4h+h^2-4}{h}=\lim_{h\to0}\frac{h(4+h)}{h}=\lim_{h\to0}(4+h)=\mathbf{4}

2. f(x)=xf(x)=\sqrt x at x=4x=4

There is a square root on the top, so use the conjugate:

f′(4)=lim⁡h→04+h−2h⋅4+h+24+h+2=lim⁡h→0(4+h)−4h (4+h+2)=lim⁡h→014+h+2=12+2=14f'(4)=\lim_{h\to0}\frac{\sqrt{4+h}-2}{h}\cdot\frac{\sqrt{4+h}+2}{\sqrt{4+h}+2} =\lim_{h\to0}\frac{(4+h)-4}{h\,(\sqrt{4+h}+2)} =\lim_{h\to0}\frac{1}{\sqrt{4+h}+2}=\frac1{2+2}=\mathbf{\tfrac14}

3. f(x)=3x2+2xf(x)=3x^2+2x at x=1x=1

f′(1)=lim⁡h→03(1+h)2+2(1+h)−5h=lim⁡h→03+6h+3h2+2+2h−5h=lim⁡h→08h+3h2h=lim⁡h→0(8+3h)=8f'(1)=\lim_{h\to0}\frac{3(1+h)^2+2(1+h)-5}{h} =\lim_{h\to0}\frac{3+6h+3h^2+2+2h-5}{h} =\lim_{h\to0}\frac{8h+3h^2}{h}=\lim_{h\to0}(8+3h)=\mathbf{8}

4. f(x)=1xf(x)=\dfrac1x at x=2x=2

f′(2)=lim⁡h→012+h−12h=lim⁡h→02−(2+h)2(2+h)h=lim⁡h→0−h2(2+h) h=lim⁡h→0−12(2+h)=−14f'(2)=\lim_{h\to0}\frac{\frac1{2+h}-\frac12}{h} =\lim_{h\to0}\frac{\frac{2-(2+h)}{2(2+h)}}{h} =\lim_{h\to0}\frac{-h}{2(2+h)\,h} =\lim_{h\to0}\frac{-1}{2(2+h)}=\mathbf{-\tfrac14}

5. f(x)=sin⁡xf(x)=\sin x at x=0x=0

f′(0)=lim⁡h→0sin⁡(0+h)−sin⁡0h=lim⁡h→0sin⁡hh=1f'(0)=\lim_{h\to0}\frac{\sin(0+h)-\sin0}{h}=\lim_{h\to0}\frac{\sin h}{h}=\mathbf{1}

This uses the standard limit lim⁡h→0sin⁡hh=1\displaystyle\lim_{h\to0}\frac{\sin h}{h}=1.

Watch out. Many students use L'Hôpital's rule here (differentiating top and bottom). This is wrong here, because you would be using ddhsin⁡h=cos⁡h\frac{d}{dh}\sin h=\cos h, and that is the very result we are trying to prove. Use the standard limit instead.

6. f(x)=ln⁡xf(x)=\ln x at x=1x=1

f′(1)=lim⁡h→0ln⁡(1+h)−ln⁡1h=lim⁡h→0ln⁡(1+h)h=1f'(1)=\lim_{h\to0}\frac{\ln(1+h)-\ln1}{h}=\lim_{h\to0}\frac{\ln(1+h)}{h}=\mathbf{1}

using the standard limit lim⁡h→0ln⁡(1+h)h=1\displaystyle\lim_{h\to0}\frac{\ln(1+h)}{h}=1.

Page 11 of 19

Rules of differentiation

First principle takes a lot of time. These rules help you differentiate almost anything in one line.

Basic rules

RuleFormula
Constantddx(c)=0\dfrac{d}{dx}(c)=0
Powerddx(xn)=n x n−1\dfrac{d}{dx}(x^n)=n\,x^{\,n-1}
Constant multipleddx(kf(x))=k f′(x)\dfrac{d}{dx}\big(k f(x)\big)=k\,f'(x)
Sum / differenceddx(f±g)=f′±g′\dfrac{d}{dx}\big(f\pm g\big)=f'\pm g'
Productddx(f g)=f g′+g f′\dfrac{d}{dx}\big(f\,g\big)=f\,g'+g\,f'
Quotientddx(fg)=g f′−f g′g2\dfrac{d}{dx}\left(\dfrac{f}{g}\right)=\dfrac{g\,f'-f\,g'}{g^{2}}

Memory trick for the quotient rule. "Low d-high minus high d-low, over low squared". The order on top is important: gf′−fg′g f'-f g'. If you swap them, the sign changes.

Standard derivatives to remember

f(x)f(x)f′(x)f'(x)
xnx^nnxn−1n x^{n-1}
x\sqrt x12x\dfrac1{2\sqrt x}
1x\dfrac1x−1x2-\dfrac1{x^2}
exe^xexe^x
ln⁡x\ln x1x\dfrac1x
sin⁡x\sin xcos⁡x\cos x
cos⁡x\cos x−sin⁡x-\sin x
tan⁡x\tan xsec⁡2x\sec^2 x

Worked examples

1. Power rule. f(x)=5x4f(x)=5x^4

f′(x)=5⋅4x3=20x3f'(x)=5\cdot4x^3=\mathbf{20x^3}

2. Product rule. f(x)=2x3sin⁡xf(x)=2x^3\sin x. Take f=2x3f=2x^3, g=sin⁡xg=\sin x:

f′(x)=2x3cos⁡x+sin⁡x⋅6x2=2x3cos⁡x+6x2sin⁡xf'(x)=2x^3\cos x+\sin x\cdot6x^2=\mathbf{2x^3\cos x+6x^2\sin x}

3. Product rule. f(x)=excos⁡xf(x)=e^x\cos x

f′(x)=ex(−sin⁡x)+cos⁡x⋅ex=ex(cos⁡x−sin⁡x)f'(x)=e^x(-\sin x)+\cos x\cdot e^x=\mathbf{e^x(\cos x-\sin x)}

4. Quotient rule. f(x)=exx2f(x)=\dfrac{e^x}{x^2}

f′(x)=x2⋅ex−ex⋅2x(x2)2=x ex(x−2)x4=ex(x−2)x3f'(x)=\frac{x^2\cdot e^x-e^x\cdot2x}{(x^2)^2}=\frac{x\,e^x(x-2)}{x^4}=\mathbf{\frac{e^x(x-2)}{x^3}}

5. Quotient rule. f(x)=ln⁡xx3f(x)=\dfrac{\ln x}{x^3}

f′(x)=x3⋅1x−ln⁡x⋅3x2(x3)2=x2−3x2ln⁡xx6=1−3ln⁡xx4f'(x)=\frac{x^3\cdot\frac1x-\ln x\cdot3x^2}{(x^3)^2}=\frac{x^2-3x^2\ln x}{x^6}=\mathbf{\frac{1-3\ln x}{x^4}}

6. Quotient rule. f(x)=x2sin⁡xf(x)=\dfrac{x^2}{\sin x}

f′(x)=sin⁡x⋅2x−x2⋅cos⁡xsin⁡2x=2xsin⁡x−x2cos⁡xsin⁡2xf'(x)=\frac{\sin x\cdot2x-x^2\cdot\cos x}{\sin^2x}=\mathbf{\frac{2x\sin x-x^2\cos x}{\sin^2x}}

7. Slope of a curve. Find the slope of y=x2y=x^2 at x=3x=3.

dydx=2x ⇒ dydx∣x=3=6\frac{dy}{dx}=2x\ \Rightarrow\ \left.\frac{dy}{dx}\right|_{x=3}=\mathbf{6}

(First principle gives the same answer: lim⁡h→0(3+h)2−9h=lim⁡h→0(6+h)=6\lim_{h\to0}\frac{(3+h)^2-9}{h}=\lim_{h\to0}(6+h)=6.)

8. Slope of a curve. Find the slope of y=sin⁡xy=\sin x at x=π4x=\dfrac\pi4.

dydx=cos⁡x ⇒ cos⁡π4=12\frac{dy}{dx}=\cos x\ \Rightarrow\ \cos\frac\pi4=\mathbf{\frac1{\sqrt2}}

Page 12 of 19

Higher-order derivatives

The idea

The derivative of a function is also a function, so we can differentiate it again.

OrderNotation
1sty′y' , f′(x)f'(x) , dydx\dfrac{dy}{dx}
2ndy′′y'' , f′′(x)f''(x) , d2ydx2\dfrac{d^2y}{dx^2}
3rdy′′′y''' , f′′′(x)f'''(x) , d3ydx3\dfrac{d^3y}{dx^3}
nnthy(n)y^{(n)} , f(n)(x)f^{(n)}(x) , dnydxn\dfrac{d^ny}{dx^n}

Differentiate step by step, using the previous answer each time.

Meaning. If f(x)f(x) is position, then f′f' is velocity and f′′f'' is acceleration. The second derivative also tells how a curve bends (page 18).

Examples

1. Polynomial, 4th derivative. y=3x5y=3x^5

y′=15x4,y′′=60x3,y′′′=180x2,y(4)=360xy'=15x^4,\quad y''=60x^3,\quad y'''=180x^2,\quad y^{(4)}=\mathbf{360x}

2. Reciprocal. f(x)=1x=x−1f(x)=\dfrac1x=x^{-1}

f′(x)=−1x2,f′′(x)=2x3f'(x)=-\frac1{x^2},\qquad f''(x)=\mathbf{\frac2{x^3}}

3. Third derivative. f(x)=x5−4x3+xf(x)=x^5-4x^3+x

f′=5x4−12x2+1,f′′=20x3−24x,f′′′=60x2−24f'=5x^4-12x^2+1,\quad f''=20x^3-24x,\quad f'''=\mathbf{60x^2-24}

4. All derivatives. y=x42−3x22−xy=\dfrac{x^4}2-\dfrac{3x^2}2-x

y′=2x3−3x−1,y′′=6x2−3,y′′′=12x,y(4)=12,y(5)=0y'=2x^3-3x-1,\quad y''=6x^2-3,\quad y'''=12x,\quad y^{(4)}=12,\quad y^{(5)}=\mathbf{0}

A polynomial of degree nn becomes a constant after nn derivatives, and becomes 00 after n+1n+1 derivatives.

5. Product each time. y=exsin⁡xy=e^x\sin x

y′=excos⁡x+sin⁡x⋅ex=ex(sin⁡x+cos⁡x)y′′=ex(cos⁡x−sin⁡x)+(sin⁡x+cos⁡x)ex=2excos⁡xy′′′=2[ex(−sin⁡x)+cos⁡x⋅ex]=2ex(cos⁡x−sin⁡x)y(4)=2ex(−sin⁡x−cos⁡x)+(cos⁡x−sin⁡x) 2ex=−4exsin⁡x\begin{aligned} y'&=e^x\cos x+\sin x\cdot e^x=e^x(\sin x+\cos x)\\ y''&=e^x(\cos x-\sin x)+(\sin x+\cos x)e^x=2e^x\cos x\\ y'''&=2\left[e^x(-\sin x)+\cos x\cdot e^x\right]=2e^x(\cos x-\sin x)\\ y^{(4)}&=2e^x(-\sin x-\cos x)+(\cos x-\sin x)\,2e^x=\mathbf{-4e^x\sin x} \end{aligned}

6. Product with a logarithm. Third derivative of f(x)=x3ln⁡xf(x)=x^3\ln x

f′(x)=x3⋅1x+ln⁡x⋅3x2=x2+3x2ln⁡xf′′(x)=2x+3x2⋅1x+6xln⁡x=5x+6xln⁡xf′′′(x)=5+6x⋅1x+6ln⁡x=11+6ln⁡x\begin{aligned} f'(x)&=x^3\cdot\frac1x+\ln x\cdot3x^2=x^2+3x^2\ln x\\ f''(x)&=2x+3x^2\cdot\frac1x+6x\ln x=5x+6x\ln x\\ f'''(x)&=5+6x\cdot\frac1x+6\ln x=\mathbf{11+6\ln x} \end{aligned}

7. Quotient with a root. First derivative of f(x)=x3x2+1f(x)=\dfrac{x^3}{\sqrt{x^2+1}}

f′(x)=x2+1⋅3x2−x3⋅xx2+1x2+1=3x2(x2+1)−x4x2+1x2+1=2x4+3x2(x2+1)3/2f'(x)=\frac{\sqrt{x^2+1}\cdot3x^2-x^3\cdot\dfrac{x}{\sqrt{x^2+1}}}{x^2+1} =\frac{\dfrac{3x^2(x^2+1)-x^4}{\sqrt{x^2+1}}}{x^2+1} =\mathbf{\frac{2x^4+3x^2}{(x^2+1)^{3/2}}}

Here ddxx2+1=2x2x2+1=xx2+1\dfrac{d}{dx}\sqrt{x^2+1}=\dfrac{2x}{2\sqrt{x^2+1}}=\dfrac{x}{\sqrt{x^2+1}} comes from the chain rule (page 14).

Page 13 of 19

Instantaneous rate of change

The idea

The average rate of change over an interval is "change in output ÷ change in input". The instantaneous rate of change at one moment is what we get when the interval becomes very, very small. This is exactly the derivative.

Steps. (1) Differentiate. (2) Put the given value. (3) Write the units: units of the output per unit of the input.

Examples

1. Rate of change of f(x)=x2f(x)=x^2 at x=5x=5:

f′(x)=2x ⇒ f′(5)=10f'(x)=2x\ \Rightarrow\ f'(5)=\mathbf{10}

2. Rate of change of f(x)=4x3−x2+2x−7f(x)=4x^3-x^2+2x-7 at x=1x=1:

f′(x)=12x2−2x+2 ⇒ f′(1)=12−2+2=12f'(x)=12x^2-2x+2\ \Rightarrow\ f'(1)=12-2+2=\mathbf{12}

3. Velocity. The position of a car is s(t)=4t2s(t)=4t^2 metres at time tt seconds. Its velocity at t=5t=5 s:

s′(t)=8t ⇒ s′(5)=40 m/ss'(t)=8t\ \Rightarrow\ s'(5)=\mathbf{40\ m/s}

4. Stress in a material. σ(t)=100t−5t2\sigma(t)=100t-5t^2, with tt in seconds. Rate of change of stress at t=8t=8 s:

σ′(t)=100−10t ⇒ σ′(8)=100−80=20\sigma'(t)=100-10t\ \Rightarrow\ \sigma'(8)=100-80=\mathbf{20}

in units of σ\sigma per second (for example Pa/s if σ\sigma is measured in pascals).

The sign tells the story. A positive rate means the quantity is increasing at that moment. A negative rate means it is decreasing. Zero means it is not changing at that moment.

Page 14 of 19

The chain rule

The idea

When one function is inside another function, like sin⁡(4x3)\sin(4x^3), differentiate from the outside to the inside:

Chain rule. If y=f(u)y=f(u) and u=u(x)u=u(x), then dydx=dydu⋅dudx\displaystyle\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}.

In simple words: derivative of the outside function (keep the inside as it is) × derivative of the inside function.

Method

  1. Identify the inner function uu and the outer function.
  2. Differentiate the outer function, and keep uu as it is.
  3. Multiply by dudx\dfrac{du}{dx}.

Examples

1. y=(3x+2)3y=(3x+2)^3. Outer: u3u^3. Inner: u=3x+2u=3x+2.

dydx=3(3x+2)2⋅3=9(3x+2)2\frac{dy}{dx}=3(3x+2)^2\cdot3=\mathbf{9(3x+2)^2}

2. y=sin⁡(4x3)y=\sin(4x^3). Outer: sin⁡u\sin u. Inner: u=4x3u=4x^3.

dydx=cos⁡(4x3)⋅12x2=12x2cos⁡(4x3)\frac{dy}{dx}=\cos(4x^3)\cdot12x^2=\mathbf{12x^2\cos(4x^3)}

3. y=esin⁡xy=e^{\sin x}. Outer: eue^u. Inner: u=sin⁡xu=\sin x.

dydx=esin⁡x⋅cos⁡x=cos⁡x esin⁡x\frac{dy}{dx}=e^{\sin x}\cdot\cos x=\mathbf{\cos x\,e^{\sin x}}

4. y=5x2+3xy=\sqrt{5x^2+3x}. Outer: u\sqrt u. Inner: u=5x2+3xu=5x^2+3x.

dydx=125x2+3x⋅(10x+3)=10x+325x2+3x\frac{dy}{dx}=\frac{1}{2\sqrt{5x^2+3x}}\cdot(10x+3)=\mathbf{\frac{10x+3}{2\sqrt{5x^2+3x}}}

5. y=tan⁡(2x+1)y=\tan(2x+1).

dydx=sec⁡2(2x+1)⋅2=2sec⁡2(2x+1)\frac{dy}{dx}=\sec^2(2x+1)\cdot2=\mathbf{2\sec^2(2x+1)}

Chain rule combined with other rules

6. y=xsin⁡4x+xcos⁡−2xy=x\sin^4x+x\cos^{-2}x. Use the product rule on each term and the chain rule inside.

dydx=[x⋅4sin⁡3xcos⁡x+sin⁡4x⋅1]+[x⋅(−2)cos⁡−3x (−sin⁡x)+cos⁡−2x⋅1]=4xsin⁡3xcos⁡x+sin⁡4x+2xsin⁡xcos⁡3x+1cos⁡2x\begin{aligned} \frac{dy}{dx}&=\Big[x\cdot4\sin^3x\cos x+\sin^4x\cdot1\Big]+\Big[x\cdot(-2)\cos^{-3}x\,(-\sin x)+\cos^{-2}x\cdot1\Big]\\[4pt] &=\mathbf{4x\sin^3x\cos x+\sin^4x+\frac{2x\sin x}{\cos^3x}+\frac1{\cos^2x}} \end{aligned}

Watch out. Do not forget the xx in 2xsin⁡xcos⁡3x\dfrac{2x\sin x}{\cos^3x}. It comes from the first factor of the product xcos⁡−2xx\cos^{-2}x.

7. f(θ)=(sin⁡θ1+cos⁡θ)2f(\theta)=\left(\dfrac{\sin\theta}{1+\cos\theta}\right)^2. Outer: square. Inner: the fraction.

dfdθ=2(sin⁡θ1+cos⁡θ)⋅(1+cos⁡θ)cos⁡θ−sin⁡θ(−sin⁡θ)(1+cos⁡θ)2\frac{df}{d\theta}=2\left(\frac{\sin\theta}{1+\cos\theta}\right)\cdot\frac{(1+\cos\theta)\cos\theta-\sin\theta(-\sin\theta)}{(1+\cos\theta)^2}

The numerator of the inner derivative becomes simple using sin⁡2θ+cos⁡2θ=1\sin^2\theta+\cos^2\theta=1:

(1+cos⁡θ)cos⁡θ+sin⁡2θ=cos⁡θ+cos⁡2θ+sin⁡2θ=1+cos⁡θ(1+\cos\theta)\cos\theta+\sin^2\theta=\cos\theta+\cos^2\theta+\sin^2\theta=1+\cos\theta

so the inner derivative is 1+cos⁡θ(1+cos⁡θ)2=11+cos⁡θ\dfrac{1+\cos\theta}{(1+\cos\theta)^2}=\dfrac1{1+\cos\theta} and

dfdθ=2sin⁡θ(1+cos⁡θ)2\frac{df}{d\theta}=\mathbf{\frac{2\sin\theta}{(1+\cos\theta)^2}}

8. y=xtan⁡(2x)+7y=x\tan(2\sqrt x)+7. Use the product rule, and the chain rule for tan⁡(2x)\tan(2\sqrt x).

dydx=xsec⁡2(2x)⋅ddx(2x)+tan⁡(2x)⋅1+0\frac{dy}{dx}=x\sec^2(2\sqrt x)\cdot\frac{d}{dx}(2\sqrt x)+\tan(2\sqrt x)\cdot1+0

with ddx(2x)=1x\dfrac{d}{dx}(2\sqrt x)=\dfrac1{\sqrt x}, so

dydx=x sec⁡2(2x)+tan⁡(2x)\frac{dy}{dx}=\mathbf{\sqrt x\,\sec^2(2\sqrt x)+\tan(2\sqrt x)}

Page 15 of 19

Implicit differentiation

The idea

Sometimes yy is not given as "y=…y=\dots". For example, x2+y2=r2x^2+y^2=r^2 connects xx and yy without giving yy separately. To find dydx\dfrac{dy}{dx} you need not solve for yy. Differentiate both sides with respect to xx, and treat yy as a function of xx.

The only new point

Whenever you differentiate a term having yy, the chain rule gives an extra factor dydx\dfrac{dy}{dx}:

ddx(y2)=2y dydx,ddx(sin⁡y)=cos⁡y dydx\frac{d}{dx}(y^2)=2y\,\frac{dy}{dx},\qquad\frac{d}{dx}(\sin y)=\cos y\,\frac{dy}{dx}

and a product like xyxy needs the product rule:

ddx(xy)=x dydx+y\frac{d}{dx}(xy)=x\,\frac{dy}{dx}+y

Method

  1. Differentiate both sides with respect to xx.
  2. Take all terms having dydx\dfrac{dy}{dx} to one side, and all other terms to the other side.
  3. Take dydx\dfrac{dy}{dx} out as a common factor.
  4. Divide to get dydx\dfrac{dy}{dx}.

Examples

1. Circle. x2+y2=r2x^2+y^2=r^2

2x+2ydydx=0 ⇒ dydx=−xy2x+2y\frac{dy}{dx}=0\ \Rightarrow\ \frac{dy}{dx}=\mathbf{-\frac xy}

2. Ellipse. x2a2+y2b2=1\dfrac{x^2}{a^2}+\dfrac{y^2}{b^2}=1

2xa2+2yb2dydx=0 ⇒ dydx=−b2xa2y\frac{2x}{a^2}+\frac{2y}{b^2}\frac{dy}{dx}=0\ \Rightarrow\ \frac{dy}{dx}=\mathbf{-\frac{b^2x}{a^2y}}

3. x2+xy+y2=1x^2+xy+y^2=1

2x+(xdydx+y)+2ydydx=0 ⇒ dydx(x+2y)=−2x−y ⇒ dydx=−2x−yx+2y2x+\left(x\frac{dy}{dx}+y\right)+2y\frac{dy}{dx}=0 \ \Rightarrow\ \frac{dy}{dx}(x+2y)=-2x-y \ \Rightarrow\ \frac{dy}{dx}=\mathbf{\frac{-2x-y}{x+2y}}

4. x2y+y3=7x^2y+y^3=7

(x2dydx+2xy)+3y2dydx=0 ⇒ dydx(x2+3y2)=−2xy ⇒ dydx=−2xyx2+3y2\left(x^2\frac{dy}{dx}+2xy\right)+3y^2\frac{dy}{dx}=0 \ \Rightarrow\ \frac{dy}{dx}(x^2+3y^2)=-2xy \ \Rightarrow\ \frac{dy}{dx}=\mathbf{\frac{-2xy}{x^2+3y^2}}

5. sin⁡(xy)=x+y\sin(xy)=x+y

cos⁡(xy)(xdydx+y)=1+dydx\cos(xy)\left(x\frac{dy}{dx}+y\right)=1+\frac{dy}{dx} xcos⁡(xy)dydx−dydx=1−ycos⁡(xy) ⇒ dydx=1−ycos⁡(xy)xcos⁡(xy)−1x\cos(xy)\frac{dy}{dx}-\frac{dy}{dx}=1-y\cos(xy) \ \Rightarrow\ \frac{dy}{dx}=\mathbf{\frac{1-y\cos(xy)}{x\cos(xy)-1}}

6. 2xy+y2=x+y2xy+y^2=x+y

2xdydx+2y+2ydydx=1+dydx ⇒ dydx(2x+2y−1)=1−2y ⇒ dydx=1−2y2x+2y−12x\frac{dy}{dx}+2y+2y\frac{dy}{dx}=1+\frac{dy}{dx} \ \Rightarrow\ \frac{dy}{dx}(2x+2y-1)=1-2y \ \Rightarrow\ \frac{dy}{dx}=\mathbf{\frac{1-2y}{2x+2y-1}}

7. x2(x−y)2=x2−y2x^2(x-y)^2=x^2-y^2. Use the product rule on the left side and the chain rule for (x−y)2(x-y)^2.

2x(x−y)2+2x2(x−y)(1−dydx)=2x−2ydydx2x(x-y)^2+2x^2(x-y)\left(1-\frac{dy}{dx}\right)=2x-2y\frac{dy}{dx}

Collect the terms having dydx\dfrac{dy}{dx}:

dydx[2y−2x2(x−y)]=2x−2x(x−y)2−2x2(x−y)\frac{dy}{dx}\Big[2y-2x^2(x-y)\Big]=2x-2x(x-y)^2-2x^2(x-y)

Divide the top and the bottom by 22:

dydx=x[1−(x−y)2−x(x−y)]y−x2(x−y)\frac{dy}{dx}=\mathbf{\frac{x\big[1-(x-y)^2-x(x-y)\big]}{y-x^2(x-y)}}

Note on the source. The handwritten page first tried x2(x−y2)=x2−y2x^2(x-y^2)=x^2-y^2, then cut it and continued with the (x−y)2(x-y)^2 version. We have solved the version that was kept.

8. x3=2x−yx+3yx^3=\dfrac{2x-y}{x+3y}. Use the quotient rule on the right side.

3x2=(x+3y)(2−dydx)−(2x−y)(1+3dydx)(x+3y)23x^2=\frac{(x+3y)\left(2-\frac{dy}{dx}\right)-(2x-y)\left(1+3\frac{dy}{dx}\right)}{(x+3y)^2}

Expand the numerator. The 2x2x and the 3ydydx3y\frac{dy}{dx} terms cancel, and we are left with 7y−7xdydx7y-7x\frac{dy}{dx}:

3x2(x+3y)2=7y−7xdydx ⇒ dydx=7y−3x2(x+3y)27x3x^2(x+3y)^2=7y-7x\frac{dy}{dx} \ \Rightarrow\ \frac{dy}{dx}=\mathbf{\frac{7y-3x^2(x+3y)^2}{7x}}

Watch out. In the quotient rule, subtract the whole second product, with brackets. If you miss the bracket, the signs change and the final answer becomes wrong. Students often make this mistake in problem 8.

Page 16 of 19

Tangent and normal lines

The idea

  • The tangent line to a curve at a point touches the curve at that point and has the same slope as the curve.
  • The normal line is perpendicular to the tangent at that point.

Both pass through the point (x0, y0)(x_0,\,y_0) on the curve.

Formulas

Let m=f′(x0)m=f'(x_0) be the slope of the curve (the derivative at x0x_0).

LineSlopeEquation
Tangentmmy−y0=m (x−x0)y-y_0=m\,(x-x_0)
Normal−1m-\dfrac1my−y0=−1m (x−x0)y-y_0=-\dfrac1m\,(x-x_0)

For perpendicular lines the product of the slopes is −1-1, so the slope of the normal is the negative reciprocal.

Method

  1. Find the point: y0=f(x0)y_0=f(x_0) (if only x0x_0 is given).
  2. Differentiate and find m=f′(x0)m=f'(x_0).
  3. Put the values in the tangent formula. Then use −1m-\frac1m for the normal.
  4. Write the answer in y=…y=\dots form.

Special case. If m=0m=0, the tangent is horizontal (y=y0y=y_0) and the normal is vertical (x=x0x=x_0). The formula −1m-\frac1m would need division by zero, so write the vertical line directly.

Examples

1. y=x2y=x^2 at (1,1)(1,1).   y′=2x⇒m=2\;y'=2x\Rightarrow m=2.

  • Tangent: y−1=2(x−1) ⇒ y=2x−1y-1=2(x-1)\ \Rightarrow\ \mathbf{y=2x-1}
  • Normal: y−1=−12(x−1) ⇒ y=−x2+32y-1=-\tfrac12(x-1)\ \Rightarrow\ \mathbf{y=-\dfrac x2+\dfrac32}

2. y=x2+3x+2y=x^2+3x+2 at x=1x=1. Point: y0=1+3+2=6y_0=1+3+2=6, so (1,6)(1,6).   y′=2x+3⇒m=5\;y'=2x+3\Rightarrow m=5.

  • Tangent: y−6=5(x−1) ⇒ y=5x+1y-6=5(x-1)\ \Rightarrow\ \mathbf{y=5x+1}
  • Normal: y−6=−15(x−1) ⇒ y=−x5+315y-6=-\tfrac15(x-1)\ \Rightarrow\ \mathbf{y=-\dfrac x5+\dfrac{31}5}

3. y=exy=e^x at x=0x=0. Point (0,1)(0,1).   y′=ex⇒m=1\;y'=e^x\Rightarrow m=1.

  • Tangent: y−1=1 (x−0) ⇒ y=x+1y-1=1\,(x-0)\ \Rightarrow\ \mathbf{y=x+1}
  • Normal: y−1=−1 (x−0) ⇒ y=−x+1y-1=-1\,(x-0)\ \Rightarrow\ \mathbf{y=-x+1}

4. Projectile (horizontal tangent). h(t)=−5t2+20t+25h(t)=-5t^2+20t+25 at t=2t=2 s.

Point: h(2)=−20+40+25=45h(2)=-20+40+25=45, so (2,45)(2,45). Slope: h′(t)=−10t+20⇒h′(2)=0h'(t)=-10t+20\Rightarrow h'(2)=0.

  • Tangent: slope 00, so h=45\mathbf{h=45} (horizontal; this is the highest point of the flight).
  • Normal: a line perpendicular to a horizontal line is vertical, so t=2\mathbf{t=2}.

5. y=sin⁡xy=\sin x at x=π4x=\dfrac\pi4. Point (π4,12)\left(\dfrac\pi4,\dfrac1{\sqrt2}\right).   y′=cos⁡x⇒m=12\;y'=\cos x\Rightarrow m=\dfrac1{\sqrt2}.

  • Tangent: y−12=12(x−π4) ⇒ y=x−π4+12y-\dfrac1{\sqrt2}=\dfrac1{\sqrt2}\left(x-\dfrac\pi4\right)\ \Rightarrow\ \mathbf{y=\dfrac{x-\frac\pi4+1}{\sqrt2}}
  • Normal: y−12=−2(x−π4) ⇒ y=−2 x+2 π4+12y-\dfrac1{\sqrt2}=-\sqrt2\left(x-\dfrac\pi4\right)\ \Rightarrow\ \mathbf{y=-\sqrt2\,x+\dfrac{\sqrt2\,\pi}{4}+\dfrac1{\sqrt2}}

When the curve is given implicitly

6. Tangent and normal to 6x2+3xy+2y2+17y−6=06x^2+3xy+2y^2+17y-6=0 at (−1,0)(-1,0).

Check that the point lies on the curve: 6+0+0+0−6=06+0+0+0-6=0 ✓.

Differentiate implicitly:

12x+3(xdydx+y)+4ydydx+17dydx=0 ⇒ dydx=−12x+3y3x+4y+1712x+3\left(x\frac{dy}{dx}+y\right)+4y\frac{dy}{dx}+17\frac{dy}{dx}=0 \ \Rightarrow\ \frac{dy}{dx}=-\frac{12x+3y}{3x+4y+17}

At (−1,0)(-1,0):   m=−−12+0−3+0+17=1214=67\;m=-\dfrac{-12+0}{-3+0+17}=\dfrac{12}{14}=\dfrac67.

  • Tangent: y−0=67(x+1) ⇒ y=6x+67y-0=\tfrac67(x+1)\ \Rightarrow\ \mathbf{y=\dfrac{6x+6}{7}}
  • Normal: y−0=−76(x+1) ⇒ y=−7x+76y-0=-\tfrac76(x+1)\ \Rightarrow\ \mathbf{y=-\dfrac{7x+7}{6}}

Page 17 of 19

Linearization

The idea

If we zoom in a lot on any smooth curve, it looks like a straight line, that is, its tangent line. So near a point x=ax=a we can replace a difficult function by its tangent line, which is easy to calculate.

Linearization of ff at x=ax=a:  L(x)=f(a)+f′(a) (x−a)\ L(x)=f(a)+f'(a)\,(x-a).

For xx close to aa:  f(x)≈L(x)\ f(x)\approx L(x).

This is the tangent-line equation from the last page, now used to calculate approximate values. It is the best straight-line approximation of ff near aa. The farther xx is from aa, the less accurate the approximation.

Method

  1. Compute f(a)f(a).
  2. Differentiate and compute f′(a)f'(a).
  3. Write L(x)=f(a)+f′(a)(x−a)L(x)=f(a)+f'(a)(x-a) and simplify.

Examples

1. Linearize f(x)=xf(x)=\sqrt x at a=4a=4.

f(4)=2,f′(x)=12x⇒f′(4)=14f(4)=2,\quad f'(x)=\frac1{2\sqrt x}\Rightarrow f'(4)=\frac14 L(x)=2+14(x−4)=x4+1L(x)=2+\tfrac14(x-4)=\mathbf{\frac x4+1}

Example: 4.1≈L(4.1)=4.14+1=2.025\sqrt{4.1}\approx L(4.1)=\frac{4.1}{4}+1=2.025 (true value 2.0248…2.0248\ldots).

2. Linearize f(x)=exf(x)=e^x at a=0a=0.

f(0)=1,f′(0)=e0=1 ⇒ L(x)=1+1⋅(x−0)=1+xf(0)=1,\quad f'(0)=e^0=1\ \Rightarrow\ L(x)=1+1\cdot(x-0)=\mathbf{1+x}

3. Linearize f(x)=ln⁡xf(x)=\ln x at a=1a=1.

f(1)=0,f′(1)=11=1 ⇒ L(x)=0+1⋅(x−1)=x−1f(1)=0,\quad f'(1)=\frac11=1\ \Rightarrow\ L(x)=0+1\cdot(x-1)=\mathbf{x-1}

4. Linearize f(x)=tan⁡xf(x)=\tan x at a=π4a=\dfrac\pi4.

f(π4)=1,f′(x)=sec⁡2x⇒f′(π4)=sec⁡2π4=2f\left(\tfrac\pi4\right)=1,\quad f'(x)=\sec^2x\Rightarrow f'\left(\tfrac\pi4\right)=\sec^2\tfrac\pi4=2 L(x)=1+2(x−π4)=2x+1−π2L(x)=1+2\left(x-\tfrac\pi4\right)=\mathbf{2x+1-\frac\pi2}

5. Linearize f(x)=sin⁡xf(x)=\sin x at a=π6a=\dfrac\pi6.

f(π6)=12,f′(π6)=cos⁡π6=32f\left(\tfrac\pi6\right)=\tfrac12,\quad f'\left(\tfrac\pi6\right)=\cos\tfrac\pi6=\tfrac{\sqrt3}2 L(x)=12+32(x−π6)L(x)=\mathbf{\frac12+\frac{\sqrt3}{2}\left(x-\frac\pi6\right)}

Applications

6. Resistance and temperature. A resistor has R(T)=e0.1TR(T)=e^{0.1T}, with TT in ∘C^\circ\mathrm C. Linearize at T=25T=25.

R(25)=e2.5≈12.182,R′(T)=0.1 e0.1T⇒R′(25)=0.1 e2.5≈1.218R(25)=e^{2.5}\approx12.182,\qquad R'(T)=0.1\,e^{0.1T}\Rightarrow R'(25)=0.1\,e^{2.5}\approx1.218 L(T)=12.182+1.218 (T−25)≈1.218 T−18.274L(T)=12.182+1.218\,(T-25)\approx\mathbf{1.218\,T-18.274}

So near 25∘C25^\circ\mathrm C, the resistance increases by about 1.221.22 units for every 1∘C1^\circ\mathrm C rise.

7. Population of a city. P(t)=100 e0.02tP(t)=100\,e^{0.02t} thousand people, with tt in years since 20202020. Linearize at t=0t=0 and estimate the population in 20212021.

P(0)=100,P′(t)=2 e0.02t⇒P′(0)=2P(0)=100,\qquad P'(t)=2\,e^{0.02t}\Rightarrow P'(0)=2 L(t)=100+2tL(t)=100+2t

For 20212021, t=1t=1: L(1)=102L(1)=102. About 102102 thousand people (the exact value is 100e0.02≈102.02100e^{0.02}\approx102.02 thousand, so the approximation is very close).

Page 18 of 19

Concavity

The idea

Concavity tells how a curve bends.

  • Concave up (like a cup, ∪\cup): the slope is increasing as you move to the right.
  • Concave down (like an upside-down cup, ∩\cap): the slope is decreasing as you move to the right.

The point where the bending changes direction is called an inflection point.

A curve that is concave down on the left, concave up on the right, with the inflection point where the bending changes

The second derivative test for concavity

Let ff be twice differentiable on an interval II.

Sign of f′′(x)f''(x) on IIShape of the graph
f′′(x)>0f''(x)>0concave up
f′′(x)<0f''(x)<0concave down

Why. f′′f'' is the rate of change of the slope f′f'. If f′′>0f''>0, the slope is increasing, so the curve bends upward.

Watch out. If f′′(x)=0f''(x)=0 (or is not defined), the point is only a possible inflection point. It is a real inflection point only if f′′f'' changes sign there. For f(x)=x4f(x)=x^4, f′′(0)=0f''(0)=0 but f′′f'' is positive on both sides, so 00 is not an inflection point.

Method

  1. Find f′′(x)f''(x).
  2. Solve f′′(x)=0f''(x)=0 (and note where f′′f'' is not defined) to get the points where the sign may change.
  3. Check the sign of f′′f'' in each interval between these points (a sign chart on a number line helps here).
  4. Write the concavity, and mark the inflection points where the sign changes.

Examples

1. f(x)=x3−3x2+4f(x)=x^3-3x^2+4

f′(x)=3x2−6x,f′′(x)=6x−6=6(x−1)f'(x)=3x^2-6x,\qquad f''(x)=6x-6=6(x-1)

f′′<0f''<0 for x<1x<1 and f′′>0f''>0 for x>1x>1.

  • Concave down on (−∞, 1)(-\infty,\,1).
  • Concave up on (1, ∞)(1,\,\infty).
  • Inflection point at x=1x=1.

2. f(x)=x3−6x2+9x+1f(x)=x^3-6x^2+9x+1

f′(x)=3x2−12x+9,f′′(x)=6x−12=6(x−2)f'(x)=3x^2-12x+9,\qquad f''(x)=6x-12=6(x-2)
  • Concave down on (−∞, 2)(-\infty,\,2).
  • Concave up on (2, ∞)(2,\,\infty).
  • Inflection point at x=2x=2.

3. f(x)=ln⁡xf(x)=\ln x, for x>0x>0

f′(x)=1x,f′′(x)=−1x2<0  for all x>0f'(x)=\frac1x,\qquad f''(x)=-\frac1{x^2}<0\ \text{ for all }x>0

Concave down on (0, ∞)(0,\,\infty), with no inflection points.

4. f(x)=e−x2f(x)=e^{-x^2}

f′(x)=−2x e−x2f′′(x)=−2e−x2+(−2x)(−2x) e−x2=2e−x2 (2x2−1)\begin{aligned} f'(x)&=-2x\,e^{-x^2}\\ f''(x)&=-2e^{-x^2}+(-2x)(-2x)\,e^{-x^2}=2e^{-x^2}\,(2x^2-1) \end{aligned}

Since e−x2>0e^{-x^2}>0 always, the sign of f′′f'' is the sign of 2x2−12x^2-1. It is 00 when x2=12x^2=\tfrac12, i.e. x=±12x=\pm\tfrac1{\sqrt2}.

Number line with the points minus root half and root half marked, splitting the line into three intervals

Interval2x2−12x^2-1f′′f''Shape
(−∞, −12)\left(-\infty,\,-\tfrac1{\sqrt2}\right)++++concave up
(−12, 12)\left(-\tfrac1{\sqrt2},\,\tfrac1{\sqrt2}\right)−-−-concave down
(12, ∞)\left(\tfrac1{\sqrt2},\,\infty\right)++++concave up

Inflection points at x=±12x=\pm\dfrac1{\sqrt2}. (This is the bell curve: it bends down near the top and bends up on the two sides.)

5. f(x)=ex−x2f(x)=e^x-x^2

f′(x)=ex−2x,f′′(x)=ex−2f'(x)=e^x-2x,\qquad f''(x)=e^x-2

Solve f′′=0f''=0:   ex=2⇒x=ln⁡2\;e^x=2\Rightarrow x=\ln2 (since eln⁡2=2e^{\ln2}=2).

  • For x<ln⁡2x<\ln2: ex<2e^x<2, so f′′<0f''<0 → concave down on (−∞, ln⁡2)(-\infty,\,\ln2).
  • For x>ln⁡2x>\ln2: ex>2e^x>2, so f′′>0f''>0 → concave up on (ln⁡2, ∞)(\ln2,\,\infty).
  • Inflection point at x=ln⁡2x=\ln2.

Page 19 of 19

Practice questions and formula sheet

Practice questions

Try these without looking at the answers. The answers are given below.

A. Limits

  1. lim⁡x→2x2−4x−2\displaystyle\lim_{x\to2}\frac{x^2-4}{x-2}
  2. lim⁡x→0x+9−3x\displaystyle\lim_{x\to0}\frac{\sqrt{x+9}-3}{x}
  3. lim⁡x→∞5x3−x2x3+7\displaystyle\lim_{x\to\infty}\frac{5x^3-x}{2x^3+7}
  4. lim⁡x→0xcos⁡1x\displaystyle\lim_{x\to0}x\cos\frac1x

B. Differentiation. Use implicit differentiation to find dydx\dfrac{dy}{dx}:

  1. x3y+xy3=6x^3y+xy^3=6
  2. y2=x−1x+1y^2=\dfrac{x-1}{x+1}

C. First and second derivatives

  1. r=13s2−52sr=\dfrac1{3s^2}-\dfrac5{2s}
  2. y=4−2x−x−3y=4-2x-x^{-3}
  3. y=(1+3z3z)(3−z)y=\left(\dfrac{1+3z}{3z}\right)(3-z)
  4. y=(θ−1)(θ2+θ+1)θ3y=\dfrac{(\theta-1)(\theta^2+\theta+1)}{\theta^3}

D. First derivatives

  1. y=(5−2x2)(2x3−3x+4)y=(5-2x^2)(2x^3-3x+4)
  2. y=(1+x2)(x3/4−x−3)y=(1+x^2)\left(x^{3/4}-x^{-3}\right)
  3. y=4s−94s+9y=\dfrac{\sqrt{4s}-9}{\sqrt{4s}+9}

Answers

  1. 44. Factorise: (x−2)(x+2)x−2=x+2→4\frac{(x-2)(x+2)}{x-2}=x+2\to4.
  2. 16\tfrac16. Conjugate: xx(x+9+3)=1x+9+3→16\frac{x}{x(\sqrt{x+9}+3)}=\frac1{\sqrt{x+9}+3}\to\frac16.
  3. 52\tfrac52. Same degree: ratio of leading coefficients.
  4. 00. Sandwich: −∣x∣≤xcos⁡1x≤∣x∣-|x|\le x\cos\frac1x\le|x|.
  5. dydx=−3x2y+y3x3+3xy2\dfrac{dy}{dx}=-\dfrac{3x^2y+y^3}{x^3+3xy^2}
  6. dydx=1y (x+1)2\dfrac{dy}{dx}=\dfrac{1}{y\,(x+1)^2}
  7. r′=−23s3+52s2r'=-\dfrac{2}{3s^3}+\dfrac{5}{2s^2}, r′′=2s4−5s3\quad r''=\dfrac{2}{s^4}-\dfrac{5}{s^3}
  8. y′=−2+3x−4y'=-2+3x^{-4}, y′′=−12x−5\quad y''=-12x^{-5}
  9. Expand first: y=1z+83−zy=\dfrac1z+\dfrac83-z. So y′=−1z2−1y'=-\dfrac1{z^2}-1, y′′=2z3\quad y''=\dfrac2{z^3}
  10. Expand first: y=1−θ−3y=1-\theta^{-3}. So y′=3θ−4y'=3\theta^{-4}, y′′=−12θ−5\quad y''=-12\theta^{-5}
  11. y′=−20x4+48x2−16x−15y'=-20x^4+48x^2-16x-15
  12. y′=114x7/4+34x−1/4+x−2+3x−4y'=\tfrac{11}{4}x^{7/4}+\tfrac34x^{-1/4}+x^{-2}+3x^{-4}
  13. y′=18s (2s+9)2y'=\dfrac{18}{\sqrt s\,\left(2\sqrt s+9\right)^2}

Study tip. In 9 and 10, if you expand or simplify before differentiating, you can use the easy power rule instead of the product or quotient rule.


Formula sheet

Limits

Definitionlim⁡x→cf(x)=L\lim_{x\to c}f(x)=L means f(x)→Lf(x)\to L as x→cx\to c (x≠cx\neq c)
Exists only ifleft limit == right limit
Polynomialslim⁡x→cP(x)=P(c)\lim_{x\to c}P(x)=P(c)
Rationallim⁡x→cPQ=P(c)Q(c)\lim_{x\to c}\dfrac{P}{Q}=\dfrac{P(c)}{Q(c)} if Q(c)≠0Q(c)\ne0
0/00/0factorise and cancel, or multiply by the conjugate
Sandwichg≤f≤hg\le f\le h and g,h→Lg,h\to L ⇒\Rightarrow f→Lf\to L
At infinitydivide by the highest power; 1xn→0\dfrac1{x^n}\to0
Standard limitssin⁡hh→1\dfrac{\sin h}{h}\to1,  ln⁡(1+h)h→1\ \dfrac{\ln(1+h)}{h}\to1 as h→0h\to0

Continuity

ff is continuous at aa when f(a)f(a) exists, lim⁡x→af(x)\lim_{x\to a}f(x) exists, and they are equal. Left- and right-continuity use lim⁡x→a−\lim_{x\to a^-} and lim⁡x→a+\lim_{x\to a^+}.

Derivatives

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a)=\lim_{h\to0}\frac{f(a+h)-f(a)}{h}
RuleFormula
Power(xn)′=nxn−1(x^n)'=nx^{n-1}
Product(fg)′=fg′+gf′(fg)'=fg'+gf'
Quotient(fg)′=gf′−fg′g2\left(\dfrac fg\right)'=\dfrac{gf'-fg'}{g^2}
Chaindydx=dydu⋅dudx\dfrac{dy}{dx}=\dfrac{dy}{du}\cdot\dfrac{du}{dx}
Implicitdifferentiate both sides; every yy-term gets a factor dydx\dfrac{dy}{dx}
ffx\sqrt x1x\dfrac1xexe^xln⁡x\ln xsin⁡x\sin xcos⁡x\cos xtan⁡x\tan x
f′f'12x\dfrac1{2\sqrt x}−1x2-\dfrac1{x^2}exe^x1x\dfrac1xcos⁡x\cos x−sin⁡x-\sin xsec⁡2x\sec^2x

Applications

Tangent at (x0,y0)(x_0,y_0)y−y0=f′(x0)(x−x0)y-y_0=f'(x_0)(x-x_0)
Normal at (x0,y0)(x_0,y_0)y−y0=−1f′(x0)(x−x0)y-y_0=-\dfrac{1}{f'(x_0)}(x-x_0)
Linearization at aaL(x)=f(a)+f′(a)(x−a)L(x)=f(a)+f'(a)(x-a)
Concave upf′′>0f''>0
Concave downf′′<0f''<0
Inflection pointf′′f'' changes sign

You’ve reached the end of S1 CSE Maths · Module 1.

Source: ktunotes.in · GAMAT101, Module 1. Reorganised and rewritten from the class notes, with every worked example re-checked. Check the original material if a step looks unclear.