5
$\begingroup$

Evaluate $$\int \frac {dx}{x^2-x+1}$$

Method 1

$$\int \frac {dx}{x^2-x+1}=\frac {4}{3}\int \frac {dx}{1+\frac {4(x-1/2)^2}{3}}$$

Put $u=x-1/2$

Hence $$\frac 43\int \frac {dx}{1+\frac {4(x-1/2)^2}{3}} =\frac 43\int \frac {du}{1+\frac {4u^2}{3}}$$

And then I could use $$\int \frac {dx}{1+x^2}=\arctan x$$

Method 2

Let $$I=\int \frac {dx}{x^2-x+1}$$

Put $x=\frac 1y$

Hence $dx=\frac {-dy}{y^2}$

Hence $$I=\int \frac {\frac {-dy}{y^2}}{\frac {1}{y^2}-\frac 1y+1}=-\int \frac {dy}{y^2-y+1}=-\int \frac {dx}{x^2-x+1}=-I$$

Hence $$I=-I\Rightarrow I=0$$

Why am I getting two different answers? I guess i am missing some link in method 2.

$\endgroup$

1 Answer 1

3
$\begingroup$

The is not a definite integral and $y$ is not a dummy variable.

$$-\int \frac {dy}{y^2-y+1}=-\int \frac {dx}{x^2-x+1}$$

is incorrect.


Indeed, we have $\displaystyle I=\frac{2}{\sqrt{3}}\tan^{-1}\left(\frac{2x-1}{\sqrt{3}}\right)+C$.

$\displaystyle I=-\int\frac{dy}{y^2-y+1}$ implies that $\displaystyle \int\frac{dx}{x^2-x+1}+\int\frac{dy}{y^2-y+1}$ is a constant (not necessarily zero).

As $\displaystyle y=\frac{1}{x}$, it means that $\displaystyle \frac{2}{\sqrt{3}}\tan^{-1}\left(\frac{2x-1}{\sqrt{3}}\right)+\frac{2}{\sqrt{3}}\tan^{-1}\left(\frac{\frac{2}{x}-1}{\sqrt{3}}\right)$ is a constant.

Note: This constant is different when $x>0$ and $x<0$.

$\endgroup$
9
  • $\begingroup$ It seems that OP says $f(x)=-f(x)$, so $f(x)\equiv0$. $\endgroup$ Commented Apr 13, 2018 at 3:29
  • $\begingroup$ @PrzemysławScherwentke But it is $f(x)=-f(y)$, not $f(x)=-f(x)$. $\endgroup$ Commented Apr 13, 2018 at 3:30
  • $\begingroup$ I know. I am expressing only, that it seems that OP didn't think about a definite integral. $\endgroup$ Commented Apr 13, 2018 at 3:37
  • 1
    $\begingroup$ @Manthanein It is correct that when $y=\frac{1}{x}$, $I=-\int\frac{dy}{y^2-y+1}$. But $\int\frac{dy}{y^2-y+1}$ is not equal to $\int\frac{dx}{x^2-x+1}$. $\endgroup$ Commented Apr 13, 2018 at 3:49
  • 2
    $\begingroup$ @pranavB23 SInce we already have $y=\frac{1}{x}$, we cannot redefine $y$ as $x$. Otherwise, $x=y=\frac{1}{x}$. $\int_a^b f(x)dx$ and $\int_a^b f(y)fy$ are exaclty the same, as both of them do not actually depend on $x$ or $y$. However, $\int f(x)dx$ and $\int f(y)dy$ are different, just as $x^2$ is different from $y^2$. $\endgroup$ Commented Apr 13, 2018 at 5:50

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.