<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Simplifying a vector expression with composite functions</title>
    <link>http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 16 Jun 2026 13:46:27 GMT</lastBuildDate>
    <pubDate>Tue, 16 Jun 2026 13:46:27 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Simplifying a vector expression with composite functions</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Simplifying a vector expression with composite functions</title>
      <link>http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With</link>
    </image>
    <item>
      <title>Simple example</title>
      <link>http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With?ref=Feed:MaplePrimes:Simplifying a vector expression with composite functions:Comments#answer143449</link>
      <itunes:summary>&lt;p&gt;Here is a simple example, which probably just shows that I don't understand your problem:&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;with(LinearAlgebra):&lt;br&gt;M:=&amp;lt;seq(m[i](t),i=1..3)&amp;gt;;&lt;br&gt;H:=&amp;lt;M[2],M[1],M[3]&amp;gt;; #Simple example&lt;br&gt;eqs:=diff~(M,t)+ M &amp;amp;x H-a*M &amp;amp;x diff~(M,t)/DotProduct(M,M,conjugate=false)=~ &amp;lt;0,0,0&amp;gt;; &lt;br&gt;sys:={seq(eqs[i],i=1..3)};&lt;br&gt;res:=dsolve(eval(sys,a=1) union {m[1](0)=1,m[2](0)=0,m[3](0)=0}, numeric);&lt;br&gt;plots:-odeplot(res,[seq([t,m[i](t)],i=1..3)],0..10);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Here is a simple example, which probably just shows that I don't understand your problem:&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;with(LinearAlgebra):&lt;br&gt;M:=&amp;lt;seq(m[i](t),i=1..3)&amp;gt;;&lt;br&gt;H:=&amp;lt;M[2],M[1],M[3]&amp;gt;; #Simple example&lt;br&gt;eqs:=diff~(M,t)+ M &amp;amp;x H-a*M &amp;amp;x diff~(M,t)/DotProduct(M,M,conjugate=false)=~ &amp;lt;0,0,0&amp;gt;; &lt;br&gt;sys:={seq(eqs[i],i=1..3)};&lt;br&gt;res:=dsolve(eval(sys,a=1) union {m[1](0)=1,m[2](0)=0,m[3](0)=0}, numeric);&lt;br&gt;plots:-odeplot(res,[seq([t,m[i](t)],i=1..3)],0..10);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>143449</guid>
      <pubDate>Wed, 13 Feb 2013 21:03:56 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Thanks a lot for your answer. In fact, I</title>
      <link>http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With?ref=Feed:MaplePrimes:Simplifying a vector expression with composite functions:Comments#comment143455</link>
      <itunes:summary>&lt;p&gt;Thanks a lot for your answer. In fact, I don't want to solve the equation, but simply make it look better (this is to check my calculation). Furthermore, my H is defined as the derivative of a function with respect to the m_i, which are functions of t, and maybe I was doing things the wrong way but Maple didn't accept what I suggested to him. Therefore, I decided to discard the variable t and keep only the small perturbations of the m_i as variables.&lt;/p&gt;
&lt;p&gt;Attached is my worksheet so that you can understand if you have just some time (as well as my initial problem which was not clearly explained!) Now, I have everything that I want, but I'm looking for a way to:&lt;/p&gt;
&lt;p&gt;- linearise the last result (i.e. keep only constant terms, x-terms, y-terms, z-terms and discard all the multiple variable terms). I checked on the online help and I could only found a Linearize function that works for systems, not really what I'm looking for.&lt;/p&gt;
&lt;p&gt;- group the terms so that the result looks like: (constant terms) + (coefficients)*x + (coefficients)*y + (coefficients)*z. Is there any of doing so easily?&lt;/p&gt;
&lt;p&gt;Again, thanks a lot for your help.&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=143455/453838/resonance.mw"&gt;Download resonance.mw&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks a lot for your answer. In fact, I don't want to solve the equation, but simply make it look better (this is to check my calculation). Furthermore, my H is defined as the derivative of a function with respect to the m_i, which are functions of t, and maybe I was doing things the wrong way but Maple didn't accept what I suggested to him. Therefore, I decided to discard the variable t and keep only the small perturbations of the m_i as variables.&lt;/p&gt;
&lt;p&gt;Attached is my worksheet so that you can understand if you have just some time (as well as my initial problem which was not clearly explained!) Now, I have everything that I want, but I'm looking for a way to:&lt;/p&gt;
&lt;p&gt;- linearise the last result (i.e. keep only constant terms, x-terms, y-terms, z-terms and discard all the multiple variable terms). I checked on the online help and I could only found a Linearize function that works for systems, not really what I'm looking for.&lt;/p&gt;
&lt;p&gt;- group the terms so that the result looks like: (constant terms) + (coefficients)*x + (coefficients)*y + (coefficients)*z. Is there any of doing so easily?&lt;/p&gt;
&lt;p&gt;Again, thanks a lot for your help.&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=143455/453838/resonance.mw"&gt;Download resonance.mw&lt;/a&gt;&lt;/p&gt;</description>
      <guid>143455</guid>
      <pubDate>Wed, 13 Feb 2013 22:46:21 Z</pubDate>
      <itunes:author>PlpPlp</itunes:author>
      <author>PlpPlp</author>
    </item>
    <item>
      <title>Maybe this?</title>
      <link>http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With?ref=Feed:MaplePrimes:Simplifying a vector expression with composite functions:Comments#comment143485</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With#comment143455"&gt;@PlpPlp&lt;/a&gt; I changed things a little to reflect my understanding of the problem. I use worksheet interface and 1D input (so much easier for me).&lt;/p&gt;
