Evaluate: Integral of sec(x) with Complex Analysis












1














I'm trying to better understand how Complex Analysis can offer real solutions. I had seen examples of this with trigonometric identities and I wanted to see how it might do with the integral of $mathbf{sec(x)}$, given how its solution involves more than trigonometric functions. I'd like to know if my reasoning is correct or if there are improvements that I could make to generate a better/ faster solution using this method.



To start, I began with the exponential form of $mathbf{sec(x)}$ and a u-substitution.



$$mathbf{int{sec(x)dx}=intfrac{2}{e^{ix}+e^{-ix}}dx}$$



$$mathbf{= frac{2}{i}tan^{-1}(e^{ix}) + z}$$



On the topic of $mathbf{tan^{-1}(x)}$ I supposed that I could try finding the inverse of the exponential form of $mathbf{tan(x)}$ to get my answer to be closer to what it looks like in real space. To do this I switched the x and y positions and solved for y.



$$mathbf{tan(x)=frac{1}{i}frac{e^{ix}-e^{-ix}}{e^{ix}+e^{-ix}}}$$



$$mathbf{tan^{-1}(x) = frac{1}{2i}ln(frac{i-x}{i+x})}$$



Plugging this definition back into what I had solved for earlier, I found that



$$mathbf{int{sec(x)dx}= -ln(frac{i-e^{ix}}{i+e^{ix}})+z=ln(frac{i+e^{ix}}{i-e^{ix}})+z}$$



At this point it felt like I was getting closer, so I multiplied the numerator and the denominator inside the natural logarithm by the complex conjugate of the denominator.



$$mathbf{int{sec(x)dx}=ln(frac{-e^{2ix}-2ie^{ix}+1}{e^{2ix}+1})+z}$$



Multiplying the numerator and denominator by



$$mathbf{e^{-ix}}$$



I get



$$mathbf{int{sec(x)dx}=ln(frac{-e^{ix}+e^{-ix}-2i}{e^{ix}+e^{-ix}})+z}$$



This looked familiar to a certain sum of two trigonometric functions, so I returned from exponential form to trigonometric form.



$$mathbf{int{sec(x)dx}=ln(-i*(tan(x)+sec(x)))+z}$$



Having -i within a natural logarithm didn't seem right, but the current form seemed too close to fail at this point since I just needed to the multiply inner expression by i to get the answer in real space. I then remembered the property that $mathbf{z = a + bi}$, and that if $mathbf{bi = ln(i)}$ and $mathbf{a = C}$ then I could use the property of natural logarithms to get to where I wanted to be.



I reasoned that if the real solution contains the point $$mathbf{(npi,C)}$$ where n is any positive odd integer then in the complex equation
$$ mathbf{z = ln(i^{n})=frac{inpi}{2}}$$



Recapping what I just did
$$mathbf{int{sec(x)dx}=ln(-i(tan(x)+sec(x)))+ln(i)+C}$$



$$mathbf{=ln(tan(x)+sec(x))+C}$$



To get to this point I needed to look at the actual answer to try to force the exponential form to "fit" into place. A lot of my time was spent trying to prove the integral solution rather than evaluate it. There had to have been a better way to think about this, if I'm not already wrong at some step.



I'm also not sure why I didn't get
$$mathbf{ln|tan(x)+sec(x)|+C}$$



rather than $$mathbf{ln{(tan(x)+sec(x))}+C}$$



Obviously you can't have a negative input for a natural logarithmic function but I don't think I can just claim that my answer involves an absolute value can I? Why is this integral dependent on a particular form of z when the integral of say $mathbf{cos(x)}$ leads directly to $mathbf{sin(x)+c}$ using the same method?










share|cite|improve this question







New contributor




C. Jay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • $ln(tan x+sec x)+C$ is indeed a correct result in complex plane, while $ln|tan x+sec x|+C$ is only valid if we consider the integrand a real function.
    – Kemono Chen
    yesterday
















1














I'm trying to better understand how Complex Analysis can offer real solutions. I had seen examples of this with trigonometric identities and I wanted to see how it might do with the integral of $mathbf{sec(x)}$, given how its solution involves more than trigonometric functions. I'd like to know if my reasoning is correct or if there are improvements that I could make to generate a better/ faster solution using this method.



