{"uid":"cap_DbwWT2JlhjgL2FjLGowtf","slug":"linear-system-solver-ax-b-e4d44427","name":"Linear System Solver (Ax = b)","description":"Solve linear equations Ax = b (up to 6 unknowns): unique, none or infinite solutions, with rank and determinant.","url":"https://math-geometry.x402tookit.com/linear-system?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["matrix","constants"],"properties":{"matrix":{"type":"string","description":"Coefficient matrix, rows separated by semicolons: 2,1,-1;-3,-1,2;-2,1,2"},"constants":{"type":"string","description":"Right-hand side values: 8,-11,-3"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"solution":{"type":["null","object"],"properties":{"x1":{"type":["null","number"]},"x2":{"type":["null","number"]},"x3":{"type":["null","number"]}}},"unknowns":{"type":["null","number"]},"equations":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"determinant":{"type":["null","number"]},"maxResidual":{"type":["null","number"]},"rankOfMatrix":{"type":["null","number"]},"solutionVector":{"type":["array","null"],"items":{"type":"number"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9YBcZZhDQ_B3VKxILJPtw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Solves a system of linear equations Ax = b for up to 6 unknowns, returning the solution vector, rank, determinant, and classification (unique/none/infinite solutions).","exampleAgentPrompt":"Solve the linear system with coefficient matrix 2,1,-1;-3,-1,2;-2,1,2 and right-hand side values 8,-11,-3 — tell me the solution vector, the rank, and the determinant.","exampleUseCases":[{"title":"Engineering circuit analysis","prompt":"I have three loop equations from a circuit: coefficients are 4,1,-1;2,5,0;-1,2,3 and the voltage constants are 10,15,5. Solve for the three loop currents and tell me whether there's a unique solution."},{"title":"Economics input-output model","prompt":"Solve this 4-variable economic system for me: coefficient matrix is 1,-0.2,-0.3,0;-0.1,1,-0.2,-0.1;-0.2,-0.1,1,-0.2;-0.1,-0.1,-0.2,1 with demand constants 100,200,150,120. Give me the output levels and the rank of the matrix."},{"title":"Checking underdetermined geometry system","prompt":"I have the equations 1,2,3;4,5,6 with constants 6,15 — only 2 equations but 3 unknowns. Solve the system and tell me if there are infinite solutions or none."}],"resultDescription":"Returns a JSON object containing the solution vector (x1 through xN), rank of the coefficient matrix, determinant (for square systems), number of equations and unknowns, max residual for accuracy assessment, and a summary/verdict classifying the system as having a unique solution, no solution, or infinitely many solutions.","failureModes":["Malformed matrix string (wrong delimiter or non-numeric values) causes a parse error","Matrix dimensions mismatch between matrix and constants returns an error","System with more than 6 unknowns is not supported","Singular matrix (determinant = 0) returns no-unique-solution verdict rather than a numeric answer","Empty or missing query parameters return a 400-level error"],"whenToPreferThis":"Use this endpoint when you need to solve a concrete numerical system of linear equations (Ax = b) with up to 6 unknowns and want both the solution and diagnostic metadata (rank, determinant, solution classification). Prefer it over a general matrix operations endpoint when the goal is solving for unknowns rather than matrix transformations. It handles the underdetermined and overdetermined cases by reporting solution type rather than failing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-03T12:30:58.472Z","isFirstParty":false,"canonicalSlug":"linear-system-solver-ax-b-e4d44427"}