You are going the right way, but the integrals are a bit tricky and tedious. Define:
f(t) = t
g(t) = exp(t)sin(t)
Thus h(t) = int(0->t): f(t-r)g(r)dr = int(0->t): (t-r)*exp(r)sin(r)dr =
int(0->t): t*exp(r)sin(r)dr - int(0->t): r*exp(r)sin(r)dr
Both these integrals must be done using integration by parts, and there is a "loop trick" you need to use to solve.
For the first integral, we can treat 't' as a constant because we are intergrating with respect to 'r'. Thus, we can pull it outside of the integral:
t*int(0->t): exp(r)sin(r)dr [let's also denote the integral as @ for later use]
Now let:
u = exp(r) ---------> du = exp(r)dr
dv = sin(r)dr ---------> v = -cos(r)
Thus,
t*int(0->t): exp(r)sin(r)dr = -exp(r)cos(r) + int(exp(r)cos(r)dr)
Again, use integration by parts on the 2nd integral:
u = exp(r) -----------------> du = exp(r)dr
dv = cos(r)dr ----------------> v = sin(r)
Thus, int(exp(r)cos(r)dr) = exp(r)sin(r) - int(exp(r)sin(r))
Now let's combine the entire integral:
-------
t*int(0->t): exp(r)sin(r)dr =
-exp(r)cos(r) + exp(r)sin(r) - int(exp(r)sin(r))
------------
The third part of the answer is the same as the integral itself. Now let's use the @ substitution above to do the "loop trick". Making this substitution, you have:
@ = -exp(r)cos(r) + exp(r)sin(r) - @. Put all the @ on one side and solve for @.
2@ = -exp(r)cos(r) + exp(r)sin(r)
@ = int(0->t): exp(r)sin(r)dr = (1/2)[e^r*sin(r)-e^r*cos(r)]
Don't forget the 't'
t*int(0->t): exp(r)sin(r)dr = (t/2)[e^r*sin(r)-e^r*cos(r)]
-----------
Now the 2nd integral from the top is a little trickier:
---------------int(0->t): r*exp(r)sin(r)dr------------
Use integration by parts again, this time:
u = r -------> du = dr
dv = e^r*sin(r) ------> v = look at the result above
Using the same algorithm as above and using the "loop trick", you get the following answer:
(e^r/2)[cos(r) + r*sin(r) - r*cos(r)
-------
Combine the two answers together to get h(t)
h(t) = (t/2)[e^r*sin(r)-e^r*cos(r)] - (e^r/2)[cos(r) + r*sin(r) - r*cos(r)
evaluated from [r: 0->t]
Evaluating h(t) at these limits, you get:
h(t) = (t/2) - [e^t*cos(t)]/2 + (1/2), which is the desired answer.
Use the following website to check your answers
-----------
Hope this helps and was easy to follow