Solve Indefinite Integral: 3 Ways

  • Context: MHB 
  • Thread starter Thread starter lfdahl
  • Start date Start date
  • Tags Tags
    Challenge Integral
Click For Summary

Discussion Overview

The thread discusses the indefinite integral \[\int \frac{dx}{\cos x+\sin x}\] with participants exploring different methods to solve it. The scope includes mathematical reasoning and problem-solving approaches.

Discussion Character

  • Mathematical reasoning, Debate/contested

Main Points Raised

  • One participant suggests using an online tool or integrator to check results, but another emphasizes the challenge of solving the integral without such means.
  • Another participant expresses appreciation for contributions but notes that the correct answer did not receive much acknowledgment.
  • A later post mentions a specific solution method involving the tangent half-angle, indicating an alternative approach to the integral.

Areas of Agreement / Disagreement

The discussion does not reach a consensus on the methods to solve the integral, with multiple approaches and some participants expressing differing views on the use of external tools.

Contextual Notes

Some participants appear to rely on calculators or tables, which may affect the nature of the discussion regarding the challenge of solving the integral independently.

lfdahl
Gold Member
MHB
Messages
747
Reaction score
0
Solve the indefinite integral

\[\int \frac{dx}{\cos x+\sin x}\]

- in three different ways.
 
Physics news on Phys.org
I did it in W|A, my calculator, and I looked it up in a set of tables. Does that count? (Nerd)

-Dan
 
topsquark said:
I did it in W|A, my calculator, and I looked it up in a set of tables. Does that count? (Nerd)

-Dan

Hi, topsquark/Dan!

Thankyou for your input.

You can use an online table or integrator to check your results, but the challenge is to solve the integral in three different ways without these means :cool:
 
Last edited:
lfdahl said:
Solve the indefinite integral

\[\int \frac{dx}{\cos x+\sin x}\]

- in three different ways.

1)

$$\int\frac{1}{\sin(x)+\cos(x)}\,dx=\int\frac{1}{\sqrt2\sin\left(x+\frac{\pi}{4}\right)}\,dx$$

$$=-\frac{1}{\sqrt2}\ln\left|\cot\left(x+\frac{\pi}{4}\right)+\csc\left(x+\frac{\pi}{4}\right)\right|+C$$

2) Unfortunately, this method of solution introduces a zero where the original integrand is defined. As an indefinite integral it is correct in the sense that its derivative is equivalent to the integrand, under certain circumstances.

$$\int\frac{1}{\cos(x)+\sin(x)}\,dx=\int\frac{\cos(x)-\sin(x)}{\cos(2x)}\,dx$$

$$=\int\frac{\cos(x)}{1-2\sin^2(x)}\,dx+\int\frac{\sin(x)}{1-2\cos^2(x)}\,dx$$

$$=\frac{1}{2\sqrt2}\left(\ln\left|1+\sqrt2\sin(x)\right|-\ln\left|1-\sqrt2\sin(x)\right|\right)$$

$$+\frac{1}{2\sqrt2}\left(\ln\left|1-\sqrt2\cos(x)\right|-\ln\left|1+\sqrt2\cos(x)\right|\right)+C$$

3)

$$\int\frac{1}{\sin(x)+\cos(x)}\,dx=\int\frac{1}{\frac{e^{ix}+e^{-ix}}{2}+\frac{e^{ix}-e^{-ix}}{2i}}\,dx$$

$$=\int\frac{2i}{(i+1)e^{ix}+(i-1)e^{-ix}}\,dx=\int\frac{2ie^{ix}}{(i+1)e^{2ix}+(i-1)}\,dx$$

$$\sqrt i\tan w=e^{ix},\quad\sqrt i\sec^2w\,dw=ie^{ix}\,dx$$

$$\sqrt2i\int\,dw=\sqrt2i w+C=-\sqrt2i\arctan\left(\frac{e^{ix}}{\sqrt i}\right)+C$$

$$=-\sqrt2i\arctan\left(e^{i(x-\pi/4)}\right)+C$$

