Efficiently Solve Tricky Integral: cos(x)/(1+e^x) with Odd Function Property

In summary: What is the integral of \displaystyle \frac{1}{1+e^{x}}\ ?In summary, the conversation discusses finding the integral of a given function and uses integration by parts and odd functions to try to solve it. However, it is determined that there is no elementary antiderivative. It is then mentioned that the integral is from -pi/2 to pi/2 and the conversation ends with a hint to use the fact that 1/(1+e^x) - 1/2 is an odd function.
  • #1
Elysian
33
0

Homework Statement


Find the integral of

[itex]\int\frac{cos(x)}{1+e^{x}}[/itex]

Homework Equations



Given that

[itex]\frac{1}{1+e^{x}}[/itex]-[itex]\frac{1}{2}[/itex] is an odd function

The Attempt at a Solution



I tried integration by parts, with both u = cos(x) and u = 1+e^x, and both only complicated it even more. I've not learned infinite series and sequences so I'm not sure that's the way.

I did try writing cos(x) as [itex]\frac{e^{ix}+e^{-ix}}{2}[/itex], but I'm not sure what to do after that. I can see that there'd be some hyperbolic stuff in here but again, I'm not sure where exactly to start.
 
Physics news on Phys.org
  • #2
Elysian said:

Homework Statement


Find the integral of

[itex]\int\frac{cos(x)}{1+e^{x}}[/itex]

Homework Equations



Given that

[itex]\frac{1}{1+e^{x}}[/itex]-[itex]\frac{1}{2}[/itex] is an odd function
I don't see how that is relevant unless you are doing a definite integral on an interval like [-a,a].

The Attempt at a Solution



I tried integration by parts, with both u = cos(x) and u = 1+e^x, and both only complicated it even more. I've not learned infinite series and sequences so I'm not sure that's the way.

I did try writing cos(x) as [itex]\frac{e^{ix}+e^{-ix}}{2}[/itex], but I'm not sure what to do after that. I can see that there'd be some hyperbolic stuff in here but again, I'm not sure where exactly to start.

I don't think there is an elementary antiderivative.
 
  • #3
LCKurtz said:
I don't see how that is relevant unless you are doing a definite integral on an interval like [-a,a].


I don't think there is an elementary antiderivative.

Oh jeez I forgot to put the interval. its from -pi/2 to pi/2. I'm really sorry about that
 
  • #4
Elysian said:
Oh jeez I forgot to put the interval. its from -pi/2 to pi/2. I'm really sorry about that

If ##f(x)## is odd what do you know about ##\int_{-a}^a f(x)\, dx##?
 
  • #5
So, what is [itex]\displaystyle
\int_{-\pi/2}^{\pi/2}\left(\frac{1}{1+e^{x}}-\frac{1}{2}\right)\cos(x)\,dx\ ?[/itex]
 
  • #6
LCKurtz said:
If ##f(x)## is odd what do you know about ##\int_{-a}^a f(x)\, dx##?

It would equal 0. So as SammyS put it, it would be [itex]\displaystyle
\int_{-\pi/2}^{\pi/2}\left(\frac{1}{1+e^{x}}-\frac{1}{2}\right)\cos(x)\,dx\ ?[/itex], where the first term would go to zero and then I'm left to evaluate the last bit which would be -[itex]\int_{-\pi/2}^{\pi/2}\frac{cos(x)}{2}[/itex]?

SammyS said:
So, what is [itex]\displaystyle
\int_{-\pi/2}^{\pi/2}\left(\frac{1}{1+e^{x}}-\frac{1}{2}\right)\cos(x)\,dx[/itex]

Is this just the integral of the right side then? So it's just -1?
 
  • #7
Elysian said:
It would equal 0. So as SammyS put it, it would be [itex]\displaystyle
\int_{-\pi/2}^{\pi/2}\left(\frac{1}{1+e^{x}}-\frac{1}{2}\right)\cos(x)\,dx\ ?[/itex], where the first term would go to zero and then I'm left to evaluate the last bit which would be -[itex]\int_{-\pi/2}^{\pi/2}\frac{cos(x)}{2}[/itex]?

No. You don't evaluate an integral in pieces like that. You have ##\frac{1}{1+e^{x}}-\frac{1}{2}## multiplied by ##\cos x##. Is ##\cos x ## even, odd, or neither? What about its product with ##\frac{1}{1+e^{x}}-\frac{1}{2}##?
 
  • #8
Elysian said:
It would equal 0. So as SammyS put it, it would be [itex]\displaystyle
\int_{-\pi/2}^{\pi/2}\left(\frac{1}{1+e^{x}}-\frac{1}{2}\right)\cos(x)\,dx\ ?[/itex], where the first term would go to zero and then I'm left to evaluate the last bit which would be -[itex]\int_{-\pi/2}^{\pi/2}\frac{cos(x)}{2}[/itex]?
Remember, the hint says that [itex]\displaystyle \frac{1}{1+e^{x}}-\frac{1}{2}\ [/itex] is odd (that entire expression).

How do you get [itex]\displaystyle \frac{1}{1+e^{x}}-\frac{1}{2}\ [/itex] from [itex]\displaystyle \frac{1}{1+e^{x}}\ ?[/itex]
 

FAQ: Efficiently Solve Tricky Integral: cos(x)/(1+e^x) with Odd Function Property

1) What is an extremely confusing integral?

An extremely confusing integral is a type of mathematical problem that involves finding the area under a function curve. These integrals can be challenging because they often involve complex equations and require advanced mathematical techniques to solve.

2) Why are extremely confusing integrals difficult to solve?

Extremely confusing integrals can be difficult to solve because they often involve complex functions that cannot be easily integrated using basic integration rules. They may also require multiple steps and advanced techniques such as substitution, integration by parts, or trigonometric identities.

3) How can I approach solving an extremely confusing integral?

The best way to approach solving an extremely confusing integral is to start by simplifying the integral as much as possible. This may involve using algebraic manipulations or trigonometric identities. Then, try to identify any patterns or relationships within the integral that can be used to simplify it further. Finally, apply the appropriate integration technique to solve the integral.

4) What are some common mistakes to avoid when solving an extremely confusing integral?

Common mistakes to avoid when solving an extremely confusing integral include forgetting to use the chain rule when integrating composite functions, misapplying integration techniques, and making errors in algebraic manipulations. It is important to double-check your work and be aware of any common pitfalls.

5) Are there any tools or resources that can help with solving extremely confusing integrals?

Yes, there are several tools and resources that can help with solving extremely confusing integrals. These include online integral calculators, textbooks on calculus and integration, and video tutorials. It can also be helpful to work with a tutor or study group to gain a better understanding of the concepts and techniques involved in solving these types of integrals.

Similar threads

Back
Top