Evaluate $int frac{1}{sin xcos x} dx $
Question: How to evaluate $displaystyle int frac{1}{sin xcos x} dx $
I know that the correct answer can be obtained by doing:
$displaystylefrac{1}{sin xcos x} = frac{sin^2(x)}{sin xcos x}+frac{cos^2(x)}{sin xcos x} = tan(x) + cot(x)$ and integrating.
However, doing the following gets a completely different answer:
begin{eqnarray*}
int frac{1}{sin xcos x} dx
&=&int frac{sin x}{sin^2(x)cos x} dx\
&=&int frac{sin x}{(1-cos^2(x))cos x} dx.
end{eqnarray*}
let $u=cos x, du=-sin x dx$; then
begin{eqnarray*}
int frac{1}{sin xcos x} dx
&=&int frac{-1}{(1-u^2)u} du\
&=&int frac{-1}{(1+u)(1-u)u}du\
&=&int left(frac{-1}{u} - frac{1}{2(1-u)} + frac{1}{2(1+u)}right) du\
&=&-ln|cos x|+frac{1}{2}ln|1-cos x|+frac{1}{2}ln|1+cos x|+C
end{eqnarray*}
I tested both results in Mathematica, and the first method gets the correct answer, but the second method doesn't. Is there any reason why this second method doesn't work?
calculus integration indefinite-integrals
add a comment |
Question: How to evaluate $displaystyle int frac{1}{sin xcos x} dx $
I know that the correct answer can be obtained by doing:
$displaystylefrac{1}{sin xcos x} = frac{sin^2(x)}{sin xcos x}+frac{cos^2(x)}{sin xcos x} = tan(x) + cot(x)$ and integrating.
However, doing the following gets a completely different answer:
begin{eqnarray*}
int frac{1}{sin xcos x} dx
&=&int frac{sin x}{sin^2(x)cos x} dx\
&=&int frac{sin x}{(1-cos^2(x))cos x} dx.
end{eqnarray*}
let $u=cos x, du=-sin x dx$; then
begin{eqnarray*}
int frac{1}{sin xcos x} dx
&=&int frac{-1}{(1-u^2)u} du\
&=&int frac{-1}{(1+u)(1-u)u}du\
&=&int left(frac{-1}{u} - frac{1}{2(1-u)} + frac{1}{2(1+u)}right) du\
&=&-ln|cos x|+frac{1}{2}ln|1-cos x|+frac{1}{2}ln|1+cos x|+C
end{eqnarray*}
I tested both results in Mathematica, and the first method gets the correct answer, but the second method doesn't. Is there any reason why this second method doesn't work?
calculus integration indefinite-integrals
The second method looks right too. Did you try to simplify the answer you got with the second method?
– Aryabhata
Nov 5 '10 at 17:05
The second method is correct. TrySimplify[D[-Log[Cos[x]]+1/2*Log[1-Cos[x]]+1/2*Log[1+Cos[x]],x]]
; it givesCsc[x] Sec[x]
.
– Hans Lundmark
Nov 5 '10 at 17:14
I was hoping for the arbitrariness of "+C" to be key (I like when that happens!), but it turns out that all you need to do is combine the logs appropriately.
– Blue
Nov 5 '10 at 17:21
In the second integral $int -frac{1}{2(1-u)}=+frac{1}{2}ln|1-u|$?
– Robert Smith
Nov 5 '10 at 19:00
add a comment |
Question: How to evaluate $displaystyle int frac{1}{sin xcos x} dx $
I know that the correct answer can be obtained by doing:
$displaystylefrac{1}{sin xcos x} = frac{sin^2(x)}{sin xcos x}+frac{cos^2(x)}{sin xcos x} = tan(x) + cot(x)$ and integrating.
However, doing the following gets a completely different answer:
begin{eqnarray*}
int frac{1}{sin xcos x} dx
&=&int frac{sin x}{sin^2(x)cos x} dx\
&=&int frac{sin x}{(1-cos^2(x))cos x} dx.
end{eqnarray*}
let $u=cos x, du=-sin x dx$; then
begin{eqnarray*}
int frac{1}{sin xcos x} dx
&=&int frac{-1}{(1-u^2)u} du\
&=&int frac{-1}{(1+u)(1-u)u}du\
&=&int left(frac{-1}{u} - frac{1}{2(1-u)} + frac{1}{2(1+u)}right) du\
&=&-ln|cos x|+frac{1}{2}ln|1-cos x|+frac{1}{2}ln|1+cos x|+C
end{eqnarray*}
I tested both results in Mathematica, and the first method gets the correct answer, but the second method doesn't. Is there any reason why this second method doesn't work?
calculus integration indefinite-integrals
Question: How to evaluate $displaystyle int frac{1}{sin xcos x} dx $
I know that the correct answer can be obtained by doing:
$displaystylefrac{1}{sin xcos x} = frac{sin^2(x)}{sin xcos x}+frac{cos^2(x)}{sin xcos x} = tan(x) + cot(x)$ and integrating.
However, doing the following gets a completely different answer:
begin{eqnarray*}
int frac{1}{sin xcos x} dx
&=&int frac{sin x}{sin^2(x)cos x} dx\
&=&int frac{sin x}{(1-cos^2(x))cos x} dx.
end{eqnarray*}
let $u=cos x, du=-sin x dx$; then
begin{eqnarray*}
int frac{1}{sin xcos x} dx
&=&int frac{-1}{(1-u^2)u} du\
&=&int frac{-1}{(1+u)(1-u)u}du\
&=&int left(frac{-1}{u} - frac{1}{2(1-u)} + frac{1}{2(1+u)}right) du\
&=&-ln|cos x|+frac{1}{2}ln|1-cos x|+frac{1}{2}ln|1+cos x|+C
end{eqnarray*}
I tested both results in Mathematica, and the first method gets the correct answer, but the second method doesn't. Is there any reason why this second method doesn't work?
calculus integration indefinite-integrals
calculus integration indefinite-integrals
edited Dec 8 at 8:57
DavidG
1,561619
1,561619
asked Nov 5 '10 at 16:55
glassdarkly
46115
46115
The second method looks right too. Did you try to simplify the answer you got with the second method?
– Aryabhata
Nov 5 '10 at 17:05
The second method is correct. TrySimplify[D[-Log[Cos[x]]+1/2*Log[1-Cos[x]]+1/2*Log[1+Cos[x]],x]]
; it givesCsc[x] Sec[x]
.
– Hans Lundmark
Nov 5 '10 at 17:14
I was hoping for the arbitrariness of "+C" to be key (I like when that happens!), but it turns out that all you need to do is combine the logs appropriately.
– Blue
Nov 5 '10 at 17:21
In the second integral $int -frac{1}{2(1-u)}=+frac{1}{2}ln|1-u|$?
– Robert Smith
Nov 5 '10 at 19:00
add a comment |
The second method looks right too. Did you try to simplify the answer you got with the second method?
– Aryabhata
Nov 5 '10 at 17:05
The second method is correct. TrySimplify[D[-Log[Cos[x]]+1/2*Log[1-Cos[x]]+1/2*Log[1+Cos[x]],x]]
; it givesCsc[x] Sec[x]
.
– Hans Lundmark
Nov 5 '10 at 17:14
I was hoping for the arbitrariness of "+C" to be key (I like when that happens!), but it turns out that all you need to do is combine the logs appropriately.
– Blue
Nov 5 '10 at 17:21
In the second integral $int -frac{1}{2(1-u)}=+frac{1}{2}ln|1-u|$?
– Robert Smith
Nov 5 '10 at 19:00
The second method looks right too. Did you try to simplify the answer you got with the second method?
– Aryabhata
Nov 5 '10 at 17:05
The second method looks right too. Did you try to simplify the answer you got with the second method?
– Aryabhata
Nov 5 '10 at 17:05
The second method is correct. Try
Simplify[D[-Log[Cos[x]]+1/2*Log[1-Cos[x]]+1/2*Log[1+Cos[x]],x]]
; it gives Csc[x] Sec[x]
.– Hans Lundmark
Nov 5 '10 at 17:14
The second method is correct. Try
Simplify[D[-Log[Cos[x]]+1/2*Log[1-Cos[x]]+1/2*Log[1+Cos[x]],x]]
; it gives Csc[x] Sec[x]
.– Hans Lundmark
Nov 5 '10 at 17:14
I was hoping for the arbitrariness of "+C" to be key (I like when that happens!), but it turns out that all you need to do is combine the logs appropriately.
– Blue
Nov 5 '10 at 17:21
I was hoping for the arbitrariness of "+C" to be key (I like when that happens!), but it turns out that all you need to do is combine the logs appropriately.
– Blue
Nov 5 '10 at 17:21
In the second integral $int -frac{1}{2(1-u)}=+frac{1}{2}ln|1-u|$?
– Robert Smith
Nov 5 '10 at 19:00
In the second integral $int -frac{1}{2(1-u)}=+frac{1}{2}ln|1-u|$?
– Robert Smith
Nov 5 '10 at 19:00
add a comment |
10 Answers
10
active
oldest
votes
If I take the derivative of your second answer (call it $g(x)$), I get:
begin{eqnarray*}
frac{dg}{dx}
& = & -frac{-sin x}{cos x} + frac{sin x}{2(1-cos x)} + frac{-sin x}{2(1+cos x)}\
& = & frac{sin xleft(1-cos^2 x + frac{1}{2}cos x(1+cos x) - frac{1}{2}cos x(1-cos x)right)}{cos x(1-cos x)(1+cos x)}\
& = & frac{sin xleft( 1- cos^2 x + frac{1}{2}cos x + frac{1}{2}cos^2 x - frac{1}{2}cos x + frac{1}{2}cos^2 xright)}{cos x(1-cos^2 x)}\
& = & frac{sin x}{cos x>sin^2 x} = frac{1}{cos xsin x}.
end{eqnarray*}
So I'm not sure why Mathematica says the second method is not "the right answer".
add a comment |
This may be an easier method $$intfrac{1}{sin{x} cdot cos{x}} dx = intfrac{sec^{2}{x}}{tan{x}} dx$$ by multiplying the numerator and denominator by $sec^{2}{x}$
2
even easier, it could be $int 2csc(2x) dx$.
– Eugene Bulkin
Nov 6 '10 at 3:42
add a comment |
Taking log of $rm sin^2(x) = 1 - cos^2(x) = (1-cos(x)) (1+cos(x)) $ shows both answers identical
add a comment |
The second method gives the same answer as the first. By the first method, the answer you get is $-log(cos x) + log(sin x)$. The first term is the same as what you get by the second method.
What you need to show is that $log(sin x) = frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x)$.
begin{equation}
begin{split}
frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x) &= frac{1}{2}left( log(2 sin^2 frac{x}{2}) + log(2 cos^2 frac{x}{2})right)\ & = log(2 sin frac{x}{2} cos frac{x}{2})
end{split}
end{equation}
add a comment |
Tangent half-angle substitution
$$displaystyle int frac{1}{sin xcos x} dx=displaystyle int frac{(1+t^2)}{t(1-t^2)} dt=displaystyle int frac{1}{t} dt-displaystyle int frac{1}{1-t} dt-displaystyle int frac{1}{1+t} dt$$
This is definitely the right way to go
– Vim
Jan 29 '15 at 14:24
add a comment |
$sin(x)cos(x) = frac{1}{2} sin(2x)$.
$I = 2int csc(2x)$ let $u = 2x$ then:
$I = int csc(u) du = - log(cot(2x) + csc(2x)) + C$
add a comment |
Integrand $ =dfrac {1}{sin(x)cos(x)} = 2 csc 2x $
Its integral is obtained by direct application of listed standard trigonometric function integration formulae. Using chain rule for constant double angle:
$$ 2 log (tan dfrac{2 x}{2}) cdot frac12= log (tan x ) + c $$
agrees with OP's second result when it is further simplified.
add a comment |
Another way to integrate would be to let $displaystyle t = frac{sin{x}}{cos{x}}$, then $displaystyle frac{dt}{dx} = frac{1}{cos^2{x}} Rightarrow dx = cos^2{x};{dt}$.
Thus $ displaystyle I = intfrac{cos^2{x}}{sin{x}};{dt} = intfrac{cos{x}}{sin{x}};{dt} = intfrac{1}{t};{dt} = ln{t}+k = lnfrac{sin{x}}{cos{x}}+k$.
You forgot a $cos x$ in the denominator in the first step. By the way, this is essentially the same method as in Chandru1's answer, although perhaps done in a more systematic way ("apply the tan-half-angle substitution to $int (2/sin 2x)dx$").
– Hans Lundmark
Nov 5 '10 at 18:33
add a comment |
Let $int frac{1}{sin x cos x}dx=int frac{2}{2 sin x cos x}dx$
=$int frac{2}{sin 2x}dx$
Let $tan x=t$
$sin 2x=frac{2t}{1+t^2}$
$tan^{-1} t=x$
$frac{1}{1+t^2}dt=dx$
$2int frac{1}{sin 2x} dx=2int frac{1+t^2}{2t}.frac{1}{1+t^2}dt$
=$intfrac{1}{t}dt$
=$ln t+C$
=$ln (tan x)+C$
add a comment |
$$int frac{1}{sin xcos x} dx = int tan x+cot x dx= intfrac{sin x}{cos x} dx+intfrac{cos x}{sin x} dx$$ from where it should be fairly simple....(choose correctly the variables though)
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f9075%2fevaluate-int-frac1-sin-x-cos-x-dx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
10 Answers
10
active
oldest
votes
10 Answers
10
active
oldest
votes
active
oldest
votes
active
oldest
votes
If I take the derivative of your second answer (call it $g(x)$), I get:
begin{eqnarray*}
frac{dg}{dx}
& = & -frac{-sin x}{cos x} + frac{sin x}{2(1-cos x)} + frac{-sin x}{2(1+cos x)}\
& = & frac{sin xleft(1-cos^2 x + frac{1}{2}cos x(1+cos x) - frac{1}{2}cos x(1-cos x)right)}{cos x(1-cos x)(1+cos x)}\
& = & frac{sin xleft( 1- cos^2 x + frac{1}{2}cos x + frac{1}{2}cos^2 x - frac{1}{2}cos x + frac{1}{2}cos^2 xright)}{cos x(1-cos^2 x)}\
& = & frac{sin x}{cos x>sin^2 x} = frac{1}{cos xsin x}.
end{eqnarray*}
So I'm not sure why Mathematica says the second method is not "the right answer".
add a comment |
If I take the derivative of your second answer (call it $g(x)$), I get:
begin{eqnarray*}
frac{dg}{dx}
& = & -frac{-sin x}{cos x} + frac{sin x}{2(1-cos x)} + frac{-sin x}{2(1+cos x)}\
& = & frac{sin xleft(1-cos^2 x + frac{1}{2}cos x(1+cos x) - frac{1}{2}cos x(1-cos x)right)}{cos x(1-cos x)(1+cos x)}\
& = & frac{sin xleft( 1- cos^2 x + frac{1}{2}cos x + frac{1}{2}cos^2 x - frac{1}{2}cos x + frac{1}{2}cos^2 xright)}{cos x(1-cos^2 x)}\
& = & frac{sin x}{cos x>sin^2 x} = frac{1}{cos xsin x}.
end{eqnarray*}
So I'm not sure why Mathematica says the second method is not "the right answer".
add a comment |
If I take the derivative of your second answer (call it $g(x)$), I get:
begin{eqnarray*}
frac{dg}{dx}
& = & -frac{-sin x}{cos x} + frac{sin x}{2(1-cos x)} + frac{-sin x}{2(1+cos x)}\
& = & frac{sin xleft(1-cos^2 x + frac{1}{2}cos x(1+cos x) - frac{1}{2}cos x(1-cos x)right)}{cos x(1-cos x)(1+cos x)}\
& = & frac{sin xleft( 1- cos^2 x + frac{1}{2}cos x + frac{1}{2}cos^2 x - frac{1}{2}cos x + frac{1}{2}cos^2 xright)}{cos x(1-cos^2 x)}\
& = & frac{sin x}{cos x>sin^2 x} = frac{1}{cos xsin x}.
end{eqnarray*}
So I'm not sure why Mathematica says the second method is not "the right answer".
If I take the derivative of your second answer (call it $g(x)$), I get:
begin{eqnarray*}
frac{dg}{dx}
& = & -frac{-sin x}{cos x} + frac{sin x}{2(1-cos x)} + frac{-sin x}{2(1+cos x)}\
& = & frac{sin xleft(1-cos^2 x + frac{1}{2}cos x(1+cos x) - frac{1}{2}cos x(1-cos x)right)}{cos x(1-cos x)(1+cos x)}\
& = & frac{sin xleft( 1- cos^2 x + frac{1}{2}cos x + frac{1}{2}cos^2 x - frac{1}{2}cos x + frac{1}{2}cos^2 xright)}{cos x(1-cos^2 x)}\
& = & frac{sin x}{cos x>sin^2 x} = frac{1}{cos xsin x}.
end{eqnarray*}
So I'm not sure why Mathematica says the second method is not "the right answer".
answered Nov 5 '10 at 17:17
Arturo Magidin
260k32584904
260k32584904
add a comment |
add a comment |
This may be an easier method $$intfrac{1}{sin{x} cdot cos{x}} dx = intfrac{sec^{2}{x}}{tan{x}} dx$$ by multiplying the numerator and denominator by $sec^{2}{x}$
2
even easier, it could be $int 2csc(2x) dx$.
– Eugene Bulkin
Nov 6 '10 at 3:42
add a comment |
This may be an easier method $$intfrac{1}{sin{x} cdot cos{x}} dx = intfrac{sec^{2}{x}}{tan{x}} dx$$ by multiplying the numerator and denominator by $sec^{2}{x}$
2
even easier, it could be $int 2csc(2x) dx$.
– Eugene Bulkin
Nov 6 '10 at 3:42
add a comment |
This may be an easier method $$intfrac{1}{sin{x} cdot cos{x}} dx = intfrac{sec^{2}{x}}{tan{x}} dx$$ by multiplying the numerator and denominator by $sec^{2}{x}$
This may be an easier method $$intfrac{1}{sin{x} cdot cos{x}} dx = intfrac{sec^{2}{x}}{tan{x}} dx$$ by multiplying the numerator and denominator by $sec^{2}{x}$
answered Nov 5 '10 at 17:17
anonymous
2
even easier, it could be $int 2csc(2x) dx$.
– Eugene Bulkin
Nov 6 '10 at 3:42
add a comment |
2
even easier, it could be $int 2csc(2x) dx$.
– Eugene Bulkin
Nov 6 '10 at 3:42
2
2
even easier, it could be $int 2csc(2x) dx$.
– Eugene Bulkin
Nov 6 '10 at 3:42
even easier, it could be $int 2csc(2x) dx$.
– Eugene Bulkin
Nov 6 '10 at 3:42
add a comment |
Taking log of $rm sin^2(x) = 1 - cos^2(x) = (1-cos(x)) (1+cos(x)) $ shows both answers identical
add a comment |
Taking log of $rm sin^2(x) = 1 - cos^2(x) = (1-cos(x)) (1+cos(x)) $ shows both answers identical
add a comment |
Taking log of $rm sin^2(x) = 1 - cos^2(x) = (1-cos(x)) (1+cos(x)) $ shows both answers identical
Taking log of $rm sin^2(x) = 1 - cos^2(x) = (1-cos(x)) (1+cos(x)) $ shows both answers identical
answered Nov 5 '10 at 17:27
Bill Dubuque
208k29190627
208k29190627
add a comment |
add a comment |
The second method gives the same answer as the first. By the first method, the answer you get is $-log(cos x) + log(sin x)$. The first term is the same as what you get by the second method.
What you need to show is that $log(sin x) = frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x)$.
begin{equation}
begin{split}
frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x) &= frac{1}{2}left( log(2 sin^2 frac{x}{2}) + log(2 cos^2 frac{x}{2})right)\ & = log(2 sin frac{x}{2} cos frac{x}{2})
end{split}
end{equation}
add a comment |
The second method gives the same answer as the first. By the first method, the answer you get is $-log(cos x) + log(sin x)$. The first term is the same as what you get by the second method.
What you need to show is that $log(sin x) = frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x)$.
begin{equation}
begin{split}
frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x) &= frac{1}{2}left( log(2 sin^2 frac{x}{2}) + log(2 cos^2 frac{x}{2})right)\ & = log(2 sin frac{x}{2} cos frac{x}{2})
end{split}
end{equation}
add a comment |
The second method gives the same answer as the first. By the first method, the answer you get is $-log(cos x) + log(sin x)$. The first term is the same as what you get by the second method.
What you need to show is that $log(sin x) = frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x)$.
begin{equation}
begin{split}
frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x) &= frac{1}{2}left( log(2 sin^2 frac{x}{2}) + log(2 cos^2 frac{x}{2})right)\ & = log(2 sin frac{x}{2} cos frac{x}{2})
end{split}
end{equation}
The second method gives the same answer as the first. By the first method, the answer you get is $-log(cos x) + log(sin x)$. The first term is the same as what you get by the second method.
What you need to show is that $log(sin x) = frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x)$.
begin{equation}
begin{split}
frac{1}{2}log(1-cos x) + frac{1}{2}log(1+cos x) &= frac{1}{2}left( log(2 sin^2 frac{x}{2}) + log(2 cos^2 frac{x}{2})right)\ & = log(2 sin frac{x}{2} cos frac{x}{2})
end{split}
end{equation}
edited Jan 29 '15 at 13:50
N. F. Taussig
43.5k93355
43.5k93355
answered Nov 5 '10 at 17:16
svenkatr
4,95612329
4,95612329
add a comment |
add a comment |
Tangent half-angle substitution
$$displaystyle int frac{1}{sin xcos x} dx=displaystyle int frac{(1+t^2)}{t(1-t^2)} dt=displaystyle int frac{1}{t} dt-displaystyle int frac{1}{1-t} dt-displaystyle int frac{1}{1+t} dt$$
This is definitely the right way to go
– Vim
Jan 29 '15 at 14:24
add a comment |
Tangent half-angle substitution
$$displaystyle int frac{1}{sin xcos x} dx=displaystyle int frac{(1+t^2)}{t(1-t^2)} dt=displaystyle int frac{1}{t} dt-displaystyle int frac{1}{1-t} dt-displaystyle int frac{1}{1+t} dt$$
This is definitely the right way to go
– Vim
Jan 29 '15 at 14:24
add a comment |
Tangent half-angle substitution
$$displaystyle int frac{1}{sin xcos x} dx=displaystyle int frac{(1+t^2)}{t(1-t^2)} dt=displaystyle int frac{1}{t} dt-displaystyle int frac{1}{1-t} dt-displaystyle int frac{1}{1+t} dt$$
Tangent half-angle substitution
$$displaystyle int frac{1}{sin xcos x} dx=displaystyle int frac{(1+t^2)}{t(1-t^2)} dt=displaystyle int frac{1}{t} dt-displaystyle int frac{1}{1-t} dt-displaystyle int frac{1}{1+t} dt$$
edited Jan 29 '15 at 14:07
answered Jan 29 '15 at 13:59
dammat
25915
25915
This is definitely the right way to go
– Vim
Jan 29 '15 at 14:24
add a comment |
This is definitely the right way to go
– Vim
Jan 29 '15 at 14:24
This is definitely the right way to go
– Vim
Jan 29 '15 at 14:24
This is definitely the right way to go
– Vim
Jan 29 '15 at 14:24
add a comment |
$sin(x)cos(x) = frac{1}{2} sin(2x)$.
$I = 2int csc(2x)$ let $u = 2x$ then:
$I = int csc(u) du = - log(cot(2x) + csc(2x)) + C$
add a comment |
$sin(x)cos(x) = frac{1}{2} sin(2x)$.
$I = 2int csc(2x)$ let $u = 2x$ then:
$I = int csc(u) du = - log(cot(2x) + csc(2x)) + C$
add a comment |
$sin(x)cos(x) = frac{1}{2} sin(2x)$.
$I = 2int csc(2x)$ let $u = 2x$ then:
$I = int csc(u) du = - log(cot(2x) + csc(2x)) + C$
$sin(x)cos(x) = frac{1}{2} sin(2x)$.
$I = 2int csc(2x)$ let $u = 2x$ then:
$I = int csc(u) du = - log(cot(2x) + csc(2x)) + C$
answered Aug 22 '15 at 15:49
Amad27
5,32321753
5,32321753
add a comment |
add a comment |
Integrand $ =dfrac {1}{sin(x)cos(x)} = 2 csc 2x $
Its integral is obtained by direct application of listed standard trigonometric function integration formulae. Using chain rule for constant double angle:
$$ 2 log (tan dfrac{2 x}{2}) cdot frac12= log (tan x ) + c $$
agrees with OP's second result when it is further simplified.
add a comment |
Integrand $ =dfrac {1}{sin(x)cos(x)} = 2 csc 2x $
Its integral is obtained by direct application of listed standard trigonometric function integration formulae. Using chain rule for constant double angle:
$$ 2 log (tan dfrac{2 x}{2}) cdot frac12= log (tan x ) + c $$
agrees with OP's second result when it is further simplified.
add a comment |
Integrand $ =dfrac {1}{sin(x)cos(x)} = 2 csc 2x $
Its integral is obtained by direct application of listed standard trigonometric function integration formulae. Using chain rule for constant double angle:
$$ 2 log (tan dfrac{2 x}{2}) cdot frac12= log (tan x ) + c $$
agrees with OP's second result when it is further simplified.
Integrand $ =dfrac {1}{sin(x)cos(x)} = 2 csc 2x $
Its integral is obtained by direct application of listed standard trigonometric function integration formulae. Using chain rule for constant double angle:
$$ 2 log (tan dfrac{2 x}{2}) cdot frac12= log (tan x ) + c $$
agrees with OP's second result when it is further simplified.
edited Aug 22 '15 at 16:30
answered Aug 22 '15 at 16:24
Narasimham
20.6k52158
20.6k52158
add a comment |
add a comment |
Another way to integrate would be to let $displaystyle t = frac{sin{x}}{cos{x}}$, then $displaystyle frac{dt}{dx} = frac{1}{cos^2{x}} Rightarrow dx = cos^2{x};{dt}$.
Thus $ displaystyle I = intfrac{cos^2{x}}{sin{x}};{dt} = intfrac{cos{x}}{sin{x}};{dt} = intfrac{1}{t};{dt} = ln{t}+k = lnfrac{sin{x}}{cos{x}}+k$.
You forgot a $cos x$ in the denominator in the first step. By the way, this is essentially the same method as in Chandru1's answer, although perhaps done in a more systematic way ("apply the tan-half-angle substitution to $int (2/sin 2x)dx$").
– Hans Lundmark
Nov 5 '10 at 18:33
add a comment |
Another way to integrate would be to let $displaystyle t = frac{sin{x}}{cos{x}}$, then $displaystyle frac{dt}{dx} = frac{1}{cos^2{x}} Rightarrow dx = cos^2{x};{dt}$.
Thus $ displaystyle I = intfrac{cos^2{x}}{sin{x}};{dt} = intfrac{cos{x}}{sin{x}};{dt} = intfrac{1}{t};{dt} = ln{t}+k = lnfrac{sin{x}}{cos{x}}+k$.
You forgot a $cos x$ in the denominator in the first step. By the way, this is essentially the same method as in Chandru1's answer, although perhaps done in a more systematic way ("apply the tan-half-angle substitution to $int (2/sin 2x)dx$").
– Hans Lundmark
Nov 5 '10 at 18:33
add a comment |
Another way to integrate would be to let $displaystyle t = frac{sin{x}}{cos{x}}$, then $displaystyle frac{dt}{dx} = frac{1}{cos^2{x}} Rightarrow dx = cos^2{x};{dt}$.
Thus $ displaystyle I = intfrac{cos^2{x}}{sin{x}};{dt} = intfrac{cos{x}}{sin{x}};{dt} = intfrac{1}{t};{dt} = ln{t}+k = lnfrac{sin{x}}{cos{x}}+k$.
Another way to integrate would be to let $displaystyle t = frac{sin{x}}{cos{x}}$, then $displaystyle frac{dt}{dx} = frac{1}{cos^2{x}} Rightarrow dx = cos^2{x};{dt}$.
Thus $ displaystyle I = intfrac{cos^2{x}}{sin{x}};{dt} = intfrac{cos{x}}{sin{x}};{dt} = intfrac{1}{t};{dt} = ln{t}+k = lnfrac{sin{x}}{cos{x}}+k$.
edited Nov 5 '10 at 17:48
answered Nov 5 '10 at 17:42
NoName
You forgot a $cos x$ in the denominator in the first step. By the way, this is essentially the same method as in Chandru1's answer, although perhaps done in a more systematic way ("apply the tan-half-angle substitution to $int (2/sin 2x)dx$").
– Hans Lundmark
Nov 5 '10 at 18:33
add a comment |
You forgot a $cos x$ in the denominator in the first step. By the way, this is essentially the same method as in Chandru1's answer, although perhaps done in a more systematic way ("apply the tan-half-angle substitution to $int (2/sin 2x)dx$").
– Hans Lundmark
Nov 5 '10 at 18:33
You forgot a $cos x$ in the denominator in the first step. By the way, this is essentially the same method as in Chandru1's answer, although perhaps done in a more systematic way ("apply the tan-half-angle substitution to $int (2/sin 2x)dx$").
– Hans Lundmark
Nov 5 '10 at 18:33
You forgot a $cos x$ in the denominator in the first step. By the way, this is essentially the same method as in Chandru1's answer, although perhaps done in a more systematic way ("apply the tan-half-angle substitution to $int (2/sin 2x)dx$").
– Hans Lundmark
Nov 5 '10 at 18:33
add a comment |
Let $int frac{1}{sin x cos x}dx=int frac{2}{2 sin x cos x}dx$
=$int frac{2}{sin 2x}dx$
Let $tan x=t$
$sin 2x=frac{2t}{1+t^2}$
$tan^{-1} t=x$
$frac{1}{1+t^2}dt=dx$
$2int frac{1}{sin 2x} dx=2int frac{1+t^2}{2t}.frac{1}{1+t^2}dt$
=$intfrac{1}{t}dt$
=$ln t+C$
=$ln (tan x)+C$
add a comment |
Let $int frac{1}{sin x cos x}dx=int frac{2}{2 sin x cos x}dx$
=$int frac{2}{sin 2x}dx$
Let $tan x=t$
$sin 2x=frac{2t}{1+t^2}$
$tan^{-1} t=x$
$frac{1}{1+t^2}dt=dx$
$2int frac{1}{sin 2x} dx=2int frac{1+t^2}{2t}.frac{1}{1+t^2}dt$
=$intfrac{1}{t}dt$
=$ln t+C$
=$ln (tan x)+C$
add a comment |
Let $int frac{1}{sin x cos x}dx=int frac{2}{2 sin x cos x}dx$
=$int frac{2}{sin 2x}dx$
Let $tan x=t$
$sin 2x=frac{2t}{1+t^2}$
$tan^{-1} t=x$
$frac{1}{1+t^2}dt=dx$
$2int frac{1}{sin 2x} dx=2int frac{1+t^2}{2t}.frac{1}{1+t^2}dt$
=$intfrac{1}{t}dt$
=$ln t+C$
=$ln (tan x)+C$
Let $int frac{1}{sin x cos x}dx=int frac{2}{2 sin x cos x}dx$
=$int frac{2}{sin 2x}dx$
Let $tan x=t$
$sin 2x=frac{2t}{1+t^2}$
$tan^{-1} t=x$
$frac{1}{1+t^2}dt=dx$
$2int frac{1}{sin 2x} dx=2int frac{1+t^2}{2t}.frac{1}{1+t^2}dt$
=$intfrac{1}{t}dt$
=$ln t+C$
=$ln (tan x)+C$
answered Jan 15 '16 at 5:05
Tos Hina
1,032619
1,032619
add a comment |
add a comment |
$$int frac{1}{sin xcos x} dx = int tan x+cot x dx= intfrac{sin x}{cos x} dx+intfrac{cos x}{sin x} dx$$ from where it should be fairly simple....(choose correctly the variables though)
add a comment |
$$int frac{1}{sin xcos x} dx = int tan x+cot x dx= intfrac{sin x}{cos x} dx+intfrac{cos x}{sin x} dx$$ from where it should be fairly simple....(choose correctly the variables though)
add a comment |
$$int frac{1}{sin xcos x} dx = int tan x+cot x dx= intfrac{sin x}{cos x} dx+intfrac{cos x}{sin x} dx$$ from where it should be fairly simple....(choose correctly the variables though)
$$int frac{1}{sin xcos x} dx = int tan x+cot x dx= intfrac{sin x}{cos x} dx+intfrac{cos x}{sin x} dx$$ from where it should be fairly simple....(choose correctly the variables though)
edited Jan 29 '15 at 14:04
Ruslan
3,68921533
3,68921533
answered Jan 29 '15 at 13:17
Bak1139
1,39621232
1,39621232
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f9075%2fevaluate-int-frac1-sin-x-cos-x-dx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The second method looks right too. Did you try to simplify the answer you got with the second method?
– Aryabhata
Nov 5 '10 at 17:05
The second method is correct. Try
Simplify[D[-Log[Cos[x]]+1/2*Log[1-Cos[x]]+1/2*Log[1+Cos[x]],x]]
; it givesCsc[x] Sec[x]
.– Hans Lundmark
Nov 5 '10 at 17:14
I was hoping for the arbitrariness of "+C" to be key (I like when that happens!), but it turns out that all you need to do is combine the logs appropriately.
– Blue
Nov 5 '10 at 17:21
In the second integral $int -frac{1}{2(1-u)}=+frac{1}{2}ln|1-u|$?
– Robert Smith
Nov 5 '10 at 19:00