Let $(X, \mathcal{A}, \mu)$ be a finite measure space. Fix $1 < p, q < \infty$ with $\frac{1}{p} + \frac{1}{q} = 1$. Let $\{f_n\}$ be a sequence in $\mathcal{L^p}(\mu)$ such that $\sup \|f_n\|_p = M < \infty$. Suppose for every $g \in \mathcal{L^q}(\mu)$ we have $\lim_n \int f_n g \, d\mu$ converges.
Prove that $f_n$ weakly converges to some $f \in L^p(\mu)$.
I have shown that $\phi(g) = \lim_n \int f_n g \, d\mu$ defines a linear functional $\phi \in (L^q(\mu))^*$. I think $f$ is the element in $L^p(\mu)$ corresponding to $\phi \in (L^q(\mu))^*$ by the Riezs' theorem isomorphism, but how do I prove this? How do I find this $f$?
If $\phi$ is a bounded linear functional on $L^q(\mu)$ then there exists $f \in L^p(\mu)$ with $\phi(g) = \displaystyle \int fg \, d\mu$. You don't have to find it; Riesz did that for you.
Under your definition of $\phi$ this means $$\lim_n \int f_ng \, d\mu = \int fg \, d\mu$$ for all $g \in L^q(\mu)$, verifying weak convergence.