Message Boards Message Boards

0
|
7994 Views
|
3 Replies
|
4 Total Likes
View groups...
Share
Share this post:

[?] Substitute a - z == y into an equation?

Posted 7 years ago

Hello, I was wondering with the following equation:

a^4 - 4 a^3 z + 6 a^2 z^2 - 4 a z^3 + z^4

how can I substitute:

a - z == y

to get:

y^4

Thanks

POSTED BY: Stephan Foley
3 Replies
Posted 7 years ago

Sometimes giving Simplify the optional second argument, which are the assumptions that you are telling Simplify that it can depend on always being true and which it is free to make use of as it sees fit, can accomplish interesting and helpful things.

Simplify[a^4 - 4 a^3 z + 6 a^2 z^2 - 4 a z^3 + z^4, a - z == y]

immediately returns

y^4
POSTED BY: Bill Simpson
Posted 7 years ago

very nice, works like a charm...thanks for the reply!

POSTED BY: Stephan Foley
a^4 - 4 a^3 z + 6 a^2 z^2 - 4 a z^3 + z^4
% /. a -> y + z // Simplify
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract