Integral with two different answers using real and complex analysis
The integral is$$int_0^{2pi}frac{mathrm dθ}{2-cosθ}.$$Just to skip time, the answer of the indefinite integral is $dfrac2{sqrt{3}}tan^{-1}left(sqrt3tanleft(dfracθ2right)right)$.
Evaluating it from $0$ to $ 2 pi$ yields$$frac2{sqrt3}tan^{-1}(sqrt3 tanπ)-frac2{sqrt3}tan^{-1}(sqrt3 tan0)=0-0=0.$$But using complex analysis, the integral is transformed into$$2iint_Cfrac{mathrm dz}{z^2-4z+1}=2iint_Cfrac{mathrm dz}{(z-2+sqrt3)(z-2-sqrt3)},$$
where $C$ is the boundary of the circle $|z|=1$. Then by Cauchy's integral formula, since $z=2-sqrt3$ is inside the domain of the region bounded by $C$, then:
$$2iint_Cfrac{mathrm dz}{(z-2+sqrt3)(z-2-sqrt3)}=2πifrac{2i}{2-sqrt3-2-sqrt3}=2πifrac{2i}{-2sqrt3}=frac{2π}{sqrt3}.$$
Using real analysis I get $0$, using complex analysis I get $dfrac{2π}{sqrt3}$. What is wrong?
complex-analysis definite-integrals cauchy-integral-formula
add a comment |
The integral is$$int_0^{2pi}frac{mathrm dθ}{2-cosθ}.$$Just to skip time, the answer of the indefinite integral is $dfrac2{sqrt{3}}tan^{-1}left(sqrt3tanleft(dfracθ2right)right)$.
Evaluating it from $0$ to $ 2 pi$ yields$$frac2{sqrt3}tan^{-1}(sqrt3 tanπ)-frac2{sqrt3}tan^{-1}(sqrt3 tan0)=0-0=0.$$But using complex analysis, the integral is transformed into$$2iint_Cfrac{mathrm dz}{z^2-4z+1}=2iint_Cfrac{mathrm dz}{(z-2+sqrt3)(z-2-sqrt3)},$$
where $C$ is the boundary of the circle $|z|=1$. Then by Cauchy's integral formula, since $z=2-sqrt3$ is inside the domain of the region bounded by $C$, then:
$$2iint_Cfrac{mathrm dz}{(z-2+sqrt3)(z-2-sqrt3)}=2πifrac{2i}{2-sqrt3-2-sqrt3}=2πifrac{2i}{-2sqrt3}=frac{2π}{sqrt3}.$$
Using real analysis I get $0$, using complex analysis I get $dfrac{2π}{sqrt3}$. What is wrong?
complex-analysis definite-integrals cauchy-integral-formula
add a comment |
The integral is$$int_0^{2pi}frac{mathrm dθ}{2-cosθ}.$$Just to skip time, the answer of the indefinite integral is $dfrac2{sqrt{3}}tan^{-1}left(sqrt3tanleft(dfracθ2right)right)$.
Evaluating it from $0$ to $ 2 pi$ yields$$frac2{sqrt3}tan^{-1}(sqrt3 tanπ)-frac2{sqrt3}tan^{-1}(sqrt3 tan0)=0-0=0.$$But using complex analysis, the integral is transformed into$$2iint_Cfrac{mathrm dz}{z^2-4z+1}=2iint_Cfrac{mathrm dz}{(z-2+sqrt3)(z-2-sqrt3)},$$
where $C$ is the boundary of the circle $|z|=1$. Then by Cauchy's integral formula, since $z=2-sqrt3$ is inside the domain of the region bounded by $C$, then:
$$2iint_Cfrac{mathrm dz}{(z-2+sqrt3)(z-2-sqrt3)}=2πifrac{2i}{2-sqrt3-2-sqrt3}=2πifrac{2i}{-2sqrt3}=frac{2π}{sqrt3}.$$
Using real analysis I get $0$, using complex analysis I get $dfrac{2π}{sqrt3}$. What is wrong?
complex-analysis definite-integrals cauchy-integral-formula
The integral is$$int_0^{2pi}frac{mathrm dθ}{2-cosθ}.$$Just to skip time, the answer of the indefinite integral is $dfrac2{sqrt{3}}tan^{-1}left(sqrt3tanleft(dfracθ2right)right)$.
Evaluating it from $0$ to $ 2 pi$ yields$$frac2{sqrt3}tan^{-1}(sqrt3 tanπ)-frac2{sqrt3}tan^{-1}(sqrt3 tan0)=0-0=0.$$But using complex analysis, the integral is transformed into$$2iint_Cfrac{mathrm dz}{z^2-4z+1}=2iint_Cfrac{mathrm dz}{(z-2+sqrt3)(z-2-sqrt3)},$$
where $C$ is the boundary of the circle $|z|=1$. Then by Cauchy's integral formula, since $z=2-sqrt3$ is inside the domain of the region bounded by $C$, then:
$$2iint_Cfrac{mathrm dz}{(z-2+sqrt3)(z-2-sqrt3)}=2πifrac{2i}{2-sqrt3-2-sqrt3}=2πifrac{2i}{-2sqrt3}=frac{2π}{sqrt3}.$$
Using real analysis I get $0$, using complex analysis I get $dfrac{2π}{sqrt3}$. What is wrong?
complex-analysis definite-integrals cauchy-integral-formula
complex-analysis definite-integrals cauchy-integral-formula
edited 19 mins ago
Saad
19.7k92252
19.7k92252
asked 1 hour ago
khaled014z
787
787
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The problem with the real approach is that you make the change of variable $t=tanleft(dfrac{theta}{2}right)$ for $0 < theta < 2 pi$.
This is problematic since your substitution need to be defined and continuous for all $theta$, but you have a problem when $theta=pi$.
Edit: Note that if you split the integral into $int_0^pi+int_pi^{2 pi}$, you are going to get the right answer, as for one integral you are going to get $arctan(- infty)$ and for the other $arctan(+infty)$:
$$int_0^{2 pi} frac{mathrm{d}θ}{2-cos theta}=int_0^pi frac{mathrm{d}θ}{2-cos theta}+int_pi ^{2 pi} frac{mathrm{d}θ}{2-cos theta}\
= lim_{r to pi_-} int_0^r frac{mathrm{d}θ}{2-cos theta}+ lim_{w to pi_+} int_w^{2 pi} frac{mathrm{d}θ}{2-cos theta}\= lim_{r to pi_-} left(frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}-0right)+ lim_{w to pi_+}left(0- frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}right).$$
Oh I see, so I have to solve it without this substitution? Or could I keep this substitution and change something else?
– khaled014z
1 hour ago
@khaled014z See the edit. Let me know if you want more details.
– N. S.
1 hour ago
Brilliant, that was kind of a tricky substitution, thank you
– khaled014z
1 hour ago
add a comment |
Note that that tangent function, $tan(x)$, is discontinuous when $x=npi$. So, the antiderivative $frac2{sqrt{3}} arctanleft(sqrt 3 tan(theta/2)right)$ is not valid over the interval $[0,2pi]$.
Instead, we have
$$int_0^{2pi}frac{1}{2-cos(theta)},dtheta=2int_0^pifrac{1}{2-cos(theta)},dtheta=frac{4}{sqrt3}left.left(arctanleft(sqrt 3 tan(theta/2)right)right)right|_0^pi=frac{2pi}{sqrt3}$$
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%2f3059020%2fintegral-with-two-different-answers-using-real-and-complex-analysis%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The problem with the real approach is that you make the change of variable $t=tanleft(dfrac{theta}{2}right)$ for $0 < theta < 2 pi$.
This is problematic since your substitution need to be defined and continuous for all $theta$, but you have a problem when $theta=pi$.
Edit: Note that if you split the integral into $int_0^pi+int_pi^{2 pi}$, you are going to get the right answer, as for one integral you are going to get $arctan(- infty)$ and for the other $arctan(+infty)$:
$$int_0^{2 pi} frac{mathrm{d}θ}{2-cos theta}=int_0^pi frac{mathrm{d}θ}{2-cos theta}+int_pi ^{2 pi} frac{mathrm{d}θ}{2-cos theta}\
= lim_{r to pi_-} int_0^r frac{mathrm{d}θ}{2-cos theta}+ lim_{w to pi_+} int_w^{2 pi} frac{mathrm{d}θ}{2-cos theta}\= lim_{r to pi_-} left(frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}-0right)+ lim_{w to pi_+}left(0- frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}right).$$
Oh I see, so I have to solve it without this substitution? Or could I keep this substitution and change something else?
– khaled014z
1 hour ago
@khaled014z See the edit. Let me know if you want more details.
– N. S.
1 hour ago
Brilliant, that was kind of a tricky substitution, thank you
– khaled014z
1 hour ago
add a comment |
The problem with the real approach is that you make the change of variable $t=tanleft(dfrac{theta}{2}right)$ for $0 < theta < 2 pi$.
This is problematic since your substitution need to be defined and continuous for all $theta$, but you have a problem when $theta=pi$.
Edit: Note that if you split the integral into $int_0^pi+int_pi^{2 pi}$, you are going to get the right answer, as for one integral you are going to get $arctan(- infty)$ and for the other $arctan(+infty)$:
$$int_0^{2 pi} frac{mathrm{d}θ}{2-cos theta}=int_0^pi frac{mathrm{d}θ}{2-cos theta}+int_pi ^{2 pi} frac{mathrm{d}θ}{2-cos theta}\
= lim_{r to pi_-} int_0^r frac{mathrm{d}θ}{2-cos theta}+ lim_{w to pi_+} int_w^{2 pi} frac{mathrm{d}θ}{2-cos theta}\= lim_{r to pi_-} left(frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}-0right)+ lim_{w to pi_+}left(0- frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}right).$$
Oh I see, so I have to solve it without this substitution? Or could I keep this substitution and change something else?
– khaled014z
1 hour ago
@khaled014z See the edit. Let me know if you want more details.
– N. S.
1 hour ago
Brilliant, that was kind of a tricky substitution, thank you
– khaled014z
1 hour ago
add a comment |
The problem with the real approach is that you make the change of variable $t=tanleft(dfrac{theta}{2}right)$ for $0 < theta < 2 pi$.
This is problematic since your substitution need to be defined and continuous for all $theta$, but you have a problem when $theta=pi$.
Edit: Note that if you split the integral into $int_0^pi+int_pi^{2 pi}$, you are going to get the right answer, as for one integral you are going to get $arctan(- infty)$ and for the other $arctan(+infty)$:
$$int_0^{2 pi} frac{mathrm{d}θ}{2-cos theta}=int_0^pi frac{mathrm{d}θ}{2-cos theta}+int_pi ^{2 pi} frac{mathrm{d}θ}{2-cos theta}\
= lim_{r to pi_-} int_0^r frac{mathrm{d}θ}{2-cos theta}+ lim_{w to pi_+} int_w^{2 pi} frac{mathrm{d}θ}{2-cos theta}\= lim_{r to pi_-} left(frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}-0right)+ lim_{w to pi_+}left(0- frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}right).$$
The problem with the real approach is that you make the change of variable $t=tanleft(dfrac{theta}{2}right)$ for $0 < theta < 2 pi$.
This is problematic since your substitution need to be defined and continuous for all $theta$, but you have a problem when $theta=pi$.
Edit: Note that if you split the integral into $int_0^pi+int_pi^{2 pi}$, you are going to get the right answer, as for one integral you are going to get $arctan(- infty)$ and for the other $arctan(+infty)$:
$$int_0^{2 pi} frac{mathrm{d}θ}{2-cos theta}=int_0^pi frac{mathrm{d}θ}{2-cos theta}+int_pi ^{2 pi} frac{mathrm{d}θ}{2-cos theta}\
= lim_{r to pi_-} int_0^r frac{mathrm{d}θ}{2-cos theta}+ lim_{w to pi_+} int_w^{2 pi} frac{mathrm{d}θ}{2-cos theta}\= lim_{r to pi_-} left(frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}-0right)+ lim_{w to pi_+}left(0- frac{2tan^-1( sqrt{3} tan( frac{ r}{2}))}{ sqrt{3}}right).$$
edited 46 mins ago
Saad
19.7k92252
19.7k92252
answered 1 hour ago
N. S.
102k5109204
102k5109204
Oh I see, so I have to solve it without this substitution? Or could I keep this substitution and change something else?
– khaled014z
1 hour ago
@khaled014z See the edit. Let me know if you want more details.
– N. S.
1 hour ago
Brilliant, that was kind of a tricky substitution, thank you
– khaled014z
1 hour ago
add a comment |
Oh I see, so I have to solve it without this substitution? Or could I keep this substitution and change something else?
– khaled014z
1 hour ago
@khaled014z See the edit. Let me know if you want more details.
– N. S.
1 hour ago
Brilliant, that was kind of a tricky substitution, thank you
– khaled014z
1 hour ago
Oh I see, so I have to solve it without this substitution? Or could I keep this substitution and change something else?
– khaled014z
1 hour ago
Oh I see, so I have to solve it without this substitution? Or could I keep this substitution and change something else?
– khaled014z
1 hour ago
@khaled014z See the edit. Let me know if you want more details.
– N. S.
1 hour ago
@khaled014z See the edit. Let me know if you want more details.
– N. S.
1 hour ago
Brilliant, that was kind of a tricky substitution, thank you
– khaled014z
1 hour ago
Brilliant, that was kind of a tricky substitution, thank you
– khaled014z
1 hour ago
add a comment |
Note that that tangent function, $tan(x)$, is discontinuous when $x=npi$. So, the antiderivative $frac2{sqrt{3}} arctanleft(sqrt 3 tan(theta/2)right)$ is not valid over the interval $[0,2pi]$.
Instead, we have
$$int_0^{2pi}frac{1}{2-cos(theta)},dtheta=2int_0^pifrac{1}{2-cos(theta)},dtheta=frac{4}{sqrt3}left.left(arctanleft(sqrt 3 tan(theta/2)right)right)right|_0^pi=frac{2pi}{sqrt3}$$
add a comment |
Note that that tangent function, $tan(x)$, is discontinuous when $x=npi$. So, the antiderivative $frac2{sqrt{3}} arctanleft(sqrt 3 tan(theta/2)right)$ is not valid over the interval $[0,2pi]$.
Instead, we have
$$int_0^{2pi}frac{1}{2-cos(theta)},dtheta=2int_0^pifrac{1}{2-cos(theta)},dtheta=frac{4}{sqrt3}left.left(arctanleft(sqrt 3 tan(theta/2)right)right)right|_0^pi=frac{2pi}{sqrt3}$$
add a comment |
Note that that tangent function, $tan(x)$, is discontinuous when $x=npi$. So, the antiderivative $frac2{sqrt{3}} arctanleft(sqrt 3 tan(theta/2)right)$ is not valid over the interval $[0,2pi]$.
Instead, we have
$$int_0^{2pi}frac{1}{2-cos(theta)},dtheta=2int_0^pifrac{1}{2-cos(theta)},dtheta=frac{4}{sqrt3}left.left(arctanleft(sqrt 3 tan(theta/2)right)right)right|_0^pi=frac{2pi}{sqrt3}$$
Note that that tangent function, $tan(x)$, is discontinuous when $x=npi$. So, the antiderivative $frac2{sqrt{3}} arctanleft(sqrt 3 tan(theta/2)right)$ is not valid over the interval $[0,2pi]$.
Instead, we have
$$int_0^{2pi}frac{1}{2-cos(theta)},dtheta=2int_0^pifrac{1}{2-cos(theta)},dtheta=frac{4}{sqrt3}left.left(arctanleft(sqrt 3 tan(theta/2)right)right)right|_0^pi=frac{2pi}{sqrt3}$$
answered 1 hour ago
Mark Viola
130k1274170
130k1274170
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%2f3059020%2fintegral-with-two-different-answers-using-real-and-complex-analysis%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