Solve Convolution Shortcut for x(t)

  • Thread starter Color_of_Cyan
  • Start date
  • Tags
    Convolution
In summary, convolution is performed between two functions, f(t) and g(t), by integrating f(t-τ)g(τ) with respect to τ from 0 to t. In this problem, the convolution is being done between the first two terms, 2e-4tu(t) and e2tu(t), resulting in the integral ∫t2e-4(t - τ)u(t - τ)e2τu(τ)dτ. To simplify this, the variable τ can be changed to -(t-τ), resulting in the integral ∫t2e2(t - τ)u(-1(t - τ))e-2τu(τ)dτ. Then, the unit step function, u
  • #36
rude man said:
check δ(t - 2).

Ok so it was actually this then?: (t - T - 2):

-∞[(1/3)[-exp(-4t) + exp(2t)][(t - T)2δ(t - T - 2)]dT ??

rude man said:
Fact: δ(x) is an even function: δ(-x) = δ(x).
Sampling function: ∫f(x)δ(x-a)dx = f(a). The integration limits can be anything so long as they include x=a. So they can for example be + and - infinity. Notice you don't need to know how to integrate f(x)!

I can't seem to understand or see what is f(a) or f(x) in this case. But, if everything above is correct so far now, then according to only the 'tricks' I already know with this then:

t = T + 2 (because it is inside the 'δ')

Which is then substituted above into this:

(1/3)[-exp(-4t) + exp(2t)][(t - T)2

and so it becomes this:

(1/3)[-exp(-4(T+2)) + exp(2(T+2))][(2)2

= (4/3)[-exp(-4(T+2)) + exp(2(T+2))]

or was it supposed to be

T = t + 2 or something?
 
Last edited:
Physics news on Phys.org
  • #37
Bump, was this the final answer? I think I had the correct procedure but not completely sure (and I think I probably did something wrong).
 
  • #38
Color_of_Cyan said:
Ok so it was actually this then?: (t - T - 2):

-∞[(1/3)[-exp(-4t) + exp(2t)][(t - T)2δ(t - T - 2)]dT ??
I urge you to think hard about post 35. I gave you 2 hints and both are important. Take the first hint first, then the second.

Correct up to here.
One last hint: x = T.
t is again a constant in the integration over T.
Figure out what a must be.

I have to quit here lest I wind up in trouble with the Authorities, divulging too much.
If you post your final answer I'll tell you if it's right or wrong.
 
  • #39
Ah, I think you mean that it was actually supposed to be T = t - 2 instead (still inside the 'δ'):

Then still substituted into this:

(1/3)[-exp(-4t) + exp(2t)][(t - T)2

and so it becomes this:

(1/3)[-exp(-4(t-2)) + exp(2(t-2))][(t - (t - 2))2

= (1/3)[-exp(-4(t-2)) + exp(2(t-2))][(t - t + 2))2

= (1/3)[-exp(-4(t-2)) + exp(2(t-2))(2)2= (4/3)[-exp(-4(t-2)) + exp(2(t-2))] for my final answer (?).
 
  • #40
Nope. What is your a? What is the delta function inside the integral?
 
  • #41
rude man said:
Nope. What is your a? What is the delta function inside the integral?
'δ(t - T - 2)'

rude man said:
Fact: δ(x) is an even function: δ(-x) = δ(x).
Sampling function: ∫f(x)δ(x-a)dx = f(a). The integration limits can be anything so long as they include x=a.

Still can't see it from the hints you gave but I thought you meant just solve for the inside (and you can since the limits are from -∞ to +∞ right?). And if x = T I think the whole thing means it becomes an integral with dT and you solve for T so that's what I thought you meant, but I guess I'm still missing something.
 
  • #42
Color_of_Cyan said:
'δ(t - T - 2)'

Right. So if that's δ(x-a) and x = T, what is a?
I think the whole thing means it becomes an integral with dT and you solve for T so that's what I thought you meant, but I guess I'm still missing something.

If it's an integral with dT you don't solve for T. T disappears ...
 
  • #43
Well the first hint was kind of something that didn't really make much sense to me and afraid to try the first time, that it was δ(x) = δ(-x) so it could be both -T and +T??

I'm going to say now (flipping the negative sign inside) that a = -t + 2
 
  • #44
Nope. What does your δ function look like inside the final convolution integral?
 
  • #45
Okay wait, let me check this again.

So if that's δ(x-a) and x = T, what is a?

t - T - 2 = x - a
at the same time
x = T

t - T - 2 = T - a

t - 2 = 2T - a

a = -t + 2 + 2T?
 
  • #46
Color_of_Cyan said:
Okay wait, let me check this again.
t - T - 2 = x - a
at the same time
x = T

t - T - 2 = T - a

t - 2 = 2T - a

a = -t + 2 + 2T?

Go back to post 44. Better yet, show us your entire final convolution integral.
 
  • #47
-∞[(1/3)[-exp(-4t) + exp(2t)][(t - T)2δ(t - T - 2)]dT

∫f(x)δ(x-a)dx = f(a)

So I would still have at least the "[(1/3)[-exp(-4t) + exp(2t)]" part because I would still pull them from the integral, right? Would I have to replace any of the variables in the delta function?

I think I should also probably say I never really took statistics so I don't really know much about dummy variables. If this is just algebra now I'm also having a difficult time understanding it.
 
  • #48
Color_of_Cyan said:
-∞[(1/3)[-exp(-4t) + exp(2t)][(t - T)2δ(t - T - 2)]dT

That is right. But comparing that with ∫f(x)δ(x-a)dx = f(a), with x = T, what is a? You need to get the delta function looking like δ(T - a). Look again at my hint back in post 35.
So I would still have at least the "[(1/3)[-exp(-4t) + exp(2t)]" part because I would still pull them from the integral, right?

No, you will replace t with T and since you're integrating over T you can't pull that expression out of the integral sign.

But as I said before when you finally 'get it' you will realize that no actual integration needs to be done.
I think I should also probably say I never really took statistics so I don't really know much about dummy variables. If this is just algebra now I'm also having a difficult time understanding it.

Has nothing to do with statistics. Dummy variables are used everywhere in integral calculus. Sometimes people 'cheat' and don't use them but that is rigorously incorrect.

Example: s(t) = ∫0t v(t')dt' is position s given velocity v from t=0 to t. It is incorrect to write ∫0t v(t)dt. t' is a dummy variable & disappears with the integration.
 
  • #49
Okay, so -∞[(1/3)[-exp(-4t) + exp(2t)][(t - T)2δ(t - T - 2)]dT

δ(t - T - 2)

Then to make it like you say as this:

∫f(x)δ(x-a)dx = f(a); x = T, what is a?

multiply the inside by -1 so the Delta function is this:

δ-1(T - t + 2)

-a = -t + 2, from the above?

a = t - 2

rude man said:
No, you will replace t with T and since you're integrating over T you can't pull that expression out of the integral sign.

Does this mean t = T + 2 for the rest of the expression?

rude man said:
Has nothing to do with statistics. Dummy variables are used everywhere in integral calculus. Sometimes people 'cheat' and don't use them but that is rigorously incorrect.

Example: s(t) = ∫0t v(t')dt' is position s given velocity v from t=0 to t. It is incorrect to write ∫0t v(t)dt. t' is a dummy variable & disappears with the integration.

No but with there you change them to help you integrate (if you're doing u-sub or by parts) you switch to U or dv then substitute, integrate, and then switch them back. Here I don't see how it's supposed to help (even though you said you don't really have to integrate anything in this case).
 
Last edited:
  • #50
Color_of_Cyan said:
Okay, so -∞[(1/3)[-exp(-4t) + exp(2t)][(t - T)2δ(t - T - 2)]dT

δ(t - T - 2)
a = t - 2
Good up to here.
Then to make it like you say as this:

multiply the inside by -1 so the Delta function is this:

δ-1(T - t + 2)

Look again at hint #1 of post 35. How did I get from δ(x) to δ(-x)?
Does this mean t = T + 2 for the rest of the expression?

No but with there you change them to help you integrate (if you're doing u-sub or by parts) you switch to U or dv then substitute, integrate, and then switch them back. Here I don't see how it's supposed to help (even though you said you don't really have to integrate anything in this case).

Look again at hint #2 of post 35. Did I have to integrate f(x) to get ∫f(x)δ(x-a)dx?
 
  • #51
rude man said:
Look again at hint #1 of post 35. How did I get from δ(x) to δ(-x)?
You multiplied the whole expression inside the Delta function by -1. And just to also make sure, it has nothing to do with the "x=T" in the "δ(x-a)" part of the other formula right? And it was necessary in order to solve for a.

What do I do now that I have the a? I have to plug it back into f so that it becomes f(a) now? What happens to T?
 
  • #52
Color_of_Cyan said:
You multiplied the whole expression inside the Delta function by -1. And just to also make sure, it has nothing to do with the "x=T" in the "δ(x-a)" part of the other formula right? And it was necessary in order to solve for a.

What do I do now that I have the a? I have to plug it back into f so that it becomes f(a) now?
Yes.
What happens to T?
It goes away.
 
  • #53
Okay, so would the final answer be this then?:
(1/3)[-exp(-4(t-2)) + exp(2(t-2))](t - 2)2
 
  • #54
Color_of_Cyan said:
Okay, so would the final answer be this then?:
(1/3)[-exp(-4(t-2)) + exp(2(t-2))](t - 2)2
You're not dealing with the t2 term correctly in moving it into the convolution integral.
 
  • #55
So the T there in the convolution integral doesn't just go away then?
 
  • #56
Color_of_Cyan said:
So the T there in the convolution integral doesn't just go away then?
OK, from the beginning:
f(t)*g(t) = ∫-∞+∞ f(T)g(t-T)dT = h(t).
So T appears in the integrand but, as in all cases of integrating with respect to a variable, the variable disappears after the integration limits are invoked. Freshman calculus.
 
  • #57
Afraid I can't see what went wrong this time either then, are you able to explain post #54 a little more?

Sure the 't2' term is next to the 'δ,' but it's not in the convolution integral? I was thinking just replace the t with 'a = t-2' in everything. I'm just trying to go by the formula you gave, but even if I solved for T there in the Delta function (per the other 'tricks' I know) I think it would've been T = t-2 as well.

Thinking about it more carefully now, does the t2 just completely disappear too? (At the very least I think there was something 'special' about the terms / variables next to the δ)
 
  • #58
Color_of_Cyan said:
Afraid I can't see what went wrong this time either then, are you able to explain post #54 a little more?

Sure the 't2' term is next to the 'δ,' but it's not in the convolution integral? I was thinking just replace the t with 'a = t-2' in everything. I'm just trying to go by the formula you gave, but even if I solved for T there in the Delta function (per the other 'tricks' I know) I think it would've been T = t-2 as well.

Thinking about it more carefully now, does the t2 just completely disappear too? (At the very least I think there was something 'special' about the terms / variables next to the δ)
post 56: g(t) = t2δ(t-2).
 
  • #59
Oh that's right... does it just become 4 when you integrate it then? (Because now it's t = 2 for it next to the 'δ'?)
 
  • #60
Color_of_Cyan said:
Oh that's right... does it just become 4 when you integrate it then? (Because now it's t = 2 for it next to the 'δ'?)
You mean t-2, not t=2, right?

Things are looking up! So what's your final answer?
 
  • #61
(4/3)[-exp(-4(t-2)) + exp(2(t-2))]
 
  • #62
Color_of_Cyan said:
(4/3)[-exp(-4(t-2)) + exp(2(t-2))]
May the gods be praised!

BTW realize I may have made a mistake myself at some point. Let me know if our answer agrees with your prof please?
 
  • Like
Likes Color_of_Cyan
  • #63
Thank you so much for being patient with me, hah.

Are you able to check your "inbox" here?
Sure thing...
 
Last edited:
  • #64
Color_of_Cyan said:
Thank you so much for being patient with me, hah.

Are you able to check your "inbox" here?
Sure thing...
Sure. You can let me know either on this forum or by private message.
 
  • #65
rude man said:
Sorry, I keep saying -U when I mean U(-).
So you want to graph U{-(T - t)}.
Change (T-t) to t on the horizontal (T) axis and you'd be there.
Now, multiply the two graphs into one new graph.
It's real easy if you understand
0 x 0 = 0
0 x 1 = 0
1 x 0 = 0
1 x 1 = 1
For this, what if it was instead a ramp function or parabolic function instead of a step? Would I 'solve' for the integration limits the same way?
 
  • #66
Color_of_Cyan said:
For this, what if it was instead a ramp function or parabolic function instead of a step? Would I 'solve' for the integration limits the same way?

I'll look at this also tomorrow. There may not be a finite answer if it's a ramp for example.
 
  • #67
I meant to post also that I think I know what's with the missing U(t-2) term. Will try to send answer tomorrow.
 
  • #68
rude man said:
I meant to post also that I think I know what's with the missing U(t-2) term. Will try to send answer tomorrow.
Well, it's tomorrow! (12:32 a.m.) :smile:

OK, here's the deal:
Mathematically, the U(t-2) does not belong.

Let
h1= 2exp(-4t)
h2 = exp(2t)
x = t2δ(t-2)
y = x*(h1*h2)
By the conventional formula for convolution, the answer is y = (4/3){[exp2(t-2)] - exp[-4(t-2)]} as we have derived. Per wikipedia:

af6070d78ff3159afd6d7892f7f3de09.png


f30ca5808f30244853ae4226d7235330.png


d7c4f76dcc7928b5cb5728a7f52b719b.png


but
c3ac42c8f25f5ed8d75a24c9aa435eef.png

so
b31c083eee6b0336225a901a4d0791a9.png

Notice: No U(t-T) term.

On the other hand, assume h1 and h2 are the impulse responses for two separate networks connected in cascade (series). Then the impulse response for the combined network is h1*h2 = 2[exp(2t) - exp(-4t)].
Now we apply an input x = t2δ(t-2). Since the input x is zero until t = 2, so must be the output. So when we evaluate the convolution integral y = x*(h1*h2) = (4/3){[exp2(t-2)] - exp[-4(t-2)]} we need to multiply that expression by U(t-2) for the network since otherwise we don't get zero output for t < 2.

In other words: it depends on how the convolution integral is interpreted. If you omit the U(t-2) term you get a finite output for t < 2 which is wrong for the network, but U(t-2) does not appear in the mathematically derived convolution integral. So, bottom line, I'd say our answer is at least as valid as theirs.

This is similar to many problems in algebra. For example, area of a square of side x = x2. What are the sides? You can't have negative sides even though (-x)(-x) = x2 also.
 

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
3K
  • Calculus and Beyond Homework Help
Replies
0
Views
161
  • Engineering and Comp Sci Homework Help
Replies
2
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
Replies
5
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
Back
Top