HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Logarithms, Exponentials and a First Look at Differentiation
  1. 1Exponential and logarithmic functions
  2. 2Laws of logarithms and equations
  3. 3A first look at differentiation
  1. Mathematics
  2. /Logarithms, Exponentials and a First Look at Differentiation
  3. /A first look at differentiation

Course 21.3·Lesson 3 of 3

A first look at differentiation

The gradient of a curve at a point is the gradient of its tangent. You estimate it from a drawn tangent, and find it with the derivative of ax to the power n. Then you find stationary points and tell a maximum from a minimum. This is the Extended differentiation content of Cambridge IGCSE Mathematics.

about 25 min1 simulation1 practice question
Lesson 3 of 3Show all lessonsHide
Logarithms, Exponentials and a First Look at Differentiation
  1. 1Exponential and logarithmic functions
  2. 2Laws of logarithms and equations
  3. 3A first look at differentiation

Try the code and the simulations beside the lesson.

This lesson is the Extended differentiation content of Cambridge IGCSE Mathematics. The later Class 11-12 chapters on limits and derivatives give the full theory. Here we use the rules and see what they tell us.

The gradient of a curve

A straight line has the same gradient everywhere. A curve bends, so its gradient changes. The gradient of a curve at a point is the gradient of the tangent there. The tangent is the straight line that just touches the curve at that point and has the same direction.

To estimate a gradient from a drawn curve:

  1. Place a ruler so that it touches the curve at the point and does not cut it.
  2. Draw the tangent.
  3. Make a large right-angled triangle on the tangent. Divide the rise by the run.

For y=x2y = x^2y=x2 at x=2x = 2x=2 the tangent passes through (1,0)(1, 0)(1,0) and (3,8)(3, 8)(3,8). The rise is 888 and the run is 222, so the gradient is 444.

A graph of y equals x squared for x from minus 0.6 to 3.5, with a red tangent line at the point (2, 4). The tangent passes through (1, 0) and (3, 8). A dashed green triangle under the tangent has a run of 2 along the x-axis from x equals 1 to x equals 3 and a rise of 8, so the gradient is 8 over 2, which is 4.

A drawn tangent only gives an estimate, because it depends on how carefully you draw. The derivative gives the exact value.

The derivative of axnax^naxn

The derivative of yyy with respect to xxx is written dydx\dfrac{dy}{dx}dxdy​. It gives the gradient at every point. For nnn a whole number from 000 upwards and aaa any rational number:

y=axn⟹dydx=anxn−1.\displaystyle y = ax^n \quad\Longrightarrow\quad \frac{dy}{dx} = anx^{n - 1}.y=axn⟹dxdy​=anxn−1.

Multiply by the power, then reduce the power by 111. A constant has derivative 000, and y=xy = xy=x has derivative 111. For a sum of up to three terms, differentiate each term.

  • y=5x3y = 5x^3y=5x3 gives dydx=15x2\dfrac{dy}{dx} = 15x^2dxdy​=15x2.
  • y=x4−6xy = x^4 - 6xy=x4−6x gives dydx=4x3−6\dfrac{dy}{dx} = 4x^3 - 6dxdy​=4x3−6.
  • y=2x3−9x2+12x−3y = 2x^3 - 9x^2 + 12x - 3y=2x3−9x2+12x−3 gives dydx=6x2−18x+12\dfrac{dy}{dx} = 6x^2 - 18x + 12dxdy​=6x2−18x+12.

To find the gradient at a point, put its xxx-value into dydx\dfrac{dy}{dx}dxdy​. At x=3x = 3x=3 the last curve has gradient 54−54+12=1254 - 54 + 12 = 1254−54+12=12. To find where the gradient has a given value, set dydx\dfrac{dy}{dx}dxdy​ equal to it and solve.

Stationary points

A stationary point is a point where the gradient is zero, so the tangent is horizontal. To find the stationary points:

  1. Find dydx\dfrac{dy}{dx}dxdy​.
  2. Set dydx=0\dfrac{dy}{dx} = 0dxdy​=0 and solve for xxx.
  3. Put each xxx into the equation of the curve to find yyy.

For y=2x3−9x2+12x−3y = 2x^3 - 9x^2 + 12x - 3y=2x3−9x2+12x−3: dydx=6x2−18x+12=6(x−1)(x−2)\dfrac{dy}{dx} = 6x^2 - 18x + 12 = 6(x - 1)(x - 2)dxdy​=6x2−18x+12=6(x−1)(x−2). This is zero at x=1x = 1x=1 and x=2x = 2x=2. Then y=2−9+12−3=2y = 2 - 9 + 12 - 3 = 2y=2−9+12−3=2 at x=1x = 1x=1, and y=16−36+24−3=1y = 16 - 36 + 24 - 3 = 1y=16−36+24−3=1 at x=2x = 2x=2. The stationary points are (1,2)(1, 2)(1,2) and (2,1)(2, 1)(2,1).

Maximum or minimum?

A stationary point of this kind is a maximum (a top) or a minimum (a bottom). The syllabus allows any method.

  • A sketch. Draw an accurate sketch and look.
  • The second derivative. Differentiate dydx\dfrac{dy}{dx}dxdy​ again to get d2ydx2\dfrac{d^2y}{dx^2}dx2d2y​. If it is positive at the point, the point is a minimum. If it is negative, the point is a maximum.
  • The gradient on either side. Gradient positive, then zero, then negative: a maximum. Negative, then zero, then positive: a minimum.

Here d2ydx2=12x−18\dfrac{d^2y}{dx^2} = 12x - 18dx2d2y​=12x−18. At x=1x = 1x=1 it is −6-6−6, so (1,2)(1, 2)(1,2) is a maximum. At x=2x = 2x=2 it is 666, so (2,1)(2, 1)(2,1) is a minimum. Candidates are not expected to identify points of inflection.

A graph of the cubic y equals 2x cubed minus 9x squared plus 12x minus 3. It rises to a maximum at (1, 2), falls to a minimum at (2, 1) and then rises again. Red dashed horizontal lines through the two stationary points show that the gradient is zero there. The gradient is positive before x equals 1, negative between 1 and 2, and positive after 2.

Using it: the greatest value

A rectangle has a perimeter of 404040 m. Let one side be xxx metres. The other side is (20−x)(20 - x)(20−x) metres, so the area is A=20x−x2A = 20x - x^2A=20x−x2 square metres.

  1. dAdx=20−2x\dfrac{dA}{dx} = 20 - 2xdxdA​=20−2x.
  2. dAdx=0\dfrac{dA}{dx} = 0dxdA​=0 gives x=10x = 10x=10.
  3. d2Adx2=−2\dfrac{d^2A}{dx^2} = -2dx2d2A​=−2, which is negative, so it is a maximum.
  4. A=10×10=100A = 10 \times 10 = 100A=10×10=100 square metres.

The greatest area is 100100100 m2^22, when the rectangle is a square.

Practise with new numbers

Try it in Python

The program finds the gradient of y=2x3−9x2+12x−3y = 2x^3 - 9x^2 + 12x - 3y=2x3−9x2+12x−3 from the rule and from a very small step, and then finds the stationary points.

Read it first. Then run it. Do the rule and the small step agree?

1. Change the points in the first loop to [-1, 4]. What are the gradients?

2. Change h to 0.1. How close is the small step now?

Common mistakes

  • Forgetting to reduce the power. The derivative of x3x^3x3 is 3x23x^23x2, not 3x33x^33x3.
  • Differentiating a constant to itself. The derivative of a constant is 000.
  • Giving yyy when the gradient is asked. The gradient is the value of dydx\dfrac{dy}{dx}dxdy​.
  • Stopping at xxx. For a stationary point, find yyy as well.
  • Naming a maximum or minimum without a test. Use the second derivative, the sign of the gradient, or a sketch.

Remember these

  • Gradient of a curve at a point = gradient of the tangent there.
  • y=axny = ax^ny=axn gives dydx=anxn−1\dfrac{dy}{dx} = anx^{n - 1}dxdy​=anxn−1. A constant gives 000.
  • Stationary points: dydx=0\dfrac{dy}{dx} = 0dxdy​=0. Then find yyy.
  • d2ydx2>0\dfrac{d^2y}{dx^2} > 0dx2d2y​>0: minimum. d2ydx2<0\dfrac{d^2y}{dx^2} < 0dx2d2y​<0: maximum.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Differentiate y=4x3−5x2+3x−7y = 4x^3 - 5x^2 + 3x - 7y=4x3−5x2+3x−7.
  1. Find the gradient of y=3x2−2xy = 3x^2 - 2xy=3x2−2x at x=4x = 4x=4.
  1. Find the stationary point of y=x2−8xy = x^2 - 8xy=x2−8x, and say whether it is a maximum or a minimum.
  1. Find the stationary points of y=x3−27xy = x^3 - 27xy=x3−27x, and say which is a maximum.
  1. A ball is thrown up. Its height in metres after ttt seconds is h=20t−5t2h = 20t - 5t^2h=20t−5t2. Find the greatest height.

References

  • Cambridge International, IGCSE Mathematics 0580 syllabus (2025, 2026 and 2027), section 2.12 Differentiation (Extended).
  • OpenStax, Calculus Volume 1, chapter 3 Derivatives and chapter 4 Applications of Derivatives.

Enroll free in Logarithms, Exponentials and a First Look at Differentiation

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

The steepness of a path modelled by a cubic is needed at two places…Easy · High School (9–10) · by StemPy Lab
The turning points of a cubic curve are needed, with their nature decided by the second derivative…Medium · High School (9–10) · by StemPy Lab
A farmer has 60 m of fencing to make three sides of a rectangular pen…Hard · High School (9–10) · by StemPy Lab
That was the last lessonBack to the course: take the test
← Logarithms, Exponentials and a First Look at Differentiation
← Laws of logarithms and equationsNext →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Gradients and stationary pointsPython Lab · by StemPy Lab

Question Sets (1)

Logarithms and Gradients: Think It Through10 questions · by StemPy Lab

Notes (1)

Logarithms, Exponentials and Differentiation: Quick RevisionNote · by StemPy Lab