<?xml version="1.0" encoding="UTF-8"?>
<quiz>
  <question type="stack">
    <name>
      <text>PT.10.7 (Expand and diff CAP W2 11 unused edited)</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<p>Expand the following expression for the function \(f\) and differentiate it:\[f(x)= {@p@}. \] <br></p><p>\(f'(x) = \) [[input:ans1]]. [[validation:ans1]]</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text><![CDATA[Expanding the brackets and simplifying gives us \[{@p@}={@q@}.\]&nbsp;The formula for the derivative of a power then implies that
 
 \begin{align*}<br>
 \frac{d}{d{@v@}}\left( {@p@}\right)  <br>&amp; =  \frac{d}{d{@v@}}\left( {@q@}\right)  \\
    <br>&amp; = {@rdm1*diff(qqq2,v)@} + {@rdm1*rdm3*diff(qqq1,v)@}+ {@rdm2*rdm3*diff(qqq3,v)@}.
  \end{align*}]]></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.1</penalty>
    <hidden>0</hidden>
    <idnumber/>
    <stackversion>
      <text>2020081700</text>
    </stackversion>
    <questionvariables>
      <text>v:x;
 rdm1:2+rand(2);
 rdm2:-2-rand(2);
 rdm3:1+rand(5);
 pppp1:v;
 pppp2:1/v;
 pppp3:1/v^2;
 pppp4:v;
 ppp1:rdm1*pppp1;
 ppp2:rdm2*pppp2;
 ppp3:rdm3*pppp3;
 ppp4:pppp4;
 pp1:ppp1+ppp2;
 pp2:ppp3+ppp4;
 p:pp1*pp2;
 qq1:ppp1*ppp3;
 qq2:ppp1*ppp4;
 qq3:ppp2*ppp3;
 qq4:ppp2*ppp4;
 qqq1:pppp1*pppp3;
 qqq2:pppp1*pppp4;
 qqq3:pppp2*pppp3;
 qqq4:pppp2*pppp4;
 q:expand(p);</text>
    </questionvariables>
    <specificfeedback format="html">
      <text><![CDATA[<p>[[feedback:Result]]</p>]]></text>
    </specificfeedback>
    <questionnote format="moodle_auto_format">
      <text>\[\frac{d}{d{@v@}}({@p@}) = {@diff(p,v)@} \]</text>
    </questionnote>
    <questiondescription format="moodle_auto_format">
      <text/>
    </questiondescription>
    <questionsimplify>1</questionsimplify>
    <assumepositive>0</assumepositive>
    <assumereal>0</assumereal>
    <prtcorrect format="html">
      <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
    </prtcorrect>
    <prtpartiallycorrect format="html">
      <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
    </prtpartiallycorrect>
    <prtincorrect format="html">
      <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
    </prtincorrect>
    <decimals>.</decimals>
    <scientificnotation>*10</scientificnotation>
    <multiplicationsign>none</multiplicationsign>
    <sqrtsign>1</sqrtsign>
    <complexno>i</complexno>
    <inversetrig>cos-1</inversetrig>
    <logicsymbol>lang</logicsymbol>
    <matrixparens>[</matrixparens>
    <isbroken>0</isbroken>
    <variantsselectionseed/>
    <input>
      <name>ans1</name>
      <type>algebraic</type>
      <tans>diff(q,v)</tans>
      <boxsize>20</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint/>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords/>
      <allowwords/>
      <forbidfloat>1</forbidfloat>
      <requirelowestterms>1</requirelowestterms>
      <checkanswertype>1</checkanswertype>
      <mustverify>1</mustverify>
      <showvalidation>1</showvalidation>
      <options/>
    </input>
    <prt>
      <name>Result</name>
      <value>1.0000000</value>
      <autosimplify>1</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text/>
      </feedbackvariables>
      <node>
        <name>0</name>
        <description/>
        <answertest>Diff</answertest>
        <sans>ans1</sans>
        <tans>diff(q,v)</tans>
        <testoptions>v</testoptions>
        <quiet>0</quiet>
        <truescoremode>=</truescoremode>
        <truescore>1.0000000</truescore>
        <truepenalty/>
        <truenextnode>-1</truenextnode>
        <trueanswernote>Result-0-T </trueanswernote>
        <truefeedback format="html">
          <text/>
        </truefeedback>
        <falsescoremode>=</falsescoremode>
        <falsescore>0.0000000</falsescore>
        <falsepenalty/>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>Result-0-F </falseanswernote>
        <falsefeedback format="html">
          <text/>
        </falsefeedback>
      </node>
    </prt>
    <deployedseed>1543737918</deployedseed>
    <deployedseed>1402119324</deployedseed>
    <deployedseed>1369969581</deployedseed>
    <deployedseed>2083586712</deployedseed>
    <deployedseed>752934887</deployedseed>
    <deployedseed>46517285</deployedseed>
    <deployedseed>353156275</deployedseed>
    <deployedseed>1307095574</deployedseed>
    <deployedseed>1524357652</deployedseed>
    <deployedseed>1941373127</deployedseed>
    <deployedseed>1925663695</deployedseed>
    <deployedseed>1878616787</deployedseed>
    <deployedseed>1651649041</deployedseed>
    <deployedseed>283642274</deployedseed>
    <deployedseed>227364658</deployedseed>
    <deployedseed>705907939</deployedseed>
    <qtest>
      <testcase>1</testcase>
      <description/>
      <testinput>
        <name>ans1</name>
        <value>diff(p,v)</value>
      </testinput>
      <expected>
        <name>Result</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty>0.0000000</expectedpenalty>
        <expectedanswernote>Result-0-T</expectedanswernote>
      </expected>
    </qtest>
  </question>
</quiz>
