Laplace transform - solve integral

In summary: Correct, the solution should be 0=0, not 4t=0. Your mistake was in solving the integral. The correct solution is$$y(t) = 4\sin 2t - 2\sin t + C$$ where C is a constant of integration.
  • #1
erba
10
1

Homework Statement


Solve the integral

[itex]
y(t) + \int_0^t (t-u)y(u) \, du = 3sin(2t)
[/itex]

Homework Equations

The Attempt at a Solution


Rewrite the equation:

[itex]
y(t) = 3sin(2t) - \int_0^t (t-u)y(u) \, du
[/itex]

I assume the integral to be the convolution:

[itex]
f(t) * y(t) = t * y(t)
[/itex]

as

[itex]
f(t-u) = f(t) = t
[/itex]

when

[itex]
u = 0
[/itex]

Laplace transform both sides, and after simplification get:

[itex]
y(s) = \frac{6s^2}{(s^2 + 4)(s^2 + 1)}
[/itex]

Apply partial fraction decomposition:

[itex]
y(s) = \frac{A}{s^2 + 4} + \frac{B}{s^2 + 1}
[/itex]

and I find that:

[itex]
A = 8
[/itex]
[itex]
B = -2
[/itex]

Thus,

[itex]
y(s) = \frac{8}{s^2 + 4} - \frac{2}{s^2 + 1}
[/itex]

Inverse Laplace transform then gives:

[itex]
y(t) = 4sin(2t) - 2sin(t)
[/itex]

But then I want to double-check myself by substituting y(t) into the original equation, that we were supposed to solve. I.e.:

[itex]
y(t) + \int_0^b (t-u)y(u) \, du = 3sin(2t)
[/itex]

[itex]
4sin(2t) - 2sin(t) + (4sin(2t) - 2sin(t)) \int_0^t (t-u) \, du = 3sin(2t)
[/itex]

[itex]
4sin(2t) - 2sin(t) + \frac{t^2}{2}(4sin(2t) - 2sin(t)) \neq 3sin(2t)
[/itex]

But LHS is not equal to RHS. Where is my mistake?
My intuitive feeling is that the error lies in my "partial fraction decomposition", as all the other processes are quite straight forward.

Thank you very much!
 
Physics news on Phys.org
  • #2
erba said:

Homework Statement


Solve the integral
$$y(t) + \int_0^t (t-u)y(u) \, du = 3sin(2t)$$

Homework Equations

The Attempt at a Solution



Rewrite the equation:
$$y(t) = 3sin(2t) - \int_0^t (t-u)y(u) \, du$$I assume the integral to be the convolution:
$$f(t) * y(t) = t * y(t)$$ as
$$f(t-u) = f(t) = t$$ when [itex]u = 0[/itex]. Laplace transform both sides, and after simplification get:
$$y(s) = \frac{6s^2}{(s^2 + 4)(s^2 + 1)}$$ Apply partial fraction decomposition:
$$y(s) = \frac{A}{s^2 + 4} + \frac{B}{s^2 + 1}$$ and I find that ##A = 8## and ##B = -2##. Thus,
$$y(s) = \frac{8}{s^2 + 4} - \frac{2}{s^2 + 1}.$$ Inverse Laplace transform then gives:
$$y(t) = 4sin(2t) - 2sin(t).$$ But then I want to double-check myself by substituting y(t) into the original equation, that we were supposed to solve. I.e.:
\begin{align*}
y(t) + \int_0^b (t-u)y(u) \, du = 3sin(2t) \\
4sin(2t) - 2sin(t) + (4sin(2t) - 2sin(t)) \int_0^t (t-u) \, du = 3sin(2t)
\end{align*}
Your mistake is here. You should have y(u) and not y(t), and you can't pull it out of the integral. It should be
$$4\sin 2t - 2\sin t + \int_0^t (t-u)(4\sin 2u - 2\sin u) \, du = 3sin(2t).$$
[itex]
4sin(2t) - 2sin(t) + \frac{t^2}{2}(4sin(2t) - 2sin(t)) \neq 3sin(2t)
[/itex]

But LHS is not equal to RHS. Where is my mistake?
My intuitive feeling is that the error lies in my "partial fraction decomposition", as all the other processes are quite straight forward.

Thank you very much!
 
  • #3
vela said:
Your mistake is here. You should have y(u) and not y(t), and you can't pull it out of the integral. It should be
$$4\sin 2t - 2\sin t + \int_0^t (t-u)(4\sin 2u - 2\sin u) \, du = 3sin(2t).$$

Thanks for the help!

I should use y(u) as I try to solve the integral, which I now realize depends on u and not t, right?
If I would have tried to solve the convolution then y(t) would have been the right choice?

Well, when I try to solve

[itex]4\sin 2t - 2\sin t + \int_0^t (t-u)(4\sin 2u - 2\sin u) \, du = 3sin(2t)[/itex]

I get, for the integral

