Intereting Posts

Erroneous numerical approximations of $\zeta\left(\frac{1}{2}\right)$?
The number of (non-equal) forests on the vertex set V = {1, 2, …,n} that contains exactly 2 connected components is given by
clarification on Taylor's Formula
One of the diagonals in a hexagon cuts of a triangle of area $\leq 1/6^{th}$ of the hexagon
Gaussian integrals over a half-space
Did Zariski really define the Zariski topology on the prime spectrum of a ring?
Motivation for adjoint operators in finite dimensional inner-product-spaces
Is there a name for relations with this property?
Can you multiply two vectors $v$ and $u$ using multiplication instead of dot or cross products
Sequence of nested balls in Metric space $X$ is complete iff…
Isomorphisms Between a Finite-Dimensional Vector Space and its Dual
The spectrum of normal operators in $C^*$-algebras
Topics in combinatorial Group Theory
Prove that an expression is zero for all sets of distinct $a_1, \dotsc, a_n\in\mathbb{C}$
What groups can G/Z(G) be?

I tried to integrate $x e^x \sin x$, using integration by parts, and setting $dv/dx = e^x \sin x$. Even though I got really close, I kept getting it wrong. Can someone please solve it with working out? Thanks in advance.

********EDIT***** I have found the answer, all thanks to those who contributed ðŸ™‚ I don’t know if I could of connected the answer here but I just posted it below, thank you all again!

- Really advanced techniques of integration (definite or indefinite)
- Indefinite integral of $\log(\sin(x))$
- Simplify $\int \frac{1}{\sqrt{2-x^2}}\, dx$
- Indefinite Integral for $\cos x/(1+x^2)$
- How do you integrate $e^{x^2}$?
- Please integrate $\int \frac{\sqrt{x}}{\sqrt{x} + \sqrt{a-x}} \, dx$

- Show that: $\lim \limits_{n \rightarrow+\infty} \int_{0}^{1}{f(x^n)dx}=f(0)$
- Higher order corrections to saddle point approximation
- Integral calculus proof
- Help to prove that : $\int_{0}^{1}\int_{0}^{1}{1-x\over 1-xy}\cdot{x\over \ln{(xy)}}dxdy={1\over 2}\ln{1\over 2}$
- Intermediate value theorem and the Riemann integration
- Prove that the integral of an even function is odd
- A closed form for the integral $\int_0^1\frac{1}{\sqrt{y^3(1-y)}}\exp\left(\frac{i A}{y}+\frac{i B}{1-y}\right)dy$
- Can anyone clarify why this is?
- $\int_{0}^{\infty}{\left(x^3\cdot(e^x-1)^{-1} \right)}dx$
- Can an integral made up completely of real numbers have an imaginary answer?

If you don’t want to try with complex calculus, you might use this:

Let’s define $g(x) = e^x \sin{x} $, so we have: $J = \int x g(x) \, dx$.

Then, if you use chain rule, you will have:

$$J = x\, \int g(x) \, dx – \iint g(x) \, dx^2, $$

where, using again the chain rule:

$$\int g(x) \, dx = \int e^x \sin{x} \, dx = \frac{e^x}{2} (\sin{x} – \cos{x})$$

Thus:

$$\iint g(x) dx^2 = \int \frac{e^x}{2} (\sin{x} – \cos{x}) \, dx $$

where the first integral has already been computed. Using again the chain rule for the cosine integral, it finally yields:

$$\large{

\color{blue}{

J = \frac{x}{2} e^x (\sin{x} – \cos{x} ) + \frac{e^x}{2} \cos{x}

}

}$$

Do not forget the integration constant! Cheers.

Let me elaborate on Nigel’s hint, and btw he meant $e^{ix} = i \sin x +\cos x$. There is no $\pi$.

then the integral you want is J. define the integral $I = \int x \cos x e^x \text{d}x$.

Then $I + iJ = \int x e^{ix}e^x \text{d}x = \int xe^{(i+1)x}\text{d}x$

note $i$ is square root of minus one, so it i just a constant, you integrate this by part and seperate out real and imaginary part. The imaginary part is what you want.

At first I wanted to post this, but I guessed this is not what OP wanted.

however, without this, this integral is a pain in the backside…

One general idea with products of three functions is to use the product rule in the form

$$

(u v w)’ = u’ v w + u v’ w + uv w’

$$

and the get partial integration in the form

$$

\int u’ v w = uvw – \int u v’ w – \int uv w’

$$

and then the solution of your problem is straightforward but tedious.

After two applications of above rule (with $u=e^x$) and some reorganization you find

$$

2 \int x e^x \sin x \, dx = xe^x \sin x – x e^x \cos x -\int e^x \sin x \, dx + \int e^x \cos x \, dx

$$

and the rest is easy.

Hint:

$$\sin(\theta)= Im (e^{i \theta})$$

Then use integration by parts.

Hint with complex numbers:

$$ \sin(\theta) = \frac{ e^{i\theta} – e^{-i \theta} }{2i} $$

Without complex numbers:

Let $f = x$, $g’ = e^x \sin x$.

First we calculate $g = \int g’ dx$ by integration by parts:

$$ \begin{array}{c}

