<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Can't maple even maximize such a simple function?</title>
    <link>http://www.mapleprimes.com/questions/42384-Cant-Maple-Even-Maximize-Such-A-Simple-Function</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 05:28:26 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 05:28:26 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Can't maple even maximize such a simple function?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Can't maple even maximize such a simple function?</title>
      <link>http://www.mapleprimes.com/questions/42384-Cant-Maple-Even-Maximize-Such-A-Simple-Function</link>
    </image>
    <item>
      <title>a cleaner copy of the commands</title>
      <link>http://www.mapleprimes.com/questions/42384-Cant-Maple-Even-Maximize-Such-A-Simple-Function?ref=Feed:MaplePrimes:Can't maple even maximize such a simple function?:Comments#answer79293</link>
      <itunes:summary>&gt; maximize(t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2), t = 0 .. 1);
&gt; maximize((1/2-s)^2*(1/2+s)^2*(1+(1/2-s)^2)*(1+(1/2+s)^2), s = (-1)/2 .. 1/2);
&gt; maximize((1/4-s^2)^2*((5/4+s^2)^2-s^2), s = (-1)/2 .. 1/2);
&gt; maximize((1/4-u)^2*((5/4+u)^2-u), u = 0 .. 1/4);


The first three lines failed to give the maximum.
The last line gave the maximum 25/256.

The original function t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2)
simplifies to (1/4-u)^2*((5/4+u)^2-u)
by setting u=(1/2-t)^2.  

My question is:
Is there a simpler way to directly give the max
without going through the pain of simplification/transformation?

Thanks a lot.

</itunes:summary>
      <description>&gt; maximize(t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2), t = 0 .. 1);
&gt; maximize((1/2-s)^2*(1/2+s)^2*(1+(1/2-s)^2)*(1+(1/2+s)^2), s = (-1)/2 .. 1/2);
&gt; maximize((1/4-s^2)^2*((5/4+s^2)^2-s^2), s = (-1)/2 .. 1/2);
&gt; maximize((1/4-u)^2*((5/4+u)^2-u), u = 0 .. 1/4);


The first three lines failed to give the maximum.
The last line gave the maximum 25/256.

The original function t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2)
simplifies to (1/4-u)^2*((5/4+u)^2-u)
by setting u=(1/2-t)^2.  

My question is:
Is there a simpler way to directly give the max
without going through the pain of simplification/transformation?

Thanks a lot.

</description>
      <guid>79293</guid>
      <pubDate>Tue, 24 Oct 2006 05:40:08 Z</pubDate>
      <itunes:author>dinonykus</itunes:author>
      <author>dinonykus</author>
    </item>
    <item>
      <title>thanks</title>
      <link>http://www.mapleprimes.com/questions/42384-Cant-Maple-Even-Maximize-Such-A-Simple-Function?ref=Feed:MaplePrimes:Can't maple even maximize such a simple function?:Comments#answer79291</link>
      <itunes:summary>Yes, I have maple 10, which actually gave a better result:)


&gt; Optimization:-Maximize(t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2), t = 0 .. 1);
 
    [0.0976562500000000000, [t = 0.500000000000000000]]


But, is there a way to give the exact answer rather than a numerical one?

I am thinking about a possiblity that the max value might be sqrt(5)/16,
attained at t=sqrt(5)/2. It would be preferable to have an exact answer
in such cases.

Thanks a lot.</itunes:summary>
      <description>Yes, I have maple 10, which actually gave a better result:)


&gt; Optimization:-Maximize(t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2), t = 0 .. 1);
 
    [0.0976562500000000000, [t = 0.500000000000000000]]


But, is there a way to give the exact answer rather than a numerical one?

I am thinking about a possiblity that the max value might be sqrt(5)/16,
attained at t=sqrt(5)/2. It would be preferable to have an exact answer
in such cases.

Thanks a lot.</description>
      <guid>79291</guid>
      <pubDate>Tue, 24 Oct 2006 06:06:01 Z</pubDate>
      <itunes:author>dinonykus</itunes:author>
      <author>dinonykus</author>
    </item>
    <item>
      <title>Optimization and a workaround</title>
      <link>http://www.mapleprimes.com/questions/42384-Cant-Maple-Even-Maximize-Such-A-Simple-Function?ref=Feed:MaplePrimes:Can't maple even maximize such a simple function?:Comments#answer79292</link>
      <itunes:summary>A simple workaround is to add a decimal dot to one of the numbers in your function. For example, &lt;pre&gt;f:=t^2*(1.-t)^2*(1+t^2)*(1+(1-t)^2):

