Cannot solve equation with two radical terms

i like this post (click again to cancel)
0
i dont like this post (click again to cancel)

I am learning Sage on the Notebook by reworking examples in my old algebra book (starting with page one). Could someone please explain the following behavior and how to solve the original equation?

This equation isn't getting solved:

solve(sqrt(2*x - 5) - sqrt(x - 3) == 1, x)

The output is:

[sqrt(x - 3) == sqrt(2*x - 5) - 1]

But the solution is x == 7 or x == 3

I tried the terms and they are solved:

solve(sqrt(2*x-5) == 1, x)
[x == 3]

solve(sqrt(x-3) == 1 , x)
[x == 4]

Thank you

asked Dec 11 '11

this post is marked as community wiki

This post is a wiki. Anyone with karma >150 is welcome to improve it.

updated Dec 11 '11

anonymous user

Anonymous

2 Answers:

i like this answer (click again to cancel)
3
i dont like this answer (click again to cancel)

Try using the to_poly_solve=True option. It's been on several people's wishlist to improve the documentation for the global solve function.

sage: solve(sqrt(2*x - 5) - sqrt(x - 3) == 1, x, to_poly_solve=True)
[x == 3, x == 7]

See also the answer to this older question:

http://ask.sagemath.org/question/397/unexpected-solve-result

link

answered Dec 11 '11

this post is marked as community wiki

This post is a wiki. Anyone with karma >150 is welcome to improve it.

updated Dec 11 '11

benjaminfjones gravatar image benjaminfjones
2500 3 34 66
http://bfj7.com/
i like this answer (click again to cancel)
0
i dont like this answer (click again to cancel)

I saw a very similar question titled:

"strange behaviour when solving equations symbolically"

The answer basically was it can't do it.

I guess I have been so impressed by Sage so far, that I thought it looked like a simple problem.

link

answered Dec 11 '11

this post is marked as community wiki

This post is a wiki. Anyone with karma >150 is welcome to improve it.

updated Dec 11 '11

hunanner gravatar image hunanner
1

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: Dec 11 '11

Seen: 120 times

Last updated: Dec 11 '11

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.