Outlier Blog Derivative Rules
Outlier Articles Home


Derivatives in Math: Definition and Rules

10.26.2021 • 8 min read

Drew Zemke

Subject Matter Expert

As one of the fundamental operations in calculus, derivatives are an enormously useful tool for measuring rates of change. In this article, we’ll first take a high-level view of how derivative rules work, and then dig deeper to examine a number of common rules.

  1. How Do Derivative Rules Work?

  2. What is a Derivative?

  3. Derivatives of Common Functions

  4. Derivative Rules

How Do Derivative Rules Work?

The derivative is one of the fundamental operations that we study in calculus. We use derivatives to measure rates of change of functions, which makes them useful in every scientific field, from physics to economics to engineering to astronomy. 

Because of their ubiquity and usefulness, the ability to quickly differentiate (that is, to compute the derivative of) a function is a handy skill to have if you’re working in a math-based discipline. However, when you’re first starting out with calculus, derivatives can feel complicated and tedious to compute. 

Fortunately, there are a set of derivative rules that you can use to break down any derivative computation into manageable pieces. Once you master these rules,  you’ll be able to compute derivatives in mere seconds. This article will walk you through the most common derivatives and derivative rules, and will give you the tools that you need to start improving your differentiation skills.

What is a Derivative?

Before we jump into derivative rules, let’s briefly discuss what a derivative is and why we might want to compute them in the first place.

In short, the derivative of a function tells us about its rate of change. As an example, suppose you’re driving along an interstate highway and the function f(t)f\left(t\right) measures the distance (in miles) from your starting location as a function of the time t (in hours) since you started driving.

If you were to look at your car’s speedometer two hours into the trip, it would tell you how fast your car was traveling (in miles per hour) at that moment. The derivative of the function f tells us the same information: f(2)f'\left(2\right) is the instantaneous rate of change of f at t = 2. If we know the derivative f(2)f'\left(2\right) at every time t, we can compute or estimate a lot of interesting properties of the motion of the car.

In practice, to compute the derivative of f we need some information about the function f. This often comes in the form of a formula, like f(t)=30t32+20ln(t+1)f\left(t\right)=30t^\frac32+20\ln\left(t+1\right). We’ll see shortly that derivative rules give us a way to take a seemingly complicated differentiation task like this one and break it up into smaller and simpler derivatives.

Derivatives of Common Functions

For derivative rules to be useful, we first need to know how to compute derivatives of a handful of base functions. Here are the derivatives of the functions that you’ll frequently run into in calculus and other scientific contexts.

Derivatives of Power Functions

These functions appear frequently in almost every mathematical setting due to their simplicity, and their derivatives are connected by a common rule that we’ll cover in the next section.

Derivative Rules - Derivatives of Power Functions

Derivatives of Exponential and Logarithmic Functions

The exponential and logarithmic functions play key roles throughout both theoretical and applied mathematics. One of the defining characteristics of the natural exponential function exe^x is that it is its own derivative.

Derivatives of Exponential and Logarithmic Functions

Derivatives of Trigonometric Functions

Trigonometric functions are useful in any situation that involves periodic behavior, where a function takes on the same values in repeating intervals. Note that the variable x in these functions is implicitly in radians.

Derivatives of Trigonometric Functions

Derivatives of Inverse Trigonometric Functions

These are included for completeness, but note that these functions and their derivatives rarely appear outside of calculus itself. It’s useful to know that they exist, but arguably you can get by without memorizing these derivatives.

Derivatives of Inverse Trigonometric Functions

Derivative Rules

Once you have a grasp of the basic derivatives, the derivative rules provide a means of differentiating more complicated functions by breaking them into pieces. For each rule, we’ve provided a few examples to show how the rules work.

The Power Rule

In the tables above we showed some derivatives of “power functions” like x2x^2 and x3x^3; the Power Rule provides a formula for differentiating any power function:

ddxxk=kxk1\frac d{dx}x^k=kx^{k-1}

This works even if k is a negative number or a fraction. It’s common to remember the power rule as a process: to differentiate xkx^k, bring the power k down in front of the expression, then decrease the old exponent by one. Here are a couple examples:

  • ddxx5=5x51=5x4\frac d{\operatorname dx}x^5=5x^{5-1}=5x^4

  • ddxx13=13x131=13x23\frac d{\operatorname dx}x^\frac13=\frac13x^{\frac13-1}=\frac13x^{-\frac23}

The Sum/Difference Rules

The Sum Rule says that we can differentiate the sum of two functions simply by differentiating the two functions separately and then adding the results together. The same goes for the difference of two functions:

