Piecewise Function Calculator
Function plotted
x^2 for x < 0; 2 * x + 1 for x >= 0
Graphing Calculator
Smallest sampled value
0.0625
Largest sampled value
25
y-intercept
1
Samples inside the domain
41
SVG path for the curve
M 0 0 L 16 39.098 L 32 76.19 L 48 111.278 L 64 144.361 L 80 175.439 L 96 204.511 L 112 231.579 L 128 256.642 L 144 279.699 L 160 300.752 L 176 319.799 L 192 336.842 L 208 351.88 L 224 364.912 L 240 375.94 L 256 384.962 L 272 391.98 L 288 396.992 L 304 400 L 320 384.962 L 336 376.942 L 352 368.922 L 368 360.902 L 384 352.882 L 400 344.862 L 416 336.842 L 432 328.822 L 448 320.802 L 464 312.782 L 480 304.762 L 496 296.742 L 512 288.722 L 528 280.702 L 544 272.682 L 560 264.662 L 576 256.642 L 592 248.622 L 608 240.602 L 624 232.581 L 640 224.561
Worked out from OpenStax College Algebra 2e, section 3.2 Domain and Range and 3 other sources.
How this is worked out
4 steps
- f(x) = x^2 for x < 0; 2 * x + 1 for x >= 0
- Sampled 41 points on [-5, 5] at x_i = -5 + 10 * i / 40.
- Sampled range: 0.0625 to 25 over 41 of 41 points.
- No sign change or exact zero was found on the sampled grid.
Sampled pointstable
| x | y |
|---|---|
| -5 | 25 |
| -4.75 | 22.5625 |
| -4.5 | 20.25 |
| -4.25 | 18.0625 |
| -4 | 16 |
| -3.75 | 14.0625 |
| -3.5 | 12.25 |
| -3.25 | 10.5625 |
| -3 | 9 |
| -2.75 | 7.5625 |
| -2.5 | 6.25 |
| -2.25 | 5.0625 |
| -2 | 4 |
| -1.75 | 3.0625 |
| -1.5 | 2.25 |
| -1.25 | 1.5625 |
| -1 | 1 |
| -0.75 | 0.5625 |
| -0.5 | 0.25 |
| -0.25 | 0.0625 |
| 0 | 1 |
| 0.25 | 1.5 |
| 0.5 | 2 |
| 0.75 | 2.5 |
| 1 | 3 |
| 1.25 | 3.5 |
| 1.5 | 4 |
| 1.75 | 4.5 |
| 2 | 5 |
| 2.25 | 5.5 |
| 2.5 | 6 |
| 2.75 | 6.5 |
| 3 | 7 |
| 3.25 | 7.5 |
| 3.5 | 8 |
| 3.75 | 8.5 |
| 4 | 9 |
| 4.25 | 9.5 |
| 4.5 | 10 |
| 4.75 | 10.5 |
| 5 | 11 |
Results are general information, not financial, tax, legal, medical or engineering advice.