{
  "tool": "matric-nqf4.maths_inverse_linear",
  "name": "Inverse of a linear function (CDU-GEN-NSC-400)",
  "answers": "g⁻¹ of g(x) = ax + b, the round trip g⁻¹(g(x)) = x, and the composition f(g(x)) with a given parabola.",
  "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 M8 (offline reconstruction); y = ax + b ⇒ g⁻¹(x) = (x − b)/a, a ≠ 0",
  "endpoint": "/faculty/matric-nqf4/maths_inverse_linear",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "a",
      "b",
      "x"
    ],
    "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": "gradient of g (a ≠ 0)",
        "minimum": -100,
        "maximum": 100
      },
      "b": {
        "type": "number",
        "description": "intercept of g",
        "minimum": -1000,
        "maximum": 1000
      },
      "x": {
        "type": "number",
        "description": "where to evaluate",
        "minimum": -1000,
        "maximum": 1000
      },
      "pa": {
        "type": "number",
        "description": "parabola a for the composition",
        "minimum": -100,
        "maximum": 100,
        "default": 1
      },
      "pb": {
        "type": "number",
        "description": "parabola b",
        "minimum": -1000,
        "maximum": 1000,
        "default": -4
      },
      "pc": {
        "type": "number",
        "description": "parabola c",
        "minimum": -10000,
        "maximum": 10000,
        "default": 3
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "gOfX",
      "inverseOfGOfX",
      "fOfGOfX"
    ],
    "properties": {
      "gOfX": {
        "type": "number",
        "description": "g(x)"
      },
      "inverseOfGOfX": {
        "type": "number",
        "description": "g⁻¹(g(x)) — must be x"
      },
      "fOfGOfX": {
        "type": "number",
        "description": "f(g(x)) with the given parabola"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "a": 2,
    "b": 1,
    "x": 2,
    "pa": 1,
    "pb": -4,
    "pc": 3
  }
}