ddx(f(x)+g(x))=ddxf(x)+ddxg(x)\frac d{dx}\left(f\left(x\right)+g\left(x\right)\right)=\frac d{dx}f\left(x\right)+\frac d{dx}g\left(x\right)
ddx(f(x)g(x))=ddxf(x)ddxg(x)\frac d{dx}\left(f\left(x\right)-g\left(x\right)\right)=\frac d{dx}f\left(x\right)-\frac d{dx}g\left(x\right)

A quick way to remember this is “the derivative of the sum is the sum of the derivatives.” Here are some examples; note that we can differentiate the individual functions using the power rule or by looking back at the tables in the previous section.

  • ddx(x2+3)=ddxx2+ddx3=2x+0=2x\frac d{dx}\left(x^2+3\right)=\frac d{dx}x^2+\frac d{dx}3=2x+0=2x

  • ddx(exsinx)=ddxexddxsinx=excosx\frac d{dx}\left(e^x-\sin x\right)=\frac d{dx}e^x-\frac d{dx}\sin x=e^x-\cos x

The Constant Multiple Rule

When differentiating, we can “pull” constants outside of the derivative operator:

ddx(cf(x))=cddxf(x)\frac d{dx}\left(cf\left(x\right)\right)=c\frac d{dx}f\left(x\right)

In other words, to differentiate a function multiplied by a constant, we can differentiate the function first, then multiply the result by the constant. Here’s an example:

  • ddx(6cosx)=6ddxcosx=6(sinx)=6sinx\frac d{dx}\left(6\cos x\right)=6\frac d{dx}\cos x=6\left(-\sin x\right)=-6\sin x

By combining the Sum Rule, the Constant Multiple Rule, and the Power Rule, we’re able to compute the derivative of any polynomial function:

ddx(4x47x2+3x+10)\frac d{dx}\left(4x^4-7x^2+3x+10\right)

  =ddx(4x4)ddx(7x2)+ddx(3x)+ddx10=\frac d{dx}\left(4x^4\right)-\frac d{dx}\left(7x^2\right)+\frac d{dx}\left(3x\right)+\frac d{dx}10

  =4ddxx47ddxx2+3ddxx+ddx10=4\frac d{dx}x^4-7\frac d{dx}x^2+3\frac d{dx}x+\frac d{dx}10



The Product Rule

Things start to get a little tricky here, because the derivative of the product of two functions is not the product of the derivatives. It’s a little more complicated than that:

ddx(f(x)g(x))=ddxf(x)g(x)+f(x)ddxg(x)\frac d{dx}\left(f\left(x\right)\cdot g\left(x\right)\right) =\frac d{dx}f\left(x\right)\cdot g\left(x\right)+f\left(x\right)\cdot\frac d{dx}g\left(x\right)

The Product Rule says that the derivative of the product of two functions is the derivative of the first function times the second function plus the first times the derivative of the second—try saying that five times fast. It’s a little easier to read and remember the Product Rule if we write the derivatives in a different notation:

(fg)=fg+fg\left(f\cdot g\right)'=f'\cdot g+f\cdot g'

Here are a couple examples of the Product Rule in action:

  • ddx(exsinx)=ddx(ex)sinx+exddx(sinx)\frac d{dx}\left(e^x\sin x\right)=\frac d{dx}\left(e^x\right)\cdot\sin x+e^x\cdot\frac d{dx}\left(\sin x\right)

  =exsinx+excosx=ex(sinx+cosx)=e^x\cdot\sin x+e^x\cdot\cos x=e^x\left(\sin x+\cos x\right)

  • (x3lnx)=(x3)lnx+x3(lnx)=(3x2)lnx+x3(1x)\left(x^3\ln x\right)'=\left(x^3\right)'\cdot\ln x+x^3\left(\ln x\right)'=\left(3x^2\right)\cdot\ln x+x^3\cdot\left(\frac1x\right)

  =3x2lnx+x2=3x^2\ln x+x^2

The Quotient Rule

Similar to products, differentiating the quotient of two functions is more involved than simplify dividing one derivative by the other:

ddx(f(x)g(x))=ddxf(x)g(x)f(x)ddxg(x)(g(x))2\frac d{dx}\left(\frac{f\left(x\right)}{g\left(x\right)}\right)=\frac{\displaystyle\frac d{dx}f\left(x\right)\cdot g\left(x\right)-f\left(x\right)\cdot\frac d{dx}g\left(x\right)}{\displaystyle\left(g\left(x\right)\right)^2}
(fg)=fgfgg2\left(\frac fg\right)'=\frac{f'\cdot g-f\cdot g'}{g^2}

