(dy)/(dx)+2xy=4x

⚠ xy is read as the product x*y: for the variable xy, write xy_■(dy)/(dx)+2xy=4x is read as y'+2xy=4x: use dif(expression, variable) for a derivative with respect to that variable, use (numerator)/(denominator) for a quotient
1) Solve the linear equation y' + 2xy = 4x, where y is a function of x. The polynomial coefficients are continuous on ℝ
The form y' + py = q gives p = 2x and q = 4x
⇥1.1) Let's integrate: ∫2xdx
⇥ⓘ Keep the constant factor outside the integral. For constant n with n ≠ -1, xn + 1n + 1 is an antiderivative of xn: ∫2xdx = 2·x22
⇥ 2·x22
⇥ⓘ Multiplying a fraction by a number multiplies its numerator: 2·x22 = 2x22■To simplify a fraction, divide its numerator and denominator by the same nonzero number: 2x22 = x2
⇥ x2
The integrating factor exp(∫p) is exp(x2), strictly positive on ℝ
Multiplying by this factor, the product rule gives (exp(x2)y)' = 4xexp(x2)
⇥1.2) Let's integrate: ∫4xexp(x2)dx
⇥Let u = x2. Then du = 2x·dx, so 4x·dx = 2du
⇥∫4xexp(x2)dx = 2·∫exp(u)du
⇥An antiderivative of exp(u) is exp(u)
⇥Substitute u = x2 back into the antiderivative
⇥ⓘ ∫4xexp(x2)dx = 2exp(x2)
⇥ 2exp(x2)
Integrating gives exp(x2)y = 2exp(x2) + C. Divide by the factor, which is never zero; C is an arbitrary real constant, including zero
▶Solution:   y = 2 + Cexp(x2)

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