We have to evaluate the indefinite integral
$$\displaystyle\int e^{2x}\,\sin x\,dx$$
Denote the required integral by
$$I = \int e^{2x}\,\sin x\,dx$$
Step 1 : First integration by parts
Choose $$u = \sin x$$ and $$dv = e^{2x}\,dx$$. Then
$$du = \cos x\,dx, \qquad v = \frac{e^{2x}}{2}$$
Using the formula $$\int u\,dv = u\,v-\int v\,du$$ we get
$$I = \sin x\,\frac{e^{2x}}{2}-\int \frac{e^{2x}}{2}\,\cos x\,dx$$
$$\Rightarrow\; I = \frac{e^{2x}\sin x}{2}-\frac12\int e^{2x}\cos x\,dx$$
Introduce a new symbol for the remaining integral:
$$J = \int e^{2x}\cos x\,dx$$
Thus
\[I = \frac{e^{2x}\sin x}{2}-\frac12\,J \tag{1}\]
Step 2 : Evaluate $$J$$ by another integration by parts
For $$J$$ take $$u = \cos x$$ and $$dv = e^{2x}\,dx$$, so
$$du = -\sin x\,dx, \qquad v = \frac{e^{2x}}{2}$$
Therefore
$$J = \cos x\,\frac{e^{2x}}{2}-\int \frac{e^{2x}}{2}\,(-\sin x)\,dx$$
$$\Rightarrow\; J = \frac{e^{2x}\cos x}{2}+\frac12\int e^{2x}\sin x\,dx$$
Noting that the integral on the right is again $$I$$, we have
\[J = \frac{e^{2x}\cos x}{2}+\frac12\,I \tag{2}\]
Step 3 : Solve the two equations for $$I$$
Substitute (2) into (1):
$$I = \frac{e^{2x}\sin x}{2}-\frac12\left(\frac{e^{2x}\cos x}{2}+\frac12 I\right)$$
Simplify term by term:
$$I = \frac{e^{2x}\sin x}{2}-\frac{e^{2x}\cos x}{4}-\frac14 I$$
Bring the $$\frac14 I$$ term to the left:
$$I + \frac14 I = \frac{e^{2x}\sin x}{2}-\frac{e^{2x}\cos x}{4}$$
$$\frac54 I = e^{2x}\left(\frac{\sin x}{2}-\frac{\cos x}{4}\right)$$
Step 4 : Isolate $$I$$
$$I = \frac45\,e^{2x}\left(\frac{\sin x}{2}-\frac{\cos x}{4}\right) + C$$
Distribute the factor $$\frac45$$ to obtain simpler numerical coefficients:
$$I = e^{2x}\left(\frac{2}{5}\sin x-\frac{1}{5}\cos x\right)+C$$
or, equivalently,
$$I = \frac{e^{2x}}{5}\bigl(2\sin x-\cos x\bigr)+C$$
where $$C$$ is the constant of integration.
Hence the integral is evaluated.