I’m trying to input a second order differential equation to solve into matlab over x = 0 to x =1. I can’t figure out how. Here’s the equation:
y” = 1 + 0.1 \sqrt{1+(y’)^2}
with initial conditions at zero.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Normally you solve higher-order equations by converting to a system of first order equations. Here, you would define:
Define a function computing the right-hand side, and use
ode45.Note that this equation is solvable without much trouble in closed form, too, so should be a good test for how to do it.