Message Boards Message Boards

GROUPS:

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

Posted 4 years ago
5085 Views
|
3 Replies
|
4 Total Likes
|

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

3 Replies
Posted 4 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 4 years ago

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

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