Closed form integral of abs(cos(x))

  • Context: Undergrad 
  • Thread starter Thread starter zynga
  • Start date Start date
  • Tags Tags
    Closed Form Integral
Click For Summary
SUMMARY

The closed form solution for the integral of the absolute value of cosine, ∫|cos(x)|dx, is given by the expression sin(x - π*floor(x/π + 1/2)) + 2*floor(x/π + 1/2). This solution is confirmed to work for definite integrals, such as from 0 to 3π/4 or π. For indefinite integrals, the expression can be simplified to ∫|cos(x)|dx = sin(x) sgn(cos(x)) + C. Standard integration methods do not yield this closed form, indicating a need for creative approaches in solving such integrals.

PREREQUISITES
  • Understanding of integral calculus
  • Familiarity with the properties of the cosine function
  • Knowledge of the floor function and its applications
  • Basic concepts of piecewise functions
NEXT STEPS
  • Study the properties of the floor function in mathematical analysis
  • Learn about piecewise integration techniques
  • Explore advanced integration methods beyond standard techniques
  • Investigate the applications of absolute value functions in calculus
USEFUL FOR

Mathematicians, calculus students, and anyone interested in advanced integration techniques and closed form solutions in mathematical analysis.

zynga
Messages
1
Reaction score
0
Hi everyone.

Recently, I came across a closed form solution to ∫|cos(x)|dx as
sin(x-∏*floor(x/∏+1/2)) + 2*floor(x/∏+1/2)

I have no idea how to reach this solution but checking this for definite integral from 0 to 3∏/4 or ∏ seems to work. Using |cos(x)| as cos(x)*sgn(cos(x)) doesn't help in reaching at the solution. Does someone know how to get this closed form?

Thanks.
 
Physics news on Phys.org
zynga said:
Hi everyone.

Recently, I came across a closed form solution to ∫|cos(x)|dx as
sin(x-∏*floor(x/∏+1/2)) + 2*floor(x/∏+1/2)
That is correct as a definite integral,
<br /> \int_0^x \lvert \cos t \rvert \, dt =<br /> \sin\left(x - \pi \left\lfloor \frac x \pi + \frac 1 2\right\rfloor \right)<br /> + 2\left\lfloor \frac x \pi + \frac 1 2\right\rfloor<br />

As an indefinite integral it's better to write \int \lvert\cos x\rvert\,dx = \sin x \operatorname{sgn}(\cos x)+C

I have no idea how to reach this solution but checking this for definite integral from 0 to 3∏/4 or ∏ seems to work. Using |cos(x)| as cos(x)*sgn(cos(x)) doesn't help in reaching at the solution. Does someone know how to get this closed form?
How to get that closed form? By being creative. You're not going to find any of the standard integration methods that will yield that nice closed form solution.
 

Similar threads

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