Prove that $A= \left\lbrace f \in X: \int_0^1f(x) dx>1 \right\rbrace$ is an open set in $(X,d)$. Let $X=C[0,1]$ be a set of real continuous functions on $[0,1]$. Given these metrics below 
$$d(f,g)=\max_{x \in [0,1]} e^{-x^2} \vert f(x)-g(x) \vert\ , \ \forall f,g \in X$$
$$p(f,g)= \int\limits_0^1{\vert f(x)-g(x)\vert dx}, \ \forall f,g \in X$$.
Question 1: I have already proved that $p(f,g) \le e \cdot d(f,g) $, so that with $f \in X$ and for all sequence $(f_n) \subset X$, I have if $\lim d(f_n,f)=0$ then $\lim p(f_n,f)=0$. Moreover, if $\lim p(f_n,f)=0$ then $\lim d(f_n,f)=0$ does not happen. However I can't find the example to point out it doesn't happen. 
Is there any example ? And how can you find out this example ?
Question 2: Prove that $A= \left\lbrace f \in X: \int\limits_0^1f(x) dx>1 \right\rbrace$ is an open set in $(X,d)$.
For this question I intend to write it as an inversion of open set and the mapping is continuos but I stuck. Do you have any solution for this ? Thank you
 A: Note that the metric d is equivalent to the usual maximum metric on C[0,1] (because $e^{-x^2}$ attains non-zero min and max values on [0,1]), so for the purposes of your questions you may as well replace d by that metric. For Q1) consider a sequence of "tent functions" whose tent width tends to 0, but whose height remains constant. For Q2) just note that the complement of A is closed in the $p$ metric and use what you have already proven to conclude that then it is also closed in the $d$ metric.
A: Let $f_n$ be the function whose graph is given by joining the points
$(0,0), ({1 \over n}, 1), ({2 \over n}, 0), (1,0)$. Let $f= 0$.
Then $f_n \to f$ with distance $p$, but $d(f_n,f) \to 1$.
Also, if we let $Lf = \int_0^1 f(x)dx$ then we have
$|Lf-Lg| \le p(f,g) \le e \cdot d(f,g)$ and so $L$ is continuous with respect to both metrics. Hence $A=L^{-1}((1,\infty))$ is open.
A: Let $f_n(x)=x^n$ and $f(x)=0$. It is easy to see
$$ \int_0^1|f_n(x)-f(x)|dx=\frac1{n+1}\to 0 $$
as $n\to\infty$. However
$$ d(f_n,f)=\max_{x\in[0,1]}x^ne^{-x^2}=\left(\frac{n}{2e}\right)^{n/2}\to\infty $$
as $n\to\infty$.
