How do I plot this function graphically?











up vote
0
down vote

favorite
1












Let $F(t)$ be a function of $t$, given by
$$F(t) = t U(t)-(t-1) U(t-1) + (t-2) U(t-2) - (t-3) U(t-3)$$
where $U$ is the Heaviside step function.



I am getting confused regarding its graphical representation. Any help would be highly appreciated.










share|cite|improve this question
























  • What is $F(t)$ for $t<0$.
    – hamam_Abdallah
    Nov 18 at 18:50






  • 1




    Draw each term on the RHS alone. For example draw $tU(t)$, $(t-1)U(t-1)$, and so on and add/subtract them graphically
    – Fakemistake
    Nov 18 at 18:55










  • I added the solution in my answer below. I think now it's better not to think about how each term looks like, it's better to think piecewise from $0$ to $1$, $1$ to $2$ and so on because $U(x)$ is zero for $x<0$.
    – Fakemistake
    Nov 25 at 9:18








  • 1




    Notice $tU(t) = max(0,t)$. throwing the command Plot[Max[t,0] - Max[t-1,0] + Max[t-2,0] - Max[t-3,0],{t,-2,5}] to WA, you will get this graph.
    – achille hui
    Nov 25 at 9:24















up vote
0
down vote

favorite
1












Let $F(t)$ be a function of $t$, given by
$$F(t) = t U(t)-(t-1) U(t-1) + (t-2) U(t-2) - (t-3) U(t-3)$$
where $U$ is the Heaviside step function.



I am getting confused regarding its graphical representation. Any help would be highly appreciated.










share|cite|improve this question
























  • What is $F(t)$ for $t<0$.
    – hamam_Abdallah
    Nov 18 at 18:50






  • 1




    Draw each term on the RHS alone. For example draw $tU(t)$, $(t-1)U(t-1)$, and so on and add/subtract them graphically
    – Fakemistake
    Nov 18 at 18:55










  • I added the solution in my answer below. I think now it's better not to think about how each term looks like, it's better to think piecewise from $0$ to $1$, $1$ to $2$ and so on because $U(x)$ is zero for $x<0$.
    – Fakemistake
    Nov 25 at 9:18








  • 1




    Notice $tU(t) = max(0,t)$. throwing the command Plot[Max[t,0] - Max[t-1,0] + Max[t-2,0] - Max[t-3,0],{t,-2,5}] to WA, you will get this graph.
    – achille hui
    Nov 25 at 9:24













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





Let $F(t)$ be a function of $t$, given by
$$F(t) = t U(t)-(t-1) U(t-1) + (t-2) U(t-2) - (t-3) U(t-3)$$
where $U$ is the Heaviside step function.



I am getting confused regarding its graphical representation. Any help would be highly appreciated.










share|cite|improve this question















Let $F(t)$ be a function of $t$, given by
$$F(t) = t U(t)-(t-1) U(t-1) + (t-2) U(t-2) - (t-3) U(t-3)$$
where $U$ is the Heaviside step function.



I am getting confused regarding its graphical representation. Any help would be highly appreciated.







graphing-functions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 18 at 18:55









Fakemistake

1,682815




1,682815










asked Nov 18 at 18:48









Jasmine

313




313












  • What is $F(t)$ for $t<0$.
    – hamam_Abdallah
    Nov 18 at 18:50






  • 1




    Draw each term on the RHS alone. For example draw $tU(t)$, $(t-1)U(t-1)$, and so on and add/subtract them graphically
    – Fakemistake
    Nov 18 at 18:55










  • I added the solution in my answer below. I think now it's better not to think about how each term looks like, it's better to think piecewise from $0$ to $1$, $1$ to $2$ and so on because $U(x)$ is zero for $x<0$.
    – Fakemistake
    Nov 25 at 9:18








  • 1




    Notice $tU(t) = max(0,t)$. throwing the command Plot[Max[t,0] - Max[t-1,0] + Max[t-2,0] - Max[t-3,0],{t,-2,5}] to WA, you will get this graph.
    – achille hui
    Nov 25 at 9:24


















  • What is $F(t)$ for $t<0$.
    – hamam_Abdallah
    Nov 18 at 18:50






  • 1




    Draw each term on the RHS alone. For example draw $tU(t)$, $(t-1)U(t-1)$, and so on and add/subtract them graphically
    – Fakemistake
    Nov 18 at 18:55










  • I added the solution in my answer below. I think now it's better not to think about how each term looks like, it's better to think piecewise from $0$ to $1$, $1$ to $2$ and so on because $U(x)$ is zero for $x<0$.
    – Fakemistake
    Nov 25 at 9:18








  • 1




    Notice $tU(t) = max(0,t)$. throwing the command Plot[Max[t,0] - Max[t-1,0] + Max[t-2,0] - Max[t-3,0],{t,-2,5}] to WA, you will get this graph.
    – achille hui
    Nov 25 at 9:24
















