- #1

- 101

- 0

**how to square a piecewise function? urgent :/**

## Homework Statement

square the following piecewise function

f(x)= 0 [-pi,-pi/2)

pi [-pi/2,pi/2)

0 [pi/2,pi)

## Homework Equations

N/A

## The Attempt at a Solution

so i think this is how you do it:

(0)

^{2}+ (pi)

^{2}+(0)

^{2}is this ocrrect?

or is it the following:

(0+pi+0)

^{2}? I am so lost:/

( I am trying to find the energy of the k

^{th}harmonic so i need to square the function first) :/

thanks in advance

BA