y^{''}-2y^'+5y=5x+3

⚠ y^{''}-2y^'+5y=5x+3 is read as y''-2y'+5y=5x+3: write y' or y'' for a derivative
1) Let's solve the differential equation y'' -2y' + 5y = 5x + 3, where y is a function of x
For the homogeneous equation, we look for exp(rx): the characteristic equation is r2 -2r + 5 = 0
2) We solve in ℂ: r2 -2r + 5 = 0
Given the quadratic form ar2 + br + c, let's compute the discriminant: Δ = b2 -4ac. Here a = 1, b = -2 and c = 5
Δ = (-2)2 -4·1·5
ⓘ Powers are computed before multiplications, additions and subtractions. A power with a positive integer exponent is a repeated product: (-2)2 = (-2)·(-2) = 4
Δ = 4 -4·5
ⓘ Perform multiplications before additions and subtractions: 4·5 = 20
Δ = 4 -20
ⓘ Start from 4 and move back 20 on the number line, going below zero: 4 -20 = -16
Δ = -16
Since Δ < 0, the equation has two roots in ℂ:
The quadratic formula gives r1 = -b -Δ2a = -(-2) --162·1
r1 = 2 --162
ⓘ In ℂ, the principal square root of a negative real number is i times the square root of its absolute value, because i2 = -1: -16 = 4i
r1 = 2 -4i2
ⓘ To simplify a fraction, divide its numerator and denominator by the same nonzero number: 2 -4i2 = 2·(1 -2i)2 = 1 -2i
r1 = 1 -2i
The quadratic formula gives r2 = -b + Δ2a = -(-2) + -162·1
r2 = 2 + -162
ⓘ In ℂ, the principal square root of a negative real number is i times the square root of its absolute value, because i2 = -1: -16 = 4i
r2 = 2 + 4i2
ⓘ To simplify a fraction, divide its numerator and denominator by the same nonzero number: 2 + 4i2 = 2·(1 + 2i)2 = 1 + 2i
r2 = 1 + 2i
Solutions found: r = { 1 -2i, 1 + 2i }
The homogeneous solution is C1·cos(2x)·exp(x) + C2·exp(x)·sin(2x)
Let's look for a particular solution Ax + B. Its derivatives are A and 0, so 5A = 5 and -2A + 5B = 3
This gives A = 1 and B = 1, so the particular solution is x + 1
ⓘ Check: -2 + 5·(x + 1) = 5x + 3
The general solution is the sum of the homogeneous and particular solutions; C1 and C2 are arbitrary real constants
▶Solution:   y = C1·cos(2x)·exp(x) + C2·exp(x)·sin(2x) + x + 1

The 100% free maths solver with steps

100% free

  • Access to every feature and every step
  • Unlimited queries
  • No signup required

Simple

  • Queries in natural language
  • Detailed explanations for every step
  • A simple interface for desktop and mobile

Reliable and lean

  • Fast calculations
  • Reproducible results
  • No AI, low energy use

For everyone

  • Calculation, differentiation, integration, solving, factoring, graphing...
  • Pupils, students, individuals, teachers…
  • Through high school and beyond