To start, I began with the exponential form of $mathbf{sec(x)}$ and a u-substitution.



$$mathbf{int{sec(x)dx}=intfrac{2}{e^{ix}+e^{-ix}}dx}$$



$$mathbf{= frac{2}{i}tan^{-1}(e^{ix}) + z}$$



On the topic of $mathbf{tan^{-1}(x)}$ I supposed that I could try finding the inverse of the exponential form of $mathbf{tan(x)}$ to get my answer to be closer to what it looks like in real space. To do this I switched the x and y positions and solved for y.



$$mathbf{tan(x)=frac{1}{i}frac{e^{ix}-e^{-ix}}{e^{ix}+e^{-ix}}}$$



$$mathbf{tan^{-1}(x) = frac{1}{2i}ln(frac{i-x}{i+x})}$$



Plugging this definition back into what I had solved for earlier, I found that



$$mathbf{int{sec(x)dx}= -ln(frac{i-e^{ix}}{i+e^{ix}})+z=ln(frac{i+e^{ix}}{i-e^{ix}})+z}$$



At this point it felt like I was getting closer, so I multiplied the numerator and the denominator inside the natural logarithm by the complex conjugate of the denominator.



$$mathbf{int{sec(x)dx}=ln(frac{-e^{2ix}-2ie^{ix}+1}{e^{2ix}+1})+z}$$



Multiplying the numerator and denominator by



$$mathbf{e^{-ix}}$$



I get



$$mathbf{int{sec(x)dx}=ln(frac{-e^{ix}+e^{-ix}-2i}{e^{ix}+e^{-ix}})+z}$$



This looked familiar to a certain sum of two trigonometric functions, so I returned from exponential form to trigonometric form.



$$mathbf{int{sec(x)dx}=ln(-i*(tan(x)+sec(x)))+z}$$



Having -i within a natural logarithm didn't seem right, but the current form seemed too close to fail at this point since I just needed to the multiply inner expression by i to get the answer in real space. I then remembered the property that $mathbf{z = a + bi}$, and that if $mathbf{bi = ln(i)}$ and $mathbf{a = C}$ then I could use the property of natural logarithms to get to where I wanted to be.



I reasoned that if the real solution contains the point $$mathbf{(npi,C)}$$ where n is any positive odd integer then in the complex equation
$$ mathbf{z = ln(i^{n})=frac{inpi}{2}}$$



Recapping what I just did
$$mathbf{int{sec(x)dx}=ln(-i(tan(x)+sec(x)))+ln(i)+C}$$



$$mathbf{=ln(tan(x)+sec(x))+C}$$



To get to this point I needed to look at the actual answer to try to force the exponential form to "fit" into place. A lot of my time was spent trying to prove the integral solution rather than evaluate it. There had to have been a better way to think about this, if I'm not already wrong at some step.



I'm also not sure why I didn't get
$$mathbf{ln|tan(x)+sec(x)|+C}$$



rather than $$mathbf{ln{(tan(x)+sec(x))}+C}$$



Obviously you can't have a negative input for a natural logarithmic function but I don't think I can just claim that my answer involves an absolute value can I? Why is this integral dependent on a particular form of z when the integral of say $mathbf{cos(x)}$ leads directly to $mathbf{sin(x)+c}$ using the same method?










share|cite|improve this question







New contributor




C. Jay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • $ln(tan x+sec x)+C$ is indeed a correct result in complex plane, while $ln|tan x+sec x|+C$ is only valid if we consider the integrand a real function.
    – Kemono Chen
    yesterday














1












1








1







I'm trying to better understand how Complex Analysis can offer real solutions. I had seen examples of this with trigonometric identities and I wanted to see how it might do with the integral of $mathbf{sec(x)}$, given how its solution involves more than trigonometric functions. I'd like to know if my reasoning is correct or if there are improvements that I could make to generate a better/ faster solution using this method.



To start, I began with the exponential form of $mathbf{sec(x)}$ and a u-substitution.



$$mathbf{int{sec(x)dx}=intfrac{2}{e^{ix}+e^{-ix}}dx}$$



