What the derivative is: slope and the rules

11 min · 2 drills

In the textbook: Ch. 3.1 Die Ableitung einer Funktion3.2 Differenzieren

For the café in the article “What a function is: cost, revenue, profit and demand” every extra cup added the same 2.50 € to the cost. The cost there grew evenly, along a straight line. It is not always like that.

Take a farmer who waters his field. The more water, the bigger the harvest, but every further thousand litres adds less than the one before:

Water, thousand litres12345
Harvest, kg100141173200224
Gain from the last thousand litres, kg41322724

A thousand litres cost the farmer 20 €, and he sells a kilo of harvest for 1 €. Right now he puts 4 thousand litres on the field. Should he water more? The fifth thousand adds 24 kg, that is 24 €, and costs 20 €: for now, yes. But the gain keeps falling and at some point drops below 20 kg. Where exactly, the table does not show: a step of a whole thousand litres is too coarse.

What you need is not the gain over a whole thousand litres but the gain at the point itself, at 4 thousand litres. The derivative (“Ableitung”) gives it. It shows how fast a quantity changes at one point, the way a speedometer shows the car's speed in this second. For the farmer's question it gives this answer:

Water, thousand litresGain at this pointA thousand litres costWater more?
425 kg, that is 25 €20 €yes
6.2520 kg, that is 20 €20 €stop here: beyond it the gain is below 20 kg

In the same way the derivative tells you where profit is largest and where cost grows most slowly. This article builds the derivative from scratch, from the slope of a straight line to the second derivative. After it you can differentiate on your own:

  • sums and powers;
  • the exponential function and the logarithm;
  • products and chains, where one function sits inside another.

Slope: from the secant to the tangent

A straight line has the same slope everywhere: how much y grows when x grows by 1. Working it out from two points is covered in “Straight line through two points”. A curve has its own slope at every point. To measure it, pick the point x0 where you want the slope, take a second point on the curve at a distance h from it and draw a straight line through both points, the secant (“Sekante”). Its slope

f(x0+h)−f(x0)h

is called the difference quotient (“Differenzenquotient”). Then make h smaller and smaller. The second point moves up to the first, and the secant turns into the tangent (“Tangente”), the straight line that touches the curve at the point x0. The number the slope approaches is the derivative f′(x0):

f′(x0)≈f(x0+h)−f(x0)hfor a very small h

Take f(x)=4x at the point x0=4, where f(4)=4⋅2=8. With h=5 the second point is f(9)=12, with h=1 it is f(5)≈8.944. The slope of the secant for smaller and smaller h:

hSlope of the secant
5(12−8)/5=0.8
1(8.944−8)/1≈0.944
0.1about 0.994
0.01about 0.999

The slopes approach 1, so f′(4)=1. In the picture below the second point slides towards the first, and the secant settles onto the tangent with slope 1.

What the number means: if x grows from 4 by a small amount, f grows by almost as much. That is why the derivative is also called the rate of change (“Änderungsrate”). You do not have to work it out this way in the exam: the rules below give the derivative at once.

Your turn1 of 2

For f(x)=x2+3x you need the slope of the secant between the points x=2 and x=2.5. What is it?

Sum, factor and number

Two cases you see at once from straight lines. y=3x has the slope 3, so (3x)′=3 and (x)′=1. A number without x, say 7, does not change at all; its derivative is 0. Three rules follow, where f and g are any functions and c is any number:

(f+g)′=f′+g′,(c⋅f)′=c⋅f′,(c)′=0

A sum is differentiated term by term, a constant factor stays. An example: (3x+7)′=3+0=3.

Powers and roots

Sum and factor break a polynomial into single powers, but they do not give the derivative of x2 itself. The secant finds it again. For x2 at the point 3, the secant at h=0.01 gives the slope 3.012−90.01=6.01, which approaches 6. The same calculation gives 2 at the point 1 and 10 at the point 5: each time 2x. For x3 the points 1, 2, 3 give 3, 12, 27, that is 3x2. The exponent moves to the front as a factor and itself becomes 1 smaller. So for every power xn:

(xn)′=n⋅xn−1

Together with the sum and factor rules: (3x4−2x+7)′=12x3−2.

The rule also holds for fractional and negative exponents. There is no proof for them here: the rule is simply accepted. A root is written as a power: x=x1/2, because x1/2⋅x1/2=x1. That is why you first write roots and fractions as a power:

FunctionAs a powerDerivative
xx1/212x−1/2=12x
1xx−1−1⋅x−2=−1x2
x23x2/323x−1/3

This also confirms the slope that the section on the secant found for 4x at the point 4: (4x)′=4⋅12x=2x, at the point 4 that is 22=1.

The number e, the exponential function and the logarithm

