Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have two solutions; I want is to find an equation that these solutions satisfy using mathematica.

The solutions are $x= \frac{{(26-k)}^2}{26}$ and $y= \frac{{k}^2}{26}$.

I know by hand computing that $x$ and $y$ satisfy $\sqrt{x}+\sqrt{y}=\sqrt{26}$; How can I show this using Mathematica?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

This is just a slight alteration of the method posted by @Ajasja (which I like, and upvoted, but I'm extending to give an idea of how to get the desired relation).

Solve[
 Eliminate[{x - (26 - k)^2/26, y - k^2/26, sqrtx^2 - x, 
    sqrty^2 - y} == 0, {k, x, y}], sqrtx]

(* Out[53]= {{sqrtx -> -Sqrt[26] - sqrty}, {sqrtx -> 
   Sqrt[26] - sqrty}, {sqrtx -> -Sqrt[26] + sqrty}, {sqrtx -> 
   Sqrt[26] + sqrty}} *)

From here one can substitute sqrtx->X^(1/2) and similar for y, and check to see which solutions remain valid after introducing radicals (some could be so-called "parasite" solutions).

share|improve this answer
    
Thank you so much! this is what I want :) –  farrokh Jun 9 at 15:56
    
You are welcome. That said, I have this vague recollection that the prior response had been accepted. If so, that's probably the more appropriate choice since mine was a relatively small alteration of that one. (I do the "algebraic massage", in effect. Come to think of it, I could use one of those on my shoulder..) –  Daniel Lichtblau Jun 10 at 13:32

You can get half-way there by

eq1 = x == (26 - k)^2/26
eq2 = y == k^2/26
FullSimplify[Eliminate[{eq1, eq2}, k]]
(*x^2 + (-26 + y)^2 == 2 x (26 + y)*)

For a simpler form some more algebraic massage would be necessary...

share|improve this answer
    
Thank you so much! –  farrokh Jun 9 at 15:15
    
Thank you so much! why we can't find the simplest one that we want? I need this one (\sqrt{x} + \sqrt{y} = \sqrt{26}) –  farrokh Jun 9 at 15:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.