$$mathbf{= frac{2}{i}tan^{-1}(e^{ix}) + z}$$



On the topic of $mathbf{tan^{-1}(x)}$ I supposed that I could try finding the inverse of the exponential form of $mathbf{tan(x)}$ to get my answer to be closer to what it looks like in real space. To do this I switched the x and y positions and solved for y.



$$mathbf{tan(x)=frac{1}{i}frac{e^{ix}-e^{-ix}}{e^{ix}+e^{-ix}}}$$



$$mathbf{tan^{-1}(x) = frac{1}{2i}ln(frac{i-x}{i+x})}$$



Plugging this definition back into what I had solved for earlier, I found that



$$mathbf{int{sec(x)dx}= -ln(frac{i-e^{ix}}{i+e^{ix}})+z=ln(frac{i+e^{ix}}{i-e^{ix}})+z}$$



At this point it felt like I was getting closer, so I multiplied the numerator and the denominator inside the natural logarithm by the complex conjugate of the denominator.



$$mathbf{int{sec(x)dx}=ln(frac{-e^{2ix}-2ie^{ix}+1}{e^{2ix}+1})+z}$$



Multiplying the numerator and denominator by



$$mathbf{e^{-ix}}$$



I get



$$mathbf{int{sec(x)dx}=ln(frac{-e^{ix}+e^{-ix}-2i}{e^{ix}+e^{-ix}})+z}$$



This looked familiar to a certain sum of two trigonometric functions, so I returned from exponential form to trigonometric form.



$$mathbf{int{sec(x)dx}=ln(-i*(tan(x)+sec(x)))+z}$$



Having -i within a natural logarithm didn't seem right, but the current form seemed too close to fail at this point since I just needed to the multiply inner expression by i to get the answer in real space. I then remembered the property that $mathbf{z = a + bi}$, and that if $mathbf{bi = ln(i)}$ and $mathbf{a = C}$ then I could use the property of natural logarithms to get to where I wanted to be.



I reasoned that if the real solution contains the point $$mathbf{(npi,C)}$$ where n is any positive odd integer then in the complex equation
$$ mathbf{z = ln(i^{n})=frac{inpi}{2}}$$



Recapping what I just did
$$mathbf{int{sec(x)dx}=ln(-i(tan(x)+sec(x)))+ln(i)+C}$$



$$mathbf{=ln(tan(x)+sec(x))+C}$$



To get to this point I needed to look at the actual answer to try to force the exponential form to "fit" into place. A lot of my time was spent trying to prove the integral solution rather than evaluate it. There had to have been a better way to think about this, if I'm not already wrong at some step.



I'm also not sure why I didn't get
$$mathbf{ln|tan(x)+sec(x)|+C}$$



rather than $$mathbf{ln{(tan(x)+sec(x))}+C}$$



Obviously you can't have a negative input for a natural logarithmic function but I don't think I can just claim that my answer involves an absolute value can I? Why is this integral dependent on a particular form of z when the integral of say $mathbf{cos(x)}$ leads directly to $mathbf{sin(x)+c}$ using the same method?










share|cite|improve this question







New contributor




C. Jay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm trying to better understand how Complex Analysis can offer real solutions. I had seen examples of this with trigonometric identities and I wanted to see how it might do with the integral of $mathbf{sec(x)}$, given how its solution involves more than trigonometric functions. I'd like to know if my reasoning is correct or if there are improvements that I could make to generate a better/ faster solution using this method.



To start, I began with the exponential form of $mathbf{sec(x)}$ and a u-substitution.



$$mathbf{int{sec(x)dx}=intfrac{2}{e^{ix}+e^{-ix}}dx}$$



$$mathbf{= frac{2}{i}tan^{-1}(e^{ix}) + z}$$



On the topic of $mathbf{tan^{-1}(x)}$ I supposed that I could try finding the inverse of the exponential form of $mathbf{tan(x)}$ to get my answer to be closer to what it looks like in real space. To do this I switched the x and y positions and solved for y.



$$mathbf{tan(x)=frac{1}{i}frac{e^{ix}-e^{-ix}}{e^{ix}+e^{-ix}}}$$



