Sonzaschool
Rudi

Sekondari ya Juu · Kidato cha Sita

Advanced Mathematics 2

Second Order Differential Equations

takriban dakika 6 kusoma

Mada za sehemu hiiDifferential EquationsMada 6

Second-order differential equations

A second-order differential equation is an equation in which the highest derivative of the dependent variable with respect to the independent variable is of order two. The general second-order ordinary differential equation has the form:

p(x,y)d2ydx2+q(x,y)dydx+r(x,y)y=g(x,y)p(x, y)\frac{d^2y}{dx^2} + q(x, y)\frac{dy}{dx} + r(x, y)y = g(x, y)

A linear second-order differential equation takes the form:

p(x)d2ydx2+q(x)dydx+r(x)y=g(x)(7.12)p(x)\frac{d^2y}{dx^2} + q(x)\frac{dy}{dx} + r(x)y = g(x) \quad (7.12)

where p(x)p(x), q(x)q(x), r(x)r(x), and g(x)g(x) are continuous functions of xx or constants in a given interval, and p(x)p(x) is not identically zero.

If g(x)=0g(x) = 0, the differential equation is called homogeneous. If g(x)0g(x) \ne 0, it is called non-homogeneous.

Example 1

Classify each of the following differential equations as homogeneous or non-homogeneous:

(a) d2ydx2y=0\frac{d^2y}{dx^2} - y = 0

(b) d2ydx2+2xdydx+y=2sinx\frac{d^2y}{dx^2} + 2x\frac{dy}{dx} + y = 2\sin x

(c) xy+xy=3xy'' + xy' = 3

(d) y+5y4y=5xy'' + 5y' - 4y = 5x

