Skip to main content
deleted 87 characters in body
Source Link
Artes
  • 57.9k
  • 13
  • 159
  • 247

There are options in FullSimplify like TransformationFunctions or ComplexityFunction which might help in various cases. In our case a simple and direct approach would be defining a list of rules. Here is an example:

![enter image description here][1]

rules =
  { c_ Sum[n a[n] c_^(n-1), {n, 0, Infinity}] :> Sum[n c^n a[n], {n, 0, Infinity}],
    α_ Sum[a[n] c_^n, {n, 0, Infinity}] + Sum[n a[n] c_^n, {n, 0, Infinity}] :>
    Sum[(α + n) a[n] c^n, {n, 0, Infinity}]};

Let's define an appropriate function for TransformationFunctions applying rules to an expression:

 tf[expr_] := expr /. rules  

and now FullSimplify with tf does the expected transformation:

FullSimplify[ D[y, x], TransformationFunctions -> {Automatic, tf}]//TraditionalForm

![enter image description here][2]

alternatively one can do this:

FullSimplify[ D[y, x]] //. rules

Note that here we had to use ReplaceRepeated (//.) while applyingNote: Applying rules in TransformationFunctions it was quite sufficient to play with ReplaceAll (/.) while in the latter case we had to use rules repeatedly i.e. with ReplaceRepeated (//.) . [1]: https://i.sstatic.net/3LZMI.gif [2]: https://i.sstatic.net/OjChv.gif [3]: https://i.sstatic.net/piBiw.gif [4]: https://i.sstatic.net/aehdX.gif

There are options in FullSimplify like TransformationFunctions or ComplexityFunction which might help in various cases. In our case a simple and direct approach would be defining a list of rules. Here is an example:

![enter image description here][1]

rules =
  { c_ Sum[n a[n] c_^(n-1), {n, 0, Infinity}] :> Sum[n c^n a[n], {n, 0, Infinity}],
    α_ Sum[a[n] c_^n, {n, 0, Infinity}] + Sum[n a[n] c_^n, {n, 0, Infinity}] :>
    Sum[(α + n) a[n] c^n, {n, 0, Infinity}]};

Let's define an appropriate function for TransformationFunctions applying rules to an expression:

 tf[expr_] := expr /. rules  

and now FullSimplify with tf does the expected transformation:

FullSimplify[ D[y, x], TransformationFunctions -> {Automatic, tf}]//TraditionalForm

![enter image description here][2]

alternatively one can do this:

FullSimplify[ D[y, x]] //. rules

Note that here we had to use ReplaceRepeated (//.) while applying rules in TransformationFunctions it was quite sufficient to play with ReplaceAll (/.). [1]: https://i.sstatic.net/3LZMI.gif [2]: https://i.sstatic.net/OjChv.gif [3]: https://i.sstatic.net/piBiw.gif [4]: https://i.sstatic.net/aehdX.gif

In our case a simple and direct approach would be defining a list of rules. Here is an example:

![enter image description here][1]

rules =
  { c_ Sum[n a[n] c_^(n-1), {n, 0, Infinity}] :> Sum[n c^n a[n], {n, 0, Infinity}],
    α_ Sum[a[n] c_^n, {n, 0, Infinity}] + Sum[n a[n] c_^n, {n, 0, Infinity}] :>
    Sum[(α + n) a[n] c^n, {n, 0, Infinity}]};

Let's define an appropriate function for TransformationFunctions applying rules to an expression:

 tf[expr_] := expr /. rules  

and now FullSimplify with tf does the expected transformation:

FullSimplify[ D[y, x], TransformationFunctions -> {Automatic, tf}]//TraditionalForm

![enter image description here][2]

alternatively one can do this:

FullSimplify[ D[y, x]] //. rules

Note: Applying rules in TransformationFunctions it was quite sufficient to play with ReplaceAll (/.) while in the latter case we had to use rules repeatedly i.e. with ReplaceRepeated (//.) . [1]: https://i.sstatic.net/3LZMI.gif [2]: https://i.sstatic.net/OjChv.gif [3]: https://i.sstatic.net/piBiw.gif [4]: https://i.sstatic.net/aehdX.gif

added 196 characters in body
Source Link
Artes
  • 57.9k
  • 13
  • 159
  • 247

There are options in FullSimplify like TransformationFunctions or ComplexityFunction which might help in various cases. In our case a simple and direct approach would be defining a list of rules. Here is an example:

enter image description here![enter image description here][1]

rules =
  { c_ Sum[n a[n] c_^(n-1), {n, 0, Infinity}] :> Sum[n c^n a[n], {n, 0, Infinity}],
    α_ Sum[a[n] c_^n, {n, 0, Infinity}] + Sum[n a[n] c_^n, {n, 0, Infinity}] :>
    Sum[(α + n) a[n] c^n, {n, 0, Infinity}]};

Let's define an appropriate function for TransformationFunctions applying rules to an expression:

 tf[expr_] := expr //. rules  

and now FullSimplify with tf does the expected transformation:

FullSimplify[ D[y, x], TransformationFunctions -> {Automatic, tf}]//TraditionalForm

enter image description here![enter image description here][2]

alternatively one can do this:

FullSimplify[ D[y, x]] //. rules

Note that here we had to use ReplaceRepeated (//.) while applying rules in TransformationFunctions it was quite sufficient to play with ReplaceAll (/.). [1]: https://i.sstatic.net/3LZMI.gif [2]: https://i.sstatic.net/OjChv.gif [3]: https://i.sstatic.net/piBiw.gif [4]: https://i.sstatic.net/aehdX.gif

There are options in FullSimplify like TransformationFunctions or ComplexityFunction which might help in various cases. In our case a simple and direct approach would be defining a list of rules. Here is an example:

enter image description here

rules =
  { c_ Sum[n a[n] c_^(n-1), {n, 0, Infinity}] :> Sum[n c^n a[n], {n, 0, Infinity}],
    α_ Sum[a[n] c_^n, {n, 0, Infinity}] + Sum[n a[n] c_^n, {n, 0, Infinity}] :>
    Sum[(α + n) a[n] c^n, {n, 0, Infinity}]};

Let's define an appropriate function for TransformationFunctions:

 tf[expr_] := expr //. rules  

and now FullSimplify with tf does the expected transformation:

FullSimplify[ D[y, x], TransformationFunctions -> {Automatic, tf}]//TraditionalForm

enter image description here

alternatively one can do this:

FullSimplify[ D[y, x]] //. rules

There are options in FullSimplify like TransformationFunctions or ComplexityFunction which might help in various cases. In our case a simple and direct approach would be defining a list of rules. Here is an example:

![enter image description here][1]

rules =
  { c_ Sum[n a[n] c_^(n-1), {n, 0, Infinity}] :> Sum[n c^n a[n], {n, 0, Infinity}],
    α_ Sum[a[n] c_^n, {n, 0, Infinity}] + Sum[n a[n] c_^n, {n, 0, Infinity}] :>
    Sum[(α + n) a[n] c^n, {n, 0, Infinity}]};

Let's define an appropriate function for TransformationFunctions applying rules to an expression:

 tf[expr_] := expr /. rules  

and now FullSimplify with tf does the expected transformation:

FullSimplify[ D[y, x], TransformationFunctions -> {Automatic, tf}]//TraditionalForm

![enter image description here][2]

alternatively one can do this:

FullSimplify[ D[y, x]] //. rules

Note that here we had to use ReplaceRepeated (//.) while applying rules in TransformationFunctions it was quite sufficient to play with ReplaceAll (/.). [1]: https://i.sstatic.net/3LZMI.gif [2]: https://i.sstatic.net/OjChv.gif [3]: https://i.sstatic.net/piBiw.gif [4]: https://i.sstatic.net/aehdX.gif

deleted 328 characters in body
Source Link
Artes
  • 57.9k
  • 13
  • 159
  • 247

There are options in FullSimplify like TransformationFunctions or ComplexityFunction and theywhich might help in various cases. HereIn our case a simple and direct approach would be defining a list of rules. Here is an example of possible rules:

enter image description here

rules = 
  List[
       RuleDelayed[
         Times[ Pattern[c, Blank[]], 
               { Sum[c_ Times[n,Sum[n a[n], Power[Pattern[c, Blank[]], Plus[c_^(n-1, n]]]), 
                     List[n{n, 0, DirectedInfinity[1]]]], 
         Sum[Infinity}] Times[n,:> Power[c,Sum[n n],c^n a[n]]a[n], List[n{n, 0, Infinity]]
                 Infinity}],                 
       RuleDelayed[
         Plus[ Times[ Pattern[\[Alpha], Blank[]], 
                      Sum[α_ Times[a[n],Sum[a[n] Power[Pattern[cc_^n, Blank[]]{n, n]]0, 
                      Infinity}] + Sum[n a[n] c_^n, List[n{n, 0, DirectedInfinity[1]]]],Infinity}] :>
               Sum[ Times[n, a[n],+ Power[Pattern[c,n) Blank[]],a[n] n]]c^n, 
                    List[n{n, 0, DirectedInfinity[1]]]], Infinity}]};
         

Let's define an appropriate function for TransformationFunctions:

 tf[expr_] := expr //. rules Sum[Times[Plus[\[Alpha], n],

and now FullSimplify with tf does the expected transformation:

FullSimplify[ Power[cD[y, n]x], a[n]],TransformationFunctions List[n,-> 0{Automatic, Infinity]]]      
      ];tf}]//TraditionalForm

Let's define appropriate TransformationFunctions

enter image description hereenter image description here

alternatively one can do this:

enter image description here

 FullSimplify[ D[y, x]] //. rules

There are options in FullSimplify like TransformationFunctions or ComplexityFunction and they might help in various cases. Here is an example of possible rules:

enter image description here

rules = 
  List[
       RuleDelayed[
         Times[ Pattern[c, Blank[]], 
                Sum[ Times[n, a[n], Power[Pattern[c, Blank[]], Plus[-1, n]]], 
                     List[n, 0, DirectedInfinity[1]]]], 
         Sum[ Times[n, Power[c, n], a[n]], List[n, 0, Infinity]]
                 ],                 
       RuleDelayed[
         Plus[ Times[ Pattern[\[Alpha], Blank[]], 
                      Sum[ Times[a[n], Power[Pattern[c, Blank[]], n]], 
                           List[n, 0, DirectedInfinity[1]]]], 
               Sum[ Times[n, a[n], Power[Pattern[c, Blank[]], n]], 
                    List[n, 0, DirectedInfinity[1]]]], 
               Sum[Times[Plus[\[Alpha], n], Power[c, n], a[n]], List[n, 0, Infinity]]]      
      ];

Let's define appropriate TransformationFunctions

enter image description here

alternatively one can do this:

enter image description here

 FullSimplify[ D[y, x]] //. rules

There are options in FullSimplify like TransformationFunctions or ComplexityFunction which might help in various cases. In our case a simple and direct approach would be defining a list of rules. Here is an example:

enter image description here

rules =
  { c_ Sum[n a[n] c_^(n-1), {n, 0, Infinity}] :> Sum[n c^n a[n], {n, 0, Infinity}],
    α_ Sum[a[n] c_^n, {n, 0, Infinity}] + Sum[n a[n] c_^n, {n, 0, Infinity}] :>
    Sum[ + n) a[n] c^n, {n, 0, Infinity}]};

Let's define an appropriate function for TransformationFunctions:

 tf[expr_] := expr //. rules  

and now FullSimplify with tf does the expected transformation:

FullSimplify[ D[y, x], TransformationFunctions -> {Automatic, tf}]//TraditionalForm

enter image description here

alternatively one can do this:

FullSimplify[ D[y, x]] //. rules
added 939 characters in body
Source Link
Artes
  • 57.9k
  • 13
  • 159
  • 247
Loading
added 939 characters in body
Source Link
Artes
  • 57.9k
  • 13
  • 159
  • 247
Loading
Source Link
Artes
  • 57.9k
  • 13
  • 159
  • 247
Loading