I have the norm on the set of continuous functions from $s$ to $t$. Let $g$ and $h$ be in this set and define the dot product as $$\int_s^t g(x)h(x) \mathrm{dx}$$ and norm by $$ \|g\|_2 = \sqrt{g \cdot g} = \left (\int_s^t \lvert g(x)\rvert^2 \mathrm{dx} \right)^{1/2}$$ Show that it is a norm.
For the first part I have $$\|g\|_2 = \sqrt{g \cdot g} = \left (\int_s^t \lvert g(x)\rvert^2 \mathrm{dx} \right)^{1/2}$$ and clearly $\lvert g(x)\rvert$ is greater than $0$, hence $\|g\|_2 \ge 0$. Suppose $\|g\|_2 = 0$ I am having a little bit of trouble showing that $g$ must be $0$.
For the second part I have $\|c\cdot g(x)\|_2 = \sqrt{(c \cdot g(x))\cdot (c \cdot g(x))} = \sqrt{c^2 \cdot g \cdot g} = \sqrt{c^2}\sqrt{g \cdot g} = c \left (\int_s^t \lvert g(x)\rvert^2 \mathrm{dx} \right)^{1/2} = \|c\|\|g(x)\|$
I need help showing the triangle inequality for this norm to be true. I believe I am allowed to prove the triangle inequality for its' square and that implies the original triangle inequality is true.
I have $$\|g + h\|_2^2 = \|g\|_2^2 + \|h\|_2^2 + 2\cdot (g \cdot h) \\=\|g\|_2^2 + \|h\|_2^2 + 2\cdot\int_s^t g(x) h(x)\mathrm{dx}$$
I am not sure where to go from here. Any help would be appreciated