Question: import numpy as np # Define the income function I ( x ) def income ( x ) : return ( 4 0 + x

import numpy as np
# Define the income function I(x)
def income(x):
return (40+ x)*(420-10* x)
# Coefficients of the quadratic equation I(x)= ax^2+ bx + c
# Expanding the income function:
# I(x)=40*420-10*40* x +420* x -10* x^2
# I(x)=-10x^2+380x +16800
a =-10
b =380
# The vertex of a parabola given by ax^2+ bx + c is at x =-b/(2a)
x_max =-b /(2* a)
# Calculate the maximum income
max_income = income(x_max)
# Calculate the optimal rental rate
optimal_rate =40+ x_max
# Print results
print(f"The rental agency will earn a maximum income of ${max_income:.2f} when it charges ${optimal_rate:.2f} per day.")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!