Explicit integral could not be found

I try to evaluate following integral of:
syms a b x
>> f=1/(a - b*sin(x))
f =
1/(a - b*sin(x))
>> assume(0 < a)
>> assume(0 < b)
>> assume(b < a)
>> int(f, x,0,2*pi)
Warning: Explicit integral could not be found.
ans =
int(1/(a - b*sin(x)), x == 0..2*pi)
And i am getting a error but Mathematica solved this integral!!!!!!!!!!!!

Réponses (1)

John BG
John BG le 2 Avr 2016
try solving with a and be defined in advance:
syms x
f=1/(2-3*sin(x))
f =
-1/(3*sin(x) - 2)
int(f,0,2*pi)
ans =
(2*5^(1/2)*limit(atanh((3*5^(1/2))/5 - (2*5^(1/2)*tan(x/2))/5), x, 2*atan(5^(1/2)/2 + 3/2), 'Left'))/5 - Inf

2 commentaires

mostafa kohe
mostafa kohe le 4 Avr 2016
hi john The solution for a = 2 and b = 3, but not the parameters ( for all a and b). Meanwhile The question assumes that a> b
mostafa kohe
mostafa kohe le 4 Avr 2016
The correct answer is 2*pi / sqrt (a ^ 2 - b ^ 2), that calculated by MATHEMATICA

Connectez-vous pour commenter.

Catégories

En savoir plus sur Programming dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by