import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline
# BEGIN QUESTION name: q3 manual: true
Question 3. Graph the function $f(x) = \arctan \left ( e^x \right )$.
# BEGIN SOLUTION
f = lambda x: np.arctan(np.exp(x))
xs = np.linspace(-10, 10, 100)
ys = f(xs)
plt.plot(xs, ys)
plt.xlabel("$x$")
plt.ylabel("$f(x)$")
plt.title(r"$f(x) = \arctan \left ( e^x \right )$");
# END SOLUTION
# END QUESTION