Demo: Drawing sketch

Sketch the function $y(x)$ given below. Consider each unit square with size equal to 1.

$ y(x) = \left\{ \begin{array}{@{}ll@{}} 2x - x^2/4, & 0 \le x \lt 4 \\ 12 - 6x + x^2/2, & 4 \lt x \lt 8\\ -8 + x/2, & 8 \le x \le 16 \end{array} \right. $

(The expected tolerance is 1/2 square grid for position and 10 degrees for angle.)

Graded objects:


Help buttons (not graded):


Correct answer
Student view placeholder
In student views this area is used for assessment and score info.
Staff information
Staff user:
Dev User
dev@example.com

Question:
Title:
Demo: Drawing sketch
Started at:
2024-09-19 17:55:59 (CDT)
Duration:
0 s
Show/Hide answer
{
  "graph": [
    {
      "id": 0,
      "top": 200,
      "left": 80,
      "type": "pl-axes",
      "xneg": 20,
      "xpos": 400,
      "yneg": 160,
      "ypos": 160,
      "graded": false,
      "labelx": "x",
      "labely": "y",
      "stroke": "#000000",
      "evented": false,
      "originY": "center",
      "label_list": [
        {
          "lab": "4",
          "pos": 80,
          "axis": "x"
        },
        {
          "lab": "8",
          "pos": 160,
          "axis": "x"
        },
        {
          "lab": "16",
          "pos": 320,
          "axis": "x"
        },
        {
          "lab": "2",
          "pos": 40,
          "axis": "y"
        },
        {
          "lab": "-2",
          "pos": -40,
          "axis": "y"
        },
        {
          "lab": "4",
          "pos": 80,
          "axis": "y"
        },
        {
          "lab": "-4",
          "pos": -80,
          "axis": "y"
        },
        {
          "lab": "6",
          "pos": 120,
          "axis": "y"
        },
        {
          "lab": "-6",
          "pos": -120,
          "axis": "y"
        }
      ],
      "selectable": false,
      "gradingName": "pl-axes",
      "strokeWidth": 2,
      "offsetx_label_x": 0,
      "offsetx_label_y": -30,
      "offsety_label_x": 0,
      "offsety_label_y": -10,
      "supporting_lines": [
        {
          "x": 80
        },
        {
          "x": 160
        },
        {
          "x": 320
        }
      ]
    },
    {
      "id": 1,
      "x1": 80,
      "x2": 120,
      "x3": 160,
      "y1": 200,
      "y2": 120,
      "y3": 120,
      "type": "pl-controlled-curved-line",
      "graded": true,
      "stroke": "#ff0000",
      "offset_x": 0,
      "offset_y": 0,
      "gradingName": "pl-controlled-curved-line",
      "strokeWidth": 4,
      "drawErrorBox": true,
      "handleRadius": 6,
      "widthErrorBox": 20,
      "heightErrorBox": 20,
      "offset_control_x": 20,
      "offset_control_y": 0,
      "objectDrawErrorBox": null,
      "widthErrorBoxControl": 60,
      "heightErrorBoxControl": 20
    },
    {
      "id": 2,
      "x1": 160,
      "x2": 200,
      "x3": 240,
      "y1": 280,
      "y2": 360,
      "y3": 280,
      "type": "pl-controlled-curved-line",
      "graded": true,
      "stroke": "#ff0000",
      "offset_x": 0,
      "offset_y": 0,
      "gradingName": "pl-controlled-curved-line",
      "strokeWidth": 4,
      "drawErrorBox": true,
      "handleRadius": 6,
      "widthErrorBox": 20,
      "heightErrorBox": 20,
      "offset_control_x": 0,
      "offset_control_y": 30,
      "objectDrawErrorBox": null,
      "widthErrorBoxControl": 20,
      "heightErrorBoxControl": 80
    },
    {
      "id": 3,
      "x1": 240,
      "x2": 400,
      "y1": 280,
      "y2": 200,
      "type": "pl-controlled-line",
      "graded": true,
      "stroke": "#ff0000",
      "offset_x": 0,
      "offset_y": 0,
      "gradingName": "pl-controlled-line",
      "strokeWidth": 4,
      "drawErrorBox": true,
      "handleRadius": 6,
      "widthErrorBox": 20,
      "heightErrorBox": 20,
      "offset_control_x": 0,
      "offset_control_y": 0,
      "objectDrawErrorBox": null,
      "widthErrorBoxControl": 20,
      "heightErrorBoxControl": 20
    }
  ]
}