Solving Piecewise Functions with U(x) - U(x-1): Explanation and Graph

Click For Summary

Discussion Overview

The discussion revolves around the piecewise function defined as U(x) and its manipulation, specifically focusing on the expression U(x) - U(x-1). Participants explore how to define this function piecewise and graphically, as well as seek algebraic methods for solving it.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant defines U(x) as a piecewise function and suggests graphing U(x) and U(x-1) to visualize the subtraction.
  • Another participant expresses uncertainty about how to subtract the graphs and asks whether to subtract x-values or y-values.
  • Some participants clarify that the subtraction involves the y-values of the functions for all real x.
  • A participant attempts to subtract coordinates from the graphs and shares their results, seeking confirmation on their approach.
  • Another participant provides a detailed breakdown of the resulting piecewise function after analyzing the graphs and suggests how to define the intervals based on the results of the subtraction.
  • There is a discussion about open and closed intervals in the piecewise definition, with participants examining specific values of U(x) at critical points.

Areas of Agreement / Disagreement

Participants generally agree on the graphical approach to solving the problem, but there is uncertainty regarding the algebraic method and the specifics of the piecewise function definition. Multiple views on the best approach remain present.

Contextual Notes

Some participants express limitations in their understanding of visual subtraction and the implications of open and closed intervals in the piecewise function. There are unresolved questions about the algebraic method and the correctness of specific calculations.

Who May Find This Useful

Readers interested in piecewise functions, graphical analysis, and mathematical reasoning may find this discussion beneficial.

paulmdrdo1
Messages
382
Reaction score
0
given function U(x)

U(x) = { 0, if x<0
{1, if x>=0

define the fuction piecewise and graph.
* U(x) - U(x-1)

how to solve this? please explain! thanks!
 
Mathematics news on Phys.org
Re: piecewise function questions

Hello and welcome to MHB, paulmdrdo! (Wave)

We are given:

$$U(x)=\begin{cases}1 & x<0\\ 0 & x\ge0 \\ \end{cases}$$

I would graph this, then graph $U(x-1)$ beneath it, recogninzing that this is just the original graph shifted 1 unit to the right. Now, subtract the lower graph from the upper graph, to create a third graph beneath the other two, representing $g(x)=U(x)-U(x-1)$. From this, you should be able to define $g(x)$ as a piecewise defined function.

Show us what you find. :D
 
Re: piecewise function questions

paulmdrdo said:
given function U(x)

U(x) = { 0, if x<0
{1, if x>=0

define the fuction piecewise and graph.
* U(x) - U(x-1)

how to solve this? please explain! thanks!

thank you mark! now i have an idea how to solve this graphically. but is there a way to solve this algebraically?
 
Re: piecewise function questions

I think doing this graphically is the easiest method. Otherwise, you will wind up doing essentially the same thing, but without the benefit of a graph to make it more clear.
 
Re: piecewise function questions

MarkFL said:
I think doing this graphically is the easiest method. Otherwise, you will wind up doing essentially the same thing, but without the benefit of a graph to make it more clear.

oh no! please bear with my stupidity. i don't know how to subtract the graph visually. what am I going to subtract, the x-values or the y-values?
 
Re: piecewise function questions

You will subtract the function values (the $y$-values) for all real $x$. Can you see what the difference $g(x)$ is outside of $[0,1]$?
 
Re: piecewise function questions

MarkFL said:
You will subtract the function values (the $y$-values) for all real $x$. Can you see what the difference $g(x)$ is outside of $[0,1]$?

mark i tried subtracting the coordinates of the lower graph from the coordinates of upper graph. but i don't know if that's correct. can you give me some examples. thanks!
 
What did you find when you did the subtraction?
 
Re: piecewise function questions

paulmdrdo said:
mark i tried subtracting the coordinates of the lower graph from the coordinates of upper graph. but i don't know if that's correct. can you give me some examples. thanks!

what i did was

(0,1) - (0,0) = (0, 1) - included
(1,1) - (1,1) = (0,0) - not included
and so on...
still I'm not sure about this. please can you show me what you did to solve this.
 
  • #10
This is what I did:

View attachment 856

Now, after you are make sure you see what I did, can you use the bottom graph, and write the piecewise function definition for it?
 

Attachments

  • paulmdrdo.jpg
    paulmdrdo.jpg
    8.4 KB · Views: 96
  • #11
MarkFL said:
This is what I did:

https://www.physicsforums.com/attachments/856

Now, after you are make sure you see what I did, can you use the bottom graph, and write the piecewise function definition for it?

based on the third graph the new function is defined by,

U(x)-U(x-1) = {0, x>=1; 1, 0<=x<1; 0, x<0

but I'm having a hard time subtracting the graph visually.
 
  • #12
First, do you see that on:

$$(-\infty,0)$$ we have: $$g(x)=0$$

$$(0,1)$$ we have: $$g(x)=1$$

$$(1,\infty)$$ we have $$g(x)=0$$

So, I would draw these with open end-points at $x=0,\,1$ Then, to see which to fill in and which to leave open, observe that:

$$U(0)-U(0-1)=1-0=1$$

$$U(1)-U(1-1)=1-1=0$$

Now, this means we may amend our intervals as:

$$(-\infty,0)$$ we have: $$g(x)=0$$

$$[0,1)$$ we have: $$g(x)=1$$

$$[1,\infty)$$ we have $$g(x)=0$$

and so we may write:

$$g(x)=\begin{cases}0 & x<0 \\ 1 & 0\le x<1 \\ 0 & 1\le x \\ \end{cases}$$
 
  • #13
MarkFL said:
First, do you see that on:

$$(-\infty,0)$$ we have: $$g(x)=0$$

$$(0,1)$$ we have: $$g(x)=1$$

$$(1,\infty)$$ we have $$g(x)=0$$

So, I would draw these with open end-points at $x=0,\,1$ Then, to see which to fill in and which to leave open, observe that:

$$U(0)-U(0-1)=1-0=1$$

$$U(1)-U(1-1)=1-1=0$$

Now, this means we may amend our intervals as:

$$(-\infty,0)$$ we have: $$g(x)=0$$

$$[0,1)$$ we have: $$g(x)=1$$

$$[1,\infty)$$ we have $$g(x)=0$$

and so we may write:

$$g(x)=\begin{cases}0 & x<0 \\ 1 & 0\le x<1 \\ 0 & 1\le x \\ \end{cases}$$

thank you very much mark! you're very generous in answering my questions! i now fully understand it! thanks!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 0 ·
Replies
0
Views
620
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
5
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K