ΣνΜDr. Sharon's Math PlatformSyvara Learning
Question Bank › 📘 Undergraduate › Advanced Engineering Mathematics › Q45

Q45 · y'' = x + y - y^2 as a first-order system: numerical solution vs Taylor polynomials (Python)

Taylor Series Solutions of ODEs 🔴 Advanced Coding </> Python solution
Question

Rewrite the second-order differential equation

$$y'' = x + y - y^2, \qquad y(0) = -1, \quad y'(0) = 1$$

as a system of first-order ODEs, letting $y' = v$ with initial conditions $y(0) = -1$ and $v(0) = 1$. Then, using Python, solve the system numerically and graph the solution curve. On the same axes, graph the Taylor polynomials of degree 3, 5, 7, 9 and 11, and comment on the result.

🔒

Log in to see the worked solution

Enter your email to get started. Your first free solutions in every course unlock as soon as you verify.

Log in or sign up with email
</> Python code solution (Premium add-on)
NumPy, SciPy, Matplotlib
🔒 Upgrade to Premium or GQE to unlock Python solutions.
← Previous Next →
Working…