Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
0

simplifying an expression

asked 7 years ago

sage_user47 gravatar image

Hello,

I am trying to simplify a polynomial into smaller subexpressions. The expanded polynomial is:

 2bf2+f2k2bff22fk+b+2f+k1

This expression can be reduced to the following expression [by hand]:

 bf2+(f1)2(k1+b)

How to do I do it in Sage using some combination of collect and factor or by using some other strategy.

Thanks!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 7 years ago

ndomes gravatar image

Knowing the outcome you can do:

var('b f k')
expr = 2*b*f^2 + f^2*k - 2*b*f- f^2 - 2*f*k + b+2*f+k - 1
(expr - b*f^2).factor() + b*f^2
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 994 times

Last updated: May 03 '17