Evaluating the integral:
$$ I = \int e^{\frac xa} \sin x \, \mathrm dx \tag {1}$$
This question was asked in CBSE Board 12th Grade (India). So, here was the approach I made.
Proposition 1: $$ for, \, y= u(x), \forall \, x \in \mathbb{R} $$
$$ \int e^{\frac xa} u(x) \, \mathrm dx = a e^{\frac xa} \left ( au(x) - a^2\dfrac{\mathrm du(x)}{\mathrm dx} + a^3\dfrac{\mathrm d^2u(x)}{\mathrm dx^2} - \dots \right ) \quad \dots\tag {*} $$
Proof: This can easily be proved by applying by parts in LHS and subtracting it with RHS to a quantity which can be made small than any other assignable quantity as required.
So, using the same to evaluate the integral $(1)$, we get:
$$I = ae^{\frac xa} \left ( (\sin x) - (\cos x) + (-\sin x) - (-\cos x) + (\sin x) - (\cos x) + (-\sin x) - (-\cos x) + (\dots) \right) $$
Clearly, the repetitions of sine and cosine functions inside the brackets in RHS are cancelling each other, so irrespective of the value of $x$, the series should converge to '0'.
$$\therefore I = 0$$
But, wait, the integrand is continuous and is strictly increasing and strictly decreasing for particular intervals of $x$. This is enough to show that my answer is wrong, but what I missed?
Edit: This question is more like why my approach failed then What is the correct way to find the solution of the question
Edit 2: Thanks to @J.G for pointing out that my proposition had issues. I've fixed that part now :)
There are several issues here.