Solve y=y'x+√(1+y'^2)
Solve $y=y'x+\sqrt{1+y'^2}$.
Explanation of Method
Recognize the standard Clairaut form $y=xp+f(p)$ with $f(p)=\sqrt{1+p^2}$; general solution $y=cx+\sqrt{1+c^2}$. For the singular solution, solve $x+f'(p)=0$ for $p(x)$ carefully (there are two algebraic sign branches), determine with \texttt{sympy} which branch is the actual solution of $x+f'(p)=0$, and confirm the resulting curve and its sign by direct substitution back into the original equation (symbolically and numerically).
Step 1: Identify Clairaut form and general solution
$f(p)=\sqrt{1+p^2}$. For any constant $c$, $y=cx+\sqrt{1+c^2}$, $y'\equiv c$. \texttt{sympy} confirms \[y-\left(xy'+\sqrt{1+y'^2}\right)\equiv0\] — the line family is genuine.
Step 2: Singular-solution condition
$f'(p)=\dfrac{p}{\sqrt{1+p^2}}$, so $x+f'(p)=0$ gives $x+\dfrac{p}{\sqrt{1+p^2}}=0$.
Step 3: Solve parametrically and identify the correct branch
Rather than inverting for $p(x)$ directly (which introduces spurious sign branches), parametrize by $p$ itself: \[x(p)=-\frac{p}{\sqrt{1+p^2}},\qquad y(p)=x(p)\,p+\sqrt{1+p^2}.\] \texttt{sympy.simplify} reduces $y(p)$ to exactly $\dfrac{1}{\sqrt{1+p^2}}$, and confirms $x(p)^2+y(p)^2-1\equiv0$ for all real $p$ — the singular locus lies on the unit circle.
Step 4: Only the upper semicircle is traced
Since $y(p)=1/\sqrt{1+p^2}>0$ for \emph{every} real $p$, this construction only ever reaches points with $y>0$: the \textbf{upper} unit semicircle. As $x^2=p^2/(1+p^2)=1-y^2$ with $y>0$, this is $y=\sqrt{1-x^2}$, $-1 Differentiating $y=\sqrt{1-x^2}$ gives $p=y'=\dfrac{-x}{\sqrt{1-x^2}}$, exactly the branch the source selected (\texttt{sympy}: $p_{\text{computed}}-p_{\text{source}}\equiv0$). With $y=\sqrt{1-x^2}$, $p=-x/\sqrt{1-x^2}$, \texttt{sympy} (checked both symbolically after rationalizing, and numerically at several sample points in $(-1,1)$) confirms
\[y-\left(xp+\sqrt{1+p^2}\right)\equiv0.\]
The singular solution and its branch/sign are confirmed correct. Final answer: Source's derivation confirmed correct at every step, including the sign of $p$, by independent \texttt{sympy} verification. General solution (family of lines):
\[y=cx+\sqrt{1+c^2},\]
singular solution (envelope), the upper unit semicircle:
\[\boxed{\,y=\sqrt{1-x^2}\,},\quad -1Step 5: Confirm the source's sign choice for $p(x)$
Step 6: Direct-substitution verification
Result