I = \int {{e^{ax}}\sin (bx)dx} = \left[ {\begin{array}{*{20}{c}}

{u = \sin (bx)}&{v’ = {e^{ax}}}\\

{u’ = b\cos (bx)}&{v = {e^{ax}}/a}

\end{array}} \right]\mathop = \limits^{{\mathop{\rm int}} } \frac{{{e^{ax}}\sin (bx)}}{a} – \int {b\cos (bx)\frac{{{e^{ax}}}}{a}dx} \\

= \frac{{{e^{ax}}\sin (bx)}}{a} – \frac{b}{a}\int {\cos (bx){e^{ax}}dx} = \\

= \left[ {\begin{array}{*{20}{c}}

{f = \cos (bx)}&{g’ = {e^{ax}}}\\

{f’ = – b\sin (bx)}&{g = {e^{ax}}/a}

\end{array}} \right] = \frac{{{e^{ax}}\sin (bx)}}{a} – \frac{b}{a}\left( {\frac{{\cos (bx){e^{ax}}}}{a} – \frac{{ – b}}{a}\int {\sin (bx){e^{ax}}dx} } \right) = \\

= \frac{{{e^{ax}}\sin (bx)}}{a} – \frac{{b\cos (bx){e^{ax}}}}{{{a^2}}} – \frac{{{b^2}}}{{{a^2}}}\int {\sin (bx){e^{ax}}dx} = \frac{{{e^{ax}}\sin (bx)}}{a} – \frac{{b\cos (bx){e^{ax}}}}{{{a^2}}} – \frac{{{b^2}}}{{{a^2}}}I

\end{array}$$

Thus

$$ $I = \frac{{{e^{ax}}\sin (bx)}}{a} – \frac{{b\cos (bx){e^{ax}}}}{{{a^2}}} – \frac{{{b^2}}}{{{a^2}}}I$$

Solving for $I$ we get

$$ I = \frac{{{e^{ax}}\left( {a\sin (bx) – b\cos (bx)} \right)}}{{{a^2} + {b^2}}} + C $$

so

$$ g(x) = \frac{{{e^{x}}\left( {\sin (x) -\cos (x)} \right)}}{{2}} \ . $$

Thus, to solve the big integral we do again integration by parts with $f=x$:

$$ \int f g’ = fg – \int f’ g = x \frac{{{e^{x}}\left( {\sin (x) -\cos (x)} \right)}}{{2}} – \int \left( \frac{{{e^{x}}\left( {\sin (x) -\cos (x)} \right)}}{{2}} \right) dx $$

where the last integral can be calculated as above.

$$\int e^x\sin(x)\ dx = \frac{1}{2}e^x(\sin x-\cos x) + C

$$

$$

\int e^x\cos(x)\ dx = \frac{1}{2}e^x(\sin x +\cos x ) + C

$$

$$

u = x \\ u’= 1\\\\v’=e^x\sin(x) \\v= \frac{1}{2}e^x(\sin x -\cos x) + C

\\

I = \frac{xe^x}{2}(\sin x-\cos x )-\frac{1}{2} \int e^x(\sin x-\cos x) + C

\\

\text{Let }Z^- = \sin x -\cos x

\\

\text{and}\\

\text{Let }Z^+ = \sin x+\cos x

\\

\frac {xe^x}{2}(Z^-) – \frac{1}{2}\left(\frac{1}{2}e^x(Z^- – Z^+)\right) +C\\

\frac {xe^x}{2}(\sin x-\cos x) – \frac{1}{2}\left(\frac{1}{2}e^x(-2\cos x )\right)+C\\

\frac {xe^x}{2}(\sin x-\cos x) + \frac{1}{2}e^x(\cos x) + C\\

\int xe^x\cos x\ dx = \frac{1}{2}e^x(x\sin x-x\cos x+\cos x) + C

$$

Well. **I told you** guys I would do it, thank you all for your help, turn out I’ve been stuck on this bastard for 3 days not two, time flies when you’re having fun! ðŸ˜‰ – I entered most of the steps, you guys should see the gaps if there are any, and i’m sorry my MathJax isn’t perfect, this is my first time using it for such a big equation, **thank you all again!** Next stop, five function ðŸ˜‰ **(I checked on wolframalpha.com, got the same answer!)**

- An intuitive understanding for Möbius equivalent of totient function?
- What is the probability on rolling $2n$ dice that the sum of the first $n$ equals the sum of the last $n$?
- Conformal map from a lune to the unit disc in $\mathbb{C}$
- Smallest Perfect Cube ending in 888
- How to find where $3$ lines intersect.
- $\lim_{n\to \infty} {a^n-b^n\over a^n+b^n}.$
- Show that $\lim_{n\to\infty}n\int_0^1f(x)g(x^n)dx=f(1)\int_0^1\frac{g(x)}{x}dx$
- Different definitions of trigonometric functions
- Is this an inner product on $L^1$?
- The Jacobson Radical of a Matrix Algebra
- Prove $\binom{p-1}{k} \equiv (-1)^k\pmod p$
- Functional equation: $f(f(x))=k$
- True or false: {{âˆ…}} âŠ‚ {âˆ…,{âˆ…}}
- Generalizing Newton's identities: Trace formula for Schur functors
- Can the real numbers be forced to have arbitrary cardinality?