Problem 262
Hard Further Methods

Given the differential equation y'+(x)/(y)=1 . 1^° By…

Given the differential equation \(y'+\dfrac{x}{y}=1\). \(1^\circ\) By substituting \(y=vx\), show that the solution is defined by \[ \frac{\sqrt3}{2}\ln(x^2-xy+y^2)+\arctan\frac{2y-x}{x\sqrt3}=c_1. \] \(2^\circ\) By substituting \(x=vy\), show that the solution is defined by \[ \frac{\sqrt3}{2}\ln(x^2-xy+y^2)-\arctan\frac{2x-y}{y\sqrt3}=c_2. \] \(3^\circ\) Show that these solutions are equivalent and find the relationship between \(c_1\) and \(c_2\).

Explanation of Method

Parts \(1^\circ\) and \(2^\circ\) are checked the rigorous way: rather than re-deriving the antiderivatives by hand, treat each boxed relation as an implicit equation \(F_i(x,y)=c_i\), implicitly differentiate it in Sympy (with \(y\) a function of \(x\)), solve the resulting linear equation for \(y'\), and confirm it equals \(1-x/y\) exactly — this validates the final formulas independently of how they were integrated. Part \(3^\circ\) is where the source becomes self-contradictory (step 9 guesses "\(\pi/3\) or \(-2\pi/3\)", step 10 boxes the incompatible \(c_1=c_2+\pi\sqrt3/3\)). Because \(F_1-F_2\) has the log terms cancel exactly (same coefficient \(\sqrt3/2\), same argument \(x^2-xy+y^2\)), the difference reduces to \(\arctan A+\arctan B\) with \(A=(2y-x)/(x\sqrt3)\), \(B=(2x-y)/(y\sqrt3)\), a function of \(v=y/x\) alone. Its derivative with respect to \(v\) is verified with Sympy to be identically \(0\), so \(\arctan A+\arctan B\) is a genuine piecewise constant; the two constant values (and the sign of \(x,y\) that selects between them) are pinned down via the exact tangent-addition identity \((A+B)/(1-AB)=\sqrt3\), verified symbolically to hold for every \(v\).

1. Confirm Part \(1^\circ\)'s relation solves \(y'+x/y=1\)

With \(F_1(x,y)=\frac{\sqrt3}{2}\ln(x^2-xy+y^2)+\arctan\frac{2y-x}{x\sqrt3}\), Sympy computes \(\dfrac{d}{dx}F_1(x,y(x))\), sets it to \(0\), and solves for \(y'(x)\); the result simplifies exactly to \(1-x/y\). So the substitution \(y=vx\) (source's steps 1–5) does lead to a correct implicit solution, even though the source's own hand-integration in step 3 visibly stumbles ("Actually, let's use…").

2. Confirm Part \(2^\circ\)'s relation solves \(y'+x/y=1\)

The same implicit-differentiation check applied to \(F_2(x,y)=\frac{\sqrt3}{2}\ln(x^2-xy+y^2)-\arctan\frac{2x-y}{y\sqrt3}\) again returns \(y'=1-x/y\) exactly. So both families are genuine first integrals of the same ODE — the source's step 7 ("following similar steps…") is confirmed correct even though it was never actually carried out there.

3. Reduce \(c_1-c_2\) to a function of \(v=y/x\) alone, and show it is constant

Since \(F_1\) and \(F_2\) share the identical \(\frac{\sqrt3}{2}\ln(x^2-xy+y^2)\) term, it cancels in the difference, leaving \[ c_1-c_2 = F_1-F_2=\arctan\frac{2y-x}{x\sqrt3}+\arctan\frac{2x-y}{y\sqrt3}=\arctan A+\arctan B, \] which is homogeneous of degree \(0\), i.e. a function of \(v=y/x\) only: \(A=(2v-1)/\sqrt3\), \(B=(2/v-1)/\sqrt3\). Sympy differentiates \(\arctan A+\arctan B\) with respect to \(v\) and simplifies the result to \(0\) identically — so \(c_1-c_2\) truly is constant on each of the two rays \(v>0\) and \(v<0\) (the value can only jump across \(v=0\), i.e. across \(x=0\) or \(y=0\), where \(A\) or \(B\) blows up).

4. Pin down the two constant values exactly

Sympy simplifies \[ A+B = \frac{2\sqrt3}{3}\cdot\frac{v^2-v+1}{v}, \qquad 1-AB = \frac{2}{3}\cdot\frac{v^2-v+1}{v}, \] so \(\dfrac{A+B}{1-AB}=\sqrt3=\tan\dfrac{\pi}{3}\) identically in \(v\) (the common factor \(v^2-v+1>0\) — it has negative discriminant — cancels and never vanishes). By the standard arctangent-addition identity \(\arctan A+\arctan B=\arctan\!\frac{A+B}{1-AB}+k\pi\), with \(k\) fixed by the sign of \(1-AB\), whose sign Sympy shows is exactly the sign of \(v\) (since \(v^2-v+1>0\) always):

This resolves — with an actual proof rather than a guess — exactly the ambiguity the source's own step 9 flagged ("\(\pi/3\) or \(-2\pi/3\)") but never settled, and shows the source's separately boxed final answer in step 10, \(c_1=c_2+\pi\sqrt3/3\), is simply wrong: it has the wrong functional form (an extra factor of \(\sqrt3\) that does not belong — apparently carried over by mistake from the \(\sqrt3/2\) log coefficient — and is not even self-consistent with its own step 9).


Result

Final answer:

Both implicit solutions (Part \(1^\circ\) and Part \(2^\circ\)) are confirmed, by direct implicit differentiation in Sympy, to solve \(y'+x/y=1\). They describe the same one-parameter family of integral curves, and the exact relationship between the constants is

\[ \boxed{\ c_1-c_2=\dfrac{\pi}{3}\ \text{ if } xy>0, \qquad c_1-c_2=-\dfrac{2\pi}{3}\ \text{ if } xy<0\ } \]

established via the identity \(\dfrac{A+B}{1-AB}\equiv\sqrt3\) (with \(A,B\) the two arctangent arguments), verified symbolically to hold for every \(v=y/x\), together with the sign of \(1-AB\) — which Sympy shows equals the sign of \(v\) — to select the correct branch \(k\) of the arctangent-addition formula. This replaces the source's unresolved guess and its incompatible, algebraically unjustified final boxed answer \(c_1=c_2+\pi\sqrt3/3\).