maximize(f,t=0..1,location);

         0.09765625000, {[{t = 0.5000000000}, 0.09765625000]}&lt;/pre&gt;Also, if you have relatively new version of Maple that has the Optimization package, you could find the maximum as &lt;pre&gt;Optimization:-Maximize(t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2), t = 0 .. 1);

      [0.0976562500000000002, [t = 0.499999999999999888]]&lt;/pre&gt;
</itunes:summary>
      <description>A simple workaround is to add a decimal dot to one of the numbers in your function. For example, &lt;pre&gt;f:=t^2*(1.-t)^2*(1+t^2)*(1+(1-t)^2):

maximize(f,t=0..1,location);

         0.09765625000, {[{t = 0.5000000000}, 0.09765625000]}&lt;/pre&gt;Also, if you have relatively new version of Maple that has the Optimization package, you could find the maximum as &lt;pre&gt;Optimization:-Maximize(t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2), t = 0 .. 1);

      [0.0976562500000000002, [t = 0.499999999999999888]]&lt;/pre&gt;
</description>
      <guid>79292</guid>
      <pubDate>Tue, 24 Oct 2006 06:07:56 Z</pubDate>
      <itunes:author>alec</itunes:author>
      <author>alec</author>
    </item>
    <item>
      <title> I see</title>
      <link>http://www.mapleprimes.com/questions/42384-Cant-Maple-Even-Maximize-Such-A-Simple-Function?ref=Feed:MaplePrimes:Can't maple even maximize such a simple function?:Comments#answer79290</link>
      <itunes:summary>That's a clever way to go about.

So it seems Maple can't directly give exact answers?

Thanks a lot anyway. I appreciate your help.</itunes:summary>
      <description>That's a clever way to go about.

So it seems Maple can't directly give exact answers?

Thanks a lot anyway. I appreciate your help.</description>
      <guid>79290</guid>
      <pubDate>Tue, 24 Oct 2006 06:20:51 Z</pubDate>
      <itunes:author>dinonykus</itunes:author>
      <author>dinonykus</author>
    </item>
    <item>
      <title>Another workaround</title>
      <link>http://www.mapleprimes.com/questions/42384-Cant-Maple-Even-Maximize-Such-A-Simple-Function?ref=Feed:MaplePrimes:Can't maple even maximize such a simple function?:Comments#answer79289</link>
      <itunes:summary>Actually, there is another workaround, &lt;pre&gt;_EnvExplicit:=false:
maximize(t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2),t=0..1,location);

                       25                25
                       ---, {[{t = 1/2}, ---]}
                       256               256
&lt;/pre&gt;</itunes:summary>
      <description>Actually, there is another workaround, &lt;pre&gt;_EnvExplicit:=false:
maximize(t^2*(1-t)^2*(1+t^2)*(1+(1-t)^2),t=0..1,location);

                       25                25
                       ---, {[{t = 1/2}, ---]}
                       256               256
&lt;/pre&gt;</description>
      <guid>79289</guid>
      <pubDate>Tue, 24 Oct 2006 06:24:12 Z</pubDate>
      <itunes:author>alec</itunes:author>
      <author>alec</author>
    </item>
    <item>
      <title>Yay, hooray</title>
      <link>http://www.mapleprimes.com/questions/42384-Cant-Maple-Even-Maximize-Such-A-Simple-Function?ref=Feed:MaplePrimes:Can't maple even maximize such a simple function?:Comments#answer79288</link>
      <itunes:summary>I'll remember this one.

Thank you so much.</itunes:summary>
      <description>I'll remember this one.

Thank you so much.</description>
      <guid>79288</guid>
      <pubDate>Tue, 24 Oct 2006 06:28:07 Z</pubDate>
      <itunes:author>dinonykus</itunes:author>
      <author>dinonykus</author>
    </item>
  </channel>
</rss>