<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>6970</id>
  <path>/www/nrich/html/content/id/6970/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;mdoxml version=&quot;1.0&quot;&gt;
  &lt;br /&gt;
  &lt;ul id=&quot;buttonBar&quot;&gt;
    &lt;li&gt;
      &lt;a href=&quot;http://nrich.maths.org/421&amp;amp;part=&quot;&gt;Warm-up
problem&lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;a href=&quot;http://nrich.maths.org/2378&amp;amp;part=&quot;&gt;Try this next&lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;a href=&quot;https://nrich.maths.org/discus/messages/27/27.html?1274115048&quot;&gt;
Ask NRICH&lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;a href=&quot;http://en.wikipedia.org/wiki/Complex_logarithm&quot;&gt;Read all
about it&lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;a href=&quot;http://nrich.maths.org/7475&amp;amp;part=solution&quot;&gt;Last week's
solution&lt;/a&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  &lt;div&gt;
    &lt;br /&gt;
I asked my integrating application to work out this integral:&lt;br /&gt;
    &lt;br /&gt;
 Integrate[1000000/(10 + (1000000 - 10)/2^(4*x)), x]&lt;br /&gt;
    &lt;br /&gt;
I was given the answer&lt;br /&gt;
    &lt;br /&gt;
(25000*Log[-32*(99999 + 16^x)])/Log[2]&lt;br /&gt;
    &lt;br /&gt;
Try to evaluate this expression at $x=1$. What has gone wrong? Can
you work out the actual real answer and verify by
differentiation?&lt;br /&gt;
    &lt;br /&gt;
  &lt;/div&gt;
  &lt;div class=&quot;framework&quot;&gt;
    &lt;span style=&quot;font-style: italic;&quot;&gt;Did you
know ... ?&lt;/span&gt;
    &lt;br /&gt;
    &lt;br /&gt;
Technology is undoubtedly a very useful mathematical tool, but
needs to be used carefully and with some skepticism. If you use a
calculating aid it is very important to check that the answer
makes sense. Algebraic tools tend not to make errors, but often
introduce unnecessary complexity into an answer.&lt;/div&gt;
  &lt;br /&gt;
&lt;/mdoxml&gt;
</indexXML>
  <solutionXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
The integrator (with proper formatting) gave the answer for my
integral $I$ as&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
$$I = \frac{25000\log[-32(99999 + 16^x)]}{\log 2}$$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The problem is that the logarithm of a negative number is complex.
However, the rules of logarithms still apply, so we see that&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
I = \frac{25000}{\log 2}\Big(\log(-32) + \log(99999+16^x\Big)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
The $\log(-32)$ part, although complex, is a constant of
integration which has been chosen by the integrator. Thus, the
integral is of the form&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
I = \frac{25000\log(99999+16^x)}{\log 2} + c&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
This is perfectly real for real choices of $c$ and direct
computation shows that this differentiates down to our starting
function.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML/>
  <clueXML/>
  <canonXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
The integrator (with proper formatting) gave the answer for my
integral $I$ as&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
$$I = \frac{25000\log[-32(99999 + 16^x)]}{\log 2}$$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The problem is that the logarithm of a negative number is complex.
However, the rules of logarithms still apply, so we see that&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
I = \frac{25000}{\log 2}\Big(\log(-32) + \log(99999+16^x\Big)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
The $\log(-32)$ part, although complex, is a constant of
integration which has been chosen by the integrator. Thus, the
integral is of the form&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
I = \frac{25000\log(99999+16^x)}{\log 2} + c&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
This is perfectly real for real choices of $c$ and direct
computation shows that this differentiates down to our starting
function.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>4</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>0</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Weekly Challenge 24: Suspicious Integrator</title>
  <description>A weekly challenge: these are shorter problems aimed at Post-16
students or enthusiastic younger students. What has happened with
my online integrator?</description>
  <spec_group>Collections
    <specifier>Weekly Challenge</specifier>
  </spec_group>
</resource>