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

  • Home
  • SEARCH
  • 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 8959899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:33:02+00:00 2026-06-15T15:33:02+00:00

y”’ + 41y” + 360y’ + 900y = 600x’ + 1200x; y(0)= 2 ;

  • 0
y''' + 41y'' + 360y' + 900y = 600x' + 1200x;
y(0)= 2 ; y'(0)= 1 ; y''(0) = -0.05

How can I solve this equation using the ODE45 function?

I tried this:

==>
function dydt=f(t,y)

dydt = [y(2) ; y(3) ; -41*y(3)-360*y(2)- 900*y(1)]

==>
clear all;

timerange=[0 1.4]; %seconds
initialvalues=[2 1 -0.05];


[t,y]=ode45(@dydt, timerange, initialvalues)

plot(t,y(:,1));

But I need put the X part in the equation – I don’t know how…

  • 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-06-15T15:33:04+00:00Added an answer on June 15, 2026 at 3:33 pm

    To use ODE45 (or similar) you need to convert the third order ODE into a system of first order ODEs.

    To do so, let

    y0 = y
    y1 = y0'
    y2 = y1'
    y3 = y2'
    

    Then

    y0' = y1
    y1' = y2
    y2' = y3
    

    and

    y3' = y''' = -41*y2-360y1-900y0+600dx+1200x
    

    you can now use ODE45 to integrate the system by nesting the function where x(t) and dx(t) are available.

    function test()
    
        % some random x function 
        x = @(t) exp(-t);
        dx = @(t) -exp(-t);
    
        % integrate numerically
        [T, Y] = ode45(@linearized, [0 1], [2 1 -0.05 0]);
    
        % plot the result
        plot(T, Y(:,1))
    
        % linearized ode
        function dy = linearized(t,y)
           dy = zeros(4,1);
           dy(1) = y(2);
           dy(2) = y(3);
           dy(3) = y(4);
           dy(4) = -41*y(3)-360*y(2)-900*y(1)+600*dx(t)+1200*x(t);
        end
    end
    

    plot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how can I replace this 2 symbol below from the string
I'm using this code to make #sidebar 's height match #post_content 's height: <script
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
This is in Visual Studio 2010 IDE. I need to remove the quotes from
Why does the following segfault, and how can I prevent it? <?php $str =
I'm looking for a way to convert text like this: <!DOCTYPE html PUBLIC \-//W3C//DTD
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms
in this code I'm trying to Listening to multi connection at the same time

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.