# Thread:

1. ## an integration problem with exponantial

I have encountered a problem with the following form:

$\int x e^{ax^2-bx}dx$

I can only find formulas for $\int x e^{ax^2}dx$ and $\int x e^{bx}dx$ and don't know how to make use of these two formulas.

Can someone help me on this? Thanks a lot!!

2. Originally Posted by billzhao
I have encountered a problem with the following form:

$\int x e^{ax^2-bx}dx$

I can only find formulas for $\int x e^{ax^2}dx$ and $\int x e^{bx}dx$ and don't know how to make use of these two formulas.

Can someone help me on this? Thanks a lot!!
Complete the square in the exponent to get

$\displaysytle a(x^2-\frac{b}{a}x+\frac{b^2}{4a^2})-\frac{b^2}{4a}=a(x-\frac{b}{a})^2-\frac{b^2}{4a}$

Now the integral looks like

$\displaystyle \int xe^{a(x-\frac{b}{2a})^2-\frac{b^2}{4a}}dx=e^{-\frac{b^2}{4a}}\int xe^{a(x-\frac{b}{2a})^2} dx$

From here just make a u sub for the exponent and then you will use both of your formula's for the integral

3. ## Thanks for the quick reply!! But...

Is there a closed form solution for the below integration?

$\int e^{ax^2}dx$

4. Yes, but you have to use the "special function" $erf(x)= \frac{2}{\sqrt{\pi}}\int_0^x e^{-t^2}dt$.

Let $iu= \sqrt{a}x$. Then $dx= \frac{i}{\sqrt{a}}du$, $e^{ax^2}= e^{-u^2}$ and the integral becomes $\frac{i}{\sqrt{a}}\int e^{-u^2}du= \frac{i\sqrt{\pi}}{2\sqrt{a}}erf(-i\sqrt{a}x)+ C$.

The fact that you have $x^2$ in the exponential rather than $-x^2$ complicates things and causes those "i" factors.

#### Search Tags

View Tag Cloud

Copyright © 2005-2013 Math Help Forum. All rights reserved.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 16, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": false}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9359790086746216, "perplexity_flag": "head"}