What is $F(t)$ for $t<0$.
– hamam_Abdallah
Nov 18 at 18:50




What is $F(t)$ for $t<0$.
– hamam_Abdallah
Nov 18 at 18:50




1




1




Draw each term on the RHS alone. For example draw $tU(t)$, $(t-1)U(t-1)$, and so on and add/subtract them graphically
– Fakemistake
Nov 18 at 18:55




Draw each term on the RHS alone. For example draw $tU(t)$, $(t-1)U(t-1)$, and so on and add/subtract them graphically
– Fakemistake
Nov 18 at 18:55












I added the solution in my answer below. I think now it's better not to think about how each term looks like, it's better to think piecewise from $0$ to $1$, $1$ to $2$ and so on because $U(x)$ is zero for $x<0$.
– Fakemistake
Nov 25 at 9:18






I added the solution in my answer below. I think now it's better not to think about how each term looks like, it's better to think piecewise from $0$ to $1$, $1$ to $2$ and so on because $U(x)$ is zero for $x<0$.
– Fakemistake
Nov 25 at 9:18






1




1




Notice $tU(t) = max(0,t)$. throwing the command Plot[Max[t,0] - Max[t-1,0] + Max[t-2,0] - Max[t-3,0],{t,-2,5}] to WA, you will get this graph.
– achille hui
Nov 25 at 9:24




Notice $tU(t) = max(0,t)$. throwing the command Plot[Max[t,0] - Max[t-1,0] + Max[t-2,0] - Max[t-3,0],{t,-2,5}] to WA, you will get this graph.
– achille hui
Nov 25 at 9:24










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










Hint: The first term is



$$tU(t)=
begin{cases}
0 & t<0\
t & tgeq 0
end{cases}$$



the second



$$(t-1)U(t-1)=begin{cases}
0 &t<1\
t-1 & tgeq 1
end{cases}$$



and so on... Can you take it from here?



Edit:



$$F(t)=
begin{cases}
0, & t<0\
t, & 0leq t<1\
1, & 1leq t<2\
t-1,& 2leq t<3\
2, &tgeq 3
end{cases}$$






share|cite|improve this answer























  • I'm afraid I cannot. I am able to draw functions like U(t)+2U(t-1)+4U(t-2) - 3U(t-3), whose graph is a combination of step-like figures. But my professor said that the first term of the given function would give a straight line with 45 degree slope, which will continue till t=1 on the t axis, and so on. I, on the other hand, always thought that these functions yield some horizontal lines at different steps. Perhaps the graph could clarify everything.
    – Jasmine
    Nov 18 at 19:43










  • Maybe you can do the next step when you subtract these two functions. What value holds for negative $t$, for $tgeq 1$ and for $0leq t<1$?
    – Fakemistake
    Nov 18 at 21:20











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3003945%2fhow-do-i-plot-this-function-graphically%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










Hint: The first term is



$$tU(t)=
begin{cases}
0 & t<0\
t & tgeq 0
end{cases}$$



the second



$$(t-1)U(t-1)=begin{cases}
0 &t<1\
t-1 & tgeq 1
end{cases}$$



and so on... Can you take it from here?



Edit:



$$F(t)=
begin{cases}
0, & t<0\
t, & 0leq t<1\
1, & 1leq t<2\
t-1,& 2leq t<3\
2, &tgeq 3
end{cases}$$






share|cite|improve this answer























  • I'm afraid I cannot. I am able to draw functions like U(t)+2U(t-1)+4U(t-2) - 3U(t-3), whose graph is a combination of step-like figures. But my professor said that the first term of the given function would give a straight line with 45 degree slope, which will continue till t=1 on the t axis, and so on. I, on the other hand, always thought that these functions yield some horizontal lines at different steps. Perhaps the graph could clarify everything.
    – Jasmine
    Nov 18 at 19:43










  • Maybe you can do the next step when you subtract these two functions. What value holds for negative $t$, for $tgeq 1$ and for $0leq t<1$?
    – Fakemistake
    Nov 18 at 21:20















up vote
2
down vote



accepted










Hint: The first term is



$$tU(t)=
begin{cases}
0 & t<0\
t & tgeq 0
end{cases}$$



the second



$$(t-1)U(t-1)=begin{cases}
0 &t<1\
t-1 & tgeq 1
end{cases}$$



and so on... Can you take it from here?



Edit:



