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
  1. Python Labs
  2. /Gradients and stationary points
MathematicsEasyHigh School (9–10)Functions and Calculus › Limits and Derivatives

Gradients and stationary points

You will find the gradient of y=x3−6x2+9x+1y = x^3 - 6x^2 + 9x + 1y=x3−6x2+9x+1, and use it to find and classify its stationary points.

Your tasks.

  1. In derivative, return dydx=3x2−12x+9\dfrac{dy}{dx} = 3x^2 - 12x + 9dxdy​=3x2−12x+9.
  2. In second, return d2ydx2=6x−12\dfrac{d^2y}{dx^2} = 6x - 12dx2d2y​=6x−12.
  3. Set stationary to the whole numbers from −5-5−5 to 555 where the derivative is 000. Then set kinds to a list with "max" or "min" for each one, in the same order.

Run it first, just as it is. The checker at the end prints FAIL for each task. Then do the tasks one at a time, and run the program again after each one. A Hint appears under every check that still fails.

When every line says PASS, change derivative to 3 * x ** 2 + 9. How many stationary points are there now, and why?

StemPy LabContributed by StemPy Lab
python
Loading Python runtime…

A worked solution

Have you tried it?

Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.

Log in to save
← All Labs
← Powers, logarithms and a change of baseHow many common points? →
More onFunctions and Calculus › Limits and Derivatives

Discussion (0)

Log in to join the discussion.

Loading…

More labs on this topic

  1. A series and a ratio of derivativesEasy
  2. The number e from a sequenceEasy
  3. Test a rule against a difference quotientEasy
  4. The derivative from the definitionEasy
  5. The degree rule at infinityEasy
All labs on this topic →