How to avoid introducing a spurious solution?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Suppose I have
$sqrtr-x-fracxsqrtr-x-o=0$
with $r,x$ and $o$ real.
To solve I multiply by $sqrtr-x$.
I assume therefore $r>x$
$r-x-x-osqrtr-x=0$
$r-2x=osqrtr-x$
Squaring
$(r-2x)^2=o^2(r-x)$
This is a second order equation,whose solutions are
$x= fracr2 -fraco^28 pm fracosqrto^2+8r8$
However, for instance, for $r=1$ and $o=1/2$ I get two solutions. For both $x<1$, however only one is actually a solution.
How can I avoid to introduce a spurious solution?
quadratics
add a comment |Â
up vote
0
down vote
favorite
Suppose I have
$sqrtr-x-fracxsqrtr-x-o=0$
with $r,x$ and $o$ real.
To solve I multiply by $sqrtr-x$.
I assume therefore $r>x$
$r-x-x-osqrtr-x=0$
$r-2x=osqrtr-x$
Squaring
$(r-2x)^2=o^2(r-x)$
This is a second order equation,whose solutions are
$x= fracr2 -fraco^28 pm fracosqrto^2+8r8$
However, for instance, for $r=1$ and $o=1/2$ I get two solutions. For both $x<1$, however only one is actually a solution.
How can I avoid to introduce a spurious solution?
quadratics
I edited the question,now it should be clearer
â Fabio Dalla Libera
Aug 23 at 7:34
1
The solutions you found solve $r-2x=osqrtr-x$ and also $r-2x=-osqrtr-x$.
â Did
Aug 23 at 7:35
@Did Consider posting as answer...
â user202729
Aug 23 at 7:35
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Suppose I have
$sqrtr-x-fracxsqrtr-x-o=0$
with $r,x$ and $o$ real.
To solve I multiply by $sqrtr-x$.
I assume therefore $r>x$
$r-x-x-osqrtr-x=0$
$r-2x=osqrtr-x$
Squaring
$(r-2x)^2=o^2(r-x)$
This is a second order equation,whose solutions are
$x= fracr2 -fraco^28 pm fracosqrto^2+8r8$
However, for instance, for $r=1$ and $o=1/2$ I get two solutions. For both $x<1$, however only one is actually a solution.
How can I avoid to introduce a spurious solution?
quadratics
Suppose I have
$sqrtr-x-fracxsqrtr-x-o=0$
with $r,x$ and $o$ real.
To solve I multiply by $sqrtr-x$.
I assume therefore $r>x$
$r-x-x-osqrtr-x=0$
$r-2x=osqrtr-x$
Squaring
$(r-2x)^2=o^2(r-x)$
This is a second order equation,whose solutions are
$x= fracr2 -fraco^28 pm fracosqrto^2+8r8$
However, for instance, for $r=1$ and $o=1/2$ I get two solutions. For both $x<1$, however only one is actually a solution.
How can I avoid to introduce a spurious solution?
quadratics
edited Aug 23 at 7:55
asked Aug 23 at 7:20
Fabio Dalla Libera
1275
1275
I edited the question,now it should be clearer
â Fabio Dalla Libera
Aug 23 at 7:34
1
The solutions you found solve $r-2x=osqrtr-x$ and also $r-2x=-osqrtr-x$.
â Did
Aug 23 at 7:35
@Did Consider posting as answer...
â user202729
Aug 23 at 7:35
add a comment |Â
I edited the question,now it should be clearer
â Fabio Dalla Libera
Aug 23 at 7:34
1
The solutions you found solve $r-2x=osqrtr-x$ and also $r-2x=-osqrtr-x$.
â Did
Aug 23 at 7:35
@Did Consider posting as answer...
â user202729
Aug 23 at 7:35
I edited the question,now it should be clearer
â Fabio Dalla Libera
Aug 23 at 7:34
I edited the question,now it should be clearer
â Fabio Dalla Libera
Aug 23 at 7:34
1
1
The solutions you found solve $r-2x=osqrtr-x$ and also $r-2x=-osqrtr-x$.
â Did
Aug 23 at 7:35
The solutions you found solve $r-2x=osqrtr-x$ and also $r-2x=-osqrtr-x$.
â Did
Aug 23 at 7:35
@Did Consider posting as answer...
â user202729
Aug 23 at 7:35
@Did Consider posting as answer...
â user202729
Aug 23 at 7:35
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
The spurious solution is introduced by the squaring. Before squaring, $r-2x$ is constrained to have the sign of $o$ (as the square root is a positive number). When squaring, you drop this condition.
Alternative resolution:
Let $z:=sqrtr-x>0$.
The equation becomes
$$z-fracr-z^2z-o=0$$
or
$$2z^2-oz-r=0.$$
The only positive solutions in $z$ is
$$z=fracocolorgreen+sqrto^2+8r4.$$
It exist iff $o^2+8rge0$, and $x=r-z^2$ is implicitly $le r$.
1
thank you, this is a very elegant way
â Fabio Dalla Libera
Aug 23 at 7:56
How bad does that $o$ look there. :-) Indeed, the OP could employ another suitable symbol, alphabet etc.. Nice way +1
â mrs
Aug 23 at 8:03
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
The spurious solution is introduced by the squaring. Before squaring, $r-2x$ is constrained to have the sign of $o$ (as the square root is a positive number). When squaring, you drop this condition.
Alternative resolution:
Let $z:=sqrtr-x>0$.
The equation becomes
$$z-fracr-z^2z-o=0$$
or
$$2z^2-oz-r=0.$$
The only positive solutions in $z$ is
$$z=fracocolorgreen+sqrto^2+8r4.$$
It exist iff $o^2+8rge0$, and $x=r-z^2$ is implicitly $le r$.
1
thank you, this is a very elegant way
â Fabio Dalla Libera
Aug 23 at 7:56
How bad does that $o$ look there. :-) Indeed, the OP could employ another suitable symbol, alphabet etc.. Nice way +1
â mrs
Aug 23 at 8:03
add a comment |Â
up vote
1
down vote
accepted
The spurious solution is introduced by the squaring. Before squaring, $r-2x$ is constrained to have the sign of $o$ (as the square root is a positive number). When squaring, you drop this condition.
Alternative resolution:
Let $z:=sqrtr-x>0$.
The equation becomes
$$z-fracr-z^2z-o=0$$
or
$$2z^2-oz-r=0.$$
The only positive solutions in $z$ is
$$z=fracocolorgreen+sqrto^2+8r4.$$
It exist iff $o^2+8rge0$, and $x=r-z^2$ is implicitly $le r$.
1
thank you, this is a very elegant way
â Fabio Dalla Libera
Aug 23 at 7:56
How bad does that $o$ look there. :-) Indeed, the OP could employ another suitable symbol, alphabet etc.. Nice way +1
â mrs
Aug 23 at 8:03
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
The spurious solution is introduced by the squaring. Before squaring, $r-2x$ is constrained to have the sign of $o$ (as the square root is a positive number). When squaring, you drop this condition.
Alternative resolution:
Let $z:=sqrtr-x>0$.
The equation becomes
$$z-fracr-z^2z-o=0$$
or
$$2z^2-oz-r=0.$$
The only positive solutions in $z$ is
$$z=fracocolorgreen+sqrto^2+8r4.$$
It exist iff $o^2+8rge0$, and $x=r-z^2$ is implicitly $le r$.
The spurious solution is introduced by the squaring. Before squaring, $r-2x$ is constrained to have the sign of $o$ (as the square root is a positive number). When squaring, you drop this condition.
Alternative resolution:
Let $z:=sqrtr-x>0$.
The equation becomes
$$z-fracr-z^2z-o=0$$
or
$$2z^2-oz-r=0.$$
The only positive solutions in $z$ is
$$z=fracocolorgreen+sqrto^2+8r4.$$
It exist iff $o^2+8rge0$, and $x=r-z^2$ is implicitly $le r$.
edited Aug 23 at 7:49
answered Aug 23 at 7:38
Yves Daoust
113k665207
113k665207
1
thank you, this is a very elegant way
â Fabio Dalla Libera
Aug 23 at 7:56
How bad does that $o$ look there. :-) Indeed, the OP could employ another suitable symbol, alphabet etc.. Nice way +1
â mrs
Aug 23 at 8:03
add a comment |Â
1
thank you, this is a very elegant way
â Fabio Dalla Libera
Aug 23 at 7:56
How bad does that $o$ look there. :-) Indeed, the OP could employ another suitable symbol, alphabet etc.. Nice way +1
â mrs
Aug 23 at 8:03
1
1
thank you, this is a very elegant way
â Fabio Dalla Libera
Aug 23 at 7:56
thank you, this is a very elegant way
â Fabio Dalla Libera
Aug 23 at 7:56
How bad does that $o$ look there. :-) Indeed, the OP could employ another suitable symbol, alphabet etc.. Nice way +1
â mrs
Aug 23 at 8:03
How bad does that $o$ look there. :-) Indeed, the OP could employ another suitable symbol, alphabet etc.. Nice way +1
â mrs
Aug 23 at 8:03
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2891810%2fhow-to-avoid-introducing-a-spurious-solution%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I edited the question,now it should be clearer
â Fabio Dalla Libera
Aug 23 at 7:34
1
The solutions you found solve $r-2x=osqrtr-x$ and also $r-2x=-osqrtr-x$.
â Did
Aug 23 at 7:35
@Did Consider posting as answer...
â user202729
Aug 23 at 7:35