Where is the mistake in this solution

  • Thread starter bksree
  • Start date
  • Tags
    Mistake
In summary, the book "Applied numerical methods with MATLAB" by Chapra provides a solved example of a bungee jumping problem. The problem is solved using MATLAB and involves determining when the jumper hits the ground and plotting distance vs time and velocity vs time. The problem is solved using two different conventions, one assuming downward direction is positive and the other assuming upward direction is positive. The main difference between the two is the equation being solved, as there is a typo in the second equation. The correct equation is d2y/dt2 = 1/m (Fdown - F up) = g - cd / m * v^2.
  • #1
bksree
77
2
This is a solved example in the book 'Applied numerical methods with MATLAB by Chapra'

A bungee jumper jumps off a cliff 200 m high with an upward velocity of 20 m/s. Detemine when he hits the ground and plot dist vs time and velocity vs time.

The problem is solved in the book using MATLAB as below :
Assuming DOWNWARD direction is positive (i.e. distance (y), velocity (v) and force are positive downards, and x = 0 at ground levele. the boundary conditions are : x(0) = -200 m/s, v(0) = -20 m/s

The diff eqn being solved is : md2y/dt2 = Fdown - F up = mg - cd / m * v^2

The following functions are written

1. Function for derivative --- Here
function dydt=freefall(t,y,cd,m)
% y(1) = x and y(2) = v
grav=9.81;
dydt=[y(2);grav-cd/m*y(2)*abs(y(2))];


2. Function to detect event of hitting the ground
function [detect,stopint,direction]=endevent(t,y,varargin)
% Locate the time when height passes through zero
% and stop integration.
detect=y(1); % Detect height = 0
stopint=1; % Stop the integration
direction=0; % Direction does not matter


3. Script file to run the problem
opts=odeset('events',@endevent);
y0=[-200 -20];
[t,y,te,ye]=ode45(@freefall,[0 inf],y0,opts,0.25,68.1);
te,ye
plot(t,y(:,1),'-',t,y(:,2),'--','LineWidth',2)
legend('Height (m)','Velocity (m/s)')
xlabel('time (s)');
ylabel('x (m) and v (m/s)')


The answer for this is : jumper hits the ground after 9.5475 s at 46.2454 m/s (downward)

====================================================================================
I am trying to solve THE SAME problem using the following convention :

Assuming UPWARD direction is positive (i.e. distance (y), velocity (v) and force are positive downards, and x = 0 at ground levele. the boundary conditions are : x(0) = 200 m, v(0) = 20 m/s

The diff eqn being solved is : md2y/dt2 = -Fdown + F up = -mg + cd / m * v^2

The following functions are written

1. Function for derivative
function dydt=freefall(t,y,cd,m)
% y(1) = x and y(2) = v
grav=9.81;
dydt=[y(2);-grav + cd/m*y(2)*abs(y(2))];


2. Function to detect event of hitting the ground
function [detect,stopint,direction]=endevent(t,y,varargin)
% Locate the time when height passes through zero
% and stop integration.
detect=y(1); % Detect height = 0
stopint=1; % Stop the integration
direction=0; % Direction does not matter


3. Script file to run the problem
opts=odeset('events',@endevent);
y0=[200 20];
[t,y,te,ye]=ode45(@freefall,[0 inf],y0,opts,0.25,68.1);
te,ye
plot(t,y(:,1),'-',t,y(:,2),'--','LineWidth',2)
legend('Height (m)','Velocity (m/s)')
xlabel('time (s)');
ylabel('x (m) and v (m/s)')


The answer for this is : jumper hits the ground after 8.0142 s at -104.8502 m/s (downward)

I am unable to spot the error. Will someone please explain where the mistake is ?

TIA
 
Physics news on Phys.org
  • #2
bksree said:
The diff eqn being solved is : md2y/dt2 = Fdown - F up = mg - cd / m * v^2
I assume that "cd" is the coefficient of drag. Why would this contribution to force be divided by mass?

Certainly if you cast the equation in terms of acceleration, you would want to divide by mass. But you are casting this as a force equation.
 
  • #3
Thanks for the reply. As you have pointed out there is a typo in the eqn.
The eqn being solved is d2y/dt2 = 1/m (Fdown - F up) = g - cd / m * v^2
This is the eqn that is coded.

TIA
 

What is the purpose of finding the mistake in a solution?

The purpose of finding the mistake in a solution is to identify and correct any errors or flaws that may affect the accuracy or validity of the solution. This helps ensure that the solution is reliable and can be used effectively in real-world situations.

How do you approach finding the mistake in a solution?

To find the mistake in a solution, it is important to carefully examine each step and check for any errors or inconsistencies. It is also helpful to use problem-solving and critical thinking skills to identify potential mistakes and determine the most logical solution.

What are some common types of mistakes found in solutions?

Some common types of mistakes found in solutions include calculation errors, incorrect assumptions, incorrect use of formulas or equations, and faulty logic. It is important to thoroughly check for these types of mistakes to ensure the accuracy of the solution.

Why is it important to double-check for mistakes in a solution?

Double-checking for mistakes in a solution is important because even small errors can have a significant impact on the overall accuracy and effectiveness of the solution. By thoroughly checking for mistakes, we can ensure that the solution is reliable and can be used with confidence.

What should you do if you are unsure about where the mistake is in a solution?

If you are unsure about where the mistake is in a solution, it is important to consult with others, such as colleagues or experts in the field. They may be able to provide a fresh perspective and help identify potential mistakes. It is also helpful to carefully review the steps and assumptions made in the solution to determine where the mistake may lie.

Similar threads

  • Introductory Physics Homework Help
Replies
12
Views
84
  • Introductory Physics Homework Help
2
Replies
38
Views
1K
  • Introductory Physics Homework Help
Replies
9
Views
117
Replies
3
Views
808
  • Calculus and Beyond Homework Help
Replies
2
Views
463
  • Other Physics Topics
Replies
1
Views
2K
Replies
11
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
999
  • Introductory Physics Homework Help
Replies
6
Views
2K
Replies
2
Views
4K
Back
Top