$$mathbf{tan^{-1}(x) = frac{1}{2i}ln(frac{i-x}{i+x})}$$



Plugging this definition back into what I had solved for earlier, I found that



$$mathbf{int{sec(x)dx}= -ln(frac{i-e^{ix}}{i+e^{ix}})+z=ln(frac{i+e^{ix}}{i-e^{ix}})+z}$$



At this point it felt like I was getting closer, so I multiplied the numerator and the denominator inside the natural logarithm by the complex conjugate of the denominator.



$$mathbf{int{sec(x)dx}=ln(frac{-e^{2ix}-2ie^{ix}+1}{e^{2ix}+1})+z}$$



Multiplying the numerator and denominator by



$$mathbf{e^{-ix}}$$



I get



$$mathbf{int{sec(x)dx}=ln(frac{-e^{ix}+e^{-ix}-2i}{e^{ix}+e^{-ix}})+z}$$



This looked familiar to a certain sum of two trigonometric functions, so I returned from exponential form to trigonometric form.



$$mathbf{int{sec(x)dx}=ln(-i*(tan(x)+sec(x)))+z}$$



Having -i within a natural logarithm didn't seem right, but the current form seemed too close to fail at this point since I just needed to the multiply inner expression by i to get the answer in real space. I then remembered the property that $mathbf{z = a + bi}$, and that if $mathbf{bi = ln(i)}$ and $mathbf{a = C}$ then I could use the property of natural logarithms to get to where I wanted to be.



I reasoned that if the real solution contains the point $$mathbf{(npi,C)}$$ where n is any positive odd integer then in the complex equation
$$ mathbf{z = ln(i^{n})=frac{inpi}{2}}$$



Recapping what I just did
$$mathbf{int{sec(x)dx}=ln(-i(tan(x)+sec(x)))+ln(i)+C}$$



$$mathbf{=ln(tan(x)+sec(x))+C}$$



To get to this point I needed to look at the actual answer to try to force the exponential form to "fit" into place. A lot of my time was spent trying to prove the integral solution rather than evaluate it. There had to have been a better way to think about this, if I'm not already wrong at some step.



I'm also not sure why I didn't get
$$mathbf{ln|tan(x)+sec(x)|+C}$$



rather than $$mathbf{ln{(tan(x)+sec(x))}+C}$$



Obviously you can't have a negative input for a natural logarithmic function but I don't think I can just claim that my answer involves an absolute value can I? Why is this integral dependent on a particular form of z when the integral of say $mathbf{cos(x)}$ leads directly to $mathbf{sin(x)+c}$ using the same method?







integration complex-analysis trigonometry






share|cite|improve this question







New contributor




C. Jay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question







New contributor




C. Jay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question






New contributor




C. Jay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









C. Jay

61




61




New contributor




C. Jay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





C. Jay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






C. Jay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • $ln(tan x+sec x)+C$ is indeed a correct result in complex plane, while $ln|tan x+sec x|+C$ is only valid if we consider the integrand a real function.
    – Kemono Chen
    yesterday


















  • $ln(tan x+sec x)+C$ is indeed a correct result in complex plane, while $ln|tan x+sec x|+C$ is only valid if we consider the integrand a real function.
    – Kemono Chen
    yesterday
















$ln(tan x+sec x)+C$ is indeed a correct result in complex plane, while $ln|tan x+sec x|+C$ is only valid if we consider the integrand a real function.
– Kemono Chen
yesterday




$ln(tan x+sec x)+C$ is indeed a correct result in complex plane, while $ln|tan x+sec x|+C$ is only valid if we consider the integrand a real function.
– Kemono Chen
yesterday










1 Answer
1






active

oldest

votes


















0














Another way to look at that issue involving the logarithm? The most general antiderivative of $frac1u$ can be written as $ln(Au)$, where $A$ is a nonzero constant.

In $mathbb{R}$, we'll choose $A$ positive on intervals where $u$ is positve, and $A$ negative on intervals where $A$ is negative; this is often abbreviated with an absolute value sign. But that absolute value is deceptive; we can't cross between negative and positive values without going over a singularity, which will produce a divergent integral.

