To find the number of bacteria \( y \) after \( x \) hours, starting with 300 bacteria and doubling every hour, we can use the following equation:
\[ y = 300 \times (2)^x \]
This reflects the initial amount of 300 bacteria, with the population doubling every hour (2 raised to the power of \( x \)).
From the answer options given, the correct equation is:
D. \( y = 300 \left( 2 \right)^x \)