\(\frac{dy}{dx} + 2y = 4e^{-x}\)
Linear first-order equation: A differential equation of the form \(\frac{dy}{dx} + P(x)y = Q(x)\) where \(P(x)\) and \(Q(x)\) are functions of \(x\).
- Write the equation in standard form: \(\frac{dy}{dx} + P(x)y = Q(x)\)
- Find the integrating factor: \(\mu(x) = e^{\int P(x)dx}\)
- Multiply both sides of the equation by \(\mu(x)\)
- The left side becomes the derivative of \(\mu(x)y\): \(\frac{d}{dx}[\mu(x)y] = \mu(x)Q(x)\)
- Integrate both sides to find \(y\)
- Solve for \(y\) by dividing by \(\mu(x)\)
The equation is already in standard form: \(\frac{dy}{dx} + P(x)y = Q(x)\)
Where \(P(x) = 2\) and \(Q(x) = 4e^{-x}\)
\(\mu(x) = e^{\int P(x)dx} = e^{\int 2 dx} = e^{2x}\)
\(e^{2x}\frac{dy}{dx} + e^{2x} \cdot 2y = e^{2x} \cdot 4e^{-x}\)
\(e^{2x}\frac{dy}{dx} + 2e^{2x}y = 4e^{x}\)
The left side is the derivative of \([e^{2x}y]\):
\(\frac{d}{dx}[e^{2x}y] = e^{2x}\frac{dy}{dx} + 2e^{2x}y\)
So: \(\frac{d}{dx}[e^{2x}y] = 4e^{x}\)
\(\int \frac{d}{dx}[e^{2x}y] dx = \int 4e^{x} dx\)
\(e^{2x}y = 4e^{x} + C\)
\(y = \frac{4e^{x} + C}{e^{2x}}\)
\(y = 4e^{x-2x} + Ce^{-2x}\)
\(y = 4e^{-x} + Ce^{-2x}\)
\(y = 4e^{-x} + Ce^{-2x}\) where \(C\) is an arbitrary constant
• Integrating factor: \(\mu(x) = e^{\int P(x)dx}\) makes the left side a perfect derivative
• Product rule: \(\frac{d}{dx}[\mu(x)y] = \mu'(x)y + \mu(x)\frac{dy}{dx}\)
• Integration: \(\int e^{ax}dx = \frac{1}{a}e^{ax} + C\)
\(\frac{dy}{dx} + \frac{1}{x}y = x^2\) for \(x > 0\)
Linear equation with variable coefficients: When \(P(x)\) and/or \(Q(x)\) are non-constant functions, requiring careful integration.
The equation is already in standard form: \(\frac{dy}{dx} + P(x)y = Q(x)\)
Where \(P(x) = \frac{1}{x}\) and \(Q(x) = x^2\)
\(\mu(x) = e^{\int P(x)dx} = e^{\int \frac{1}{x} dx} = e^{\ln x} = x\)
Note: Since \(x > 0\), we have \(e^{\ln x} = x\) (not \(|x|\))
\(x\frac{dy}{dx} + x \cdot \frac{1}{x}y = x \cdot x^2\)
\(x\frac{dy}{dx} + y = x^3\)
The left side is the derivative of \([xy]\):
\(\frac{d}{dx}[xy] = x\frac{dy}{dx} + y\) (using product rule)
So: \(\frac{d}{dx}[xy] = x^3\)
\(\int \frac{d}{dx}[xy] dx = \int x^3 dx\)
\(xy = \frac{x^4}{4} + C\)
\(y = \frac{\frac{x^4}{4} + C}{x}\)
\(y = \frac{x^4}{4x} + \frac{C}{x}\)
\(y = \frac{x^3}{4} + \frac{C}{x}\)
\(y = \frac{x^3}{4} + \frac{C}{x}\) where \(C\) is an arbitrary constant and \(x > 0\)
• Logarithmic integration: \(\int \frac{1}{x}dx = \ln|x| + C\)
• Exponential property: \(e^{\ln x} = x\) for \(x > 0\)
• Power rule: \(\int x^n dx = \frac{x^{n+1}}{n+1} + C\)
\(\frac{dy}{dx} + 3y = 6\cos(2x)\), with \(y(0) = 1\)
Initial value problem: A differential equation with specified initial conditions that determines the value of the arbitrary constant in the general solution.
Standard form: \(\frac{dy}{dx} + P(x)y = Q(x)\)
Where \(P(x) = 3\) and \(Q(x) = 6\cos(2x)\)
\(\mu(x) = e^{\int P(x)dx} = e^{\int 3 dx} = e^{3x}\)
\(e^{3x}\frac{dy}{dx} + 3e^{3x}y = 6e^{3x}\cos(2x)\)
\(\frac{d}{dx}[e^{3x}y] = 6e^{3x}\cos(2x)\)
To solve \(\int 6e^{3x}\cos(2x)dx\), we use integration by parts twice or the formula:
\(\int e^{ax}\cos(bx)dx = \frac{e^{ax}}{a^2+b^2}[a\cos(bx) + b\sin(bx)] + C\)
With \(a = 3\) and \(b = 2\):
\(\int e^{3x}\cos(2x)dx = \frac{e^{3x}}{9+4}[3\cos(2x) + 2\sin(2x)] = \frac{e^{3x}}{13}[3\cos(2x) + 2\sin(2x)]\)
Therefore: \(e^{3x}y = 6 \cdot \frac{e^{3x}}{13}[3\cos(2x) + 2\sin(2x)] + C\)
\(e^{3x}y = \frac{6e^{3x}}{13}[3\cos(2x) + 2\sin(2x)] + C\)
\(y = \frac{6}{13}[3\cos(2x) + 2\sin(2x)] + Ce^{-3x}\)
\(y = \frac{18\cos(2x) + 12\sin(2x)}{13} + Ce^{-3x}\)
Using \(y(0) = 1\):
\(1 = \frac{18\cos(0) + 12\sin(0)}{13} + Ce^{0}\)
\(1 = \frac{18 \cdot 1 + 12 \cdot 0}{13} + C\)
\(1 = \frac{18}{13} + C\)
\(C = 1 - \frac{18}{13} = \frac{13-18}{13} = -\frac{5}{13}\)
\(y = \frac{18\cos(2x) + 12\sin(2x)}{13} - \frac{5}{13}e^{-3x}\)
• Trigonometric integration: \(\int e^{ax}\cos(bx)dx = \frac{e^{ax}}{a^2+b^2}[a\cos(bx) + b\sin(bx)]\)
• Initial conditions: Substitute known values to determine constants
• Trigonometric values: \(\cos(0) = 1\), \(\sin(0) = 0\)
Linear equation: A first-order differential equation that is linear in the dependent variable \(y\) and its derivative \(\frac{dy}{dx}\).
Integrating factor: A function \(\mu(x) = e^{\int P(x)dx}\) that transforms the equation into an exact derivative.
Homogeneous equation: When \(Q(x) = 0\), the equation becomes \(\frac{dy}{dx} + P(x)y = 0\).
Non-homogeneous equation: When \(Q(x) \neq 0\), the equation has a forcing term.
- Standard form: Write as \(\frac{dy}{dx} + P(x)y = Q(x)\)
- Integrating factor: Calculate \(\mu(x) = e^{\int P(x)dx}\)
- Multiplication: Multiply entire equation by \(\mu(x)\)
- Pattern recognition: Left side becomes \(\frac{d}{dx}[\mu(x)y]\)
- Integration: Integrate both sides
- Solution: Solve for \(y\) by dividing by \(\mu(x)\)
- Initial conditions: If given, substitute to find constants
• Standard form: \(\frac{dy}{dx} + P(x)y = Q(x)\)
• Integrating factor: \(\mu(x) = e^{\int P(x)dx}\)
• Product rule: \(\frac{d}{dx}[uv] = u'v + uv'\)
• Trig integration: \(\int e^{ax}\cos(bx)dx = \frac{e^{ax}}{a^2+b^2}[a\cos(bx) + b\sin(bx)]\)
• Trig integration: \(\int e^{ax}\sin(bx)dx = \frac{e^{ax}}{a^2+b^2}[a\sin(bx) - b\cos(bx)]\)
\(\frac{dy}{dx} - 2y = e^{3x}\)
Linear equation with exponential forcing: An equation of the form \(\frac{dy}{dx} + P(x)y = Q(x)\) where \(Q(x)\) is an exponential function.
\(\frac{dy}{dx} + P(x)y = Q(x)\)
Where \(P(x) = -2\) and \(Q(x) = e^{3x}\)
\(\mu(x) = e^{\int P(x)dx} = e^{\int -2 dx} = e^{-2x}\)
\(e^{-2x}\frac{dy}{dx} + e^{-2x}(-2)y = e^{-2x} \cdot e^{3x}\)
\(e^{-2x}\frac{dy}{dx} - 2e^{-2x}y = e^{x}\)
The left side is the derivative of \([e^{-2x}y]\):
\(\frac{d}{dx}[e^{-2x}y] = e^{-2x}\frac{dy}{dx} - 2e^{-2x}y\)
So: \(\frac{d}{dx}[e^{-2x}y] = e^{x}\)
\(\int \frac{d}{dx}[e^{-2x}y] dx = \int e^{x} dx\)
\(e^{-2x}y = e^{x} + C\)
\(y = \frac{e^{x} + C}{e^{-2x}}\)
\(y = e^{x} \cdot e^{2x} + C \cdot e^{2x}\)
\(y = e^{3x} + Ce^{2x}\)
\(y = e^{3x} + Ce^{2x}\) where \(C\) is an arbitrary constant
• Exponential multiplication: \(\frac{e^a}{e^b} = e^{a-b}\)
• Integration: \(\int e^{ax}dx = \frac{1}{a}e^{ax} + C\)
• Sign handling: Be careful with negative coefficients in P(x)
\(\frac{dy}{dx} + \frac{2}{x}y = \frac{1}{x^2}\) for \(x > 0\)
Linear equation with rational coefficients: An equation where \(P(x)\) and \(Q(x)\) are rational functions (ratios of polynomials).
Standard form: \(\frac{dy}{dx} + P(x)y = Q(x)\)
Where \(P(x) = \frac{2}{x}\) and \(Q(x) = \frac{1}{x^2}\)
\(\mu(x) = e^{\int P(x)dx} = e^{\int \frac{2}{x} dx} = e^{2\ln x} = e^{\ln x^2} = x^2\)
Note: Since \(x > 0\), we have \(e^{2\ln x} = e^{\ln x^2} = x^2\)
\(x^2\frac{dy}{dx} + x^2 \cdot \frac{2}{x}y = x^2 \cdot \frac{1}{x^2}\)
\(x^2\frac{dy}{dx} + 2xy = 1\)
The left side is the derivative of \([x^2y]\):
\(\frac{d}{dx}[x^2y] = x^2\frac{dy}{dx} + 2x \cdot y\) (using product rule)
So: \(\frac{d}{dx}[x^2y] = 1\)
\(\int \frac{d}{dx}[x^2y] dx = \int 1 dx\)
\(x^2y = x + C\)
\(y = \frac{x + C}{x^2}\)
\(y = \frac{x}{x^2} + \frac{C}{x^2}\)
\(y = \frac{1}{x} + \frac{C}{x^2}\)
\(y = \frac{1}{x} + \frac{C}{x^2}\) where \(C\) is an arbitrary constant and \(x > 0\)
• Logarithmic property: \(ae^{\ln x} = ax\) and \(e^{a\ln x} = x^a\)
• Power rule: \(\int x^n dx = \frac{x^{n+1}}{n+1} + C\)
• Domain restriction: Specify \(x > 0\) when dealing with \(\ln x\)
Superposition principle: The general solution is \(y = y_h + y_p\) where \(y_h\) is the homogeneous solution and \(y_p\) is a particular solution.
Existence and uniqueness: If \(P(x)\) and \(Q(x)\) are continuous on an interval containing \(x_0\), then the IVP has a unique solution.
Stability properties: Solutions depend continuously on initial conditions and coefficients.
- Integrating factor method: Standard approach using \(\mu(x) = e^{\int P(x)dx}\)
- Variation of parameters: For non-homogeneous equations, assume \(y = u(x)e^{-\int P(x)dx}\)
- Undetermined coefficients: For specific forms of \(Q(x)\) like polynomials, exponentials, or trigonometric functions
- Laplace transform: For equations with constant coefficients and specific initial conditions
• General solution: \(y = e^{-\int P(x)dx}\left[\int Q(x)e^{\int P(x)dx}dx + C\right]\)
• Homogeneous solution: \(y_h = Ce^{-\int P(x)dx}\)
• If \(P(x) = a\) (constant), then \(\mu(x) = e^{ax}\)
• For \(Q(x) = ke^{bx}\), particular solution has form \(Ae^{bx}\) if \(b \neq -a\)
• For \(Q(x) = k\cos(cx)\) or \(k\sin(cx)\), particular solution combines both sine and cosine terms
\(RC\frac{dV_c}{dt} + V_c = V_s(t)\) where R is resistance, C is capacitance, and \(V_s(t)\) is source voltage.
This is a linear first-order equation modeling charge accumulation.
Analysis: The solution shows exponential approach to steady state with time constant τ = RC.
- Charging: \(V_c(t) = V_s(1 - e^{-t/RC})\)
- Discharging: \(V_c(t) = V_0e^{-t/RC}\)
- Time constant τ = RC determines charging speed