Problem 61143. Translating parabola by its vertex to the origin

Given a quadratic polynomial, p(x) = ax^2 + bx + c (a ~= 0), represented by the vector [a b c], consider the translation of the parabola by shifting its vertex to the origin (see figure below).
Find
  • d (d>0) the shifting distance of the above translation;
  • v the vertical shift, which stands for 'up' and 'down' if the parabola is upward or downward shifted, respectively, or simply '' if the graph does not undergo a translation;
  • h the horizontal shift, which stands for 'right' and 'left' if the parabola is shifted to the right and to the left, respectively, or simply '' if the graph does not undergo a translation.
Hint: Be careful to the potential computer errors whenever the results will be integer numbers.
input: p
output: [d, v, h]
Shift parabola

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Jan 05, 2026

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers5

Suggested Problems

More from this Author12

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!