(e) x2y+yexy=1x^2y''' + y'' - e^xy' = 1

(f) d2ydx2sinxdydx+cosxy=3\frac{d^2y}{dx^2} - \sin x \frac{dy}{dx} + \cos x \, y = 3

Solution:

(a) Homogeneous (g(x)=0g(x) = 0)

(b) Non-homogeneous (g(x)=2sinx0g(x) = 2\sin x \ne 0)

(c) Non-homogeneous (g(x)=30g(x) = 3 \ne 0)

(d) Non-homogeneous (g(x)=5x0g(x) = 5x \ne 0)

(e) Non-homogeneous (g(x)=10g(x) = 1 \ne 0)

(f) Non-homogeneous (g(x)=30g(x) = 3 \ne 0)

Characteristic equation of a second-order homogeneous differential equation

Consider a second-order homogeneous differential equation with constant coefficients:

a2y+a1y+a0y=0(7.13)a_2y'' + a_1y' + a_0y = 0 \quad (7.13)

where a2a_2, a1a_1, and a0a_0 are constants.

Assume a solution of the form y=eλxy = e^{\lambda x}, where λ\lambda is a constant.

Then, y=λeλxy' = \lambda e^{\lambda x} and y=λ2eλxy'' = \lambda^2 e^{\lambda x}.

Substituting these into equation (7.13) gives:

a2λ2eλx+a1λeλx+a0eλx=0a_2\lambda^2 e^{\lambda x} + a_1\lambda e^{\lambda x} + a_0e^{\lambda x} = 0

eλx(a2λ2+a1λ+a0)=0e^{\lambda x}(a_2\lambda^2 + a_1\lambda + a_0) = 0

Since eλx0e^{\lambda x} \ne 0, we have:

a2λ2+a1λ+a0=0(7.14)a_2\lambda^2 + a_1\lambda + a_0 = 0 \quad (7.14)

Equation (7.14) is called the characteristic equation or auxiliary equation.

Example 2

Write the characteristic equation for each of the following differential equations:

(a) y+6y8y=0y'' + 6y' - 8y = 0

(b) d2ydx22dydx+y=0\frac{d^2y}{dx^2} - 2\frac{dy}{dx} + y = 0

(c) y9y=0y'' - 9y = 0

(d) 2d2ydx2+dydxy=02\frac{d^2y}{dx^2} + \frac{dy}{dx} - y = 0

Solution:

(a) λ2+6λ8=0\lambda^2 + 6\lambda - 8 = 0

(b) λ22λ+1=0\lambda^2 - 2\lambda + 1 = 0

(c) λ29=0\lambda^2 - 9 = 0

(d) 2λ2+λ1=02\lambda^2 + \lambda - 1 = 0

Roots of characteristic equations and solutions to homogeneous differential equations

Consider the second-order homogeneous differential equation a2y+a1y+a0y=0a_2y'' + a_1y' + a_0y = 0, whose characteristic equation is a2λ2+a1λ+a0=0a_2\lambda^2 + a_1\lambda + a_0 = 0. The roots of the characteristic equation determine the solution of the differential equation. Using the quadratic formula, the roots are:

λ=a1±a124a2a02a2\lambda = \frac{-a_1 \pm \sqrt{a_1^2 - 4a_2a_0}}{2a_2}

Three cases are considered:

Case 1: Distinct real roots

If a124a2a0>0a_1^2 - 4a_2a_0 > 0, there are two distinct real roots, λ1\lambda_1 and λ2\lambda_2. The linearly independent solutions are y1=eλ1xy_1 = e^{\lambda_1 x} and y2=eλ2xy_2 = e^{\lambda_2 x}. The general solution is:

y=Aeλ1x+Beλ2xy = Ae^{\lambda_1 x} + Be^{\lambda_2 x}

where AA and BB are arbitrary constants.

Case 2: Repeated real roots

If a124a2a0=0a_1^2 - 4a_2a_0 = 0, there are two equal real roots, λ1=λ2=λ\lambda_1 = \lambda_2 = \lambda. The solutions y1=eλxy_1 = e^{\lambda x} and y2=eλxy_2 = e^{\lambda x} are not linearly independent.

A second linearly independent solution is found using reduction of order. Let y2=xeλxy_2 = xe^{\lambda x}. The general solution is:

y=Aeλx+Bxeλx=eλx(A+Bx)y = Ae^{\lambda x} + Bxe^{\lambda x} = e^{\lambda x}(A + Bx)

Case 3: Conjugate complex roots

If a124a2a0<0a_1^2 - 4a_2a_0 < 0, there are two conjugate complex roots, λ1=α+iβ\lambda_1 = \alpha + i\beta and λ2=αiβ\lambda_2 = \alpha - i\beta, where i=1i = \sqrt{-1}.

The linearly independent solutions are e(α+iβ)xe^{(\alpha + i\beta)x} and e(αiβ)xe^{(\alpha - i\beta)x}. Using Euler's formula (eiθ=cosθ+isinθe^{i\theta} = \cos\theta + i\sin\theta), we can rewrite the general solution as:

y=eαx(Acos(βx)+Bsin(βx))y = e^{\alpha x}(A\cos(\beta x) + B\sin(\beta x))

where AA and BB are arbitrary constants.

Example 1

Solve each of the following differential equations:

(a) d2ydx2+2dydx15y=0\frac{d^2y}{dx^2} + 2\frac{dy}{dx} - 15y = 0

(b) y4y+4y=0y'' - 4y' + 4y = 0; y(0)=4y(0) = 4 and y(0)=10y'(0) = 10

(c) d2ydx26dydx+25y=0\frac{d^2y}{dx^2} - 6\frac{dy}{dx} + 25y = 0

Solution:

(a) The characteristic equation is λ2+2λ15=0\lambda^2 + 2\lambda - 15 = 0. Factoring gives (λ+5)(λ3)=0(\lambda + 5)(\lambda - 3) = 0. The roots are λ1=3\lambda_1 = 3 and λ2=5\lambda_2 = -5. The general solution is:

y=c1e3x+c2e5xy = c_1e^{3x} + c_2e^{-5x}

(b) The characteristic equation is λ24λ+4=0\lambda^2 - 4\lambda + 4 = 0, or (λ2)2=0(\lambda - 2)^2 = 0. The repeated root is λ=2\lambda = 2. The general solution is:

y=e2x(A+Bx)y = e^{2x}(A + Bx)

Using the initial conditions:

y(0)=4y(0) = 4: 4=e0(A+B(0))A=44 = e^0(A + B(0)) \Rightarrow A = 4

y(x)=2e2x(A+Bx)+Be2xy'(x) = 2e^{2x}(A + Bx) + Be^{2x}

y(0)=10y'(0) = 10: 10=2(4)+BB=210 = 2(4) + B \Rightarrow B = 2

The particular solution is y=e2x(4+2x)y = e^{2x}(4 + 2x).

(c) The characteristic equation is λ26λ+25=0\lambda^2 - 6\lambda + 25 = 0. Using the quadratic formula:

λ=6±(6)24(1)(25)2=6±361002=6±642=3±4i\lambda = \frac{6 \pm \sqrt{(-6)^2 - 4(1)(25)}}{2} = \frac{6 \pm \sqrt{36 - 100}}{2} = \frac{6 \pm \sqrt{-64}}{2} = 3 \pm 4i

The roots are λ=3±4i\lambda = 3 \pm 4i. The general solution is:

y=e3x(Acos(4x)+Bsin(4x))y = e^{3x}(A\cos(4x) + B\sin(4x))

Example 2

Solve the boundary-value problem d2xdθ2+4dxdθ+29x=0\frac{d^2x}{d\theta^2} + 4\frac{dx}{d\theta} + 29x = 0; x(0)=4x(0) = 4 and x(π/2)=7eπx'(\pi/2) = -7e^{-\pi}.

Solution:

The characteristic equation is λ2+4λ+29=0\lambda^2 + 4\lambda + 29 = 0. Using the quadratic formula:

λ=4±424(1)(29)2=4±161162=4±1002=2±5i\lambda = \frac{-4 \pm \sqrt{4^2 - 4(1)(29)}}{2} = \frac{-4 \pm \sqrt{16 - 116}}{2} = \frac{-4 \pm \sqrt{-100}}{2} = -2 \pm 5i

The general solution is:

x(θ)=e2θ(Acos(5θ)+Bsin(5θ))x(\theta) = e^{-2\theta}(A\cos(5\theta) + B\sin(5\theta))

Using the boundary conditions:

x(0)=4x(0) = 4: 4=e0(Acos(0)+Bsin(0))A=44 = e^0(A\cos(0) + B\sin(0)) \Rightarrow A = 4

x(θ)=2e2θ(Acos(5θ)+Bsin(5θ))+e2θ(5Asin(5θ)+5Bcos(5θ))x'(\theta) = -2e^{-2\theta}(A\cos(5\theta) + B\sin(5\theta)) + e^{-2\theta}(-5A\sin(5\theta) + 5B\cos(5\theta))

x(π/2)=7eπx'(\pi/2) = -7e^{-\pi}:

7eπ=2eπ(4cos(5π/2)+Bsin(5π/2))+eπ(5(4)sin(5π/2)+5Bcos(5π/2))-7e^{-\pi} = -2e^{-\pi}(4\cos(5\pi/2) + B\sin(5\pi/2)) + e^{-\pi}(-5(4)\sin(5\pi/2) + 5B\cos(5\pi/2))

7eπ=2eπ(0+B)+eπ(20+0)-7e^{-\pi} = -2e^{-\pi}(0+B) + e^{-\pi}(-20+0)

7=2B20-7 = -2B - 20

13=2B13 = -2B

B=132B = -\frac{13}{2}

The particular solution is:

x(θ)=e2θ(4cos(5θ)132sin(5θ))x(\theta) = e^{-2\theta}\left(4\cos(5\theta) - \frac{13}{2}\sin(5\theta)\right)

Mwalimu

Unasoma somo hili? Niulize nikuelezee chochote kilichomo.

Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.

Ingia ili kuuliza