How can I easily compute the integral of a hypergeometric function?

  • Level: Undergrad 
  • Thread starter giuseppesk82
  • Start date
  • Tags Tags
    Curve Integral
4 replies · 3K views · last reply
giuseppesk82
Messages
3
Reaction score
0
I am trying to solve the integral of the following equation:

y= a + (b/(1+(x/c)^d)

with a,b,c,d as constant

I will apprecciate your help

Thanks
 
This indefinite integral cannot be expressed with a combination of a finite number of elementary functions. It requires special functions, namely the Gaussian Hypergeometric function (2F1), or another special function of lower level namely the incomplete Beta function (but in complex domain).
 
Attachments
  • Mathematical derivation: integral from 0 to X of (a + b/(1+(x/c)^δ)) dx equals aX + bX 2F1(1, 1/δ; 1+1/δ; -(X/c)^δ), then equals aX + (bc/δ)(-1)^(1/δ) B(1/δ; 0; -(X/c)^δ).
    Hypergeometric2F1.JPG
    7.9 KB · Views: 491
JJacquelin said:
This indefinite integral cannot be expressed with a combination of a finite number of elementary functions. It requires special functions, namely the Gaussian Hypergeometric function (2F1), or another special function of lower level namely the incomplete Beta function (but in complex domain).

Thank you Jacqueline,
I am trying to calculate the area under the curve but I do not know how to arrange the Gaussian Hypergeometric function or the Beta function.

Can you help me, please? Can you explain the procedure to reach my goal?

For example:
a= 2,43; b= 6; c= 2.5; δ= 9.68 with interval: x1=2.5 and x2=7.5

it is not a question of result, but I would like to understand the porcedure.

Thank you in advance
 
It is possible to compute the numerical value of an hypergeometric function "by hand", thanks to series expansion. But it would be awfully boring and time consuming. That was the way to do it in the good old days, before the age of computers.
If you have "Mathematica" or any other math. package, certainly, the hypergeometric function is included, allowing to compute numerical values.
But the most simple way is to use a numerical integrator. Even some pocket calculator can do that. Just program the function to integrate (no need for hypergeometric function). Also more advanced softwares are very simple to use, for example MatCad (screen copy below)
Some calculators are on free access on the web., for example WolframAlpha (screen copy below), use Google to find them.
 
Attachments
  • Mathcad window with variables a := 2.43, b := 6, c := 2.5, d := 9.68, x1 := 2.5, x2 := 7.5, and an integral from x1 to x2 of (a + b / (1 + (x/c)^d)) dx evaluated as 13.372.
    MathCad.jpg
    15.3 KB · Views: 490
  • Wolfram Alpha screenshot: input 'integrate 2.43+6/(1+(x/2.5)^9.68) dx from x=2.5 to 7.5' with result 13.3723 shown as a definite integral.
    WolframAlpha.jpg
    15.8 KB · Views: 443
JJacquelin said:
It is possible to compute the numerical value of an hypergeometric function "by hand", thanks to series expansion. But it would be awfully boring and time consuming. That was the way to do it in the good old days, before the age of computers.
If you have "Mathematica" or any other math. package, certainly, the hypergeometric function is included, allowing to compute numerical values.
But the most simple way is to use a numerical integrator. Even some pocket calculator can do that. Just program the function to integrate (no need for hypergeometric function). Also more advanced softwares are very simple to use, for example MatCad (screen copy below)
Some calculators are on free access on the web., for example WolframAlpha (screen copy below), use Google to find them.

Thank you Jacquelin!
You solved my doubts, I will use WolframAlpha to calculate the area.