Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 946811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:58:52+00:00 2026-05-15T22:58:52+00:00

i have a problem. that is : y^2 + 2*y’+ 3*y = sin(x), y'(0)=0,

  • 0

i have a problem. that is :

y"^2 + 2*y'+ 3*y = sin(x), y'(0)=0, y(0)=1

I want solve this problem with MATLAB but I can’t.

Can you help me ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:58:53+00:00Added an answer on May 15, 2026 at 10:58 pm

    First, you have to reduce the order. Let z = y’ => z’ = y”

    Your ODE then becomes

    z' = sqrt(-2*z - 3*y + sin(x)), with z(0) = 0
    y' = z, with y(0) = 1
    

    You can now write a function in MATLAB to represent this ODE: (where M = [ z y ]’)

    function dMdx = odefunc(x,M)
        z = M(1);
        y = M(2);
        dMdx(1) = sqrt(-2*z - 3*y + sin(x));
        dMdx(2) = z;
    end
    

    You can then call this function as follows:

    M0 = [ 0 1 ];   % Initial values of ODE
    tfinal = 12;     % Final integration time
    [x,M] = ode45(@odefunc,[0 tfinal],M0)   % Integration using the RK-45 algorithm
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this problem that i can't solve for days now...here is my code.
this is my regex for digital dnumbers: \d+(.\d+)+(,\d+) but now i have problem that
I have a French site that I want to parse, but am running into
I have problem that seems to be rather trivial but I was not able
Have a problem that seems easy on paper but i'm having a big problem
In a couple of scripts that I use I have problem that is intermittent.
I have a problem that confuses my users, being that although an item is
i have problem that i have 3 views, i goto first view to 2nd
I have the problem that C++ compiler does a recompile without any changes done.
I have a problem that I believe I need to use grouping using xsl:key

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.