Ma · Mathematics

How to Find the Derivative of a Function

Published By the 9to5Science editorial team

At a glance

  1. 1. Provide the function

    Write the formula whose derivative you want; no function was included here.

  2. 2. Name the variable

    Specify the variable of differentiation, especially if the formula contains more than one variable.

  3. 3. Choose the rules

    Apply the power, sum, product, quotient, or chain rule as the expression requires.

  4. 4. Simplify and check

    Combine terms and verify that the result uses the correct variable and derivative rules.

Advertisement

A derivative describes how a function changes as its input changes. But a derivative is always taken of a particular function, and no formula is included in the question here. There is therefore no specific derivative to calculate yet.

To get a definite answer, provide the expression and, if it is not obvious, the variable to differentiate with respect to. For example: “Find the derivative of f(x)=3x4−2x+7f(x)=3x^4-2x+7 with respect to xx.”

What information is needed?

A derivative depends on both the formula and the variable of differentiation. For a function written as f(x)f(x), the usual request is to find f′(x)f'(x), the derivative with respect to xx. If an expression contains several variables, the intended variable can change the result.

For instance, if yy is treated as a constant, then

ddx(xy)=y.\frac{d}{dx}(xy)=y.

If instead yy depends on xx, the product rule gives

ddx(xy(x))=y(x)+xy′(x).\frac{d}{dx}(x y(x))=y(x)+x y'(x).

So include any relevant assumptions about how variables are related.

A worked example: a polynomial

Suppose the intended function is

f(x)=3x4−2x+7.f(x)=3x^4-2x+7.

Differentiate each term with respect to xx. For a positive integer nn, the power rule says that the derivative of xnx^n is nxn−1n x^{n-1}; a constant multiple stays in front, and a constant by itself has derivative zero:

f′(x)=3(4x3)−2(1)+0=12x3−2.\begin{aligned} f'(x)&=3(4x^3)-2(1)+0\\ &=12x^3-2. \end{aligned}

Thus, for this example, the derivative is 12x3−212x^3-2. This is only an illustration; it cannot be assumed to be the missing function.

When the function uses more than one rule

For a product or a composition, identify the structure before differentiating. For example, let g(x)=x2sin⁡xg(x)=x^2\sin x. The product rule, (uv)′=u′v+uv′(uv)'=u'v+uv', gives

g′(x)=2xsin⁡x+x2cos⁡x.g'(x)=2x\sin x+x^2\cos x.

For a composite function such as h(x)=(3x+1)5h(x)=(3x+1)^5, use the chain rule: differentiate the outer fifth power and multiply by the derivative of the inside expression.

h′(x)=5(3x+1)4⋅3=15(3x+1)4.h'(x)=5(3x+1)^4\cdot 3=15(3x+1)^4.

These examples show why seeing the actual expression matters: different function forms call for different rules.

Common mistakes

  • Leaving out the function. A request to “find the derivative” does not determine a unique answer without an expression.
  • Not specifying the variable. In a multivariable expression, a partial derivative or an ordinary derivative may be intended, and the result can differ.
  • Using the power rule on a composite expression without the chain rule. For (3x+1)5(3x+1)^5, differentiating only the outer power misses the factor of 33 from the inside.
  • Differentiating constants incorrectly. A term that is constant with respect to the chosen variable has derivative zero.

Provide the missing formula and the variable of differentiation to get the specific derivative. For example: “Differentiate y=x2+1x−3y=\frac{x^2+1}{x-3} with respect to xx.”

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.