&lt;p&gt;DeltaF := K[1]*m[1]^(2)*m[2]^(2)+(K[1]+(B[1]^(2))/(2* c[11])-(B[2]^(2))/(2 *c[44]))*(m[1]^(2)+m[2]^(2))*m[3]^(2)+K[2]*m[1]^(2)*m[2]^(2)*m[3]^(2)+B[1]*(u[m1]*m[1]^(2)+u[m2]*m[2]^(2))+B[2]*u[m6]*m[1]^(2)*m[2]^(2)-B[1]*((B[1])/(6 *c[11])+(c[12])/(c[11])*(u[m1]+u[m2]))*m[3]^(2)+1/(2)*mu[0]*M[s]^(2)*(N[1]*m[1]^(2)+N[2]*m[2]^(2)+N[3]*m[3]^(2))-mu[0]*M[s]*(H[1]*m[1]+H[2]*m[2]+H[3]*m[3]);&lt;/p&gt;
&lt;p&gt;H[eff1] := -diff(DeltaF, m[1])/mu[0];&lt;br&gt;H[eff2] := -diff(DeltaF, m[2])/mu[0];&lt;br&gt;H[eff3] := -diff(DeltaF, m[3])/mu[0];&lt;/p&gt;
&lt;p&gt;expr := collect(mu[0]*(m[2]*H[eff3]-m[3]*H[eff2]),[m[1],m[2],m[3]],distributed,factor);&lt;/p&gt;
&lt;p&gt;#Now linearising about m = m0. The number 2 at the end means that the orders neglected are 2 and above.&lt;/p&gt;
&lt;p&gt;mtaylor(expr, [m[1]=m[1,0],m[2]=m[2,0],m[3]=m[3,0] ], 2);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With#comment143455"&gt;@PlpPlp&lt;/a&gt; I changed things a little to reflect my understanding of the problem. I use worksheet interface and 1D input (so much easier for me).&lt;/p&gt;
&lt;p&gt;DeltaF := K[1]*m[1]^(2)*m[2]^(2)+(K[1]+(B[1]^(2))/(2* c[11])-(B[2]^(2))/(2 *c[44]))*(m[1]^(2)+m[2]^(2))*m[3]^(2)+K[2]*m[1]^(2)*m[2]^(2)*m[3]^(2)+B[1]*(u[m1]*m[1]^(2)+u[m2]*m[2]^(2))+B[2]*u[m6]*m[1]^(2)*m[2]^(2)-B[1]*((B[1])/(6 *c[11])+(c[12])/(c[11])*(u[m1]+u[m2]))*m[3]^(2)+1/(2)*mu[0]*M[s]^(2)*(N[1]*m[1]^(2)+N[2]*m[2]^(2)+N[3]*m[3]^(2))-mu[0]*M[s]*(H[1]*m[1]+H[2]*m[2]+H[3]*m[3]);&lt;/p&gt;
&lt;p&gt;H[eff1] := -diff(DeltaF, m[1])/mu[0];&lt;br&gt;H[eff2] := -diff(DeltaF, m[2])/mu[0];&lt;br&gt;H[eff3] := -diff(DeltaF, m[3])/mu[0];&lt;/p&gt;
&lt;p&gt;expr := collect(mu[0]*(m[2]*H[eff3]-m[3]*H[eff2]),[m[1],m[2],m[3]],distributed,factor);&lt;/p&gt;
&lt;p&gt;#Now linearising about m = m0. The number 2 at the end means that the orders neglected are 2 and above.&lt;/p&gt;
&lt;p&gt;mtaylor(expr, [m[1]=m[1,0],m[2]=m[2,0],m[3]=m[3,0] ], 2);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>143485</guid>
      <pubDate>Thu, 14 Feb 2013 21:31:01 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Perfect</title>
      <link>http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With?ref=Feed:MaplePrimes:Simplifying a vector expression with composite functions:Comments#comment143552</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With#comment143485"&gt;@Preben Alsholm&lt;/a&gt; This is exactly what I needed, you're a life saver and I begin to understand how Maple works. Thanks a lot.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/143436-Simplifying-A-Vector-Expression-With#comment143485"&gt;@Preben Alsholm&lt;/a&gt; This is exactly what I needed, you're a life saver and I begin to understand how Maple works. Thanks a lot.&lt;/p&gt;</description>
      <guid>143552</guid>
      <pubDate>Sat, 16 Feb 2013 16:12:28 Z</pubDate>
      <itunes:author>PlpPlp</itunes:author>
      <author>PlpPlp</author>
    </item>
  </channel>
</rss>