My goal is to write $\mathbb{Q}(\pi^3+\pi^2, \pi^8+\pi^5)$ as $\mathbb{Q}(f(\pi))$ where $f \in \mathbb Q(X)$.
I have $(\pi^3+\pi^2)^2 = \pi^6+2\pi^5+\pi^4$ and then $2\pi^8 - \pi^6 - \pi^4$ is in my field. But I don't think it generates it.
Thank you for your help!
Let $a=\pi^3+\pi^2$ and $b=\pi^8+\pi^5$. Then
$$ \pi=\frac{3b(1-a)+(a^4+3a^3)}{b(a-3)+(3a^3+3a^2)} $$
so you can take $f(\pi)=\pi$. How did I obtain this formula ? I tried to find the minimal polynomial of $\pi$ over ${\mathbb Q}(a,b)$, by applying the Euclidean algorithm to $X^3+X^2-a$ and $X^8+X^5-b$.
The last nonzero term produced by this algorithm is $3b(1-a)+(a^4+3a^3)-X(b(a-3)+(3a^3+3a^2))$.