Is this Integration of sin^2(x) Correct?

  • Context: Undergrad 
  • Thread starter Thread starter planck42
  • Start date Start date
  • Tags Tags
    Integration
Click For Summary

Discussion Overview

The discussion centers around the integration of the function sin²(x) dx, exploring various methods and identities for performing the integration. Participants examine the correctness of a complex approach and compare it with trigonometric identities.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes a complex approach to integrate sin²(x) by expressing sin(x) in terms of exponential functions.
  • Another participant suggests using the identity sin²(x) = 1/2(1 - cos(2x)) as a simpler method for integration.
  • Several participants question the correctness of the initial steps, particularly the expression for sin²(x) derived from the complex form.
  • One participant identifies a sign error in the complex approach, suggesting that this oversight affects the final result.
  • Another participant confirms the validity of the exponential representation of sin(x) and distinguishes it from hyperbolic functions.
  • There is a request for clarification on the derivation of the formula used for sin(x) in the complex approach.
  • Euler's formula is referenced as a foundational concept for the discussion on the integration method.

Areas of Agreement / Disagreement

Participants express differing views on the integration method, with some supporting the complex approach and others advocating for the trigonometric identity. There is no consensus on the best method, and the discussion remains unresolved regarding the correctness of the initial integration steps.

Contextual Notes

Participants highlight potential errors in the initial integration steps and the importance of verifying identities used in the process. The discussion reflects varying levels of familiarity with complex analysis and trigonometric identities.

Who May Find This Useful

This discussion may be useful for students and practitioners interested in integration techniques, particularly those exploring complex analysis and trigonometric identities in calculus.

planck42
Messages
82
Reaction score
0
Could somebody please check my work on the integration of [tex]sin^{2}x dx[/tex]? Thank you for your time.

First step: Complexify the function in order to make straight integration possible

[tex]\sin x=\frac{e^{ix}-e^{-ix}}{2i}[/tex]

[tex]\sin^{2}x=-\frac{1}{2}-\frac{e^{2ix}+e^{-2ix}}{4}[/tex]Second step: Integrate the complex function

[tex]-\frac{1}{4}\int{2+e^{2ix}+e^{-2ix} dx} = -\frac{1}{4}(2x+\frac{e^{2ix}}{2i}-\frac{e^{-2ix}}{2i}+C)[/tex]

[tex]\mbox{However,} \frac{e^{2ix}-e^{-2ix}}{2i} = \sin(2x), \mbox{so}[/tex]
[tex]-\frac{1}{4}(2x+\frac{e^{2ix}}{2i}-\frac{e^{-2ix}}{2i}+C) = -\frac{\frac{1}{2}\sin(2x)+x}{2}+C, \mbox{which appears to be the answer. Can it survive the derivative test?}[/tex]Third step: Take the derivative of [tex]-\frac{\frac{1}{2}\sin(2x)+x}{2}+C[/tex] and see if it equals [tex]\sin^{2}x[/tex]

[tex]\frac{d}{dx}(-\frac{\frac{1}{2}\sin(2x)+x}{2}+C)=-\frac{1}{2}-\frac{1}{2}\cos(2x)=-\frac{1}{2}(1+\cos(2x))=-\cos^{2}x \mbox{, which is the answer less one.}[/tex]

Where is the error in the above process?
 
Physics news on Phys.org
I don't think it's that complicated. I would just use the identity [itex]\sin^2x = \frac{1}{2}(1 - \cos2x)[/itex]. that's probably what I would use if I had to reduce (& integrate) any even power of sin or cos, since [itex]\cos^2x = \frac{1}{2}(1 + \cos2x)[/itex]. look at all the other trig identities on wiki:
http://en.wikipedia.org/wiki/Trig_identities
 
Last edited:
planck42 said:
Could somebody please check my work on the integration of [tex]sin^{2}x dx[/tex]? Thank you for your time.

First step: Complexify the function in order to make straight integration possible

[tex]\sin x=\frac{e^{ix}-e^{-ix}}{2i}[/tex]

[tex]\sin^{2}x=-\frac{1}{2}-\frac{e^{2ix}+e^{-2ix}}{4}[/tex]
Check this step again. Does this agree with the identity

[tex]\sin^2 x = \frac {1-\cos 2x}2[/tex]
 
planck42 said:
Could somebody please check my work on the integration of [tex]sin^{2}x dx[/tex]? Thank you for your time.

First step: Complexify the function in order to make straight integration possible

[tex]\sin x=\frac{e^{ix}-e^{-ix}}{2i}[/tex]

[tex]\sin^{2}x=-\frac{1}{2}-\frac{e^{2ix}+e^{-2ix}}{4}[/tex]
You have a sign error.
[tex]\left(\frac{e^{ix}- e^{-ix}}{2i}\right)^2= -\frac{1}{4}\left({e^{2ix}- 2+ e^{-2ix}\right)[/tex]
[tex]= \frac{1}{2}- \frac{e^{2ix}+ e^{-2ix}}{4}[/tex]


Second step: Integrate the complex function

[tex]-\frac{1}{4}\int{2+e^{2ix}+e^{-2ix} dx} = -\frac{1}{4}(2x+\frac{e^{2ix}}{2i}-\frac{e^{-2ix}}{2i}+C)[/tex]

[tex]\mbox{However,} \frac{e^{2ix}-e^{-2ix}}{2i} = \sin(2x), \mbox{so}[/tex]
[tex]-\frac{1}{4}(2x+\frac{e^{2ix}}{2i}-\frac{e^{-2ix}}{2i}+C) = -\frac{\frac{1}{2}\sin(2x)+x}{2}+C, \mbox{which appears to be the answer. Can it survive the derivative test?}[/tex]


Third step: Take the derivative of [tex]-\frac{\frac{1}{2}\sin(2x)+x}{2}+C[/tex] and see if it equals [tex]\sin^{2}x[/tex]

[tex]\frac{d}{dx}(-\frac{\frac{1}{2}\sin(2x)+x}{2}+C)=-\frac{1}{2}-\frac{1}{2}\cos(2x)=-\frac{1}{2}(1+\cos(2x))=-\cos^{2}x \mbox{, which is the answer less one.}[/tex]

Where is the error in the above process?
 
HallsofIvy said:
You have a sign error.
[tex]\left(\frac{e^{ix}- e^{-ix}}{2i}\right)^2= -\frac{1}{4}\left({e^{2ix}- 2+ e^{-2ix}\right)[/tex]
[tex]= \frac{1}{2}- \frac{e^{2ix}+ e^{-2ix}}{4}[/tex]

Wow. What a simple error to overlook. So the final answer is
[tex]-\frac{1}{4}\sin(2x)+\frac{1}{2}x+C[/tex] which does differentiate to [tex]\sin^{2}x[/tex]

Thank you.
 
the expansion for sin(x) which you have used is for hyperbolic function of sin(x) .
hyperbolic function of sin(x) is sin(hx).
 
No, he has used the correct formula:
[tex]sin(x)= \frac{e^{ix}- e^{-ix}}{2i}[/tex]

The corresponding formula for sinh(x) is
[tex]sinh(x)= \frac{e^x- e^{-x}}{2}[/tex].
 
can u explain the formula from where it is derived
 
Euler's formula,

[tex]e^{ix} = \cos x + i\sin x[/tex]
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K