Powers cover polynomials and roots. In tasks on the growth of capital and demand, x sits in the exponent. Such functions need a number of their own. The number e ≈2.71828 comes from interest: if 1 € at 100 % a year is compounded more and more often, after a year the amount approaches e €. The section “Continuous compounding and the number e” shows this step by step.

The function ex (the exponential function, “e-Funktion”) grows at every point as fast as its value is large. This is the same number e: if the base is chosen so that ex has slope 1 at the point 0, the result is 2.71828, and the two definitions do not disagree.

The natural logarithm ln⁡x answers the question to which power you must raise e to get x: ln⁡e=1, ln⁡1=0, eln⁡x=x. On the calculator these are the keys “ex” and “ln”.

(ex)′=ex,(ln⁡x)′=1x(x>0)

At the point 2, ln⁡x has the slope 12.

The product

Now the derivatives of all the single functions are known. Tasks often multiply them, say x2⋅ex, and it is tempting to just multiply the derivatives. Check it on x2⋅x3=x5. By the power rule its derivative is 5x4. Multiply the derivatives of the factors and you get 2x⋅3x2=6x3, which is not 5x4. The right answer comes from a sum of two products, each the derivative of one factor times the other factor: 2x⋅x3+x2⋅3x2=2x4+3x4=5x4. This is the product rule (“Produktregel”): if two functions u and v, both with x, are multiplied,

(u⋅v)′=u′⋅v+u⋅v′

For a fraction there is the quotient rule (“Quotientenregel”) (uv)′=u′v−uv′v2; it is on the formula sheet printed in the task booklet, see “The formula sheet: how to find the right line”.

Chain: a function inside a function

In a product two functions stand side by side. It also happens that one sits inside the other. In (3x+1)2 the number x first goes through the inner function g(x)=3x+1, then the result goes through the outer one, squaring F(g)=g2. For such a chain the chain rule holds:

(F(g(x)))′=F′(g(x))⋅g′(x)

You differentiate the outer function, leave g(x) inside, and multiply by the inner derivative (“innere Ableitung”) g′(x). An example: ((3x+1)2)′=2 (3x+1)⋅3=18x+6.

With the chain you get two more rules that come up all the time:

  • Exponential function with an expression in the exponent: (eg(x))′=eg(x)⋅g′(x). An example: (e0.5x)′=0.5 e0.5x, the exponent stays up top.
  • Another base b: bx=exln⁡b, because b=eln⁡b, so bx=(eln⁡b)x; hence (bx)′=exln⁡b⋅ln⁡b=bxln⁡b. An example: 2x has the slope 2ln⁡2≈1.386 at the point 1. Here x is in the exponent, so the power rule does not fit.

Your turn2 of 2

What is the derivative of f(x)=(2x+1)3 at the point x=0?

The second derivative

All the rules above give the first derivative. You can take it once more. In the exam that is what tells a maximum from a minimum. For f(x)=x3, the derivative f′(x)=3x2 is a function too and has a derivative of its own: (3x2)′=6x. It is called the second derivative (“zweite Ableitung”), f′′(x)=6x, and is worked out by the same rules. The first derivative says whether f rises, the second says whether the slope itself grows. For x2 the slope 2x grows towards the right: the further right, the steeper, and f′′(x)=2>0. What this means for maxima and minima is explained in the article “Marginal cost and elasticity: what they mean”.

The topic in a minute

  • Derivative (“Ableitung”) f′(x) is the slope of the tangent to the graph at the point x: if x grows by 1, f changes by about f′(x). Trap: the slope of the secant through two points is only an approximation.
  • Sum and factor: (f+g)′=f′+g′, (c⋅f)′=c⋅f′, a number without x gives 0. Trap: 7x has the derivative 7, not 0; only a number without x gives zero.
  • Power: (xn)′=n xn−1, also for roots and fractions: x=x1/2, 1x=x−1. Trap: not lowering the exponent by 1, or losing the minus in x−1.
  • Exponential function and logarithm: (ex)′=ex, (ln⁡x)′=1x, (bx)′=bxln⁡b. Trap: differentiating bx like a power.
  • Product: (u⋅v)′=u′ v+u v′. Trap: u′⋅v′.
  • Chain (chain rule, “Kettenregel”): (F(g(x)))′=F′(g(x))⋅g′(x). Trap: forgetting the inner derivative g′(x).
  • Second derivative f′′ is the derivative of f′. Trap: putting the point into f′ too early and then differentiating a number (that gives 0).
  • Formula sheet (“Formelsammlung”, the page of formulas in the exam booklet (“Angabenheft”), right after the tasks): the basic derivatives and the sum, product, quotient and chain rules are on it.

What comes next

Now practise it

What the derivative is: slope and the rules

Trainer · Differential calculus

Practise
Next: Marginal cost and elasticity: what they mean
0/2

Was this article helpful?