The numerator in the formula for the quotient rule looks a lot like the product rule, but note the minus sign. This one is harder to remember, but you can use a mnemonic like this one or even come up with your own. Here are some example applications of the quotient rule:

  • ddx(tanxx1)=ddx(tanx)(x1)tanxddx(x1)(x1)2\frac d{dx}\left(\frac{\tan x}{x-1}\right)=\frac{\displaystyle\frac d{dx}\left(\tan x\right)\cdot\left(x-1\right)-\tan x\cdot\frac d{dx}\left(x-1\right)}{\displaystyle\left(x-1\right)^2}

  =(sec2x)(x1)(tanx)(10)(x1)2=\frac{\displaystyle\left(\sec^2x\right)\left(x-1\right)-\left(\tan x\right)\left(1-0\right)}{\displaystyle\left(x-1\right)^2}

  =(x1)sec2xtanx(x1)2=\frac{\displaystyle\left(x-1\right)\sec^2x-\tan x}{\displaystyle\left(x-1\right)^2}

  • (1x3)=(1)(x3)1(x3)(x3)2=0x313x2x6\left(\frac1{x^3}\right)'=\frac{\left(1\right)'\cdot\left(x^3\right)-1\cdot\left(x^3\right)'}{\left(x^3\right)^2}=\frac{0\cdot x^3-1\cdot3x^2}{x^6}


(Notice that we could have also done that last example with the Power Rule: (1x3)=(x3)=3x31=3x4=3x4\left(\frac1{x^3}\right)'=\left(x^{-3}\right)'=-3x^{-3-1}=-3x^{-4}=-\frac3{x^4}. In math there are often multiple ways to approach a single problem.)

The Chain Rule

We save the best for last: The Chain Rule is arguably the most important of the derivative rules, as it shows up very frequently and has wide-reaching applications in calculus. The Chain Rule enables us to differentiate compositions of functions, or “functions inside other functions.” There are two ways in which the Chain Rule is typically presented:

f(g(x))=f(g(x))g(x)f\left(g\left(x\right)\right)'=f'\left(g\left(x\right)\right)\cdot g'\left(x\right)

The first formulation of the Chain Rule above is more explicit, but the second is a little bit easier to remember. They both say the same thing: to differentiate a composition of two functions, we differentiate the “outside” function and plug the “inside” function into it f(g(x))f'\left(g\left(x\right)\right) and multiply that by the derivative of the inside function g(x)g'\left(x\right).

When applying the Chain Rule, it’s often helpful to assign names to the outside and inside functions to help you plug them into the formula. Here’s an example of that process:

To compute ddxcos(x2)\frac d{dx}\cos\left(x^2\right):

  1. Let f(u)f\left(u\right)=cosu\cos u and g(x)g\left(x\right)=x2x^2, so that f(g(x))f\left(g\left(x\right)\right)=cos(x2)\cos\left(x^2\right).

  2. The derivative of the “outside” function is f(u)f'\left(u\right)=sin  u-\sin\;u, and we plug the “inside” function into that to get f(g(x))f'\left(g\left(x\right)\right)=sin(x2)-\sin\left(x^2\right)

  3. The derivative of the “inside” function is g(x)=2xg'\left(x\right)=2x

  4. The Chain Rule then says that ddxcos(x2)=f(g(x))g(x)=(sin(x2))(2x)=2xsin(x2)\frac d{dx}\cos\left(x^2\right)=f'\left(g\left(x\right)\right)\cdot g'\left(x\right)=\left(-\sin\left(x^2\right)\right)\left(2x\right)=-2x\sin\left(x^2\right)

Here’s another example using the fractional derivative notation:

To compute ddxesinx\frac d{dx}e^{\sin x}:

  1. Break the function into pieces: Let y=euy=e^u and let u=sinxu=\sin x

  2. Compute derivatives: dydu=ddueu=eu\frac{dy}{du}=\frac d{du}e^u=e^u and dudx=ddx(sinx)=cosx\frac{du}{dx}=\frac d{dx}\left(\sin x\right)=\cos x

  3. The Chain Rule then says that ddxesinx=dydx=dydududx=eucosx\frac d{dx}e^{\sin x}=\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}=e^u\cdot\cos x

  4. We aren’t quite done yet. Our original function was in terms of x, so we need to write the derivative completely in terms of x. Plug u=sinxu=\sin x into the derivative we just computed to complete the process: ddxesinx=eucosx=esinxcosx\frac d{dx}e^{\sin x}=e^u\cdot\cos x=e^{\sin x}\cdot\cos x

Explore Outlier's Award-Winning For-Credit Courses

Outlier (from the co-founder of MasterClass) has brought together some of the world's best instructors, game designers, and filmmakers to create the future of online college.

Check out these related courses:

Calculus I

Calculus I

The mathematics of change.

Explore course
Intro to Statistics

Intro to Statistics

How data describes our world.

Explore course


Master the building blocks of Calculus.

Explore course