// Numbas version: exam_results_page_options {"name": "Simon's copy of Find curl and divergence of a vector field", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Curl and divergence of a vector field.  Determine whether the vector field is irrotational or solenoidal.

"}, "ungrouped_variables": ["f1", "irrequal", "isirr", "b1", "d1", "issol", "e1", "irrotational", "a1", "c1", "solenoidal", "p2", "p3", "solequal", "p1", "p6", "p7", "p4", "p5", "notsolenoidal", "p8", "p9", "notirrotational", "n"], "variables": {"notsolenoidal": {"description": "", "name": "notsolenoidal", "definition": "if(n=2,\"No\",\"Yes\")", "group": "Ungrouped variables", "templateType": "anything"}, "solequal": {"description": "", "name": "solequal", "definition": "if(n=2,\"is equal\",\"is not equal\")", "group": "Ungrouped variables", "templateType": "anything"}, "p9": {"description": "", "name": "p9", "definition": "random(1..9 except p6)", "group": "Ungrouped variables", "templateType": "anything"}, "issol": {"description": "", "name": "issol", "definition": "if(n=2,\"is solenoidal\",\"is not solenoidal\")", "group": "Ungrouped variables", "templateType": "anything"}, "p4": {"description": "", "name": "p4", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "e1": {"description": "", "name": "e1", "definition": "if(n=2,0,random(1..9))", "group": "Ungrouped variables", "templateType": "anything"}, "c1": {"description": "", "name": "c1", "definition": "if(n=2,0,random(1..9))", "group": "Ungrouped variables", "templateType": "anything"}, "n": {"description": "", "name": "n", "definition": "random(0..2)", "group": "Ungrouped variables", "templateType": "anything"}, "isirr": {"description": "", "name": "isirr", "definition": "if(n=1,\"is irrotational\",\"is not irrotational\")", "group": "Ungrouped variables", "templateType": "anything"}, "p6": {"description": "", "name": "p6", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "p8": {"description": "", "name": "p8", "definition": "random(1..9 except p3)", "group": "Ungrouped variables", "templateType": "anything"}, "solenoidal": {"description": "", "name": "solenoidal", "definition": "if(n=2,\"Yes\",\"No\")", "group": "Ungrouped variables", "templateType": "anything"}, "d1": {"description": "", "name": "d1", "definition": "if(n=1,0,random(1..9))", "group": "Ungrouped variables", "templateType": "anything"}, "b1": {"description": "", "name": "b1", "definition": "if(n=1,0,random(1..9))", "group": "Ungrouped variables", "templateType": "anything"}, "notirrotational": {"description": "", "name": "notirrotational", "definition": "if(n=1,\"No\",\"Yes\")", "group": "Ungrouped variables", "templateType": "anything"}, "p7": {"description": "", "name": "p7", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "p1": {"description": "", "name": "p1", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "irrotational": {"description": "", "name": "irrotational", "definition": "if(n=1,\"Yes\",\"No\")", "group": "Ungrouped variables", "templateType": "anything"}, "a1": {"description": "", "name": "a1", "definition": "if(n=2,0,random(1..9))", "group": "Ungrouped variables", "templateType": "anything"}, "f1": {"description": "", "name": "f1", "definition": "if(n=1,0,random(1..9))", "group": "Ungrouped variables", "templateType": "anything"}, "p5": {"description": "", "name": "p5", "definition": "random(1..9 except p2)", "group": "Ungrouped variables", "templateType": "anything"}, "p2": {"description": "", "name": "p2", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "p3": {"description": "", "name": "p3", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "irrequal": {"description": "", "name": "irrequal", "definition": "if(n=1,\"is equal\",\"is not equal\")", "group": "Ungrouped variables", "templateType": "anything"}}, "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "rulesets": {}, "functions": {}, "statement": "

For the vector field $\\boldsymbol{u}=\\pmatrix{\\simplify{{a1}*x^{p1}+{b1}*y^{p2}*z^{p3}},\\simplify{{c1}*y^{p4}+{d1}*x^{p5}*z^{p6}},\\simplify{{e1}*z^{p7}+{f1}*x^{p8}*y^{p9}}}$, calculate $\\boldsymbol{\\nabla}\\times\\boldsymbol{u}$ and $\\boldsymbol{\\nabla\\cdot u}$, and determine whether $\\boldsymbol{u}$ is irrotational or solenoidal, or both.

", "extensions": [], "name": "Simon's copy of Find curl and divergence of a vector field", "advice": "

The curl of a vector field $\\boldsymbol{u}=\\pmatrix{u_x,u_y,u_z}$ is given by

\n

\\[\\boldsymbol{\\nabla}\\times\\boldsymbol{u}=\\pmatrix{\\frac{\\partial u_z}{\\partial y}-\\frac{\\partial u_y}{\\partial z},\\frac{\\partial u_x}{\\partial z}-\\frac{\\partial u_z}{\\partial x},\\frac{\\partial u_y}{\\partial x}-\\frac{\\partial u_x}{\\partial y}}.\\]

\n

The divergence of the same vector field is given by

\n

\\[\\boldsymbol{\\nabla\\cdot u}=\\frac{\\partial u_x}{\\partial x}+\\frac{\\partial u_y}{\\partial y}+\\frac{\\partial u_z}{\\partial z}.\\]

\n

a)

\n

By straightforward partial differentiation

\n

\\[\\boldsymbol{\\nabla \\times u}=\\pmatrix{\\simplify{{f1*p9}*x^{p8}*y^{p9-1}+{-d1*p6}*x^{p5}*z^{p6-1}},\\simplify{{b1*p3}*y^{p2}*z^{p3 -1}+{-f1*p8}*x^{p8-1}*y^{p9}},\\simplify{{d1*p5}*x^{p5-1}*z^{p6}+{-b1*p2}*y^{p2-1}*z^{p3}}}.\\]

\n

b)

\n

Again, by partial differentiation

\n

\\[\\boldsymbol{\\nabla\\cdot u}=\\simplify{{a1*p1}*x^{p1-1}+{c1*p4}*y^{p4-1}+{e1*p7}*z^{p7-1}}.\\]

\n

A vector field is irrotational if its curl is equal to the zero vector; a vector field is solenoidal if its divergence is equal to zero.

\n

c)

\n

Since $\\boldsymbol{\\nabla}\\times\\boldsymbol{u}$ {irrequal} to the zero vector, the vector field {isirr}.

\n

d)

\n

Since $\\boldsymbol{\\nabla\\cdot u}$ {solequal} to zero, the vector field {issol}.

", "preamble": {"css": "", "js": ""}, "parts": [{"showFeedbackIcon": true, "variableReplacements": [], "customName": "", "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "customMarkingAlgorithm": "", "useCustomName": false, "type": "gapfill", "prompt": "

$\\boldsymbol{\\nabla}\\times\\boldsymbol{u}=($[[0]]$,$[[1]]$,$[[2]]$)$.

", "gaps": [{"showPreview": true, "type": "jme", "variableReplacements": [], "answerSimplification": "all", "scripts": {}, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}, {"name": "z", "value": ""}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "customName": "", "answer": "{f1*p9}*x^{p8}*y^{p9-1}+{-d1*p6}*x^{p5}*z^{p6-1}", "customMarkingAlgorithm": "", "vsetRange": [0, 1], "useCustomName": false, "failureRate": 1, "checkingType": "absdiff", "checkingAccuracy": 0.001, "checkVariableNames": true, "unitTests": [], "marks": 1}, {"showPreview": true, "type": "jme", "variableReplacements": [], "answerSimplification": "all", "scripts": {}, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}, {"name": "z", "value": ""}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "customName": "", "answer": "{b1*p3}*y^{p2}*z^{p3 -1}+{-f1*p8}*x^{p8-1}*y^{p9}", "customMarkingAlgorithm": "", "vsetRange": [0, 1], "useCustomName": false, "failureRate": 1, "checkingType": "absdiff", "checkingAccuracy": 0.001, "checkVariableNames": true, "unitTests": [], "marks": 1}, {"showPreview": true, "type": "jme", "variableReplacements": [], "answerSimplification": "all", "scripts": {}, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}, {"name": "z", "value": ""}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "customName": "", "answer": "{d1*p5}*x^{p5-1}*z^{p6}+{-b1*p2}*y^{p2-1}*z^{p3}", "customMarkingAlgorithm": "", "vsetRange": [0, 1], "useCustomName": false, "failureRate": 1, "checkingType": "absdiff", "checkingAccuracy": 0.001, "checkVariableNames": true, "unitTests": [], "marks": 1}], "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "marks": 0}, {"showFeedbackIcon": true, "variableReplacements": [], "customName": "", "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "customMarkingAlgorithm": "", "useCustomName": false, "type": "gapfill", "prompt": "

$\\boldsymbol{\\nabla\\cdot u}=$ [[0]].

", "gaps": [{"showPreview": true, "type": "jme", "variableReplacements": [], "answerSimplification": "all", "scripts": {}, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}, {"name": "z", "value": ""}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "customName": "", "answer": "{a1*p1}*x^{p1-1}+{c1*p4}*y^{p4-1}+{e1*p7}*z^{p7-1}", "customMarkingAlgorithm": "", "vsetRange": [0, 1], "useCustomName": false, "failureRate": 1, "checkingType": "absdiff", "checkingAccuracy": 0.001, "checkVariableNames": true, "unitTests": [], "marks": 1}], "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "marks": 0}, {"showCellAnswerState": true, "variableReplacements": [], "scripts": {}, "extendBaseMarkingAlgorithm": true, "displayColumns": 0, "distractors": ["", ""], "showCorrectAnswer": true, "maxMarks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "shuffleChoices": false, "minMarks": 0, "useCustomName": false, "matrix": [1, 0], "customName": "", "customMarkingAlgorithm": "", "displayType": "radiogroup", "type": "1_n_2", "prompt": "

Is the vector field $\\boldsymbol{u}$ irrotational?

", "choices": ["

{irrotational}

", "

{notirrotational}

"], "unitTests": [], "marks": 0}, {"showCellAnswerState": true, "variableReplacements": [], "scripts": {}, "extendBaseMarkingAlgorithm": true, "displayColumns": 0, "distractors": ["", ""], "showCorrectAnswer": true, "maxMarks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "shuffleChoices": false, "minMarks": 0, "useCustomName": false, "matrix": [1, 0], "customName": "", "customMarkingAlgorithm": "", "displayType": "radiogroup", "type": "1_n_2", "prompt": "

Is the vector field $\\boldsymbol{u}$ solenoidal?

", "choices": ["

{solenoidal}

", "

{notsolenoidal}

"], "unitTests": [], "marks": 0}], "type": "question", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}