Sonzaschool
Rudi

Sekondari ya Juu · Kidato cha Sita

Advanced Mathematics 2

Second order differential equations reducible to first order

takriban dakika 7 kusoma

Majadiliano
Mada za sehemu hiiDifferential EquationsMada 6

Second-order differential equations reducible to first order

The general second-order differential equation has the form:

a(x,y)d2ydx2+b(x,y)dydx+c(x,y)y=g(x,y)(7.15)a(x, y)\frac{d^2y}{dx^2} + b(x, y)\frac{dy}{dx} + c(x, y)y = g(x, y) \quad (7.15)

If aa, bb, and cc are functions of xx only, the equation is linear. If aa, bb, and cc are constants, the linear equation becomes:

ad2ydx2+bdydx+cy=g(x)(7.16)a\frac{d^2y}{dx^2} + b\frac{dy}{dx} + cy = g(x) \quad (7.16)

When c=0c = 0, equation (7.16) can be reduced to a first-order differential equation.

Case 1: Dependent variable yy is missing

If the equation is of the form F(x,y,y)=0F(x, y', y'') = 0, we substitute P=yP = y', then y=dPdxy'' = \frac{dP}{dx}. This transforms the second-order equation into a first-order equation in terms of xx and PP.

Case 2: Independent variable xx is missing

If the equation is of the form F(y,y,y)=0F(y, y', y'') = 0, we use the substitution P=yP = y', then y=dPdx=dPdydydx=PdPdyy'' = \frac{dP}{dx} = \frac{dP}{dy}\frac{dy}{dx} = P\frac{dP}{dy}. This transforms the second-order equation into a first-order equation in terms of yy and PP.

Example 1

Solve each of the following differential equations:

(a) xy=yxy'' = y'

(b) yy+(y)2=y(y)3yy'' + (y')^2 = y(y')^3

Solution:

(a) xy=yxy'' = y'. Let P=yP = y', so y=dPdxy'' = \frac{dP}{dx}. Substituting gives:

xdPdx=Px\frac{dP}{dx} = P

dPP=dxx\frac{dP}{P} = \frac{dx}{x}

dPP=dxx\int \frac{dP}{P} = \int \frac{dx}{x}

lnP=lnx+C1\ln|P| = \ln|x| + C_1

P=C1xP = C_1 x

Since P=yP = y', we have dydx=C1x\frac{dy}{dx} = C_1 x

dy=C1xdxdy = C_1 x\, dx

dy=C1xdx\int dy = \int C_1 x\, dx

y=12C1x2+C2,ory=Ax2+By = \frac{1}{2}C_1 x^2 + C_2, \quad \text{or} \quad y = Ax^2 + B

(b) yy+(y)2=y(y)3yy'' + (y')^2 = y(y')^3. Let P=yP = y', so y=PdPdyy'' = P\frac{dP}{dy}. Substituting gives:

yPdPdy+P2=yP3yP\frac{dP}{dy} + P^2 = yP^3

Divide by yPyP:

dPdy+Py=P2\frac{dP}{dy} + \frac{P}{y} = P^2

This is a Bernoulli equation. Let v=P1v = P^{-1}, so P=v1P = v^{-1} and dPdy=v2dvdy\frac{dP}{dy} = -v^{-2}\frac{dv}{dy}. Substituting gives:

v2dvdy+v1y=v2-v^{-2}\frac{dv}{dy} + \frac{v^{-1}}{y} = v^{-2}

dvdyvy=1\frac{dv}{dy} - \frac{v}{y} = -1

Integrating factor: e1ydy=elny=1ye^{\int -\frac{1}{y}dy} = e^{-\ln|y|} = \frac{1}{y}

1ydvdyvy2=1y\frac{1}{y}\frac{dv}{dy} - \frac{v}{y^2} = -\frac{1}{y}

ddy(vy)=1y\frac{d}{dy}\left(\frac{v}{y}\right) = -\frac{1}{y}

vy=lny+C1\frac{v}{y} = -\ln|y| + C_1

v=ylny+C1yv = -y\ln|y| + C_1 y

P=1ylny+C1yP = \frac{1}{-y\ln|y| + C_1 y}

dydx=1y(lny+C1)\frac{dy}{dx} = \frac{1}{y(-\ln|y| + C_1)}

y(lny+C1)dy=dx\int y(-\ln|y| + C_1)\, dy = \int dx

This integral is complex and won't be solved here. The original text also did not solve it.

Example 2

Find the particular solution in the following boundary-value problem:

(a) yy+5(y)2=25yyy'' + 5(y')^2 = 25y; y(0)=43y(0) = \frac{4}{3} and y(0)=1y'(0) = 1

Solution:

yy+5(y)2=25yyy'' + 5(y')^2 = 25y. Let P=yP = y', so y=PdPdyy'' = P\frac{dP}{dy}. Substituting gives:

yPdPdy+5P2=25yyP\frac{dP}{dy} + 5P^2 = 25y

PdPdy+5P=25P\frac{dP}{dy} + 5P = 25

dPdy=255PP\frac{dP}{dy} = \frac{25-5P}{P}

P255PdP=dy\frac{P}{25-5P}\, dP = dy

P255PdP=dy\int \frac{P}{25-5P}\, dP = \int dy

Solving the integral on the left side (using substitution or partial fractions) gives:

15P125ln255P=y+C1-\frac{1}{5}P - \frac{1}{25}\ln|25-5P| = y + C_1

This is hard to solve for PP. The original text also made an error here. It appears the example was not well chosen.

Solution of a non-homogeneous second-order differential equation

Consider the non-homogeneous second-order differential equation:

a2d2ydx2+a1dydx+a0y=f(x)(7.17)a_2\frac{d^2y}{dx^2} + a_1\frac{dy}{dx} + a_0 y = f(x) \quad (7.17)

where a2a_2, a1a_1, and a0a_0 are constants, and f(x)0f(x) \ne 0. The general solution is y=yc+ypy = y_c + y_p, where:

  • ycy_c is the complementary function: the general solution of the corresponding homogeneous equation (a2y+a1y+a0y=0a_2 y'' + a_1 y' + a_0 y = 0).
  • ypy_p is a particular integral: a solution of the non-homogeneous equation containing no arbitrary constants.

The form of ypy_p depends on f(x)f(x). Crucially, ypy_p must be linearly independent of any term in ycy_c.

Here's how to choose ypy_p, based on f(x)f(x):

  1. f(x)=keaxf(x) = ke^{ax} (kk and aa are constants):
    1. If eaxe^{ax} is not a term in ycy_c: yp=Aeaxy_p = Ae^{ax}
    2. If eaxe^{ax} is a term in ycy_c: yp=Axeaxy_p = Axe^{ax}
    3. If both eaxe^{ax} and xeaxxe^{ax} are in ycy_c: yp=Ax2eaxy_p = Ax^2 e^{ax}
  2. f(x)f(x) is a polynomial of degree nn: f(x)=Pn(x)=knxn+kn1xn1++k1x+k0f(x) = P_n(x) = k_n x^n + k_{n-1}x^{n-1} + \ldots + k_1 x + k_0 (where kik_i are constants) Assume: yp=Axn+Bxn1++Cx+Dy_p = Ax^n + Bx^{n-1} + \ldots + Cx + D
  3. f(x)=ksin(βx)f(x) = k\sin(\beta x) or f(x)=kcos(βx)f(x) = k\cos(\beta x) (or a linear combination): Assume: yp=Asin(βx)+Bcos(βx)y_p = A\sin(\beta x) + B\cos(\beta x)
  4. f(x)=Pn(x)eaxf(x) = P_n(x)e^{ax} (a polynomial times an exponential): Assume: yp=eax(Axn+Bxn1++Cx+D)y_p = e^{ax}(Ax^n + Bx^{n-1} + \ldots + Cx + D)
  5. f(x)=Pn(x)sin(βx)f(x) = P_n(x)\sin(\beta x) or f(x)=Pn(x)cos(βx)f(x) = P_n(x)\cos(\beta x) (a polynomial times a trigonometric function): Assume: yp=(Axn+Bxn1++Cx+D)sin(βx)+(Exn+Fxn1++Gx+H)cos(βx)y_p = (Ax^n + Bx^{n-1} + \ldots + Cx + D)\sin(\beta x) + (Ex^n + Fx^{n-1} + \ldots + Gx + H)\cos(\beta x)
  6. f(x)=eaxsin(βx)f(x) = e^{ax}\sin(\beta x) or f(x)=eaxcos(βx)f(x) = e^{ax}\cos(\beta x) (an exponential times a trigonometric function): Assume: yp=eax(Asin(βx)+Bcos(βx))y_p = e^{ax}(A\sin(\beta x) + B\cos(\beta x))

Example 1

Find the general solution of each of the following differential equations:

(a) y2y3y=3exy'' - 2y' - 3y = 3e^x

(b) y2y3y=3e3xy'' - 2y' - 3y = 3e^{3x}

Solution:

(a) y2y3y=3exy'' - 2y' - 3y = 3e^x

The characteristic equation for the homogeneous part is λ22λ3=0\lambda^2 - 2\lambda - 3 = 0, which factors to (λ3)(λ+1)=0(\lambda - 3)(\lambda + 1) = 0. The roots are λ1=3\lambda_1 = 3 and λ2=1\lambda_2 = -1. The complementary function is:

yc=Ae3x+Bexy_c = Ae^{3x} + Be^{-x}

Since f(x)=3exf(x) = 3e^x and exe^x is not part of ycy_c, we assume a particular integral of the form yp=λexy_p = \lambda e^x.

yp=λexy_p' = \lambda e^x

yp=λexy_p'' = \lambda e^x

Substituting into the original equation:

λex2λex3λex=3ex\lambda e^x - 2\lambda e^x - 3\lambda e^x = 3e^x

4λex=3ex-4\lambda e^x = 3e^x

λ=34\lambda = -\frac{3}{4}

So, yp=34exy_p = -\frac{3}{4}e^x.

The general solution is:

y=yc+yp=Ae3x+Bex34exy = y_c + y_p = Ae^{3x} + Be^{-x} - \frac{3}{4}e^x

(b) y2y3y=3e3xy'' - 2y' - 3y = 3e^{3x}

The complementary function is the same as in part (a): yc=Ae3x+Bexy_c = Ae^{3x} + Be^{-x}.

Since f(x)=3e3xf(x) = 3e^{3x} and e3xe^{3x} is part of ycy_c, we assume a particular integral of the form yp=λxe3xy_p = \lambda xe^{3x}.

yp=λe3x+3λxe3xy_p' = \lambda e^{3x} + 3\lambda xe^{3x}

yp=6λe3x+9λxe3xy_p'' = 6\lambda e^{3x} + 9\lambda xe^{3x}

Substituting into the original equation:

6λe3x+9λxe3x2(λe3x+3λxe3x)3(λxe3x)=3e3x6\lambda e^{3x} + 9\lambda xe^{3x} - 2(\lambda e^{3x} + 3\lambda xe^{3x}) - 3(\lambda xe^{3x}) = 3e^{3x}

4λe3x=3e3x4\lambda e^{3x} = 3e^{3x}

λ=34\lambda = \frac{3}{4}

So, yp=34xe3xy_p = \frac{3}{4}xe^{3x}.

The general solution is:

y=yc+yp=Ae3x+Bex+34xe3xy = y_c + y_p = Ae^{3x} + Be^{-x} + \frac{3}{4}xe^{3x}

Example 2

Solve the initial-value problem: y2y3y=3t2+4t5y'' - 2y' - 3y = 3t^2 + 4t - 5; y(0)=6y(0) = 6 and y(0)=19y'(0) = 19.

Solution:

The complementary function is the same as in Example 1(a): yc=c1et+c2e3ty_c = c_1 e^{-t} + c_2 e^{3t}.

Since f(t)=3t2+4t5f(t) = 3t^2 + 4t - 5, we assume yp=At2+Bt+Cy_p = At^2 + Bt + C.

yp=2At+By_p' = 2At + B

yp=2Ay_p'' = 2A

Substituting into the original equation:

2A2(2At+B)3(At2+Bt+C)=3t2+4t52A - 2(2At + B) - 3(At^2 + Bt + C) = 3t^2 + 4t - 5

3At2+(4A3B)t+(2A2B3C)=3t2+4t5-3At^2 + (-4A - 3B)t + (2A - 2B - 3C) = 3t^2 + 4t - 5

Equating coefficients:

3A=3A=1-3A = 3 \Rightarrow A = -1

4A3B=443B=4B=0-4A - 3B = 4 \Rightarrow 4 - 3B = 4 \Rightarrow B = 0

2A2B3C=5203C=5C=12A - 2B - 3C = -5 \Rightarrow -2 - 0 - 3C = -5 \Rightarrow C = 1

So, yp=t2+1y_p = -t^2 + 1.

The general solution is y=c1et+c2e3tt2+1y = c_1 e^{-t} + c_2 e^{3t} - t^2 + 1.

Applying initial conditions:

y(0)=6y(0) = 6: 6=c1+c2+1c1+c2=56 = c_1 + c_2 + 1 \Rightarrow c_1 + c_2 = 5

y(t)=c1et+3c2e3t2ty'(t) = -c_1 e^{-t} + 3c_2 e^{3t} - 2t

y(0)=19y'(0) = 19: 19=c1+3c219 = -c_1 + 3c_2

Solving the system of equations gives c1=1c_1 = -1 and c2=6c_2 = 6.

The particular solution is y=et+6e3tt2+1y = -e^{-t} + 6e^{3t} - t^2 + 1.

Mwalimu

Unasoma somo hili? Niulize nikuelezee chochote kilichomo.

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

Ingia ili kuuliza

Majadiliano

Hakuna maswali bado

Ingia ili kuuliza
Inapakia majadiliano…