I'm trying to solve what seems to be a simple problem, but I cannot find the right way to approach it. Here it is:
Let $V$ be a vector space of all polynomials of degree $0$ or $1$. We define the inner product as
$$(v,w)=\int_{0}^{1}v(x)w(x)\,dx. \tag{1}$$ If $\{1,x\}$ is a base for $V$, show that the corresponding dual base for $V^*$ is given by $\{4-6x,-6+12x\}$.
My attempt to this problem was:
We can write any element from $V$ as:
$$v=\alpha+\beta x \tag{2}.$$
Using (2) in (1):
$$\int_0^1(\alpha+\beta x)(\gamma+\sigma x)\,dx. \tag{3}$$
But that won't take me to the answer as the integral outputs a number. I thought about integrating from $0$ to $x$, however, I don't know how to justify it. Any help?
Since you aren't entirely clear on the basics, let's take this from the start.
We have an inner product on $V$ defined as $$ (u, v) = \int_0^1 u(x)v(x)dx $$ Now note that if we choose some fixed polynomial $u_0\in V$, then $$ v\mapsto (u_0, v) $$ is a linear transformation from $V$ to $\Bbb R$. Which is to say, $u_0$ here gives us an element of $V^*$, sending $v$ to $u_0(v) = \int_0^1u_0(x)v(x)dx$.
Given an inner product on a finite-dimensional vector space, this correspondance between the inner product and the dual space gives a full description of $V^*$. In other words, any linear transformation $V\to \Bbb R$ can be seen as "take the inner product with some specific, fixed element of $V$", and of course, a different $u_0$ will give a different linear transformation.
This way, we may write elements of $V^*$ as polynomials. Note that which polynomial represents which linear transformation depends on the inner product. If we had chosen $\int_0^2$ instead, for instance, the correspondence would be different.
We are given a basis $\{1, x\}$ of $V$, and tasked with finding the corresponding dual basis of $V^*$. As the other answers have noted, a "corresponding dual basis" consists of a basis $\{u_0, u_1\}$ of $V^*$ such that $$u_0(1) = u_1(x) = 1\\u_1(1) = u_0(x) = 0$$ Which is to say, we want to find polynomials $u_0, u_1$ such that $$ \int_0^1u_0(x)dx = \int_0^1 xu_1(x)dx = 1\\ \int_0^1xu_0(x)dx = \int_0^1u_1dx = 0 $$ You are given candidate polynomials in the problem text. Verifying them is easy.