Error with Solution

Hey Everyone,

Jinhook and I are trying to figure out why the solution is not coming out correctly.

Let <m>f(x)=x\cdot\sin x</m>. Find <m>f^{\prime}(x).</m><answer><shortDescription>Example 1</shortDescription>xcosx+sinx</answer>
        <solution>
'''
We are both new to the community and can't figure out why the use of the product rule is incorrect. We have tried () our the xvalues, * between the x and cos x, but nothing is working.  Are we missing something?

The <math> tag (which is implicit in the <answer>) by default uses a text format that requires that spaces (or parentheses) to recognize functions like cos. An expression xcosx is interpreted as x*c*o*s*x. You can write it as x cos x or x cos(x) or x*cos(x), and it will work as you want.

Alternatively, you could just have Doenet calculate the derivative and make your answer be <derivative>x sin(x)</derivative>.

BTW, a <solution> tag is not use for answer-checking. It is used for a collapsible section that students can open to see the solution.

Thank you for your help!