Basic Examples (4)
Combine the powers in an expression:
Combine powers with multiple terms:
Combine radicals:
DisplayPowersTogether also combines products and quotients that include CubeRoot:
Scope (9)
DisplayPowersTogether combines exponents using the default assumptions stored in $Assumptions. The assumptions in this example are sufficient to combine all the exponents:
DisplayPowersTogether similarly combines all the exponents when is given as a second argument in DisplayPowersTogether:
Provide assumptions allowing some but not all exponents to be combined:
Set $Assumptions as a>0, and specify d>0 as an assumption within DisplayPowersTogether:
Only assume d > 0:
The following assumptions are sufficient to combine all the exponents even though nothing is assumed about b or z:
FullSimplify verifies that DisplayPowersTogether performed a valid transformation under the given assumptions:
This performs independent verification by searching for a counterexample to the previous example. The identity is True in every case considered:
In this case, nothing is assumed and none of the exponents can be combined:
DisplayPowersTogether determines this can be done with a single Sqrt:
Surd is a generalization of CubeRoot. DisplayPowersTogether combines expressions involving Surd when appropriate:
Properties and Relations (2)
Rather than use $Assumptions or DisplayPowersTogether[expr,assum], assumptions can be provided using Assuming:
Two examples are given here where Simplify can combine a sum of terms:
DisplayPowersTogether does not handle sums or differences:
Possible Issues (2)
The result of DisplayPowersTogether has a Head of Defer:
It is not a readily-computable expression:
First can be used to compute on the results:
Alternatively, copy the output shown previously and evaluate it to perform the computation:
DisplayPowersTogether can be used again to ensure the square roots are combined again:
The next example is not in a form that allows DisplayPowersTogether to combine factors:
When the cube root above is distributed across the sum, DisplayPowersTogether can combine factors: