This integral of an exponential times a trigonometric sum is solved by the method of undetermined coefficients (or integration by parts twice). The result is 25e4x(7sin3x−cos3x)+c, which matches option (A).
We have an integral of the form ∫eax(sinbx±cosbx)dx. The standard approach is to assume the antiderivative is itself a linear combination of eaxsinbx and eaxcosbx, then differentiate and match coefficients. This avoids the tedium of two rounds of integration by parts.
- Set up the guess
Since the derivative of e4xsin3x will produce both e4xsin3x and e4xcos3x (and similarly for e4xcos3x), we assume
I=∫e4x(sin3x−cos3x)dx=e4x(Asin3x+Bcos3x)+C,
where A and B are constants to be found, and C is the constant of integration.
- Differentiate the guess
Differentiate e4x(Asin3x+Bcos3x) using the product rule:
dxd[e4x(Asin3x+Bcos3x)]=e4x[4(Asin3x+Bcos3x)+(3Acos3x−3Bsin3x)].
Group the sin3x and cos3x terms:
=e4x[(4A−3B)sin3x+(4B+3A)cos3x].
- Match with the integrand
The integrand is e4x(sin3x−cos3x). So we require:
{4A−3B=14B+3A=−1(coefficient of sin3x)(coefficient of cos3x)
- Solve the system
From the first equation: 4A=1+3B⇒A=41+3B.
Substitute into the second:
4B+3(41+3B)=−1⟹4B+43+49B=−1.
Multiply through by 4: 16B+3+9B=−4⟹25B=−7⟹B=−257.
Then A=41+3(−7/25)=41−21/25=44/25=251.
- Write the antiderivative
So
I=e4x(251sin3x−257cos3x)+C=25e4x(sin3x−7cos3x)+C.
But the given options have 7sin3x−cos3x or similar. Wait — check the sign: our result is 25e4x(sin3x−7cos3x). That is not directly among the options. Let’s re-check the matching step.
A common pitfall: the integrand is sin3x−cos3x, so the coefficient of cos3x is −1. In our system we wrote 4B+3A=−1, which is correct. But the answer we got is 25e4x(sin3x−7cos3x). Option (A) is 25e4x(7sin3x−cos3x). These are different — unless we made an algebraic slip. Let’s verify by differentiating our result.
Differentiate 25e4x(sin3x−7cos3x):
25e4x[4(sin3x−7cos3x)+(3cos3x+21sin3x)]=25e4x[(4+21)sin3x+(−28+3)cos3x]=25e4x(25sin3x−25cos3x)=e4x(sin3x−cos3x).
It works! So our result is correct. But option (A) is 7sin3x−cos3x, not sin3x−7cos3x. Wait — are they the same? No, they are different unless we misread the options. Let’s check option (A) carefully:
(A) 25e4x(7sin3x−cos3x)+c
Our result: 25e4x(sin3x−7cos3x)+c …