I need to take the integral of the following function over one cycle.(adsbygoogle = window.adsbygoogle || []).push({});

[itex]y(t) = sin(wt)cos(wt-p)[/itex]

p is a phase angle that exist from 0 to pi. w is a frequency.

This would be pretty straightforward, but I need to take the integral only of the portions of the function that are greater than zero.

I need to do this for an efficiency analysis, where the negative portion of the cycle is waste energy and don't contribute to average power. I need an symbolic expression.

The zero crossings are at t1 = pi/w and t2 = pi/(2w) + p/w which I had been using as limits of integration.

[itex]\int ^{t_2}_{0} y(t) dt - \int ^{t_2}_{t_1} y(t) dt[/itex]

The resulting expression is correct for values of for 0<=p <= pi/2. Above p = pi/2 though, the expression does not give me the result I need, because for p> pi/2, t2<t1 and the result of

[itex] \int ^{t_2}_{t_1} y(t) dt[/itex]

changes sign.

I am not sure how to get around this. Any help would be...helpful. Thanks!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Integration of a trig function > 0

Loading...

Similar Threads - Integration trig function | Date |
---|---|

I Integrate 1/(y+cos(x))^2 dx | Apr 23, 2016 |

'Wheel-like' Mathematics (Modulating Trig Functions?) | May 17, 2015 |

An integral with exponential, and trig functions within trig functions | May 28, 2013 |

Trig function appears awkward to integrate | Feb 17, 2013 |

Difficult Integral of trig and sqrt functions | Nov 27, 2011 |

**Physics Forums - The Fusion of Science and Community**