Lesson goal: Take a derivative

Previous: Solve equations | Home | Next: Make a Chart

Codebymath knows how to differentiate an expression. We have a function called diff that knows how to differentiate most polynomial-type expressions. This means figuring out, for example, that $\frac{d}{dx}2x^2=4x$ and $\frac{d}{dx}\cos^2(x)=-2cos(x)sin(x)$. This can help you calculus students check your work.

The diff function here is use a lot like the algebra function from this past lesson.

answer=diff("math-expression","variable")
Move the mouse over a dotted box for more information.

Now you try. Try factoring just about any expression you can find in your algebra book, and see what you get.

Type your code here:


See your results here: