Step Function Help: Rewrite Equation in Homework Statement

In summary: Unfortunately, the OP and others never responded, so I don't know if that explanation helped or not.In summary, the conversation is about rewriting a piecewise continuous function into step functions in order to find its Laplace transform. There is some confusion about the definition of "piecewise continuous" and the correct way to write the function using step functions. Ultimately, the correct form is f(x) = -8 + h(x-8)(-x-1+8).
  • #1
jumbogala
423
4

Homework Statement


The piecewise continuous function

f(x) = { -8 for x ≤ 8
-x – 1 for x > 8}

Rewrite it in step functions.

Homework Equations


The Attempt at a Solution


I think it's 1-(-8)(h(x-8)) + (-x-1)(h(x-8))

Where h(x-a) is the Heaviside function (x-8) meaning it "jumps up" to 1 at x = a.

Is that right? It seems wrong to me.
 
Physics news on Phys.org
  • #2
jumbogala said:

Homework Statement


The piecewise continuous function

f(x) = { -8 for x ≤ 8
-x – 1 for x > 8}

Rewrite it in step functions.

Homework Equations





The Attempt at a Solution


I think it's 1-(-8)(h(x-8)) + (-x-1)(h(x-8))

Where h(x-a) is the Heaviside function (x-8) meaning it "jumps up" to 1 at x = a.

Is that right? It seems wrong to me.

Why would you need a step function for x≤8?

Oh, and the function doesn't look continuous at x=8, unless I'm missing something. Is there a typo in the definition?
 
  • #3
It's not continuous at x = 8. You have to write the entire function using step functions so that it's in the form

f(x) = ___________ + u8(x)* __________

"Fill in the blanks", basically. It will be two step functions added together.
 
  • #4
jumbogala said:
It's not continuous at x = 8. You have to write the entire function using step functions so that it's in the form

f(x) = ___________ + u8(x)* __________

"Fill in the blanks", basically. It will be two step functions added together.

But in your original post (OP), you said
The piecewise continuous function
 
  • #5
That's what the question says =/ Each piece of the function is continuous in pieces. The goal of this is to find the Laplace transform of f(x), if that helps.
 
  • #6
jumbogala said:
That's what the question says =/ Each piece of the function is continuous in pieces. The goal of this is to find the Laplace transform of f(x), if that helps.

Well, I'm no expert, but being continuous means no discontinuities:

http://en.wikipedia.org/wiki/Piecewise_continuous

wikipedia said:
A piecewise function is continuous on a given interval if it is defined throughout that interval, its appropriate constituent functions are continuous on that interval, and there is no discontinuity at each endpoint of the subdomains within that interval.

But whatever. It seems like if you want to use a step funtion for x≤8, then that one should run backwards in x, no?
 
  • #7
Oh well I suppose it's not discontinuous at x = 8. The definition of the function just changes at x = 8, according to Wikipedia.

Yes, I think so. The step function I got was -8 + u8(t)(7-t). (Still not sure if that's entirely correct...)

So that's what I need to find the Laplace transform of. Laplace of -8 is -8/s

Laplace transform of u8(t)(7-t) is what's troubling me.
 
  • #8
No, jumbogala, you were right here and, unfortunately, berkeman was wrong (I'll never let him live it down!). "Piecewise continuous" means "continuous in pieces"- that is that it is continuous everywhere except possibly at a finite number of point, separating the continuous "pieces".

And, berkeman, he does NOT "want to use a step funtion for x≤8", he wants to use a step function for the entire function. That is, write a formula, including a step function so that the entire function is given by that step function.

Let's see you suggested f(x)= 1-(-8)(h(x-8)) + (-x-1)(h(x-8)). Let's check to see if that is correct. h(x) is 0 if x< 0 so h(x-8) is 0 if x is less than 8. If x< 8 then f(x)= 1-(-8)(0)+ (-x-1)(0)= 1. No, that isn't what you want- you want -8. Also h(x-8) is equal to 1 if x is larger than or equal to 8. If x is larger than or equal to 8, f(x)= 1- (-8)(1)+(-x-1)(1)= 1+8- x-1= 8- x. No, that isn't it either.

Think about this: If f(x)= u(x) for x< a and f(x)= v(x) for [itex]x\ge a[/itex], and we want to write it as f(x)= p(x)h(x-a)+ q(x), what must p and q equal? Well, if x< a, h(x-a)= 0 so f(x)= p(x). Obviously, we must have p(x)= u(x). If [itex]x\ge a[/itex], h(x-a)= 1 so f(x)= u(x)+ q(x)(1)= v(x) so q(x)= v(x)- u(x).

In this problem u(x)= -8 and v(x)= -x-1
 
  • #9
Thanks, Halls. Like I said, I'm no expert in this. Still, piecewise continuous used to mean something different to me. Guess I need to review some, eh? :blushing:
 

FAQ: Step Function Help: Rewrite Equation in Homework Statement

What is a step function?

A step function is a type of mathematical function that has a discontinuous graph with a series of horizontal line segments. It only takes on specific values at specific points along the x-axis.

How do you rewrite an equation in a step function form?

To rewrite an equation in step function form, you first need to identify the points where the function changes values. These points will become the inputs for the step function. Then, write the equation using the step function notation, where each line segment represents a different value of the function.

What is the purpose of rewriting an equation in step function form?

Rewriting an equation in step function form can make it easier to graph and analyze the function. It can also help identify important points and patterns in the function that may not be immediately apparent in its original form.

Can any equation be rewritten in step function form?

Technically, any equation can be rewritten in step function form. However, it may not always be useful or practical to do so. Step functions are typically used to model situations where the output only changes at specific points, so they may not accurately represent all types of functions.

What are some real-life applications of step functions?

Step functions are commonly used in economics to model marginal cost and revenue, in physics to represent the behavior of particles, and in computer science for code optimization and signal processing.

Back
Top