Is "my hardest" a direct object in "I will try my hardest"?

Yes, my hardest is a direct object in the sentence "I will try my hardest". A direct object answers the question "What?" or "Who?". What will you try? My hardest. You can also say that "(my) hardest" is used substantively. Nouns and noun-equivalents collectively are called substantives according to The Chicago Manual of Style 16th edition. Modern grammar books use the term nominal also.

Here is a good definition of substantive and it is relevant to the topic:

A substantive is a term covering all words that can be perceived by the senses or the understanding, a substantive can be a noun, pronoun or any word functioning like a noun. This could include such items like an adjective, participle, or infinitive used as the subject or a direct object of the sentence. A substantive can be one word or a group of words.

http://www.englishlanguageguide.com/grammar/substantive.asp

It works same as I will try/do my best. In this sentence, best is a noun used with a possessive and my best is the direct object. Here is the relevant excerpt from OED:

best, adj., n.1, and adv.

B. n.1

4. Usually with possessive: effort which surpasses all others in commitment or dedication, or reaches the highest level of which one is capable; the or one's utmost. Originally and chiefly in to do (also try) one's best: to do one's utmost (to do something); to try as hard as possible.

See also one's level best at level adj. 9.

In later use one's best is sometimes used adverbially with verbs of performance other than do and try and has the sense ‘as well as possible, as best one can’ (see e.g. quot. 1927).

1927    Boys' Life Aug. 20/2    No man can play his best with some outside thing on his mind.

Some relevant examples from OED:

1671    Dryden Evening's Love v. 73,    I will do my best to disingage my heart from this furious tender which I have for him.

1886    Times 20 Nov. 9/3    The young fiddlers and 'cellists do their very best, which is by no means contemptible.

2012    Daily Tel. 3 Sept. 5/2    My best wasn't good enough. I knew I'd blown it.


"My hardest" in "try my hardest" is probably not a direct object

I think "my hardest" is not generally a direct object when it comes at the end of a verb phrase like this, because in all cases it fails the passivization and extraction tests, and in some cases it can co-occur with what appears to be a direct object.

I don't know if this is conclusive evidence for the precise grammatical role of "my hardest" in expressions like this, but it seems sufficient for me to think that it is not a direct object.

Examples of "my hardest" in a verb phrase containing another phrase that seems to have the role of direct object

A Google search for "hit it my hardest" turns up a number of examples:

I wasn't trying to hit it my hardest, I just wanted to get it over

Taryn Hicks, "0/12/13 - Troy Tournament"

I learned that I didn't have to hit it my hardest every time,” Chisolm said.

"2016 Volleyball Co-Player of the Year: Claudia Chisolm, Calvary Day"

To me, it seems pretty apparent that "it" is the direct object of "hit" in these examples; unfortunately, I wasn't able to find passive versions of "hit it my hardest" (like "It was hit my hardest") so I guess it's still possible to try to analyze it elsewise, if you can figure out how to do that.

I did found three examples of the passive "I was pushed my hardest" on Google, which doesn't quite seem to be the conventional usage of "my hardest" but which is relevant I think.

It's possible that "hit it my hardest" is a different construction from "try my hardest," but I think it's more parsimonious to assume that "my hardest" plays the same grammatical role in both.

In fact, even though they seem non-standard to me, I did find a couple of examples of "try it my hardest," which I think serve as evidence that at least some speakers do not think of "my hardest" as the direct object of "try" in this construction:

And I to promise to try it my hardest." Tears welled up in Rini's eyes as she wrapped her arms around my and Darien's neck.

"Reversed Event", by Twi-chick34 | fanfiction.net > Anime/Manga > Sailor Moon

Promise I tried it my hardest

Taj Ahkel – On Two Feet Lyrics | Genius Lyrics

Two failed direct object tests

The passivization test fails, of course:

  • *My hardest will be tried.

I cannot figure out a way to extract "my hardest", so I would say it also fails an extraction text.

  • *My hardest is what I will try.

The non-conclusive evidence I know of for it being a direct object

  • Position: it's in the right position for an object
  • Noun phrase grammar: as StoneyB mentioned, this kind of superlative indisputably has the structure of a noun phrase internally, which is why it can take the determiner "my."
  • Rarely occurs alongside a direct object: When I looked through Google Books, all of the instances I found of "my hardest" were after verbs that did not have another noun phrase that could be interpreted as the direct object. For example, run my hardest, try my hardest [to _____], work my hardest, paddle my hardest, fight my hardest, pitch my hardest, strive my hardest [to _____], pull my hardest, pray my hardest. There were no Google Books results for "hit it my hardest" or "was pushed my hardest". So these constructions with an object in addition to "my hardest" are evidently quite rare (although, as mentioned above, there are examples from Google web search).

Failing the passivization and extraction tests probably is not enough on its own to prove that "my hardest" is not a direct object in sentences like this. To me, the so-called "cognate object constructions" seem similar, and if the name is accurate they are considered objects in at least some analyses. These are constructions like "They died a gruesome death," "He smiled an evil smile" or "I slept a good night's sleep."

But many "cognate objects" fail the passivization test or an extraction test: we definitely can't say

  • *A gruesome death was died by them.

and I also don't think

  • *A gruesome death is what they died.

works.

If "my hardest" is not a direct object, what is it?

I don't know what other options there are for analysis besides "direct object." As other answers have pointed out, "adverbial" seems plausible.

In fact, the OED quotation cited in ermanen's answer seems to follow this analysis for the similar expression "one's best" in at least some cases, since it says

In later use one's best is sometimes used adverbially with verbs of performance other than do and try and has the sense ‘as well as possible, as best one can’

While this does make an exception for do and try, as I said earlier, I don't see any clear motivation for doing that.

I've also run across the term "pseudo-object" in "Leg it, floor it, snuff it: A synchronic and diachronic analysis of dummy it" (Mondorf; see also Mondorf 2016 which may also be relevant) but that doesn't seem very explanatory, just a bare description.