[itex]2(u-t)cos(2u) - sin(2u) + 2(u-t)cos(u) - 2sin(u)[/itex]

and I can't see how that would solve the equation. I have tried different rewritings of the cos and sin terms, but still won't end up with what's asked.
I also get the t term, which I can't get rid of.
 
Last edited:
  • #4
erba said:
Thanks for the help!

I should use y(u) as I try to solve the integral, which I now realize depends on u and not t, right?
If I would have tried to solve the convolution then y(t) would have been the right choice?
I'm not sure what you mean. The convolution is defined as
$$(f*g)(t) = \int_{-\infty}^{\infty} f(u)g(t-u)\,du.$$ The argument of y has to be either u or t-u.

Well, when I try to solve

[itex]4\sin 2t - 2\sin t + \int_0^t (t-u)(4\sin 2u - 2\sin u) \, du = 3sin(2t)[/itex]

I get, for the integral

[itex]2(u-t)cos(2u) - sin(2u) + 2(u-t)cos(u) - 2sin(u)[/itex]
The last term should be the opposite sign. You need to plug in the limits now.
$$[2(u-t)\cos 2u - \sin 2u + 2(u-t)\cos u + 2\sin u]\bigg|_0^t = \ ?$$ Some of the terms will vanish when u=0 and some others when u=t.

and I can't see how that would solve the equation. I have tried different rewritings of the cos and sin terms, but still won't end up with what's asked.
I also get the t term, which I can't get rid of.
 
  • #5
vela said:
I'm not sure what you mean. The convolution is defined as
$$(f*g)(t) = \int_{-\infty}^{\infty} f(u)g(t-u)\,du.$$ The argument of y has to be either u or t-u.The last term should be the opposite sign. You need to plug in the limits now.
$$[2(u-t)\cos 2u - \sin 2u + 2(u-t)\cos u + 2\sin u]\bigg|_0^t = \ ?$$ Some of the terms will vanish when u=0 and some others when u=t.

Tanks for the sign error. And I realized that I was a bit unclear in my previous post.
Solving the integral gives me:
$$-sin(2t) + 2sin(t) + 4t$$
Plugging that into the equation that we were supposed to solve gives
$$y(t) + \int_{0}^{t} (t-u)y(u)\,du = 3sin(2t)$$
$$4sin(2t) - 2sin(t) + \int_{0}^{t} (t-u)y(u)\,du = 3sin(2t)$$
$$4sin(2t) - 2sin(t) + (-sin(2t) + 2sin(t) + 4t) = 3sin(2t)$$
$$3sin(2t) + 4t = 3sin(2t)$$
$$4t = 0, t = 0$$
$$4t \neq 0, t \neq 0$$
But I guess my solution is incorrect. The solution should be 0 = 0 for all t.
 
  • #6
You have another sign error which I didn't catch before. After you integrate, you should end up with
$$[2(u-t)\cos 2u - \sin 2u - 2(u-t)\cos u + 2\sin u]\bigg|_0^t = \ ?$$ This time, the terms proportional to ##t## will cancel out.
 
  • #7
vela said:
You have another sign error which I didn't catch before. After you integrate, you should end up with
$$[2(u-t)\cos 2u - \sin 2u - 2(u-t)\cos u + 2\sin u]\bigg|_0^t = \ ?$$ This time, the terms proportional to ##t## will cancel out.

Thanks for the help! Guess I should re-think even the, relatively, more trivial steps more often.
 

Related to Laplace transform - solve integral

What is the Laplace transform?

The Laplace transform is a mathematical operation that converts a function in the time domain to a function in the frequency domain. It is commonly used in engineering and physics to solve differential equations and analyze systems.

How is the Laplace transform used to solve integrals?

The Laplace transform can be used to solve integrals by transforming the integral into a function in the frequency domain. This allows for the use of algebraic methods to solve the integral, which can then be transformed back to the time domain to obtain the answer.

What types of functions can be transformed using the Laplace transform?

The Laplace transform can be applied to a wide range of functions, including piecewise functions, periodic functions, and functions with discontinuities. However, it is most commonly used for functions that are continuous and have exponential decay.

What is the relationship between the Laplace transform and the Fourier transform?

The Laplace transform is a generalization of the Fourier transform, where the frequency variable is extended to the complex plane. The Laplace transform is used for functions with exponential growth or decay, while the Fourier transform is used for periodic functions.

What are the advantages of using the Laplace transform to solve integrals?

The Laplace transform allows for the use of algebraic methods to solve integrals, which can be simpler and more efficient than traditional methods such as integration by parts. It also allows for the analysis of systems in the frequency domain, which can provide valuable insights into their behavior.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
385
  • Calculus and Beyond Homework Help
Replies
2
Views
548
  • Calculus and Beyond Homework Help
Replies
2
Views
423
  • Calculus and Beyond Homework Help
Replies
1
Views
367
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
729
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top