1. The graph below shows $f(x) = \sin(\pi x)$ on $[0, 2]$. Using the concept of signed area, what is the value of $\int_0^2 \sin(\pi x)\,dx$? <custom_artifact type="plotly_visualization"> <html><head><script src="https://cdn.plot.ly/plotly-latest.min.js"></script></head> <body><div id="chart" style="width:520px;height:330px;"></div><script> var x = [], y = []; for (var i = 0; i <= 200; i++) { var xi = 2*i/200; x.push(xi); y.push(Math.sin(Math.PI*xi)); } var trace = {x: x, y: y, type: 'scatter', mode: 'lines', line: {color: '#1f77b4', width: 2.5}, name: 'sin(πx)'}; var fill_pos = {x: x.slice(0,101), y: y.slice(0,101), fill: 'tozeroy', fillcolor: 'rgba(44,160,44,0.3)', type: 'scatter', mode: 'none', name: 'Positive area', showlegend: true}; var fill_neg = {x: x.slice(100), y: y.slice(100), fill: 'tozeroy', fillcolor: 'rgba(214,39,40,0.3)', type: 'scatter', mode: 'none', name: 'Negative area', showlegend: true}; var layout = {title: 'f(x) = sin(πx) on [0, 2]', xaxis: {title: 'x', dtick: 0.5, range: [-0.1, 2.2]}, yaxis: {title: 'f(x)', range: [-1.3, 1.3]}, showlegend: true}; Plotly.newPlot('chart', [fill_pos, fill_neg, trace], layout); </script></body></html> </custom_artifact>
- A.$\frac{2}{\pi}$
- B.$0$
- C.$\frac{4}{\pi}$
- D.$-\frac{2}{\pi}$
View Answer
Answer: $0$
Observe the symmetry: On $[0,1]$, $\sin(\pi x) \ge 0$, contributing positive area. On $[1,2]$, $\sin(\pi x) \le 0$, contributing negative area of equal magnitude. Apply signed area cancellation: By symmetry, $\int_0^1 \sin(\pi x)\,dx = \frac{2}{\pi}$ and $\int_1^2 \sin(\pi x)\,dx = -\frac{2}{\pi}$. The total is $\frac{2}{\pi} + (-\frac{2}{\pi}) = 0$. Why distractors fail: Option A ($\frac{2}{\pi}$) is only the area of the positive lobe. Option C ($\frac{4}{\pi}$) is the total unsigned area (sum of absolute values of both lobes). Option D ($-\frac{2}{\pi}$) is only the contribution from the negative lobe.