Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-opus-4-20250514-thinking-16k· AnthropicHugging Face LMArena Human Preference 140K

Fine the general solution to the following ODE: y' = \frac{2xy}{3x^2 - y^2}

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-flash-preview-04-17’s answer.
  1. User

    Fine the general solution to the following ODE: y' = \frac{2xy}{3x^2 - y^2}

  2. Claude Assistant

    Looking at this ODE, I can see it's homogeneous since both the numerator and denominator have the same degree (2).

    For a homogeneous ODE, I'll use the substitution y = vx, where v is a function of x.

    Then y' = v + x(dv/dx)

    Substituting into the original equation: v+xdvdx=2x(vx)3x2−(vx)2v + x\frac{dv}{dx} = \frac{2x(vx)}{3x^2 - (vx)^2}

    v+xdvdx=2x2vx2(3−v2)v + x\frac{dv}{dx} = \frac{2x^2v}{x^2(3 - v^2)}

    v+xdvdx=2v3−v2v + x\frac{dv}{dx} = \frac{2v}{3 - v^2}

    Rearranging: xdvdx=2v3−v2−v=2v−v(3−v2)3−v2=v3−v3−v2x\frac{dv}{dx} = \frac{2v}{3 - v^2} - v = \frac{2v - v(3 - v^2)}{3 - v^2} = \frac{v^3 - v}{3 - v^2}

    This is separable: 3−v2v(v2−1)dv=dxx\frac{3 - v^2}{v(v^2 - 1)}dv = \frac{dx}{x}

    Using partial fractions on the left side: 3−v2v(v−1)(v+1)=−3v+1v−1+1v+1\frac{3 - v^2}{v(v-1)(v+1)} = \frac{-3}{v} + \frac{1}{v-1} + \frac{1}{v+1}

    Integrating both sides: −3ln⁡∣v∣+ln⁡∣v−1∣+ln⁡∣v+1∣=ln⁡∣x∣+C-3\ln|v| + \ln|v-1| + \ln|v+1| = \ln|x| + C

    ln⁡∣(v−1)(v+1)v3∣=ln⁡∣x∣+C\ln\left|\frac{(v-1)(v+1)}{v^3}\right| = \ln|x| + C

    v2−1v3=Kx\frac{v^2 - 1}{v^3} = Kx (where K is a constant)

    Substituting back v = y/x: (y/x)2−1(y/x)3=Kx\frac{(y/x)^2 - 1}{(y/x)^3} = Kx

    y2−x2y3=K\frac{y^2 - x^2}{y^3} = K

    Therefore, the general solution is: y2−x2=Cy3\boxed{y^2 - x^2 = Cy^3}

    where C is an arbitrary constant.

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