Describing a piecewise function

  • Thread starter Niles
  • Start date
  • #1
1,868
0

Homework Statement


Hi all

I have a function f(x), which is:

-1 when x is in the intervals .. (-4;-2), (0;2), (4;6) etc.. and
1 when x is in the intervals ... (-6;-4), (-2;0), (2;4) etc...

At the points -4,-2, 0, 2 .. there are discontinuities.

1) How would I write this function correctly?

2) Is it correct to state that: f(k-) = 1 where k = -6, -2, 2, 6 and f(k+) = 1 where -4, 0, 4 and f(k+) = -1 when k = -6, -2, 2, 6 .. and f(k-) = -1 where k = -4, 0, 4 ... ?
 

Answers and Replies

  • #2
Defennder
Homework Helper
2,591
5
It depends on what you mean by "write". A fancy way would be to find the Fourier series of the function. A more explicit way would be to define:

f(x) = -1 for (...condition...)
1 for (...condition...)
For the latter, note that all the intervals for which it is -1, begin as a mutiple of 4.

2)That expression only determines the function at the points, and besides as you note earlier there are discontinuities at some of the points given as 1 or -1 by your expression.
 
  • #3
HallsofIvy
Science Advisor
Homework Helper
41,833
956

Homework Statement


Hi all

I have a function f(x), which is:

-1 when x is in the intervals .. (-4;-2), (0;2), (4;6) etc.. and
1 when x is in the intervals ... (-6;-4), (-2;0), (2;4) etc...

At the points -4,-2, 0, 2 .. there are discontinuities.

1) How would I write this function correctly?

2) Is it correct to state that: f(k-) = 1 where k = -6, -2, 2, 6 and f(k+) = 1 where -4, 0, 4 and f(k+) = -1 when k = -6, -2, 2, 6 .. and f(k-) = -1 where k = -4, 0, 4 ... ?
Well you would nned to more clearly state what you mean by "k-" and "k+". Another way to write it would be
[tex]f(x)= \left\{\begin{array}{c}-1 if 0< x< 2 \\ 1 if 2< x< 4\end{array}\right[/tex]
and assert that f is periodic with period 4.

By the way, I think you mean to say that that f is not defined at -4, -2, etc. There would have to be discontinuites there no matter how it is defined at the even integers.
 
  • #4
1,868
0
By "k+" I mean when we approach k from right going towards left, and likewise "k-" is when we approach k from left going towards right.

I see what you mean, HallsOfIvy and Defennder. I had not thought of stating that the function is periodic. Thanks!
 

Related Threads on Describing a piecewise function

Replies
6
Views
724
  • Last Post
Replies
4
Views
527
  • Last Post
Replies
3
Views
1K
Replies
8
Views
47K
  • Last Post
Replies
2
Views
4K
  • Last Post
Replies
1
Views
7K
Replies
5
Views
5K
  • Last Post
Replies
3
Views
682
Replies
7
Views
675
Replies
2
Views
9K
Top