Exercise 3.5

Answers

(a)

tanh (s) = es es es + es = e2s 1 1 + e2s = 𝜃(2s) 1 1 + e2s = 𝜃(2s) (1 𝜃(2s)) = 2𝜃(2s) 1

(b)

tanh (s) = es es es + es = 1 e2s 1 + e2s

Let s , we have e2s 0, thus tanh (s) 1. Similarly, when s , tanh (s) 1.

It’s also easy to see that tanh (s)1 and tanh (s) 1. So 1 and 1 are hard thresholds for tanh (s) when |s| is large.

When |s| is small, consider Taylor expansion of es = 1 + s + s2 2 + O(s3), then es = 1 s + s2 2 O(s3), we have tanh (s) = eses es+es = 2s+2O(s3) 2+s2 s.

So tanh (s) is approximately linear when |s| is small. There’s no threshold in this case.

User profile picture
2021-12-07 22:14
Comments