Lesson goal: Take a derivative

Previous: Solve equations | Home | Next: Draw a map

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:

This example will find the derivative of $2x^2$. You might also try differentiating:
  • $2x^2+10x-7$ with respect to $x$.
  • $\cos^2(2x)$ with respect to $x$.
  • Codebymath knows these functions: sin, cos, tan, csc, sec, log, sqrt, abs, asin, acos, atan, sinh, cosh, tanh, and exp(x) (for $e^x$).
Dismiss.
Show a friend, family member, or teacher what you've done!

Here is a share link to your code:

Does your code work? Want to run it on your iPhone?

Here's your code:

  1. Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.

  2. Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into this page

  3. Then click the "Use on iPhone" button that you'll see.