Exercise · ZW-INTEGRATING-FACTOR-005 · ★☆☆ Basic

With \(\mu=e^{x}\), the equation \(y'+y=x\) becomes \((e^{x}y)'=xe^{x}\). What is its general solution?

Choose one option.

Show answer
  • B. \(y=x-1+Ce^{-x}\)

Explanation

By parts, \(\int xe^{x}\,dx=(x-1)e^{x}+C\). Dividing by \(e^{x}\): \(y=x-1+Ce^{-x}\). The constant must be divided too.

Study Differential equations in ZWMath →

Review the concept: Integrating factor

An integrating factor is a function \(\mu\) that, when multiplied by a first-order linear equation with coefficient \(p\), turns the left side into the derivative of a product.

\[\mu(x)=e^{\int p(x)\,dx}\]

More practice problems: integrating factor

← ZW-INTEGRATING-FACTOR-004 ZW-INTEGRATING-FACTOR-006 →