How Do You Solve a Differential Equation Using an Ansatz?

Click For Summary

Homework Help Overview

The discussion revolves around solving a differential equation of the form $$\ddot x + {\omega_0}^2 x = cos(\omega_0 t)$$ using an ansatz. Participants are exploring the implications of their chosen functions for the coefficients A and B in the ansatz, which involves derivatives of trigonometric functions.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants are attempting to derive the first and second derivatives of their ansatz and substitute these into the differential equation. There is a focus on finding appropriate values for A and B that satisfy the resulting equation. Some participants express uncertainty about the algebraic steps and the validity of their choices for A and B.

Discussion Status

The discussion is ongoing, with participants questioning the assumptions behind their choices for A and B. Some guidance is offered regarding the implications of the absence of certain terms in the equation, and there are multiple interpretations of how to approach the problem.

Contextual Notes

There is a noted constraint that A and B are constants, which affects the overall approach to solving the equation. Participants are also grappling with the algebraic implications of their substitutions and the need for the equation to hold for all values of t.

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.
 
  • Like
Likes   Reactions: PeroK
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   Reactions: 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   Reactions: PeroK and Delta2

Similar threads

Replies
28
Views
2K
Replies
3
Views
1K
  • · 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