To solve the differential equation \(\frac{dy}{dx} + 2y = \sin 2x\) with the initial condition \(y(0) = \frac{3}{4}\) and to find \(y\left(\frac{\pi}{8}\right)\), we can use the method of integrating factors.
Thus, the value of \(y\left(\frac{\pi}{8}\right)\) is \(e^{-\frac{\pi}{4}}\).