Step 1: Understanding the setup:
The cube has side \(a = 10\ \text{cm} = 0.1\ \text{m}\). From the figure, one corner is at the origin and the edges lie along the x, y and z axes.
So two faces are perpendicular to the x-axis: one at \(x = 0\) and the other at \(x = a = 0.1\ \text{m}\). The field \(\vec{E} = (5x^{2} + 2)\,\hat{i}\) points only along +x.
The area of each face is \(A = a^{2} = (0.1)^{2} = 0.01\ \text{m}^{2}\).
Step 2: Faces parallel to the field:
The four faces in the xy and xz directions have normals along \(\pm\hat{j}\) or \(\pm\hat{k}\). The field has no y or z component, so \(\vec{E}\cdot d\vec{A} = 0\) on these faces.
Their flux is zero.
Step 3: Flux through the face at x = 0:
The outward normal here is \(-\hat{i}\). The field at \(x = 0\) is \(E = 5(0)^{2} + 2 = 2\ \text{N/C}\).
\[ \phi_{1} = \vec{E}\cdot\vec{A} = -(2)(0.01) = -0.02\ \text{N m}^{2}\text{/C} \]
Step 4: Flux through the face at x = a:
The outward normal here is \(+\hat{i}\). The field at \(x = 0.1\ \text{m}\) is \(E = 5(0.1)^{2} + 2 = 2.05\ \text{N/C}\).
\[ \phi_{2} = +(2.05)(0.01) = 0.0205\ \text{N m}^{2}\text{/C} \]
Step 5: (1) Net flux through the cube:
\[ \phi = \phi_{1} + \phi_{2} = -0.02 + 0.0205 = 5\times 10^{-4}\ \text{N m}^{2}\text{/C} \]
Step 6: (2) Charge enclosed by Gauss's law:
Gauss's law says \(\phi = q/\varepsilon_{0}\), so \(q = \varepsilon_{0}\phi\).
\[ q = (8.854\times 10^{-12})(5\times 10^{-4}) = 4.43\times 10^{-15}\ \text{C} \]
Final Answer:
The net flux through the cube is \(5\times 10^{-4}\ \text{N m}^{2}\text{/C}\) and the charge inside is about \(4.43\times 10^{-15}\ \text{C}\).
\[ \boxed{\phi = 5\times 10^{-4}\ \text{N m}^{2}\text{/C},\quad q \approx 4.4\times 10^{-15}\ \text{C}} \]