{
  "tool": "matric-nqf4.maths_cubic_stationary",
  "name": "Stationary points of a cubic (CDU-GEN-NSC-400)",
  "answers": "The stationary points of f(x) = x³ + bx² + cx + d, classified by the second derivative, with the point of inflection.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "CAPS Grade 12 Mathematics, worked reference M11 (offline reconstruction); f′(x) = 0 at stationary points; f″ classifies them",
  "endpoint": "/faculty/matric-nqf4/maths_cubic_stationary",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "b",
      "c",
      "d"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "b": {
        "type": "number",
        "description": "coefficient of x²",
        "minimum": -1000,
        "maximum": 1000
      },
      "c": {
        "type": "number",
        "description": "coefficient of x",
        "minimum": -10000,
        "maximum": 10000
      },
      "d": {
        "type": "number",
        "description": "constant term",
        "minimum": -100000,
        "maximum": 100000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "x1",
      "y1",
      "type1",
      "x2",
      "y2",
      "type2",
      "inflectionX"
    ],
    "properties": {
      "x1": {
        "type": "number",
        "description": "first stationary x (smaller)"
      },
      "y1": {
        "type": "number",
        "description": "f(x1)"
      },
      "type1": {
        "type": "string",
        "description": "local maximum | local minimum"
      },
      "x2": {
        "type": "number",
        "description": "second stationary x (larger)"
      },
      "y2": {
        "type": "number",
        "description": "f(x2)"
      },
      "type2": {
        "type": "string",
        "description": "local maximum | local minimum"
      },
      "inflectionX": {
        "type": "number",
        "description": "x of the point of inflection"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "b": -6,
    "c": 9,
    "d": 1
  }
}