How to square a piecewise function? :/

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 6K views
Brown Arrow
Messages
101
Reaction score
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 kth harmonic so i need to square the function first) :/

thanks in advance
BA
 
Physics news on Phys.org