How to square a piecewise function? :/

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


Why do you expect that the square of a piecewise function has the same value everywhere?

You just need to calculate f(x)² which can give different values depending on what x is.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top