How Do You Solve a Differential Equation Using an Ansatz?

Click For Summary
SUMMARY

This discussion focuses on solving the differential equation $$\ddot x + {\omega_0}^2 x = cos(\omega_0 t)$$ using an ansatz approach. The participants derive the first and second derivatives of the ansatz $$\dot x(t)=A(cos(\omega_0 t) - t\omega_0 sin(\omega_0 t)) + B(sin(\omega_0 t) + t\omega_0 cos(\omega_0 t))$$ and simplify to find a relationship between constants A and B. Ultimately, it is concluded that for the equation to hold for all t, A must equal 0 and B must equal $$\frac{1}{2\omega_0}$$.

PREREQUISITES
  • Understanding of differential equations, specifically second-order linear differential equations.
  • Familiarity with trigonometric identities, particularly $$cos(2\theta) = cos^2(\theta) - sin^2(\theta)$$.
  • Knowledge of calculus, including differentiation and the concept of derivatives.
  • Experience with ansatz methods in solving differential equations.
NEXT STEPS
  • Study the method of undetermined coefficients for solving non-homogeneous differential equations.
  • Learn about the application of Fourier series in solving differential equations.
  • Explore the Laplace transform technique for solving linear differential equations.
  • Investigate the stability of solutions to differential equations and their physical interpretations.
USEFUL FOR

Students and professionals in mathematics, physics, and engineering who are working on differential equations and their applications in modeling dynamic systems.

Hamiltonian
Messages
296
Reaction score
193
Homework Statement
Take the ##ans\ddot atz## ##x(t) = At cos(ω_{0}t) + Btsin(ω_{0}t)## and adjust the constants ##A, B##
to solve the DE bellow in the case ##ω = ω_0##.
$$\ddot x + {\omega_0}^2 x=cos(\omega t)$$
Relevant Equations
-
Finding the first and second derivative of out ansatz, $$\dot x(t)=A(cos(\omega_0 t) - t\omega_0 sin(\omega_0 t)) + B(sin(\omega_0 t) + t\omega_0 cos(\omega_0 t))$$ $$\ddot x= A(-2\omega_0 sin(\omega_0 t) - t{\omega_0}^2cos(\omega_0 t)) + B(2\omega_0 cos(\omega_0 cos(\omega_0 t) -t{\omega_0}^2sin(\omega_0 t)))$$
The differential Equation we are trying to find a solution to is, $$\ddot x + {\omega_0}^2 x = cos(\omega_0 t)$$
if we plug in ##\dot x## and ##\ddot x## and after a little simplification we end up with, $$2\omega_0(Bcos(\omega_0 t) - Asin(\omega_0 t)) = cos(\omega_0t)$$
From here we essentially guess A and B such that the LHS=RHS, I can't think of any possible values that could satisfy the equation.
 
Physics news on Phys.org
I didn't check every step in the algebra, but I see A and B that satisfy the last equation.
 
Hill said:
I didn't check every step in the algebra, but I see A and B that satisfy the last equation.
I initially thought of $$A=sin(\omega_0 t)$$ and $$B=cos(\omega_0 t)$$ using the trig identity, ##cos(2\theta) = cos^2(\theta)-sin^2(\theta)## we get,
$$2\omega_0 cos(2\omega_0 t) = cos(\omega_0 t)$$
but even this doesn't work.
 
  • Wow
Likes Delta2 and PeroK
Hamiltonian said:
I initially thought of $$A=sin(\omega_0 t)$$ and $$B=cos(\omega_0 t)$$ using the trig identity, ##cos(2\theta) = cos^2(\theta)-sin^2(\theta)## we get,
$$2\omega_0 cos(2\omega_0 t) = cos(\omega_0 t)$$
but even this doesn't work.
A and B are constants!
 
Hamiltonian said:
##2\omega_0(Bcos(\omega_0 t) - Asin(\omega_0 t)) = cos(\omega_0t)##
The above has to be true for all values of the variable t, so it should be clear that the absence of a ##\sin(\omega_0 t)## term on the right side has an effect on that term on the left side.
 
Mark44 said:
The above has to be true for all values of the variable t, so it should be clear that the absence of a ##\sin(\omega_0 t)## term on the right side has an effect on that term on the left side.
Are you implying, ##A=0## and ##B=\frac{1}{2\omega_0}##

Edit: I shall not show my face around these parts of town henceforth.
 
  • Like
Likes PeroK and Delta2

Similar threads

Replies
28
Views
2K
Replies
3
Views
987
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 17 ·
Replies
17
Views
3K
Replies
2
Views
2K
Replies
7
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
9
Views
2K
Replies
17
Views
3K