Announcements! ( See All )
10/8 Homework 7 posted. The calendar is subject to change pending campus decisions about cancellations.
10/1 Week 6 assignments have been posted. Midterm on 10/10 during lecture time.
9/25 Week 5 assignments have been posted.
9/17 Week 4 assignments have been posted.
9/10 Week 3 assignments have been posted. Quiz 1 Wed 9/11 in your assigned section.
9/3 Week 2 assignments have been posted. Quiz 1 will be on Wed 9/11 in your assigned section. See Piazza for info on Office Hours.
8/29 Welcome to the first lecture of Prob 140! We're excited to have you in this course. Discussion sections start tomorrow 8/30; please be sure to bring a laptop!

Exponential and Log Functions


Limits and Approximations

For all $x$,

The expansion as a sum implies that

Here the symbol $\sim$ means that the ratio of the two sides goes to 1 as $x$ goes to 0.

You can see this approximation in the figure. Around $x = 0$, the blue graph of $e^x$ and the red graph of $1+x$ are almost indistinguishable.

Take $\log$ on both sides to see that

To spot this in the figure, look at values near 1 on the horizontal axis. You can see that $\log(x) \sim -1 + x$ for $x$ near 1. Write $x$ as 1 plus a small increment $w$. The approximation becomes $\log(1+w) \sim w$ for small $w$, which is the result we had before. It doesn’t matter whether you refer to the small number as $x$ or $w$. But it does matter that it is small.

For exact values, let $\vert x \vert < 1$. Then the Taylor expansion of $\log(1+x)$ is


  • $e^x \ge 1+x$ for all $x$. You can see this in the graphs above.

  • For $x \in (0, 1)$:

    • $\log(1+x) < x$
    • $\log(1+x) > x - \frac{x^2}{2}$
    • and so on. You get alternating upper and lower bounds as you go further into the series.

In probability theory you will often come across logs of values that are near 1. Here is another useful lower bound on $\log(1+x)$. It is true for all positive $x$ but it is only close to $\log(1+x)$ when $x$ is close to 0.

  • For $x > 0$, $\log(1+x) \ge \frac{x}{1+x/2} = \frac{2x}{2+x}$

There are many ways of proving inequalities like this one. One way is to show that the difference between the two sides has the right sign, by noticing that it is 0 at $x=0$ and monotone (in the right direction) on the specified domain.

Here are the graphs of $\log(1+x)$ and $2x/(2+x)$.


The difference $\log(1+x) - 2x/(2+x)$ is an increasing positive function: