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!!!!!!!!!!!!

Risposte (1)

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 Commenti

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
The correct answer is 2*pi / sqrt (a ^ 2 - b ^ 2), that calculated by MATHEMATICA

Accedi per commentare.

Categorie

Scopri di più su Programming in Centro assistenza e File Exchange

Richiesto:

il 2 Apr 2016

Commentato:

il 4 Apr 2016

Community Treasure Hunt

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

Start Hunting!

Translated by