2nd order non homogeneous diff. eqs. 2nd posting for clarification

Click For Summary
SUMMARY

The discussion focuses on solving the second-order non-homogeneous differential equation y” + (K/m)y = (Kl^{0}+mg)/m with specific initial conditions. The user presents a solution involving trigonometric functions and imaginary coefficients, but encounters issues with satisfying the original conditions. Clarifications are provided regarding the use of imaginary roots and the correct application of initial conditions to derive the general solution. Additionally, the discussion addresses LaTeX formatting problems, specifically with subscripts and superscripts.

PREREQUISITES
  • Understanding of second-order differential equations
  • Familiarity with initial value problems
  • Knowledge of complex numbers and imaginary coefficients
  • Proficiency in LaTeX for mathematical formatting
NEXT STEPS
  • Study the method of undetermined coefficients for non-homogeneous differential equations
  • Learn about the application of initial conditions in solving differential equations
  • Explore the relationship between exponential functions and trigonometric functions in complex analysis
  • Practice LaTeX formatting for mathematical expressions, focusing on subscripts and superscripts
USEFUL FOR

Students and professionals in mathematics, particularly those studying differential equations, as well as educators and anyone involved in mathematical content creation requiring LaTeX formatting.

jbowers9
Messages
85
Reaction score
1
I recently attempted to solve the following:

y” + (K/m)y = (Kl^{0}+mg)/m

y(0) = l_{0}

y(t_{e}) = (K l_{0}+mg)/K

The Attempt at a Solution



y(t) = -(mg/K)cos{\sqrt{K/m} t} + (mg/K){cos{\sqrt{K/m} t_{e}}/sin{\sqrt{K/m} t_{e}}}*sin{\sqrt{K/m} t} + (K l_{0}+mg)/K

which works. But the auxiliary equation has imaginary roots and one of the texts I'm reading states that

y(t) = (C_{1} + C_{2})cos{\sqrt{K/m} t} + i(C_{1} - C_{2})sin{\sqrt{K/m} t} + (K l_{0}+mg)/K

should be a solution w/imaginary coefficients. I get

C_{1} = -mg/K - C_{2}

C_{2} = (-i/2)(mg/K)(cos{\sqrt{K/m} t_{e}}/sin{\sqrt{K/m} t_{e}}

but they don't solve the original condition reqs. What am I doing wrong/not seeing?

P.S. Why don't some of the Latex scripts work from the pull down menu; ie subscript gives superscript?

I posted this earlier, but cannot retrieve the posting. I'm still having trouble with the Latex formatting. Subscript gives superscript for some reason. And I'm using the full down menu option and inserting the arg. into the script. (?) Also, regarding the coefficients, please see the following, Case III:

http://www.stewartcalculus.com/data...ntexts/upfiles/3c3-2ndOrderLinearEqns_Stu.pdf
 
Physics news on Phys.org
Let's take a look at the homogeneous equation,
y'' + a2y = 0

You can write the solutions in either of two ways:
y = c1eiax + c2e-iax

or

y = c1cos(ax) + c2sin(ax)

The reason you can do this is that eiax = cos(ax) + i sin(ax), and e-iax = cos(ax) - i sin(ax), from which you can isolate the real part from the imaginary part like so:
(1/2)(eiax + e-iax) = cos(ax)
(1/(2i))(eiax - e-iax) = sin(ax)

So both cos(ax) and sin(ax) are linear combinations of eiax and e-iax.

To answer your question about the initial condition, your particular solution should look like this:

y_p(x) = C
Plug that into your differential equation to solve for C.

Your general solution should look like this:
y(x) = c_1 cos(bx) + c_2 sin(bx) + C
where C has been solved for previously.

To find c1 and c2, use your initial conditions
y(0) = l_0
and
y(te) = (Kl0 + mg)/K

Regarding your question about LaTeX subscripts, they are working fine for me, using both the [ sub] style not inside [ tex] tags, and using the _<subscript> style inside [ tex] tags. The problem is probably that you are using [ tex] tags in isolation when it would be better to surround the entire equation with them.

IOW -- don't do this l [ tex]_0[ /tex]. Instead, do this -- [ tex]y(0) = l_0[ /tex]
Note that I have left a leading space at the start of the tex tags so that they won't render.
 

Similar threads

Replies
8
Views
1K
Replies
1
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K
Replies
17
Views
3K
  • · Replies 36 ·
2
Replies
36
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K