(we need a negative to account for $i^2=-1$).
 
greg1313 said:
1)

$$\int\frac{1}{\sin(x)+\cos(x)}\,dx=\int\frac{1}{\sqrt2\sin\left(x+\frac{\pi}{4}\right)}\,dx$$

$$=-\frac{1}{\sqrt2}\ln\left|\cot\left(x+\frac{\pi}{4}\right)+\csc\left(x+\frac{\pi}{4}\right)\right|+C$$

2) Unfortunately, this method of solution introduces a zero where the original integrand is defined. As an indefinite integral it is correct in the sense that its derivative is equivalent to the integrand, under certain circumstances.

$$\int\frac{1}{\cos(x)+\sin(x)}\,dx=\int\frac{\cos(x)-\sin(x)}{\cos(2x)}\,dx$$

$$=\int\frac{\cos(x)}{1-2\sin^2(x)}\,dx+\int\frac{\sin(x)}{1-2\cos^2(x)}\,dx$$

$$=\frac{1}{2\sqrt2}\left(\ln\left|1+\sqrt2\sin(x)\right|-\ln\left|1-\sqrt2\sin(x)\right|\right)$$

$$+\frac{1}{2\sqrt2}\left(\ln\left|1-\sqrt2\cos(x)\right|-\ln\left|1+\sqrt2\cos(x)\right|\right)+C$$

3)

$$\int\frac{1}{\sin(x)+\cos(x)}\,dx=\int\frac{1}{\frac{e^{ix}+e^{-ix}}{2}+\frac{e^{ix}-e^{-ix}}{2i}}\,dx$$

$$=\int\frac{2i}{(i+1)e^{ix}+(i-1)e^{-ix}}\,dx=\int\frac{2ie^{ix}}{(i+1)e^{2ix}+(i-1)}\,dx$$

$$\sqrt i\tan w=e^{ix},\quad\sqrt i\sec^2w\,dw=ie^{ix}\,dx$$

$$\sqrt2i\int\,dw=\sqrt2i w+C=-\sqrt2i\arctan\left(\frac{e^{ix}}{\sqrt i}\right)+C$$

$$=-\sqrt2i\arctan\left(e^{i(x-\pi/4)}\right)+C$$

(we need a negative to account for $i^2=-1$).
Well done, greg1313! Thankyou for your participation!

It was your first two solutions, I had in mind. My 3rd solution is a tangent half angle substitution (Weierstrass)
 
The moment when the correct answer doesn't get most of the thanks.
 
(Giggle)
 
In case, anyone is interested in the tanget half angle solution, here it is:

$t = \tan \frac{x}{2}$: \[\int \frac{1}{\cos x + \sin x}dx = \int \frac{1}{\left ( \frac{1-t^2}{1+t^2}+\frac{2t}{1+t^2} \right )}\frac{2dt}{1+t^2}= \int \frac{-2dt}{t^2-2t-1}=\int \frac{-2dt}{(t+\sqrt{2}-1)(t-\sqrt{2}-1)}= \\\\\frac{1}{\sqrt{2}}\int \left ( \frac{1}{t-1+\sqrt{2}}-\frac{1}{t-1-\sqrt{2}} \right )dt =\frac{1}{\sqrt{2}}\left ( \ln \left ( \left | t-1+\sqrt{2} \right | \right )-\ln \left ( \left | t-1-\sqrt{2} \right | \right ) \right )+C \\\\= \frac{1}{\sqrt{2}}\left ( \ln \left ( \left | \tan \frac{x}{2}-1+\sqrt{2} \right | \right )-\ln \left ( \left | \tan \frac{x}{2}-1-\sqrt{2} \right | \right ) \right )+C \\\\ = \frac{1}{\sqrt{2}} \ln \left ( \left | \frac{\tan \frac{x}{2}-1+\sqrt{2}}{\tan \frac{x}{2}-1-\sqrt{2}} \right | \right ) +C\]
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K