Skip to content
The Chat Archive
gpt-4.1-mini-2025-04-14· OpenAI LMArena Human Preference 140K

计算积分 \( S = \int_{-\infty}^{\infty} \frac{1}{1 + x^2 + x^4} dx \) ,不允许使用留数定理

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-sonnet-4-20250514’s answer.
  1. User

    计算积分 ( S = \int_{-\infty}^{\infty} \frac{1}{1 + x^2 + x^4} dx ) ,不允许使用留数定理

  2. Assistant

    我们要求积分 [ S = \int_{-\infty}^{\infty} \frac{1}{1 + x^2 + x^4} , dx, ] 且不允许使用留数定理。


    第一步:观察被积函数

    被积函数是 [ f(x) = \frac{1}{1 + x^2 + x^4}. ]

    分母是四次多项式,且对称(偶函数),因为 [ 1 + (-x)^2 + (-x)^4 = 1 + x^2 + x^4. ] 因此,(f(x)) 是偶函数,有 [ S = 2 \int_0^\infty \frac{1}{1 + x^2 + x^4} , dx. ]


    第二步:分母因式分解

    考虑分母 [ 1 + x^2 + x^4. ]

    令 (y = x^2),则分母变为 [ 1 + y + y^2. ]

    这是关于 (y) 的二次多项式。我们尝试因式分解: [ y^2 + y + 1 = 0. ]

    判别式 [ \Delta = 1^2 - 4 \cdot 1 \cdot 1 = 1 - 4 = -3 < 0, ] 无实根,说明 (1 + x^2 + x^4) 在实数范围内无实因子。

    但是我们可以尝试写成两个二次多项式的乘积: [ 1 + x^2 + x^4 = (x^2 + a x + 1)(x^2 + b x + 1). ]

    展开右边: [ (x^2 + a x + 1)(x^2 + b x + 1) = x^4 + (a + b) x^3 + (ab + 2) x^2 + (a + b) x + 1. ]

    与左边比较系数:

    • (x^4) 系数:1,匹配。
    • (x^3) 系数:0,得 (a + b = 0)。
    • (x^2) 系数:1,得 (ab + 2 = 1 \Rightarrow ab = -1)。
    • (x) 系数:0,得 (a + b = 0)(同上)。
    • 常数项:1,匹配。

    由 (a + b = 0),得 (b = -a),代入 (ab = -1): [ a \cdot (-a) = -1 \implies -a^2 = -1 \implies a^2 = 1 \implies a = \pm 1. ]

    取 (a = 1),则 (b = -1),所以 [ 1 + x^2 + x^4 = (x^2 + x + 1)(x^2 - x + 1). ]


    第三步:部分分式分解

    我们写 [ \frac{1}{1 + x^2 + x^4} = \frac{1}{(x^2 + x + 1)(x^2 - x + 1)}. ]

    设 [ \frac{1}{(x^2 + x + 1)(x^2 - x + 1)} = \frac{A x + B}{x^2 + x + 1} + \frac{C x + D}{x^2 - x + 1}. ]

    两边同乘分母: [ 1 = (A x + B)(x^2 - x + 1) + (C x + D)(x^2 + x + 1). ]

    展开: [ (A x + B)(x^2 - x + 1) = A x^3 - A x^2 + A x + B x^2 - B x + B, ] [ (C x + D)(x^2 + x + 1) = C x^3 + C x^2 + C x + D x^2 + D x + D. ]

    合并: [ 1 = (A + C) x^3 + (-A + B + C + D) x^2 + (A - B + C + D) x + (B + D). ]

    比较各次幂系数:

    • (x^3) 项:(A + C = 0),
    • (x^2) 项:(-A + B + C + D = 0),
    • (x) 项:(A - B + C + D = 0),
    • 常数项:(B + D = 1).

    由 (A + C = 0),得 (C = -A)。

    代入第二个方程: [ -A + B + (-A) + D = -2A + B + D = 0. ]

    代入第三个方程: [ A - B - A + D = -B + D = 0 \implies D = B. ]

    代入第四个方程: [ B + D = B + B = 2B = 1 \implies B = \frac{1}{2}, \quad D = \frac{1}{2}. ]

    代入第二个方程: [ -2A + B + D = -2A + \frac{1}{2} + \frac{1}{2} = -2A + 1 = 0 \implies A = \frac{1}{2}. ]

    由 (C = -A = -\frac{1}{2})。


    第四步:写出分式

    所以 [ \frac{1}{1 + x^2 + x^4} = \frac{\frac{1}{2} x + \frac{1}{2}}{x^2 + x + 1} + \frac{-\frac{1}{2} x + \frac{1}{2}}{x^2 - x + 1}. ]


    第五步:积分计算

    积分变为 [ S = 2 \int_0^\infty \frac{1}{1 + x^2 + x^4} dx = 2 \int_0^\infty \left( \frac{\frac{1}{2} x + \frac{1}{2}}{x^2 + x + 1} + \frac{-\frac{1}{2} x + \frac{1}{2}}{x^2 - x + 1} \right) dx. ]

    整理: [ S = \int_0^\infty \frac{x + 1}{x^2 + x + 1} dx + \int_0^\infty \frac{-x + 1}{x^2 - x + 1} dx. ]


    第六步:分别计算两个积分

    积分1:

    [ I_1 = \int_0^\infty \frac{x + 1}{x^2 + x + 1} dx. ]

    分母配方: [ x^2 + x + 1 = \left(x + \frac{1}{2}\right)^2 + \frac{3}{4}. ]

    分子写成 [ x + 1 = \left(x + \frac{1}{2}\right) + \frac{1}{2}. ]

    所以 [ I_1 = \int_0^\infty \frac{\left(x + \frac{1}{2}\right) + \frac{1}{2}}{\left(x + \frac{1}{2}\right)^2 + \frac{3}{4}} dx = \int_0^\infty \frac{x + \frac{1}{2}}{\left(x + \frac{1}{2}\right)^2 + \frac{3}{4}} dx + \int_0^\infty \frac{\frac{1}{2}}{\left(x + \frac{1}{2}\right)^2 + \frac{3}{4}} dx. ]

    令 [ t = x + \frac{1}{2}, \quad dx = dt, ] 积分区间变为 [ x=0 \to t = \frac{1}{2}, \quad x \to \infty \to t \to \infty. ]

    于是 [ I_1 = \int_{\frac{1}{2}}^\infty \frac{t}{t^2 + \frac{3}{4}} dt + \frac{1}{2} \int_{\frac{1}{2}}^\infty \frac{1}{t^2 + \frac{3}{4}} dt. ]

    第一个积分: [ \int \frac{t}{t^2 + a^2} dt = \frac{1}{2} \ln(t^2 + a^2), ] 其中 (a^2 = \frac{3}{4}).

    第二个积分: [ \int \frac{1}{t^2 + a^2} dt = \frac{1}{a} \arctan \frac{t}{a}. ]

    计算: [ I_1 = \left. \frac{1}{2} \ln\left(t^2 + \frac{3}{4}\right) \right|{\frac{1}{2}}^\infty + \frac{1}{2} \cdot \frac{1}{\sqrt{3}/2} \left. \arctan \frac{2t}{\sqrt{3}} \right|{\frac{1}{2}}^\infty. ]

    注意: [ \lim_{t \to \infty} \ln\left(t^2 + \frac{3}{4}\right) = +\infty, ] 积分发散?这说明我们需要重新考虑。


    第七步:重新考虑积分区间

    原积分是从0到无穷大,且被积函数是正的且有界,应该收敛。

    问题出在拆分后两个积分单独看可能发散,但它们的和收敛。

    我们尝试合并积分,或者换个方法。


    第八步:换变量法

    考虑原积分 [ S = \int_{-\infty}^\infty \frac{1}{1 + x^2 + x^4} dx. ]

    令 [ x - \frac{1}{x} = t, ] 注意 (x \neq 0),且当 (x \to \pm \infty), (t \to \pm \infty)。

    计算 (1 + x^2 + x^4):

    [ 1 + x^2 + x^4 = x^4 + x^2 + 1. ]

    观察 [ x^2 + \frac{1}{x^2} = (x - \frac{1}{x})^2 + 2 = t^2 + 2. ]

    因此 [ 1 + x^2 + x^4 = x^4 + x^2 + 1 = x^4 + x^2 + 1 = x^4 + x^2 + 1. ]

    写成 [ x^4 + x^2 + 1 = x^4 + x^2 + 1 = (x^2)^2 + x^2 + 1. ]

    用 (y = x^2), [ 1 + y + y^2 = y^2 + y + 1. ]

    我们知道 [ y + \frac{1}{y} = t^2 + 2, ] 因为 [ t = x - \frac{1}{x} \implies t^2 = x^2 - 2 + \frac{1}{x^2} \implies x^2 + \frac{1}{x^2} = t^2 + 2. ]

    所以 [ y + \frac{1}{y} = t^2 + 2. ]

    因此 [ y^2 + y + 1 = y^2 + y + 1 = y^2 + y + 1. ]

    但这条路似乎不太简洁。


    第九步:换用三角代换

    令 [ x^2 = t, ] 则 [ S = 2 \int_0^\infty \frac{1}{1 + x^2 + x^4} dx = 2 \int_0^\infty \frac{1}{1 + t + t^2} \frac{dx}{dt} dt. ]

    注意 [ x = \sqrt{t}, \quad dx = \frac{1}{2\sqrt{t}} dt, ] 所以 [ S = 2 \int_0^\infty \frac{1}{1 + t + t^2} \cdot \frac{1}{2 \sqrt{t}} dt = \int_0^\infty \frac{1}{\sqrt{t}(1 + t + t^2)} dt. ]

    令 [ t = u^2, \quad dt = 2u du, ] 则 [ S = \int_0^\infty \frac{1}{u (1 + u^2 + u^4)} \cdot 2u du = 2 \int_0^\infty \frac{1}{1 + u^2 + u^4} du. ]

    这和原积分相同,说明换变量没有简化。


    第十步:用三角代换 (x^2 = \tan \theta)

    令 [ x^2 = \tan \theta, \quad \theta \in [0, \frac{\pi}{2}). ]

    则 [ dx = \frac{1}{2 \sqrt{\tan \theta}} \sec^2 \theta d\theta. ]

    分母: [ 1 + x^2 + x^4 = 1 + \tan \theta + \tan^2 \theta. ]

    利用三角恒等式: [ 1 + \tan^2 \theta = \sec^2 \theta, ] 所以 [ 1 + \tan \theta + \tan^2 \theta = \tan \theta + \sec^2 \theta. ]

    积分变为 [ S = 2 \int_0^\infty \frac{1}{1 + x^2 + x^4} dx = 2 \int_0^{\pi/2} \frac{1}{\tan \theta + \sec^2 \theta} \cdot \frac{1}{2 \sqrt{\tan \theta}} \sec^2 \theta d\theta. ]

    化简: [ S = \int_0^{\pi/2} \frac{\sec^2 \theta}{\sqrt{\tan \theta} (\tan \theta + \sec^2 \theta)} d\theta. ]


    第十一步:化简被积函数

    写成 [ \frac{\sec^2 \theta}{\sqrt{\tan \theta} (\tan \theta + \sec^2 \theta)} = \frac{\sec^2 \theta}{\sqrt{\tan \theta} \tan \theta + \sqrt{\tan \theta} \sec^2 \theta}. ]

    分子分母同时除以 (\sec^2 \theta): [ = \frac{1}{\sqrt{\tan \theta} \tan \theta / \sec^2 \theta + \sqrt{\tan \theta}}. ]

    注意 [ \frac{\tan \theta}{\sec^2 \theta} = \frac{\sin \theta / \cos \theta}{1 / \cos^2 \theta} = \sin \theta \cos \theta. ]

    所以 [ = \frac{1}{\sqrt{\tan \theta} \sin \theta \cos \theta + \sqrt{\tan \theta}} = \frac{1}{\sqrt{\tan \theta} (1 + \sin \theta \cos \theta)}. ]


    第十二步:令 (u = \sqrt{\tan \theta})

    [ u = \sqrt{\tan \theta} \implies u^2 = \tan \theta. ]

    [ \theta = \arctan u^2, \quad d\theta = \frac{2u}{1 + u^4} du. ]

    积分变为 [ S = \int_0^{\pi/2} \frac{1}{u (1 + \sin \theta \cos \theta)} d\theta = \int_0^\infty \frac{1}{u (1 + \sin \theta \cos \theta)} \cdot \frac{2u}{1 + u^4} du = \int_0^\infty \frac{2}{(1 + u^4)(1 + \sin \theta \cos \theta)} du. ]

    但 (\sin \theta) 和 (\cos \theta) 需要用 (u) 表达,比较复杂。


    第十三步:总结

    由于前面部分分式分解已经得到 [ S = \int_{-\infty}^\infty \frac{1}{(x^2 + x + 1)(x^2 - x + 1)} dx = \int_{-\infty}^\infty \left( \frac{\frac{1}{2} x + \frac{1}{2}}{x^2 + x + 1} + \frac{-\frac{1}{2} x + \frac{1}{2}}{x^2 - x + 1} \right) dx. ]

    由于被积函数是偶函数,且两个部分的积分都收敛,我们可以分别计算:


    第十四步:计算

    [ I_1 = \int_{-\infty}^\infty \frac{\frac{1}{2} x + \frac{1}{2}}{x^2 + x + 1} dx, \quad I_2 = \int_{-\infty}^\infty \frac{-\frac{1}{2} x + \frac{1}{2}}{x^2 - x + 1} dx. ]


    计算 (I_1)

    配方: [ x^2 + x + 1 = \left(x + \frac{1}{2}\right)^2 + \frac{3}{4}. ]

    令 [ u = x + \frac{1}{2}, \quad dx = du, ] 积分区间不变。

    分子: [ \frac{1}{2} x + \frac{1}{2} = \frac{1}{2} \left(x + 1\right) = \frac{1}{2} \left(u + \frac{1}{2}\right). ]

    所以 [ I_1 = \int_{-\infty}^\infty \frac{\frac{1}{2} u + \frac{1}{4}}{u^2 + \frac{3}{4}} du = \frac{1}{2} \int_{-\infty}^\infty \frac{u}{u^2 + \frac{3}{4}} du + \frac{1}{4} \int_{-\infty}^\infty \frac{1}{u^2 + \frac{3}{4}} du. ]

    第一个积分是奇函数在对称区间积分,结果为0。

    第二个积分是标准的 [ \int_{-\infty}^\infty \frac{1}{x^2 + a^2} dx = \frac{\pi}{a}. ]

    这里 (a = \sqrt{3}/2),所以 [ I_1 = \frac{1}{4} \cdot \frac{\pi}{\sqrt{3}/2} = \frac{1}{4} \cdot \frac{2\pi}{\sqrt{3}} = \frac{\pi}{2 \sqrt{3}}. ]


    计算 (I_2)

    同理, [ x^2 - x + 1 = \left(x - \frac{1}{2}\right)^2 + \frac{3}{4}. ]

    令 [ v = x - \frac{1}{2}, \quad dx = dv, ] 积分区间不变。

    分子: [ -\frac{1}{2} x + \frac{1}{2} = -\frac{1}{2} \left(v + \frac{1}{2}\right) + \frac{1}{2} = -\frac{1}{2} v - \frac{1}{4} + \frac{1}{2} = -\frac{1}{2} v + \frac{1}{4}. ]

    所以 [ I_2 = \int_{-\infty}^\infty \frac{-\frac{1}{2} v + \frac{1}{4}}{v^2 + \frac{3}{4}} dv = -\frac{1}{2} \int_{-\infty}^\infty \frac{v}{v^2 + \frac{3}{4}} dv + \frac{1}{4} \int_{-\infty}^\infty \frac{1}{v^2 + \frac{3}{4}} dv. ]

    第一个积分为0,第二个积分同上: [ I_2 = \frac{1}{4} \cdot \frac{2\pi}{\sqrt{3}} = \frac{\pi}{2 \sqrt{3}}. ]


    第十五步:最终结果

    [ S = I_1 + I_2 = \frac{\pi}{2 \sqrt{3}} + \frac{\pi}{2 \sqrt{3}} = \frac{\pi}{\sqrt{3}}. ]


    答案:

    [ \boxed{ \int_{-\infty}^\infty \frac{1}{1 + x^2 + x^4} dx = \frac{\pi}{\sqrt{3}}. } ]


    备注:

    本解法通过因式分解和部分分式分解,结合对称性和标准积分公式,避免了使用留数定理。

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.