Let $C[1,e]$ be the set of continuous real-valued functions with domain $W:=[1,e]$.
Let $$\langle f, g\rangle = \int_1^e {1 \over x} f(x)g(x)\,dx $$ be a function.
Determine whether $\langle \cdot, \cdot\rangle$ is an inner product. (i.e. $(a,b): W \times W \to C$ (C is complex set)
In order that it be a inner product it has to meet 3 conditions:
- $\forall f \in W $ , an inner product of $(f,f) \ge 0 $, $f = 0 \iff (f,f) = 0$
So I tried to solve this integral:
$$\int {1 \over x}f(x)f(x)\,dx = \int {1 \over x}f(x)^2\,dx = {1 \over x}f(x)^2 - \int{1 \over x}2f(x) = {f(x)^2 \over x} - 2 \int {f(x) \over x} $$
Then I got stuck. can you please help? thanks in advance.
First, this is a good question! You said what step you're stuck at, and didn't try to get help solving the entire problem before you get through that step. I wish everybody here did that. Kudos.
It's not the right approach to try to calculate the integral. You can't—$f(x)$ is arbitrary, and could be something quite terrible and complicated (and check your steps!—they don't work). But let's look again at what we'd like to prove:
$$ \int_1^e \frac{1}{x} f(x)^2 dx \geq 0$$
Again, don't start manipulating the equation until you have a plan. How would we show this? How do you tell, just from looking at it, that an integral can't be negative?
Pay attention to the domain of integration—if you change $1$ and $e$ to something else, the problem might be false. Try plugging in some really simple functions if you need to (like $f(x)=x$). Maybe draw a picture.
But there aren't any complex mathematics needed here. Just one simple realization.
Think about what an integral is. Can integrals ever be negative? How? Think about the reverse question: What conditions should $g(x)$ meet to guarantee that $\int_a^b g(x)dx$ is always non-negative?