Determine all the functions $f:\mathbb R\mapsto\mathbb R$ satisfies the equation 
$f(a^2 +ab+ f(b^2))=af(b)+b^2+ f(a^2)\,\forall a,b\in\mathbb R $

1. **Verification of Given Solutions:**
   - We need to verify that \( f(x) \equiv x \) and \( f(x) \equiv -x \) satisfy the given functional equation.
   - For \( f(x) \equiv x \):
     \[
     f(a^2 + ab + f(b^2)) = f(a^2 + ab + b^2) = a^2 + ab + b^2
     \]
     \[
     af(b) + b^2 + f(a^2) = a \cdot b + b^2 + a^2 = a^2 + ab + b^2
     \]
     Both sides are equal, so \( f(x) \equiv x \) is a solution.
   - For \( f(x) \equiv -x \):
     \[
     f(a^2 + ab + f(b^2)) = f(a^2 + ab - b^2) = -(a^2 + ab - b^2) = -a^2 - ab + b^2
     \]
     \[
     af(b) + b^2 + f(a^2) = a(-b) + b^2 + (-a^2) = -ab + b^2 - a^2 = -a^2 - ab + b^2
     \]
     Both sides are equal, so \( f(x) \equiv -x \) is a solution.

2. **Proving Oddness of \( f \):**
   - Let \( P(a, b) \) denote the assertion of the given functional equation.
   - Consider \( P(-a, b) \):
     \[
     f(a^2 - ab + f(b^2)) = -af(b) + b^2 + f(a^2)
     \]
   - Consider \( P(a, -b) \):
     \[
     f(a^2 - ab + f(b^2)) = af(-b) + b^2 + f(a^2)
     \]
   - By comparing these two equations, we get:
     \[
     -af(b) = af(-b) \implies f(b) = -f(-b)
     \]
     Thus, \( f \) is odd.

3. **Proving \( f(0) = 0 \):**
   - From the oddness of \( f \), we have:
     \[
     f(0) = -f(0) \implies f(0) = 0
     \]

4. **Proving \( f \) is an Involution:**
   - Consider \( P(0, a) \):
     \[
     f(f(a^2)) = a^2
     \]
   - Since \( f \) is odd:
     \[
     f(f(-a^2)) = -a^2
     \]
   - Therefore, \( f \) is an involution, meaning \( f(f(x)) = x \).

5. **Proving \( f(a^2) = af(a) \):**
   - Consider \( P(a, -a) \):
     \[
     f(a^2 - a^2 + f(a^2)) = -af(a) + a^2 + f(a^2)
     \]
     \[
     f(f(a^2)) = -af(a) + a^2 + f(a^2)
     \]
     Since \( f(f(a^2)) = a^2 \):
     \[
     a^2 = -af(a) + a^2 + f(a^2) \implies f(a^2) = af(a)
     \]

6. **Proving \( f(a) = \pm a \):**
   - From \( f(a^2) = af(a) \):
     \[
     f(f(a)^2) = f(a)f(f(a)) = af(a) = f(a^2)
     \]
     \[
     f(a)^2 = a^2 \implies f(a) = \pm a
     \]

7. **Eliminating Mixed Solutions:**
   - Assume there exist \( a, b \) such that \( f(a) = a \) and \( f(b) = -b \) where \( a, b \neq 0 \).
   - Then:
     \[
     f(a^2 + ab - b^2) = f(a^2 + ab + f(b^2)) = af(b) + b^2 + f(a^2) = -ab + b^2 + a^2
     \]
   - If \( f(a^2 + ab - b^2) = a^2 + ab - b^2 \):
     \[
     a^2 + ab - b^2 = -ab + b^2 + a^2 \implies 2ab = 2b^2 \implies a = b
     \]
     \[
     -a = -b \implies a = 0 \quad \text{(contradiction)}
     \]
   - If \( f(a^2 + ab - b^2) = -a^2 - ab + b^2 \):
     \[
     a = 0 \quad \text{(contradiction)}
     \]
   - Therefore, mixed solutions are impossible.

Conclusion:
\[
\boxed{f(x) \equiv x \text{ or } f(x) \equiv -x}
\]