{
  "tool": "matric-nqf4.maths_first_principles",
  "name": "Differentiation from first principles (CDU-GEN-NSC-400)",
  "answers": "f′(x) of f(x) = ax² + bx from the limit definition, the derivative at a point, and the tangent's equation there.",
  "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 M10 (offline reconstruction); f′(x) = limₕ→₀ [f(x+h) − f(x)]/h",
  "endpoint": "/faculty/matric-nqf4/maths_first_principles",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "a",
      "b",
      "x0"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "a": {
        "type": "number",
        "description": "coefficient of x²",
        "minimum": -100,
        "maximum": 100
      },
      "b": {
        "type": "number",
        "description": "coefficient of x",
        "minimum": -1000,
        "maximum": 1000
      },
      "x0": {
        "type": "number",
        "description": "the point of tangency",
        "minimum": -1000,
        "maximum": 1000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "derivativeAt",
      "fAt",
      "tangentSlope",
      "tangentIntercept"
    ],
    "properties": {
      "derivativeAt": {
        "type": "number",
        "description": "f′(x0)"
      },
      "fAt": {
        "type": "number",
        "description": "f(x0)"
      },
      "tangentSlope": {
        "type": "number",
        "description": "gradient of the tangent"
      },
      "tangentIntercept": {
        "type": "number",
        "description": "c of the tangent y = mx + c"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "a": 1,
    "b": 3,
    "x0": 2
  }
}