Skip to content
TheChatArchiveThe Chat Archive
Geminigemini-2.5-flash-preview-04-17· GoogleHugging 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 Claudeclaude-opus-4-20250514-thinking-16k’s answer.
  1. User

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

  2. Gemini Assistant

    The given differential equation is y′=2xy3x2−y2y' = \frac{2xy}{3x^2 - y^2}. This is a first-order homogeneous differential equation, since f(tx,ty)=2(tx)(ty)3(tx)2−(ty)2=2t2xy3t2x2−t2y2=t2(2xy)t2(3x2−y2)=2xy3x2−y2=f(x,y)f(tx, ty) = \frac{2(tx)(ty)}{3(tx)^2 - (ty)^2} = \frac{2t^2xy}{3t^2x^2 - t^2y^2} = \frac{t^2(2xy)}{t^2(3x^2 - y^2)} = \frac{2xy}{3x^2 - y^2} = f(x,y).

    We use the substitution y=vxy=vx. Then y′=v′x+vy' = v'x + v. Substituting these into the ODE: v′x+v=2x(vx)3x2−(vx)2v'x + v = \frac{2x(vx)}{3x^2 - (vx)^2} v′x+v=2vx23x2−v2x2v'x + v = \frac{2vx^2}{3x^2 - v^2x^2} v′x+v=2vx2x2(3−v2)v'x + v = \frac{2vx^2}{x^2(3 - v^2)} v′x+v=2v3−v2v'x + v = \frac{2v}{3 - v^2} (for x≠0x \neq 0)

    Now, separate the variables vv and xx: v′x=2v3−v2−vv'x = \frac{2v}{3 - v^2} - v v′x=2v−v(3−v2)3−v2v'x = \frac{2v - v(3 - v^2)}{3 - v^2} v′x=2v−3v+v33−v2v'x = \frac{2v - 3v + v^3}{3 - v^2} v′x=v3−v3−v2v'x = \frac{v^3 - v}{3 - v^2} dvdxx=v(v2−1)3−v2\frac{dv}{dx} x = \frac{v(v^2 - 1)}{3 - v^2}

    Separate variables vv and xx, assuming v(v2−1)≠0v(v^2-1) \neq 0 and 3−v2≠03-v^2 \neq 0: 3−v2v(v2−1)dv=1xdx\frac{3 - v^2}{v(v^2 - 1)} dv = \frac{1}{x} dx

    We integrate both sides. The right side is ∫1xdx=ln⁡∣x∣+C1\int \frac{1}{x} dx = \ln|x| + C_1. For the left side, we use partial fraction decomposition on 3−v2v(v2−1)=3−v2v(v−1)(v+1)\frac{3 - v^2}{v(v^2 - 1)} = \frac{3 - v^2}{v(v-1)(v+1)}. 3−v2v(v−1)(v+1)=Av+Bv−1+Cv+1\frac{3 - v^2}{v(v-1)(v+1)} = \frac{A}{v} + \frac{B}{v-1} + \frac{C}{v+1} 3−v2=A(v−1)(v+1)+Bv(v+1)+Cv(v−1)3 - v^2 = A(v-1)(v+1) + Bv(v+1) + Cv(v-1) 3−v2=A(v2−1)+B(v2+v)+C(v2−v)3 - v^2 = A(v^2-1) + B(v^2+v) + C(v^2-v) Comparing coefficients: v2:−1=A+B+Cv^2: -1 = A+B+C v:0=B−C  ⟹  B=Cv: 0 = B-C \implies B=C constant: 3=−A  ⟹  A=−33 = -A \implies A = -3 Substituting A=−3A=-3 and B=CB=C into −1=A+B+C-1=A+B+C: −1=−3+B+B  ⟹  −1=−3+2B  ⟹  2B=2  ⟹  B=1-1 = -3 + B + B \implies -1 = -3 + 2B \implies 2B = 2 \implies B=1. So C=1C=1. The decomposition is −3v+1v−1+1v+1\frac{-3}{v} + \frac{1}{v-1} + \frac{1}{v+1}.

    Integrate the left side: ∫(−3v+1v−1+1v+1)dv=−3ln⁡∣v∣+ln⁡∣v−1∣+ln⁡∣v+1∣+C2\int \left(\frac{-3}{v} + \frac{1}{v-1} + \frac{1}{v+1}\right) dv = -3\ln|v| + \ln|v-1| + \ln|v+1| + C_2 =ln⁡∣v−1∣+ln⁡∣v+1∣−ln⁡∣v3∣+C2=ln⁡∣(v−1)(v+1)v3∣+C2=ln⁡∣v2−1v3∣+C2= \ln|v-1| + \ln|v+1| - \ln|v^3| + C_2 = \ln\left|\frac{(v-1)(v+1)}{v^3}\right| + C_2 = \ln\left|\frac{v^2 - 1}{v^3}\right| + C_2.

    So, ln⁡∣v2−1v3∣=ln⁡∣x∣+C\ln\left|\frac{v^2 - 1}{v^3}\right| = \ln|x| + C, where C=C1−C2C = C_1 - C_2. ∣v2−1v3∣=eln⁡∣x∣+C=eC∣x∣\left|\frac{v^2 - 1}{v^3}\right| = e^{\ln|x| + C} = e^C |x|. v2−1v3=Kx\frac{v^2 - 1}{v^3} = Kx, where K=±eCK = \pm e^C is a non-zero constant.

    Substitute v=y/xv=y/x back into the equation: (y/x)2−1(y/x)3=Kx\frac{(y/x)^2 - 1}{(y/x)^3} = Kx y2/x2−1y3/x3=Kx\frac{y^2/x^2 - 1}{y^3/x^3} = Kx (y2−x2)/x2y3/x3=Kx\frac{(y^2 - x^2)/x^2}{y^3/x^3} = Kx y2−x2x2⋅x3y3=Kx\frac{y^2 - x^2}{x^2} \cdot \frac{x^3}{y^3} = Kx (y2−x2)xy3=Kx\frac{(y^2 - x^2)x}{y^3} = Kx For x≠0x \neq 0, we can divide by xx: y2−x2y3=K\frac{y^2 - x^2}{y^3} = K y2−x2=Ky3y^2 - x^2 = Ky^3, where KK is a non-zero constant.

    We need to consider the cases where we divided by zero or where the substitution is not valid.

    1. x=0x=0: The original ODE is undefined if 3x2−y2=03x^2-y^2=0. If x=0x=0, y2=0  ⟹  y=0y^2=0 \implies y=0. So (0,0)(0,0) is a point where the ODE is undefined.
    2. v=0v=0: y/x=0  ⟹  y=0y/x = 0 \implies y=0. If y=0y=0, y′=0y'=0. The original ODE becomes 0=2x(0)3x2−0=00 = \frac{2x(0)}{3x^2-0} = 0. So y=0y=0 is a solution. y=0y=0 is not included in y2−x2=Ky3y^2 - x^2 = Ky^3 for any KK, as 02−x2=K(0)3  ⟹  −x2=0  ⟹  x=00^2-x^2=K(0)^3 \implies -x^2=0 \implies x=0.
    3. v2−1=0v^2-1=0: v=1v=1 or v=−1v=-1. v=1  ⟹  y/x=1  ⟹  y=xv=1 \implies y/x=1 \implies y=x. y′=1y'=1. Substitute into ODE: 1=2x(x)3x2−x2=2x22x2=11 = \frac{2x(x)}{3x^2-x^2} = \frac{2x^2}{2x^2} = 1. So y=xy=x is a solution. v=−1  ⟹  y/x=−1  ⟹  y=−xv=-1 \implies y/x=-1 \implies y=-x. y′=−1y'=-1. Substitute into ODE: −1=2x(−x)3x2−(−x)2=−2x22x2=−1-1 = \frac{2x(-x)}{3x^2-(-x)^2} = \frac{-2x^2}{2x^2} = -1. So y=−xy=-x is a solution.
    4. 3−v2=03-v^2=0: v2=3  ⟹  v=±3v^2=3 \implies v=\pm\sqrt{3}. y/x=±3  ⟹  y=±3xy/x = \pm\sqrt{3} \implies y=\pm\sqrt{3}x. These are the lines where the denominator 3x2−y2=03x^2-y^2=0. The solution curves cannot cross these lines.

    The solutions y=xy=x and y=−xy=-x correspond to y2−x2=0y^2-x^2=0. If we allow K=0K=0 in the family y2−x2=Ky3y^2-x^2=Ky^3, we get y2−x2=0y^2-x^2=0, which gives y=±xy=\pm x. So y2−x2=Ky3y^2-x^2=Ky^3 for K∈RK \in \mathbb{R} covers the cases from integration (K≠0K \neq 0) and the solutions y=±xy=\pm x (for K=0K=0).

    The solution y=0y=0 was lost when assuming v≠0v \neq 0. As shown, y=0y=0 is a solution.

    Thus, the general solution consists of the family y2−x2=Ky3y^2 - x^2 = Ky^3 where KK is an arbitrary real constant, and the solution y=0y=0.

    We can rewrite y2−x2=Ky3y^2-x^2=Ky^3 as x2−y2=−Ky3x^2-y^2=-Ky^3. Let C=−KC=-K. Then x2−y2=Cy3x^2-y^2=Cy^3. This is a more common form for this result.

    The general solution is x2−y2=Cy3x^2-y^2=Cy^3, where CC is an arbitrary real constant, and y=0y=0.

    Final check: The family x2−y2=Cy3x^2-y^2=Cy^3: If C=0C=0, x2−y2=0  ⟹  y=±xx^2-y^2=0 \implies y=\pm x. These are solutions. If C≠0C \neq 0, these are the curves from integration. If y=0y=0, x2−0=C(0)  ⟹  x2=0  ⟹  x=0x^2-0=C(0) \implies x^2=0 \implies x=0. So y=0y=0 is not generally included in this family for all xx.

    The solution y=0y=0 needs to be stated separately.

    The general solution is x2−y2=Cy3x^2-y^2=Cy^3 for arbitrary constant CC, and y=0y=0.

    The final answer is x2−y2=Cy3 and y=0\boxed{x^2-y^2=Cy^3 \text{ and } y=0}.

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