// Numbas version: finer_feedback_settings {"name": "Rearrange formula 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Rearrange formula 1", "tags": [], "metadata": {"description": "

Students are presented with an AI generated solution to rerrange the quadratic equation where the AI has made errors, they are asked to identify on which line the first error occurs, then rewrite the solution correctly. No variables but this is 1 of 5 versions of the question.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "

The error here occurs at line 7 when dividing by \\(-4a\\).

\n

The corrected solution starting at line 7 should be:

\n
    \n
  1. Divide both sides by \\(-4a\\) : \\(-ax^2 - bx = c\\)
  2. \n
  3. Now, \\(c\\) is the subject of the equation: \\(c = -ax^2 - bx\\)
  4. \n
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

I asked an AI chat program to rearrange \\(\\displaystyle{x=\\frac{-b+\\sqrt{b^2-4ac}}{2a}}\\) to make \\(c\\) the subject. The response was:

\n

To rearrange the quadratic formula \\(\\displaystyle{x=\\frac{-b+\\sqrt{b^2-4ac}}{2a}}\\) to make \\(c\\) the subject, follow these steps:

\n
    \n
  1. Start with the equation:\\(\\displaystyle{x=\\frac{-b+\\sqrt{b^2-4ac}}{2a}}\\)
  2. \n
  3. Multiply both sides by \\(2a\\): \\(2ax = -b + \\sqrt{b^2 - 4ac}\\)
  4. \n
  5. Add \\(b\\) to both sides: \\(2ax + b = \\sqrt{b^2 - 4ac}\\)
  6. \n
  7. Square both sides: \\((2ax + b)^2 = b^2 - 4ac\\)
  8. \n
  9. Expand the left sides: \\(4a^2x^2 + 4abx + b^2 = b^2 - 4ac\\)
  10. \n
  11. Subtract \\(b^2\\) from both sides:\\(4a^2x^2 + 4abx = -4ac\\)
  12. \n
  13. Divide both sides by \\(-4a\\) : \\(-a^2x^2 - abx = c\\)
  14. \n
  15. Now, \\(c\\) is the subject of the equation: \\(c = -a^2x^2 - abx\\)
  16. \n
\n

\n

On which line does the first error occur? In your handwritten notes write out the solution to this problem correctly.

", "minValue": "7", "maxValue": "7", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Jim Pettigrew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2037/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Jim Pettigrew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2037/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}