$$F(t)=
begin{cases}
0, & t<0\
t, & 0leq t<1\
1, & 1leq t<2\
t-1,& 2leq t<3\
2, &tgeq 3
end{cases}$$






share|cite|improve this answer























  • I'm afraid I cannot. I am able to draw functions like U(t)+2U(t-1)+4U(t-2) - 3U(t-3), whose graph is a combination of step-like figures. But my professor said that the first term of the given function would give a straight line with 45 degree slope, which will continue till t=1 on the t axis, and so on. I, on the other hand, always thought that these functions yield some horizontal lines at different steps. Perhaps the graph could clarify everything.
    – Jasmine
    Nov 18 at 19:43










  • Maybe you can do the next step when you subtract these two functions. What value holds for negative $t$, for $tgeq 1$ and for $0leq t<1$?
    – Fakemistake
    Nov 18 at 21:20













up vote
2
down vote



accepted







up vote
2
down vote



accepted






Hint: The first term is



$$tU(t)=
begin{cases}
0 & t<0\
t & tgeq 0
end{cases}$$



the second



$$(t-1)U(t-1)=begin{cases}
0 &t<1\
t-1 & tgeq 1
end{cases}$$



and so on... Can you take it from here?



Edit:



$$F(t)=
begin{cases}
0, & t<0\
t, & 0leq t<1\
1, & 1leq t<2\
t-1,& 2leq t<3\
2, &tgeq 3
end{cases}$$






share|cite|improve this answer














Hint: The first term is



$$tU(t)=
begin{cases}
0 & t<0\
t & tgeq 0
end{cases}$$



the second



$$(t-1)U(t-1)=begin{cases}
0 &t<1\
t-1 & tgeq 1
end{cases}$$



and so on... Can you take it from here?



Edit:



$$F(t)=
begin{cases}
0, & t<0\
t, & 0leq t<1\
1, & 1leq t<2\
t-1,& 2leq t<3\
2, &tgeq 3
end{cases}$$







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Nov 25 at 9:14

























answered Nov 18 at 19:01









Fakemistake

1,682815




1,682815












  • I'm afraid I cannot. I am able to draw functions like U(t)+2U(t-1)+4U(t-2) - 3U(t-3), whose graph is a combination of step-like figures. But my professor said that the first term of the given function would give a straight line with 45 degree slope, which will continue till t=1 on the t axis, and so on. I, on the other hand, always thought that these functions yield some horizontal lines at different steps. Perhaps the graph could clarify everything.
    – Jasmine
    Nov 18 at 19:43










  • Maybe you can do the next step when you subtract these two functions. What value holds for negative $t$, for $tgeq 1$ and for $0leq t<1$?
    – Fakemistake
    Nov 18 at 21:20


















  • I'm afraid I cannot. I am able to draw functions like U(t)+2U(t-1)+4U(t-2) - 3U(t-3), whose graph is a combination of step-like figures. But my professor said that the first term of the given function would give a straight line with 45 degree slope, which will continue till t=1 on the t axis, and so on. I, on the other hand, always thought that these functions yield some horizontal lines at different steps. Perhaps the graph could clarify everything.
    – Jasmine
    Nov 18 at 19:43










  • Maybe you can do the next step when you subtract these two functions. What value holds for negative $t$, for $tgeq 1$ and for $0leq t<1$?
    – Fakemistake
    Nov 18 at 21:20
















I'm afraid I cannot. I am able to draw functions like U(t)+2U(t-1)+4U(t-2) - 3U(t-3), whose graph is a combination of step-like figures. But my professor said that the first term of the given function would give a straight line with 45 degree slope, which will continue till t=1 on the t axis, and so on. I, on the other hand, always thought that these functions yield some horizontal lines at different steps. Perhaps the graph could clarify everything.
– Jasmine
Nov 18 at 19:43




I'm afraid I cannot. I am able to draw functions like U(t)+2U(t-1)+4U(t-2) - 3U(t-3), whose graph is a combination of step-like figures. But my professor said that the first term of the given function would give a straight line with 45 degree slope, which will continue till t=1 on the t axis, and so on. I, on the other hand, always thought that these functions yield some horizontal lines at different steps. Perhaps the graph could clarify everything.
– Jasmine
Nov 18 at 19:43












Maybe you can do the next step when you subtract these two functions. What value holds for negative $t$, for $tgeq 1$ and for $0leq t<1$?
– Fakemistake
Nov 18 at 21:20




Maybe you can do the next step when you subtract these two functions. What value holds for negative $t$, for $tgeq 1$ and for $0leq t<1$?
– Fakemistake
Nov 18 at 21:20


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3003945%2fhow-do-i-plot-this-function-graphically%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents