## 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.