In $mathbb{C}$, we'll allow $A$ to be any nonzero complex number, and the only restriction is that we can't use the antiderivative to integrate on a path that circles a singularity. Think of it as a spiral staircase; by going around, we end up on a different level (branch) than we started on, and the integral won't be zero as a line integral around a loop normally should be. Because of this, we can't define that antiderivative as a globally continuous function, and instead we must make a "branch cut" somewhere where the values jump. Traditionally, for the logarithm, this cut is placed on the negative real axis.




Why is this integral dependent on a particular form of z when the integral of say $cos(x)$ leads directly to $sin(x)+c$ using the same method?




Differentiation is predictable. We have rules that always work, and produce an algorithm that can differentiate any elementary function. It's so easy, we can tell a computer how to do it. The inverse operation, integration, is unpredictable. We can write down simple expressions that have complicated antiderivatives, and other simple expressions that don't have elementary antiderivatives at all. This sort of messiness is utterly normal; we just got lucky with $sin$.

Also, there are a lot of names for trig functions, and a lot of identities. We could have written the answer in many ways, and that's always an option when trig is involved.






share|cite|improve this answer





















    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
    });


    }
    });






    C. Jay is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3062480%2fevaluate-integral-of-secx-with-complex-analysis%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Another way to look at that issue involving the logarithm? The most general antiderivative of $frac1u$ can be written as $ln(Au)$, where $A$ is a nonzero constant.

    In $mathbb{R}$, we'll choose $A$ positive on intervals where $u$ is positve, and $A$ negative on intervals where $A$ is negative; this is often abbreviated with an absolute value sign. But that absolute value is deceptive; we can't cross between negative and positive values without going over a singularity, which will produce a divergent integral.

    In $mathbb{C}$, we'll allow $A$ to be any nonzero complex number, and the only restriction is that we can't use the antiderivative to integrate on a path that circles a singularity. Think of it as a spiral staircase; by going around, we end up on a different level (branch) than we started on, and the integral won't be zero as a line integral around a loop normally should be. Because of this, we can't define that antiderivative as a globally continuous function, and instead we must make a "branch cut" somewhere where the values jump. Traditionally, for the logarithm, this cut is placed on the negative real axis.




    Why is this integral dependent on a particular form of z when the integral of say $cos(x)$ leads directly to $sin(x)+c$ using the same method?




    Differentiation is predictable. We have rules that always work, and produce an algorithm that can differentiate any elementary function. It's so easy, we can tell a computer how to do it. The inverse operation, integration, is unpredictable. We can write down simple expressions that have complicated antiderivatives, and other simple expressions that don't have elementary antiderivatives at all. This sort of messiness is utterly normal; we just got lucky with $sin$.

    Also, there are a lot of names for trig functions, and a lot of identities. We could have written the answer in many ways, and that's always an option when trig is involved.






    share|cite|improve this answer


























      0














      Another way to look at that issue involving the logarithm? The most general antiderivative of $frac1u$ can be written as $ln(Au)$, where $A$ is a nonzero constant.

      In $mathbb{R}$, we'll choose $A$ positive on intervals where $u$ is positve, and $A$ negative on intervals where $A$ is negative; this is often abbreviated with an absolute value sign. But that absolute value is deceptive; we can't cross between negative and positive values without going over a singularity, which will produce a divergent integral.

      In $mathbb{C}$, we'll allow $A$ to be any nonzero complex number, and the only restriction is that we can't use the antiderivative to integrate on a path that circles a singularity. Think of it as a spiral staircase; by going around, we end up on a different level (branch) than we started on, and the integral won't be zero as a line integral around a loop normally should be. Because of this, we can't define that antiderivative as a globally continuous function, and instead we must make a "branch cut" somewhere where the values jump. Traditionally, for the logarithm, this cut is placed on the negative real axis.




      Why is this integral dependent on a particular form of z when the integral of say $cos(x)$ leads directly to $sin(x)+c$ using the same method?




      Differentiation is predictable. We have rules that always work, and produce an algorithm that can differentiate any elementary function. It's so easy, we can tell a computer how to do it. The inverse operation, integration, is unpredictable. We can write down simple expressions that have complicated antiderivatives, and other simple expressions that don't have elementary antiderivatives at all. This sort of messiness is utterly normal; we just got lucky with $sin$.

      Also, there are a lot of names for trig functions, and a lot of identities. We could have written the answer in many ways, and that's always an option when trig is involved.






      share|cite|improve this answer
























        0












        0








        0






        Another way to look at that issue involving the logarithm? The most general antiderivative of $frac1u$ can be written as $ln(Au)$, where $A$ is a nonzero constant.

        In $mathbb{R}$, we'll choose $A$ positive on intervals where $u$ is positve, and $A$ negative on intervals where $A$ is negative; this is often abbreviated with an absolute value sign. But that absolute value is deceptive; we can't cross between negative and positive values without going over a singularity, which will produce a divergent integral.

        In $mathbb{C}$, we'll allow $A$ to be any nonzero complex number, and the only restriction is that we can't use the antiderivative to integrate on a path that circles a singularity. Think of it as a spiral staircase; by going around, we end up on a different level (branch) than we started on, and the integral won't be zero as a line integral around a loop normally should be. Because of this, we can't define that antiderivative as a globally continuous function, and instead we must make a "branch cut" somewhere where the values jump. Traditionally, for the logarithm, this cut is placed on the negative real axis.




        Why is this integral dependent on a particular form of z when the integral of say $cos(x)$ leads directly to $sin(x)+c$ using the same method?




        Differentiation is predictable. We have rules that always work, and produce an algorithm that can differentiate any elementary function. It's so easy, we can tell a computer how to do it. The inverse operation, integration, is unpredictable. We can write down simple expressions that have complicated antiderivatives, and other simple expressions that don't have elementary antiderivatives at all. This sort of messiness is utterly normal; we just got lucky with $sin$.

        Also, there are a lot of names for trig functions, and a lot of identities. We could have written the answer in many ways, and that's always an option when trig is involved.






        share|cite|improve this answer












        Another way to look at that issue involving the logarithm? The most general antiderivative of $frac1u$ can be written as $ln(Au)$, where $A$ is a nonzero constant.

        In $mathbb{R}$, we'll choose $A$ positive on intervals where $u$ is positve, and $A$ negative on intervals where $A$ is negative; this is often abbreviated with an absolute value sign. But that absolute value is deceptive; we can't cross between negative and positive values without going over a singularity, which will produce a divergent integral.

        In $mathbb{C}$, we'll allow $A$ to be any nonzero complex number, and the only restriction is that we can't use the antiderivative to integrate on a path that circles a singularity. Think of it as a spiral staircase; by going around, we end up on a different level (branch) than we started on, and the integral won't be zero as a line integral around a loop normally should be. Because of this, we can't define that antiderivative as a globally continuous function, and instead we must make a "branch cut" somewhere where the values jump. Traditionally, for the logarithm, this cut is placed on the negative real axis.




        Why is this integral dependent on a particular form of z when the integral of say $cos(x)$ leads directly to $sin(x)+c$ using the same method?




        Differentiation is predictable. We have rules that always work, and produce an algorithm that can differentiate any elementary function. It's so easy, we can tell a computer how to do it. The inverse operation, integration, is unpredictable. We can write down simple expressions that have complicated antiderivatives, and other simple expressions that don't have elementary antiderivatives at all. This sort of messiness is utterly normal; we just got lucky with $sin$.

        Also, there are a lot of names for trig functions, and a lot of identities. We could have written the answer in many ways, and that's always an option when trig is involved.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered yesterday









        jmerry

        2,416211




        2,416211






















            C. Jay is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            C. Jay is a new contributor. Be nice, and check out our Code of Conduct.













            C. Jay is a new contributor. Be nice, and check out our Code of Conduct.












            C. Jay is a new contributor. Be nice, and check out our Code of Conduct.
















            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3062480%2fevaluate-integral-of-secx-with-complex-analysis%23new-answer', 'question_page');
            }
            );

            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







            Popular posts from this blog

            Mario Kart Wii

            What does “Dominus providebit” mean?

            Antonio Litta Visconti Arese