Integrating the Error Function: Solving a Chemistry Research Question

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 3K views
agalliasthe
Messages
3
Reaction score
0

Homework Statement



This is a question I'm trying to solve for chemistry research - but is homework-like, so I thought it best fit in this category.

Homework Equations



I am trying to find the indefinite integral of:

[tex]F(x,y)=\int \int e^{-k_1x^2-k_2y^2+k_3xy} dx dy[/tex]

[tex]k_1, k_2, k_3[/tex] are constants

The Attempt at a Solution



I realize that the solution involves the error function. When I reduce it to:

[tex]F(x,y)=\int e^{-k_2 y^2} dy \int e^{-k_1x^2+k_3xy} dx[/tex]

I am not sure how to treat the terms in the dx integral.

When I ask WolphramAlpha, it tells me:

[tex]\int e^{-k_1 x^2+k_3xy} = \frac{\sqrt{\pi}exp(\frac{k_3^2y^2}{4k_1})}{2 \sqrt {k_1}}erf\left( \frac{2k_1x-k_3y}{2\sqrt{k_1}}\right )+c[/tex]

but I'm not sure how they got this and I'm not sure how to proceed from here. I haven't been able to find a good erf integral table. Can you offer a suggestion on a way to solve this?Thanks.
 
Physics news on Phys.org
[tex]\int e^{-k_1 x^2+k_3xy} dx = \sqrt{\frac{\pi}{k_1}}e^{\frac{k_3^2 y^2}{4k_1}}erf\left( \frac{2k_1x-k_3y}{2\sqrt{k_1}}\right )+C[/tex]

Making it look slightly better, may help out.
 
Thanks - completing the square works beautifully!

Now I am wondering where to go from here:

[tex]F(x,y)=\int \int e^{-k_1x^2-k_2y^2+k_3 xy}dx dy[/tex][tex]F(x,y)=\int e^{-k_2y^2} \left ( \frac{\sqrt \pi}{2 \sqrt{k_1}} e^{\frac{k_3^2y^2}{4k_1}} erf \left (\frac{2k_1x-k_3y}{2\sqrt{k_1}} \right ) +c_1 \right )dy[/tex] [tex]F(x,y)=\frac{\sqrt\pi}{2\sqrt{k_1}} \int e^{\frac{k_3^2y^2-4k_1k_2y}{4k_1}} erf \left (\frac{2k_1x-k_3y}{2\sqrt{k_1}} \right ) dy+c_1 \int e^{-k_2y^2}dy[/tex]the second of these two integrals is just by definition, but I am struggling with the first. If I try integration by parts and let u=erf(~) and dv=exp(~)dy, then du becomes an exp(_) function and v is an erf(_)... so [itex]uv-\int vdu[/itex] doesn't do much to simplify. If I let u=exp(~) and dv=erf(~)dy, then du becomes an exp(_) function and v becomes erf(_)+exp(_)... again, not simplifying the integral.

I'm not familiar enough with the error function to know what it can and can't do, but it seems like it should be agreeable to a Gaussian in some way and simplify somehow.

Any guidance? Thanks!
 
I figured it out with integration by parts twice - thanks for your help.