I have a differential equation of the form: [imath]\frac{d^2X}{dx^2} = k^2X[/imath]; function [imath]X[/imath] depends on [imath]x[/imath] only.
I found out the solution to this is [imath]X(x) = Ae^{kx} + Be^{-kx}[/imath] but I have not clue how to solve it. Interestingly, if I change the sign of the RHS of the differential equation, the solution changes exponential function to sin/cos functions. How to approach this problem?
Thank you.
If you want to understand why this is the solution to this differential equation, you have to learn how to write the characteristic equation of the differential equation.
First, arrange the equation like this:
[imath]\displaystyle \frac{d^2X}{dx^2} - k^2X = 0[/imath]
The characteristic euqation is:
[imath] r^2 - k^2 = 0[/imath]
Solve for [imath]r[/imath].
[imath] r = \pm k[/imath]
What does this tell you?
Before we answer this question, we go the three cases of the characteristic equation.
Case 1: Distinct Real Roots.
For example: [imath]k = 2 \pm \sqrt{2}[/imath]
The solution is: [imath]X(x) = c_1e^{(2 + \sqrt{2})x} + c_2e^{(2 - \sqrt{2})x}[/imath]
Case 2: Repeated Roots.
For example: [imath]k = 2[/imath]
The solution is: [imath]X(x) = c_1e^{2x} + c_2xe^{2x}[/imath]
Case 3: Complex Roots.
For example: [imath]k = \pm\sqrt{-4} = \pm2i[/imath]
The solution is: [imath]X(x) = c_1\cos 2x + c_2\sin 2x[/imath]
If you get a mixed case like this:
For example: [imath]k = 2 \pm \sqrt{-4} = 2 \pm 2i[/imath]
The solution is: [imath]X(x) = c_1e^{2x}\cos 2x + c_2e^{2x}\sin 2x[/imath]
Now which case is:
[imath] r = \pm k[/imath]
?