Solving Linear First Order ODEs: y' + p(x)y = q(x)

  • MHB
  • Thread starter Markov2
  • Start date
  • Tags
    Pdf
In summary: Basically this is like an ODE with $\omega$ being a constant. Do you remember the formula for "linear-first order ODE's"?I do not remember the formula, sorry.
  • #1
Markov2
149
0
Given $u_t+u_x\cos t=u.$

a) Find the solution with $u(x,0)=f(x).$
b) If $f(x)=\left\{\begin{array}{cl}\cos^2x,&\text{if }-\frac\pi2\le x\le\frac\pi2,\\
0,&\text{in the rest}.\end{array}\right.$
Describe $u(x,t)$ for $t\ge0.$

I have to use Fourier transform, but don't know how to apply it for $u_x\cos t.$ As for part b), I don't know how to describe $u(x,t).$
Thanks for the help!
 
Physics news on Phys.org
  • #2
インテグラルキラー;439 said:
Given $u_t+u_x\cos t=u.$

a) Find the solution with $u(x,0)=f(x).$
b) If $f(x)=\left\{\begin{array}{cl}\cos^2x,&\text{if }-\frac\pi2\le x\le\frac\pi2,\\
0,&\text{in the rest}.\end{array}\right.$
Describe $u(x,t)$ for $t\ge0.$

I have to use Fourier transform, but don't know how to apply it for $u_x\cos t.$ As for part b), I don't know how to describe $u(x,t).$
Thanks for the help!

As in the other post if you apply Fourier Transform with respect to $x$ then treat $\cos t$ as just a constant.

To find Fourier transform of $f(x)$ you do the following:
$$ \hat f (\omega) = \int \limits_{-\infty}^{\infty} f(x) e^{-ix\omega } dx = \int \limits_{-\pi/2}^{\pi/2} \cos^2 x \cdot e^{-ix\omega} dx$$
The reason is that $f(x) = 0$ outside the interval $(-\pi/2,\pi/2)$ anyway, so you are only working on that interval.
 
  • #3
So I have, $\dfrac{\partial U}{\partial t}+iwU\cos t=U,$ so this is a homogeneous ODE. So you actually applied Fourier transform to the initial condition, right?
 
Last edited:
  • #4
インテグラルキラー;474 said:
So I have, $\frac{\partial U}{\partial t}+iwU\cos t=U,$ so this is a homogeneous ODE. So you actually applied Fourier transform to the initial condition, right?

Yes that is the differencial equation after hitting it with a Fourier transform.

Now as if $U(\omega,t)$ is Fourier transform of $u(x,t)$ then as $u(x,0) = f(x)$ it means that $U(\omega, 0) = \hat f(\omega)$.
Where $\hat f(\omega)$ is the Fourier transform of the initial condition $f(x)$.

So you have the equation,
$$ \frac{\partial U}{\partial t} + i\omega \cos t U = U \text{ and } U(\omega , 0 ) = \hat f(\omega) $$
 
  • #5
I'm a bit stuck on solving the ODE, since $U=U(w,t)$ and $\cos(t)$ both depend of $t,$ how to proceed?
 
  • #6
Markov said:
I'm a bit stuck on solving the ODE, since $U=U(w,t)$ and $\cos(t)$ both depend of $t,$ how to proceed?

Basically this is like an ODE with $\omega$ being a constant. Do you remember the formula for "linear-first order ODE's"?

How do you solve something like $y' + p(x)y = q(x)$. Remember the formula for that?
 

FAQ: Solving Linear First Order ODEs: y' + p(x)y = q(x)

What is a PDF with f given piecewise?

A PDF (Probability Density Function) with f given piecewise is a function that describes the probability of a continuous random variable taking on a certain value within a given range. This type of PDF is defined by different functions for different intervals of the variable's range.

What are the advantages of using a piecewise PDF?

A piecewise PDF allows for more flexibility in describing the probability distribution of a random variable, especially when the variable's behavior changes at different intervals. It also allows for a more accurate representation of the underlying data.

How do you calculate the probability using a piecewise PDF?

To calculate the probability using a piecewise PDF, you need to integrate the corresponding function over the desired range of the variable. This will give you the probability of the variable falling within that range.

Can a piecewise PDF be used for discrete random variables?

Yes, a piecewise PDF can be used for both continuous and discrete random variables. For discrete variables, the PDF will be a step function that assigns probabilities to specific values of the variable.

How is a piecewise PDF represented graphically?

A piecewise PDF is typically represented graphically as a series of connected line segments or a step function. The height of each segment or step represents the probability of the variable falling within that particular interval.

Similar threads

Replies
2
Views
1K
Replies
1
Views
941
Replies
1
Views
2K
Replies
5
Views
2K
Replies
6
Views
1K
Replies
6
Views
1K
Replies
4
Views
1K
Back
Top