This is my expression
l = 0.0357;
u = 0.9;
p = 5.1;
q =3;
f= ((x-l)^(p-1)*(u-x)^(q-1)/(beta(p,q)*(u-l)^(p+q-1)));
F = (int(f,x,[l x]))
For these values it gives me a solution , where as when I change the value of say q=3.1 , it doesnt solve it . I get this back with some big integers
int((2305843009213693952*(9/10 - x)^(21/10)*(x - 357/10000)^(41/10))/6549555978944313, x, 357/10000, x)
Can anyone help me find the problem?

 채택된 답변

David Goodmanson
David Goodmanson 2020년 5월 6일

1 개 추천

Hello Yasho,
For any reasonable q, integrating from l to u gives F = 1 by definition of the beta function. When q is an integer, integration from l to an arbitrary x0 gives an answer because symbolic can expand out (u-x)^(q-1) as a polynomial. So for q = 3 you can see a quadratic as part of the answer.
When both p and q are nonintegers and an arbitrary x0 as the upper limit, you have an incomplete beta function which has to be done numerically.

댓글 수: 5

Hi David,
Thanks for your reply .
It is a probability density function. So it will give 1 for numerical integration for any p,q(eventhough it is non integer).
syms x
l = 0.0357;
u = 0.9;
p = 4.9937;
q =2.5563;
f= ((x-l)^(p-1)*(u-x)^(q-1)/(beta(p,q)*(u-l)^(p+q-1)));
F = (vpaintegral(f,x,[l u]))
it gives F=1;
I am looking for an expression in x to solve further. It is just part of an expression.
I have given p as non integer, still it works right ? it is also part of beta(p,q). But , why it is just with q ?
David Goodmanson
David Goodmanson 2020년 5월 6일
편집: David Goodmanson 2020년 5월 6일
Hi Yasho, for an arbitrary upper limit x0 it can do the integration if either p or q is an integer. But if neither p nor q are integers you are not going to get a result. Except numerically. And under the circumstances, there's nothing wrong with that.
Thank you David. It was very useful.
But ,I have noticed that beta calculates for any real value of (p,q). Then ,how does it affect the integration ?
it allows you to always have an answer for the denominator of the integrand which is good, but it does not affect the conclusion in the previous comment I wrote.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

제품

릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by