• Support PF! Buy your school textbooks, materials and every day products Here!

How to square a piecewise function? :/

  • #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? im so lost:/

( im trying to find the energy of the kth harmonic so i need to square the function first) :/

thanks in advance
BA
 

Answers and Replies

  • #2
CompuChip
Science Advisor
Homework Helper
4,302
47


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.
 

Related Threads on How to square a piecewise function? :/

Replies
1
Views
1K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
11
Views
442
  • Last Post
Replies
9
Views
7K
Replies
10
Views
864
  • Last Post
Replies
7
Views
3K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
8
Views
11K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
5
Views
21K
Top